/* ================= TOKENS ================= */
:root {
  --bg: #030308;
  --panel: rgba(14, 18, 36, 0.72);
  --line: rgba(120, 170, 255, 0.22);
  --blue: #4f8dff;
  --blue-2: #2f5cff;
  --amber: #ffb24a;
  --text: #eef2ff;
  --muted: #9aa6c7;
  --chrome: linear-gradient(180deg, #ffffff 0%, #e4e9f2 40%, #8b95a8 52%, #f4f7ff 70%, #b9c2d3 100%);
  --beam: linear-gradient(90deg, var(--blue-2), var(--blue) 40%, var(--amber));

  --f-display: "Michroma", system-ui, sans-serif;
  --f-body: "Inter", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius: 16px;
  --glow: 0 0 0 1px var(--line), 0 0 30px rgba(79, 141, 255, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--f-body);
  color: var(--text);
  line-height: 1.6;
  overflow-x: clip;
  background:
    radial-gradient(1px 1px at 10% 20%, #fff, transparent),
    radial-gradient(1px 1px at 70% 10%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 40% 60%, #bcd4ff, transparent),
    radial-gradient(1px 1px at 85% 45%, #ffd9a8, transparent),
    radial-gradient(1px 1px at 25% 85%, #fff, transparent),
    radial-gradient(ellipse at 15% 30%, rgba(47, 92, 255, 0.14), transparent 50%),
    radial-gradient(ellipse at 85% 70%, rgba(255, 178, 74, 0.08), transparent 50%),
    var(--bg);
  background-size: 380px 380px, 380px 380px, 380px 380px, 380px 380px, 380px 380px, 100% 100%, 100% 100%, auto;
  background-attachment: fixed;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

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

.chrome {
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.accent {
  background: var(--beam);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.panel {
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--glow);
  backdrop-filter: blur(10px);
}

/* ================= BUTTONS ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--f-display);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-2), var(--blue) 55%, var(--amber));
  box-shadow: 0 6px 24px rgba(79, 141, 255, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 10px 34px rgba(255, 178, 74, 0.45);
}

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
}

.btn-ghost:hover {
  background: rgba(79, 141, 255, 0.12);
  border-color: rgba(79, 141, 255, 0.6);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.74rem;
}

.btn-icon {
  width: 42px;
  height: 42px;
  padding: 0;
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line);
}

.btn-icon svg {
  width: 18px;
  height: 18px;
}

/* ================= NAV ================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px clamp(16px, 4vw, 40px);
  background: rgba(3, 3, 8, 0.78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 0 0 1px var(--line), 0 0 16px rgba(79, 141, 255, 0.35);
}

.brand-name {
  font-family: var(--f-display);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--amber);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ================= HERO ================= */
.hero {
  padding-bottom: clamp(48px, 7vw, 80px);
}

.hero-banner img {
  width: 100%;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(to bottom, #000 75%, transparent);
  mask-image: linear-gradient(to bottom, #000 75%, transparent);
}

.hero-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: min(860px, calc(100% - 32px));
  margin: clamp(-90px, -6vw, -24px) auto 0;
  padding: clamp(28px, 4vw, 44px) clamp(18px, 4vw, 44px);
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 5px 12px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--amber);
  background: rgba(255, 178, 74, 0.08);
  border: 1px solid rgba(255, 178, 74, 0.35);
  border-radius: 999px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 10px var(--amber);
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  50% { opacity: 0.3; }
}

.title {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 5vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: 0.02em;
  filter: drop-shadow(0 0 18px rgba(79, 141, 255, 0.45));
}

.ticker {
  margin: 0;
  font-family: var(--f-display);
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  letter-spacing: 0.12em;
  color: var(--amber);
  text-shadow: 0 0 18px rgba(255, 178, 74, 0.55);
}

.tagline {
  max-width: 520px;
  margin: 0;
  font-size: 1.05rem;
  color: var(--muted);
}

.ca-pill {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  cursor: pointer;
}

.ca-tag,
.ca-copy {
  flex: none;
  padding: 10px 16px;
  font-family: var(--f-display);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.ca-tag {
  color: var(--bg);
  background: var(--chrome);
}

.ca-code {
  min-width: 0;
  padding: 10px 16px;
  font-family: var(--f-mono);
  font-size: 0.85rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ca-copy {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-2), var(--blue));
}

.ca-pill:hover .ca-copy {
  background: linear-gradient(135deg, var(--blue), var(--amber));
}

.cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 4px;
}

/* ================= STRIP ================= */
.strip {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(47, 92, 255, 0.18), rgba(255, 178, 74, 0.14), rgba(47, 92, 255, 0.18));
}

.strip-track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}

.strip-track span {
  padding: 14px 0;
  font-family: var(--f-display);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.strip-track span::after {
  content: "✦";
  margin: 0 26px;
  color: var(--amber);
}

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

/* ================= SECTIONS ================= */
.section {
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(64px, 9vw, 110px) 16px;
}

.eyebrow {
  margin: 0;
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--amber);
}

.h2 {
  margin: 12px 0 18px;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(1.4rem, 3.4vw, 2.3rem);
  line-height: 1.3;
}

.lede {
  margin: 0;
  color: var(--muted);
}

/* Model card */
.model {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}

.model-copy p {
  margin: 0 0 14px;
  font-size: 1.05rem;
  color: var(--muted);
}

.model-copy strong {
  color: var(--text);
}

.card {
  overflow: hidden;
}

.card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 22px;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--bg);
  background: var(--chrome);
}

.specs {
  margin: 0;
  padding: 8px 22px 16px;
}

.specs > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  font-size: 0.88rem;
  border-bottom: 1px dashed var(--line);
}

.specs > div:last-child {
  border-bottom: 0;
}

.specs dt {
  color: var(--muted);
}

.specs dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}

