:root {
  --ink: #0d0f0a;
  --surface: #14170e;
  --raised: #1b1f13;
  --line: #2b3120;
  --fog: #a3a892;
  --bone: #ece9dd;
  --acid: #d8ff3e;
  --display: "Archivo Black", sans-serif;
  --sans: "Archivo", sans-serif;
  --mono: "IBM Plex Mono", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(216, 255, 62, 0.07), transparent),
    repeating-linear-gradient(0deg, transparent, transparent 47px, rgba(236, 233, 221, 0.025) 48px);
}

::selection { background: var(--acid); color: var(--ink); }

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.wrap { width: min(72rem, 100% - 3rem); margin-inline: auto; }

.mono { font-family: var(--mono); }

/* ---------- animations ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.rise { animation: rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) both; }

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }
.blink { animation: blink 1.2s ease-in-out infinite; }

@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@keyframes ping {
  75%, 100% { transform: scale(2.4); opacity: 0; }
}

/* ---------- header ---------- */
header.site {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--ink) 97%, transparent);
}
header.site .wrap {
  height: 4rem; display: flex; align-items: center; justify-content: space-between;
}
.logo { font-family: var(--display); font-size: 1.25rem; letter-spacing: -0.02em; }
.logo em, .acid { color: var(--acid); font-style: normal; }

nav { display: flex; align-items: center; gap: 1.5rem; }
nav > a {
  font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 0.2em; color: var(--fog); transition: color 0.2s;
}
nav > a:hover { color: var(--acid); }

.user-chip {
  display: flex; align-items: center; gap: 0.5rem;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 0.25rem 0.75rem 0.25rem 0.25rem; transition: border-color 0.2s;
}
.user-chip:hover { border-color: var(--acid); }
.user-chip .avatar {
  display: grid; place-items: center; width: 1.75rem; height: 1.75rem;
  border-radius: 999px; background: var(--acid); color: var(--ink);
  font-family: var(--display); font-size: 0.6rem;
}
.user-chip span:last-child { font-family: var(--mono); font-size: 0.75rem; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero .wrap { padding: 5rem 0 4rem; }
.kicker {
  font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 0.35em; color: var(--acid); margin-bottom: 1.5rem;
}
.hero h1 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(3rem, 9vw, 7.5rem);
  line-height: 0.9; letter-spacing: -0.02em;
}
.hero p.sub { margin-top: 2rem; max-width: 28rem; color: var(--fog); line-height: 1.6; }
.hero .cta-row { margin-top: 2.5rem; display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
  font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 0.2em; padding: 0.9rem 1.5rem; display: inline-block;
  transition: all 0.2s; border: none;
}
.btn.primary { background: var(--acid); color: var(--ink); }
.btn.primary:hover { background: var(--bone); }
.btn.ghost { border: 1px solid var(--line); color: var(--bone); background: none; }
.btn.ghost:hover { border-color: var(--acid); color: var(--acid); }

.hero .watermark {
  position: absolute; right: -2.5rem; bottom: -6rem; pointer-events: none;
  font-family: var(--display); font-size: 22rem; line-height: 1;
  color: rgba(236, 233, 221, 0.04); user-select: none;
}
@media (max-width: 1024px) { .hero .watermark { display: none; } }

/* ---------- ticker ---------- */
.ticker {
  border-bottom: 1px solid var(--line); background: var(--surface);
  overflow: hidden; padding: 0.75rem 0;
}
.ticker .track { display: flex; gap: 2.5rem; width: max-content; animation: marquee 28s linear infinite; }
.ticker span {
  font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 0.25em; color: var(--fog); white-space: nowrap;
}
.ticker b { color: var(--acid); font-weight: 400; margin-left: 1.5rem; }

/* ---------- catalog ---------- */
.catalog { padding: 4rem 0; scroll-margin-top: 5rem; }
.catalog-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 2.5rem; }
.catalog-head h2 { font-family: var(--display); font-weight: 400; font-size: 1.9rem; letter-spacing: -0.02em; }
.catalog-head span { font-family: var(--mono); font-size: 0.75rem; color: var(--fog); }

.grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
}

.card {
  border: 1px solid var(--line); background: var(--surface);
  display: flex; flex-direction: column;
  transition: border-color 0.3s;
}
.card:hover { border-color: color-mix(in srgb, var(--acid) 60%, transparent); }

