:root {
  --bg: #000000;
  --surface: #0e0e11;
  --surface-2: #18181b;
  --border: #27272a;
  --text: #fafafa;
  --muted: #a1a1aa;
  --amber: #f59e0b;
  --amber-soft: rgba(245, 158, 11, 0.14);
  --amber-border: rgba(245, 158, 11, 0.45);
}

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

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

:where(a:any-link, button):focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ===== Full-Viewport No-Scroll Landing Page (Desktop) ===== */
body.landing {
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.ambient-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(620px circle at 76% 48%, rgba(245, 158, 11, 0.12), transparent 62%),
    radial-gradient(480px circle at 16% 18%, rgba(245, 158, 11, 0.06), transparent 60%);
}

.shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Top Nav */
.topbar {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 20;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.5px;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.28);
}

.brand .ai {
  color: var(--amber);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
}

.nav-links a[aria-current="page"] {
  color: var(--amber);
  font-weight: 700;
}

.nav-pill {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--amber-border);
  background: var(--amber-soft);
  color: var(--amber) !important;
  font-weight: 700;
  font-size: 12.5px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.nav-pill:hover {
  transform: translateY(-1px);
  background: rgba(245, 158, 11, 0.22);
}

/* Mobile Dropdown Menu (Zero-JS Native Disclosure) */
.mobile-menu {
  display: none;
  position: relative;
}

.mobile-menu summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-menu[open] summary {
  border-color: var(--amber);
  color: var(--amber);
  background: var(--amber-soft);
}

.mobile-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(260px, calc(100vw - 40px));
  background: rgba(14, 14, 17, 0.98);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 40;
}

.mobile-menu-panel a {
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #e4e4e7;
}

.mobile-menu-panel a:hover,
.mobile-menu-panel a[aria-current="page"] {
  background: var(--amber-soft);
  color: var(--amber);
}

.mobile-menu-panel .mobile-cta {
  margin-top: 6px;
  text-align: center;
  border: 1px solid var(--amber-border);
  background: var(--amber-soft);
  color: var(--amber);
  font-weight: 700;
}

/* Main Split Hero */
.hero {
  flex: 1;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 44px;
  min-height: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--amber);
  margin-bottom: 18px;
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 10px var(--amber);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.hero h1 {
  font-size: clamp(34px, 4.3vw, 54px);
  line-height: 1.07;
  font-weight: 900;
  letter-spacing: -1.4px;
  margin-bottom: 16px;
}

.hero h1 .accent {
  color: var(--amber);
}

.hero-sub {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 510px;
  margin-bottom: 22px;
}

.feature-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 600;
  color: #e4e4e7;
}

.chip span.ico {
  color: var(--amber);
}

/* Store CTA Buttons */
.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  min-width: 196px;
}

.store-btn.primary {
  background: var(--amber);
  color: #18181b;
  border-color: var(--amber);
  box-shadow: 0 8px 28px rgba(245, 158, 11, 0.26);
}

.store-btn:hover {
  transform: translateY(-2px);
  border-color: var(--amber);
}