/* Ask SI */
.ask {
  text-align: center;
}

.chat {
  max-width: 720px;
  margin: 32px auto 0;
  text-align: left;
  overflow: hidden;
}

.chat-log {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 340px;
  padding: 22px;
  overflow-y: auto;
  scroll-behavior: smooth;
}

.msg {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  max-width: 85%;
}

.msg p {
  margin: 0;
  padding: 11px 16px;
  font-size: 0.95rem;
  border-radius: 16px;
}

.msg img {
  flex: none;
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 8px;
}

.msg-user {
  align-self: flex-end;
}

.msg-user p {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-2), var(--blue));
  border-bottom-right-radius: 4px;
}

.msg-bot {
  align-self: flex-start;
}

.msg-bot p {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}

.thinking {
  color: var(--muted);
  font-style: italic;
}

.thinking::after {
  content: "";
  animation: dots 1.2s steps(4) infinite;
}

@keyframes dots {
  0% { content: ""; }
  25% { content: "."; }
  50% { content: ".."; }
  75% { content: "..."; }
}

.chat-form {
  display: flex;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
}

.chat-form input {
  flex: 1;
  min-width: 0;
  padding: 12px 18px;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: none;
}

.chat-form input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(79, 141, 255, 0.2);
}

.chat-form input::placeholder {
  color: var(--muted);
}

/* How to buy */
.buy {
  text-align: center;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px rgba(255, 178, 74, 0.5), 0 0 34px rgba(255, 178, 74, 0.15);
}

.step-num {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--amber);
}

.step h3 {
  margin: 4px 0 0;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
}

.step p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--muted);
}

.mini-ca {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  margin-top: 8px;
  padding: 8px 10px;
  font-size: 0.76rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.mini-ca span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-ca b {
  flex: none;
  color: var(--amber);
}

/* Join */
.join {
  padding: 0 16px clamp(80px, 10vw, 120px);
}

.join-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 48px);
  text-align: center;
}

.join-panel img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 0 0 1px var(--line), 0 0 40px rgba(79, 141, 255, 0.35);
}

.join-panel p {
  margin: 0 0 24px;
  color: var(--muted);
}

/* ================= FOOTER ================= */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 44px 16px 36px;
  text-align: center;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.5);
}

.footer img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 14px;
}

.footer-name {
  margin: 6px 0 0;
  font-family: var(--f-display);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
}

.footer-name span {
  color: var(--amber);
}

.footer-copy {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  opacity: 0.7;
}

/* toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 100;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-2), var(--blue));
  border-radius: 999px;
  box-shadow: 0 0 30px rgba(79, 141, 255, 0.5);
  opacity: 0;
  transform: translate(-50%, 140%);
  transition: opacity 0.2s ease, transform 0.25s ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 960px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .nav-links {
    display: none;
  }

  .model {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .brand-name {
    display: none;
  }

  .hero-panel {
    margin-top: 12px;
  }

  .cta .btn {
    flex: 1 1 100%;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .chat-log {
    height: 300px;
    padding: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html,
  .chat-log {
    scroll-behavior: auto;
  }

  .strip-track,
  .dot {
    animation: none;
  }
}