.card .art {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
}
.card .art .sku, .card .art .cat {
  position: absolute; top: 0.75rem; font-family: var(--mono);
  font-size: 0.6rem; letter-spacing: 0.2em; color: var(--fog);
  text-transform: uppercase; z-index: 1;
}
.card .art .sku { left: 0.75rem; }
.card .art .cat { right: 0.75rem; }
.card .art svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  padding: 2.5rem; box-sizing: border-box;
  transition: transform 0.5s;
}
.card:hover .art svg { transform: scale(1.1) rotate(-3deg); }
.card .art .num {
  position: absolute; bottom: -1rem; right: -0.5rem;
  font-family: var(--display); font-size: 5.5rem; line-height: 1;
  color: rgba(236, 233, 221, 0.05); user-select: none;
}

.card .body {
  border-top: 1px solid var(--line); padding: 1.25rem;
  display: flex; flex-direction: column; gap: 0.5rem; flex-grow: 1;
}
.card .title-row { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; }
.card h3 { font-family: var(--display); font-weight: 400; font-size: 0.95rem; line-height: 1.2; }
.card .price { font-family: var(--mono); color: var(--acid); font-size: 0.85rem; white-space: nowrap; }
.card .blurb { font-size: 0.85rem; color: var(--fog); line-height: 1.55; flex-grow: 1; }
.card .meta-row { display: flex; justify-content: space-between; align-items: center; padding-top: 0.5rem; }
.card .meta { font-family: var(--mono); font-size: 0.65rem; color: var(--fog); }
.card .add {
  font-family: var(--mono); font-size: 0.65rem; text-transform: uppercase;
  letter-spacing: 0.2em; border: 1px solid var(--line); background: none;
  color: var(--bone); padding: 0.4rem 0.75rem; transition: all 0.2s;
}
.card .add:hover { background: var(--acid); color: var(--ink); border-color: var(--acid); }

/* ---------- orders page ---------- */
.orders-page { padding: 4rem 0; }
.orders-page h1 { font-family: var(--display); font-weight: 400; font-size: 2.4rem; letter-spacing: -0.02em; }
.account-row {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 1rem; margin-bottom: 0.75rem; flex-wrap: wrap;
}
.account-row .email { font-family: var(--mono); font-size: 0.75rem; color: var(--fog); }
.stats {
  display: flex; gap: 1.5rem; flex-wrap: wrap;
  border-block: 1px solid var(--line); padding: 1rem 0; margin-bottom: 3rem;
  font-family: var(--mono); font-size: 0.75rem; color: var(--fog);
}
.stats b { color: var(--bone); font-weight: 400; }
.stats .acid { color: var(--acid); }

.order { border: 1px solid var(--line); background: var(--surface); margin-bottom: 1.5rem; }
.order header {
  display: flex; justify-content: space-between; align-items: center;
  gap: 0.75rem; flex-wrap: wrap;
  border-bottom: 1px solid var(--line); padding: 1rem 1.5rem;
}
.order .id-row { display: flex; align-items: center; gap: 1rem; }
.order h2 { font-family: var(--mono); font-size: 0.85rem; font-weight: 400; }
.order .date { font-family: var(--mono); font-size: 0.75rem; color: var(--fog); }
.status {
  font-family: var(--mono); font-size: 0.6rem; text-transform: uppercase;
  letter-spacing: 0.2em; border: 1px solid var(--line); color: var(--fog);
  padding: 0.25rem 0.6rem;
}
.status.shipped { color: var(--acid); border-color: color-mix(in srgb, var(--acid) 50%, transparent); }
.status.processing { color: var(--bone); border-color: color-mix(in srgb, var(--bone) 40%, transparent); }