.store-btn svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.store-btn .meta {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.store-btn .small {
  font-size: 10.5px;
  font-weight: 600;
  opacity: 0.78;
}

.store-btn .big {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.trust-line {
  font-size: 12px;
  color: #71717a;
}

/* Right Interactive Phone Mockup */
.phone-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.phone-frame {
  width: 304px;
  height: min(565px, 68dvh);
  border-radius: 40px;
  padding: 10px;
  background: linear-gradient(155deg, #27272a, #09090b 60%, #1c1917);
  border: 1px solid rgba(245, 158, 11, 0.28);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.85),
    0 0 42px rgba(245, 158, 11, 0.12);
  position: relative;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 31px;
  background: #000000;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.phone-notch {
  width: 96px;
  height: 22px;
  background: #09090b;
  border-radius: 999px;
  margin: 8px auto 6px;
  flex-shrink: 0;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 14px 8px;
  border-bottom: 1px solid #18181b;
  flex-shrink: 0;
}

.app-header-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 900;
}

.app-header-brand img {
  width: 19px;
  height: 19px;
  border-radius: 5px;
}

.app-header-icons {
  display: flex;
  gap: 8px;
  font-size: 12px;
  color: #a1a1aa;
}

.slide-wrap {
  flex: 1;
  padding: 10px 12px;
  display: none;
  flex-direction: column;
  gap: 9px;
  animation: fadeUp 0.32s ease;
  overflow: hidden;
}

.slide-wrap.active {
  display: flex;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.dq-mini {
  background: #0e0e11;
  border: 1px solid rgba(245, 158, 11, 0.55);
  border-radius: 13px;
  padding: 10px;
}

.dq-tag {
  font-size: 9.5px;
  font-weight: 800;
  color: var(--amber);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.dq-q {
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
}

.dq-btns {
  display: flex;
  gap: 6px;
}

.dq-btn-1 {
  flex: 1;
  background: var(--amber);
  color: #18181b;
  border-radius: 999px;
  text-align: center;
  font-size: 10px;
  font-weight: 800;
  padding: 5px 8px;
}

.dq-btn-2 {
  border: 1px solid rgba(245, 158, 11, 0.55);
  color: #fff;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  padding: 5px 8px;
}

.post-mini {
  border-bottom: 1px solid #18181b;
  padding-bottom: 9px;
}

.post-top {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.avatar-mini {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #27272a;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
  color: var(--amber);
}

.nick-mini {
  font-size: 11px;
  font-weight: 700;
}

.tag-mini {
  font-size: 10px;
  color: var(--amber);
  font-weight: 600;
}

.post-body {
  font-size: 11.5px;
  line-height: 1.4;
  color: #e4e4e7;
  margin-bottom: 6px;
}

.react-row {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.react-pill {
  font-size: 10px;
  background: #141416;
  border: 1px solid #27272a;
  border-radius: 999px;
  padding: 2px 7px;
  color: #a1a1aa;
}

.react-pill.hi {
  border-color: rgba(245, 158, 11, 0.55);
  color: var(--amber);
  background: rgba(245, 158, 11, 0.12);
}

/* Chat Slide */
.mode-pills {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.mode-pill {
  font-size: 9.5px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  background: #141416;
  border: 1px solid #27272a;
  color: #a1a1aa;
}

.mode-pill.on {
  background: var(--amber);
  color: #18181b;
  border-color: var(--amber);
}

.bubble-u {
  align-self: flex-end;
  max-width: 84%;
  background: #ffffff;
  color: #09090b;
  padding: 8px 10px;
  border-radius: 14px 14px 4px 14px;
  font-size: 11.5px;
  line-height: 1.38;
  font-weight: 500;
}

.bubble-ai {
  align-self: flex-start;
  max-width: 88%;
  background: #18181b;
  border: 1px solid #27272a;
  color: #fafafa;
  padding: 9px 10px;
  border-radius: 14px 14px 14px 4px;
  font-size: 11.5px;
  line-height: 1.4;
}

.bubble-ai .who {
  font-size: 9.5px;
  font-weight: 800;
  color: var(--amber);
  margin-bottom: 3px;
}

.shield-bar {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 10px;
  padding: 7px 9px;
  font-size: 10px;
  color: var(--amber);
  font-weight: 600;
}

/* Slide Switcher Dots */
.stage-tabs {
  display: flex;
  gap: 8px;
}

.stage-tab {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.stage-tab.active,
.stage-tab:hover {
  border-color: var(--amber);
  color: var(--amber);
  background: var(--amber-soft);
}

/* Footer */
.footer {
  height: 58px;
  border-top: 1px solid #18181b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #71717a;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a:hover,
.footer-links a[aria-current="page"] {
  color: var(--amber);
}

/* ===== Legal & Subpages ===== */
body.doc-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.doc-main {
  flex: 1;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 36px 24px 64px;
}

.doc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
}

.doc-badge {
  display: inline-block;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--amber-soft);
  border: 1px solid var(--amber-border);
  color: var(--amber);
  font-size: 11.5px;
  font-weight: 700;
  margin-bottom: 12px;
}

.doc-card h1 {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.6px;
  margin-bottom: 8px;
}

.doc-updated {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 24px;
}

.doc-card h2 {
  font-size: 17px;
  font-weight: 800;
  color: var(--amber);
  margin: 22px 0 8px;
}

.doc-card p,
.doc-card li {
  font-size: 14.5px;
  line-height: 1.7;
  color: #d4d4d8;
}

.doc-card ul {
  padding-left: 20px;
  margin: 8px 0 12px;
}

.doc-card li {
  margin-bottom: 6px;
}

.callout {
  margin-top: 20px;
  padding: 16px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--amber-border);
  font-size: 14px;
  line-height: 1.6;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.back-btn:hover {
  color: var(--amber);
}

/* Centered Utility Pages (404 & Store Redirect) */
.center-main {
  flex: 1;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 24px 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.center-card {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 38px 32px;
  text-align: center;
}

.center-code {
  font-size: clamp(56px, 11vw, 84px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -2.5px;
  color: var(--amber);
  margin-bottom: 12px;
}

.center-card h1 {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.6px;
  margin-bottom: 10px;
}

.center-card p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 24px;
}

.center-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: var(--amber);
  color: #18181b;
  border: 1px solid var(--amber);
}

.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-1px);
  border-color: var(--amber);
}

/* Mobile Responsive (allow clean scroll on small mobile viewports) */
@media (max-width: 900px) {
  body.landing {
    height: auto;
    min-height: 100dvh;
    overflow-y: auto;
  }

  .shell {
    padding-inline: 20px;
  }

  .nav-links {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-block: 16px 36px;
  }

  .hero > section {
    min-width: 0;
  }

  .eyebrow {
    font-size: 11.5px;
    max-width: 100%;
  }

  .store-btn {
    flex: 1 1 165px;
    min-width: 0;
  }

  .phone-frame {
    width: min(304px, 100%);
    height: 520px;
  }

  .stage-tabs {
    flex-wrap: wrap;
    justify-content: center;
  }

  .doc-main {
    padding: 24px 20px 48px;
  }

  .doc-card,
  .center-card {
    padding: 26px 20px;
  }

  .footer {
    height: auto;
    padding-block: 20px;
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
    gap: 14px;
  }
}

@media (max-width: 440px) {
  .store-btn {
    flex: 1 1 100%;
    justify-content: center;
  }
}

@media (max-height: 700px) {
  body.landing {
    height: auto;
    min-height: 100dvh;
    overflow-y: auto;
  }

  .hero {
    padding-block: 20px 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .eyebrow .dot,
  .slide-wrap {
    animation: none;
  }

  .nav-pill,
  .store-btn,
  .stage-tab {
    transition: none;
  }
}