.order ul { list-style: none; }
.order li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.9rem 1.5rem;
}
.order li + li { border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.order .item-left { display: flex; align-items: center; gap: 1rem; }
.order .qty { font-family: var(--mono); font-size: 0.75rem; color: var(--fog); width: 2rem; }
.order .item-name { font-size: 0.9rem; }
.order .item-sku { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.2em; color: var(--fog); }
.order .item-price { font-family: var(--mono); font-size: 0.85rem; color: var(--fog); }
.order footer {
  display: flex; justify-content: space-between;
  border-top: 1px solid var(--line); padding: 1rem 1.5rem;
}
.order footer .label {
  font-family: var(--mono); font-size: 0.6rem; text-transform: uppercase;
  letter-spacing: 0.2em; color: var(--fog);
}
.order footer .total { font-family: var(--mono); font-size: 0.85rem; color: var(--acid); }

/* ---------- footer ---------- */
footer.site { border-top: 1px solid var(--line); margin-top: auto; }
footer.site .wrap {
  padding: 2.5rem 0; display: flex; justify-content: space-between;
  align-items: center; gap: 1rem; flex-wrap: wrap;
}
footer.site .status-line { font-family: var(--mono); font-size: 0.7rem; color: var(--fog); }

/* ---------- chat widget ---------- */
.chat-launcher {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 50;
  display: flex; align-items: center; gap: 0.6rem;
  background: var(--acid); color: var(--ink); border: none;
  font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 0.2em; padding: 0.9rem 1.25rem;
  box-shadow: 0 0 40px rgba(216, 255, 62, 0.25);
  transition: background 0.2s;
}
.chat-launcher:hover { background: var(--bone); }
.chat-launcher .dot { position: relative; width: 0.5rem; height: 0.5rem; }
.chat-launcher .dot::before {
  content: ""; position: absolute; inset: 0; border-radius: 999px;
  background: rgba(13, 15, 10, 0.6); animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.chat-launcher .dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 999px; background: var(--ink);
}

.chat-panel {
  position: fixed; bottom: 5.5rem; right: 1.5rem; z-index: 50;
  width: min(24rem, calc(100vw - 3rem)); height: 32rem;
  display: none; flex-direction: column;
  border: 1px solid var(--line); background: var(--surface);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}
.chat-panel.open { display: flex; }

.chat-panel > header {
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--line); padding: 1rem 1.25rem;
}
.chat-panel .chat-title { font-family: var(--display); font-size: 0.85rem; }
.chat-panel .chat-sub { font-family: var(--mono); font-size: 0.6rem; color: var(--fog); margin-top: 0.2rem; }
.chat-panel .ai-badge {
  font-family: var(--mono); font-size: 0.6rem; text-transform: uppercase;
  letter-spacing: 0.2em; color: var(--acid);
  border: 1px solid color-mix(in srgb, var(--acid) 40%, transparent);
  padding: 0.25rem 0.5rem;
}

.chat-log {
  flex-grow: 1; overflow-y: auto; padding: 1rem 1.25rem;
  display: flex; flex-direction: column; gap: 1rem;
}
.msg { max-width: 85%; font-size: 0.85rem; line-height: 1.55; }
.msg p + p { margin-top: 0.4rem; }
.msg p.bullet { padding-left: 0.75rem; }
.msg.assistant { color: var(--fog); }
.msg.assistant strong { color: var(--bone); }
.msg.user { margin-left: auto; background: var(--acid); color: var(--ink); padding: 0.6rem 1rem; }
.msg.typing { font-family: var(--mono); font-size: 0.75rem; color: var(--acid); }

.suggestions { display: flex; flex-direction: column; gap: 0.5rem; padding-top: 0.5rem; }
.suggestions button {
  text-align: left; font-family: var(--mono); font-size: 0.7rem;
  color: var(--fog); background: none; border: 1px solid var(--line);
  padding: 0.65rem 0.75rem; transition: all 0.2s;
}
.suggestions button:hover { border-color: var(--acid); color: var(--acid); }

.chat-form { display: flex; border-top: 1px solid var(--line); }
.chat-form input {
  flex-grow: 1; background: none; border: none; outline: none;
  color: var(--bone); font: inherit; font-size: 0.85rem; padding: 1rem 1.25rem;
}
.chat-form input::placeholder { color: color-mix(in srgb, var(--fog) 50%, transparent); }
.chat-form button {
  font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 0.2em; background: none; border: none; color: var(--acid);
  padding: 0 1.25rem; transition: all 0.2s;
}
.chat-form button:disabled { color: color-mix(in srgb, var(--fog) 40%, transparent); cursor: default; }
.chat-form button:not(:disabled):hover { background: var(--acid); color: var(--ink); }
