/* ==========================================================================
   STORAGE API — Obsidian Dark & Ice Light Design System with Brand Touches
   Brand Accents: #190F6E | #AFEB00 | #A5C8DC | #F5FAFF
   ========================================================================== */

:root {
  --brand-indigo: #190F6E;
  --brand-lime: #AFEB00;
  --brand-sky: #A5C8DC;
  --brand-white: #F5FAFF;

  /* Dark Mode (Default — Pure Obsidian Black + Brand Touches) */
  --bg: #000000;
  --bg-subtle: #09090b;
  --surface: #0c0c0e;
  --surface-elevated: #121215;
  --surface-hover: #18181b;
  --sidebar-bg: #060608;
  --input-bg: #050507;
  --navbar-bg: rgba(0, 0, 0, 0.8);
  --drawer-bg: #09090b;
  --backdrop-bg: rgba(0, 0, 0, 0.78);
  --code-bg: #070709;
  --code-header-bg: #0d0d10;
  --code-response-bg: #050507;
  --code-border: #1f1f23;
  --code-tab-bg: #050507;
  --code-tab-active-bg: #18181b;
  --code-tab-active-text: #AFEB00;
  --code-text: #e4e4e7;
  --code-response-text: #a1a1aa;
  --code-muted: #71717a;
  --code-dot: #27272a;
  --tok-k: #A5C8DC;
  --tok-s: #AFEB00;
  --tok-c: #52525b;
  --tok-n: #F5FAFF;
  --scrollbar-thumb: rgba(255, 255, 255, 0.16);
  --scrollbar-thumb-hover: rgba(255, 255, 255, 0.28);

  --border: #1f1f23;
  --border-strong: #2e2e34;
  --border-focus: #AFEB00;
  --grid-line: rgba(255, 255, 255, 0.035);

  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;

  --accent: #AFEB00;
  --accent-hover: #c3ff1a;
  --accent-text: #09090b;
  --accent-soft: rgba(175, 235, 0, 0.1);
  --accent-border: rgba(175, 235, 0, 0.35);

  --status-accent-text: #AFEB00;
  --status-accent-bg: rgba(175, 235, 0, 0.1);
  --status-accent-border: rgba(175, 235, 0, 0.32);

  --sky-text: #A5C8DC;
  --sky-bg: rgba(165, 200, 220, 0.1);
  --sky-border: rgba(165, 200, 220, 0.28);

  --blue: #A5C8DC;
  --cyan: #A5C8DC;
  --emerald: #AFEB00;
  --amber: #f59e0b;
  --rose: #ef4444;

  --hero-h1-start: #ffffff;
  --hero-h1-end: #a1a1aa;
  --featured-bg: linear-gradient(180deg, #121216 0%, #09090b 100%);
  --cta-bg: radial-gradient(circle at 50% 0%, rgba(175, 235, 0, 0.09), rgba(25, 15, 110, 0.16) 45%, transparent 72%), var(--surface);
  --hover-tint: rgba(255, 255, 255, 0.05);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;

  --font-display: "Space Grotesk", "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 12px 32px -12px rgba(0, 0, 0, 0.82);
  --shadow-glow: 0 0 80px -24px rgba(175, 235, 0, 0.18);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

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

h1,
h2,
h3,
.brand-wordmark,
.price-tag {
  font-family: var(--font-display);
}

code,
pre,
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* Containers */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Subtle Architectural Grid Background */
.bg-grid {
  position: relative;
}

.bg-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.bg-grid > * {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 60px;
  background: var(--navbar-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.navbar-inner {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.navbar-brand-group {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  justify-self: start;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.brand-wordmark {
  font-weight: 700;
  letter-spacing: -0.035em;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
}

.brand-mark-sm {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.version-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-strong);
  background: var(--surface-elevated);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* Header User Profile Avatar & Dropdown Popover */
.user-menu {
  position: relative;
}

.user-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 3px 10px 3px 4px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-strong);
  background: var(--surface-elevated);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.user-menu-trigger:hover,
.user-menu.open .user-menu-trigger {
  border-color: var(--border-focus);
  background: var(--surface-hover);
}

.user-menu-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-indigo);
  color: var(--brand-lime);
  border: 1px solid rgba(175, 235, 0, 0.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.user-menu-trigger-name {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu-caret {
  color: var(--text-muted);
  transition: transform 0.16s ease;
  flex-shrink: 0;
}

.user-menu.open .user-menu-caret {
  transform: rotate(180deg);
}

.user-menu-popover {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 248px;
  max-width: calc(100vw - 24px);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  z-index: 60;
}

.user-menu.open .user-menu-popover {
  display: block;
  animation: toastIn 0.14s ease;
}

.user-menu-header {
  padding: 13px 14px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
}

.user-menu-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.user-menu-fullname {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu-plan {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  color: var(--status-accent-text);
  background: var(--status-accent-bg);
  border: 1px solid var(--status-accent-border);
  flex-shrink: 0;
}

.user-menu-email {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu-section {
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.user-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.14s ease, color 0.14s ease;
}

.user-menu-item:hover {
  background: var(--hover-tint);
  color: var(--text-primary);
}

.user-menu-item svg {
  flex-shrink: 0;
  opacity: 0.85;
}

.user-menu-item-danger {
  color: #f87171;
}

.user-menu-item-danger:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}

.user-menu-divider {
  height: 1px;
  background: var(--border);
}

.sidebar-plan-card {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
}

@media (max-width: 540px) {
  .user-menu-trigger {
    padding-right: 7px;
  }
  .user-menu-trigger-name {
    display: none;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  justify-self: center;
}

.nav-links a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.15s ease;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  justify-self: end;
}

.nav-mobile-toggle {
  display: none;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface-elevated);
  color: var(--text-primary);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.nav-mobile-toggle:hover {
  border-color: var(--brand-lime);
  background: var(--surface-hover);
}

.nav-mobile-toggle .icon-close {
  display: none;
}

.nav-mobile-toggle.is-open .icon-open {
  display: none;
}

.nav-mobile-toggle.is-open .icon-close {
  display: block;
}

.nav-mobile-drawer {
  display: none;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--drawer-bg);
  border-bottom: 1px solid var(--border-strong);
  padding: 16px 20px 22px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  z-index: 49;
}

.nav-mobile-drawer.open {
  display: block;
  animation: toastIn 0.16s ease;
}

.nav-mobile-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}

.nav-mobile-links a {
  display: block;
  padding: 11px 12px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-mobile-links a:hover {
  background: var(--hover-tint);
  color: var(--text-primary);
}

.nav-mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-lg {
  height: 44px;
  padding: 0 22px;
  font-size: 14.5px;
  border-radius: 8px;
}

.btn-sm {
  height: 32px;
  padding: 0 12px;
  font-size: 12.5px;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-text);
  border-color: var(--accent);
  font-weight: 600;
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: 0 0 18px -6px rgba(175, 235, 0, 0.4);
}

.btn-secondary {
  background: var(--surface-elevated);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--surface-hover);
  border-color: var(--border-focus);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}

.btn-ghost:hover:not(:disabled) {
  color: var(--text-primary);
  background: var(--hover-tint);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.35);
}

.btn-danger:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.55);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding: 120px 0 96px;
  text-align: center;
  position: relative;
  overflow-x: clip;
}

.hero-glow {
  position: absolute;
  top: -140px;
  left: 50%;
  transform: translateX(-50%);
  width: 780px;
  max-width: 100%;
  height: 360px;
  background: radial-gradient(circle, rgba(175, 235, 0, 0.11) 0%, rgba(25, 15, 110, 0.14) 44%, transparent 74%);
  filter: blur(42px);
  pointer-events: none;
  z-index: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  transition: border-color 0.16s ease;
}

.hero-badge:hover {
  border-color: var(--border-focus);
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-lime);
  box-shadow: 0 0 10px var(--brand-lime);
}

.hero h1 {
  margin: 0 auto 24px;
  max-width: 780px;
  font-size: clamp(2.7rem, 5.8vw, 4.65rem);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.048em;
  background: linear-gradient(180deg, var(--hero-h1-start) 40%, var(--hero-h1-end) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  margin: 0 auto 38px;
  max-width: 500px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-secondary);
  font-weight: 400;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 68px;
}

.code-window-hero {
  position: relative;
}

.code-window-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(175, 235, 0, 0.55), transparent);
  pointer-events: none;
  z-index: 2;
}

.code-copy-btn {
  background: var(--surface-elevated);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.code-copy-btn:hover:not(:disabled) {
  background: var(--surface-hover);
  border-color: var(--border-focus);
  color: var(--text-primary);
}

.spec-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 36px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.spec-strip i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--border-strong);
  display: inline-block;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto 56px;
}

.hero-metric {
  background: var(--surface);
  padding: 18px 16px;
  text-align: center;
}

.hero-metric strong {
  display: block;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.hero-metric span {
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================================================
   Interactive Code Showcase Window
   ========================================================================== */
.code-window {
  max-width: 900px;
  margin: 0 auto;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--code-bg);
  box-shadow: var(--shadow-card), var(--shadow-glow);
  overflow: hidden;
  text-align: left;
  color: var(--code-text);
}

.code-window-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--code-header-bg);
  border-bottom: 1px solid var(--code-border);
  gap: 12px;
  flex-wrap: wrap;
}

.window-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.window-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--code-dot);
  display: block;
}

.code-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--code-tab-bg);
  padding: 3px;
  border-radius: 8px;
  border: 1px solid var(--code-border);
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.code-tabs::-webkit-scrollbar {
  display: none;
}

.code-tab {
  background: transparent;
  border: none;
  color: var(--code-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 5px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.code-tab.active,
.code-tab:hover {
  color: var(--code-text);
}

.code-tab.active {
  background: var(--code-tab-active-bg);
  color: var(--code-tab-active-text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.code-window-body {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
}

.code-pane {
  padding: 20px 22px;
  overflow-x: auto;
  border-right: 1px solid var(--code-border);
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) transparent;
}

.code-pane pre {
  margin: 0;
  font-size: 12.8px;
  line-height: 1.75;
  color: var(--code-text);
}

.code-response {
  padding: 20px 22px;
  background: var(--code-response-bg);
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) transparent;
}

.code-pane::-webkit-scrollbar,
.code-response::-webkit-scrollbar {
  height: 6px;
  width: 6px;
}

.code-pane::-webkit-scrollbar-track,
.code-response::-webkit-scrollbar-track {
  background: transparent;
}

.code-pane::-webkit-scrollbar-thumb,
.code-response::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 999px;
}

.code-pane::-webkit-scrollbar-thumb:hover,
.code-response::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}

.code-response-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--code-muted);
}

.status-ok {
  color: var(--status-accent-text);
  background: var(--status-accent-bg);
  border: 1px solid var(--status-accent-border);
  padding: 2px 7px;
  border-radius: 4px;
}

.code-response pre {
  margin: 0;
  font-size: 12.2px;
  line-height: 1.7;
  color: var(--code-response-text);
}

.tok-k { color: var(--tok-k); }
.tok-s { color: var(--tok-s); }
.tok-c { color: var(--tok-c); }
.tok-n { color: var(--tok-n); }

.code-panel {
  display: none;
}

.code-panel.active {
  display: block;
}

/* ==========================================================================
   Sections & Bento Feature Grid
   ========================================================================== */
.section {
  padding: 120px 0;
  border-top: 1px solid var(--border);
}

.section-header {
  max-width: 560px;
  margin-bottom: 56px;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--status-accent-text);
  margin-bottom: 12px;
}

.section-header h2 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 3.6vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.section-header p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 16px;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.bento-2x2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: var(--border-strong);
}

.bento-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mini-visual {
  margin-top: 24px;
  padding: 11px 14px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
}

.mini-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-strong);
  background: var(--surface-elevated);
  color: var(--text-secondary);
}

.mini-tag-lime {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  border: 1px solid var(--status-accent-border);
  background: var(--status-accent-bg);
  color: var(--status-accent-text);
}

.section-closer {
  padding: 104px 0;
}

.closer-inner {
  text-align: center;
  max-width: 540px;
  margin: 0 auto;
}

.closer-inner h2 {
  margin: 0 0 12px;
  font-size: clamp(2.1rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.closer-inner p {
  margin: 0 0 32px;
  font-size: 16px;
  color: var(--text-secondary);
}

.card-span-2 {
  grid-column: span 2;
}

.card-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  border: 1px solid var(--border-strong);
  background: var(--surface-elevated);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--status-accent-text);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.pill {
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-strong);
  background: var(--bg-subtle);
  color: var(--text-secondary);
}

/* Steps Row */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.pricing-card.featured {
  border-color: var(--accent-border);
  background: var(--featured-bg);
  box-shadow: var(--shadow-glow);
}

.pricing-card.featured::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-lime), transparent);
}

.price-tag {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin: 14px 0 6px;
}

.price-tag span {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.feature-list li::before {
  content: "✓";
  color: var(--status-accent-text);
  font-weight: 700;
  font-size: 12px;
}

/* CTA Banner */
.cta-banner {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 56px 32px;
  text-align: center;
  background: var(--cta-bg);
}

.cta-banner h2 {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.03em;
}

.cta-banner p {
  margin: 0 auto 28px;
  max-width: 520px;
  color: var(--text-secondary);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  color: var(--text-muted);
  font-size: 13px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.footer-links a:hover {
  color: var(--text-primary);
}

/* ==========================================================================
   Authentication Pages (Centered Vercel-Style Card)
   ========================================================================== */
.auth-shell {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  box-shadow: var(--shadow-card);
}

.auth-header {
  text-align: center;
  margin-bottom: 26px;
}

.auth-header h1 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.auth-header p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.form-group {
  margin-bottom: 16px;
}

.form-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.form-label {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-label-row .form-label {
  margin-bottom: 0;
}

.form-link {
  font-size: 12.5px;
  color: var(--text-secondary);
  transition: color 0.15s;
}

.form-link:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

.input,
.select,
.textarea {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  background: var(--input-bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.textarea {
  height: auto;
  min-height: 84px;
  padding: 10px 12px;
  resize: vertical;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

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

/* Password Strength Meter */
.strength-meter {
  margin-top: 8px;
}

.strength-bars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 5px;
}

.strength-bar {
  height: 3px;
  border-radius: 3px;
  background: var(--border-strong);
  transition: background-color 0.2s ease;
}

.strength-label {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* Segmented 6-Digit OTP Input */
.otp-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin: 10px 0 6px;
}

.otp-digit {
  width: 100%;
  height: 52px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  background: var(--input-bg);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.otp-digit:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.auth-notice {
  background: var(--bg-subtle);
  border: 1px solid var(--border-strong);
  border-left: 2px solid var(--brand-lime);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 18px;
  text-align: left;
}

.auth-notice-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.auth-notice-title svg {
  color: var(--brand-lime);
  flex-shrink: 0;
}

.auth-notice p {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.auth-notice strong {
  color: var(--text-primary);
}

.alert {
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 16px;
  display: none;
}

.alert.show {
  display: block;
}

.alert-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
}

.alert-success {
  background: var(--status-accent-bg);
  border: 1px solid var(--status-accent-border);
  color: var(--status-accent-text);
}

.auth-footer {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
}

.auth-footer a {
  color: var(--text-primary);
  font-weight: 500;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* Toast Container */
.toast-stack {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
}

.toast {
  background: var(--surface-elevated);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  padding: 12px 16px;
  border-radius: 9px;
  font-size: 13.5px;
  box-shadow: var(--shadow-card);
  animation: toastIn 0.2s ease;
}

.toast.toast-success {
  border-color: var(--status-accent-border);
}

.toast.toast-error {
  border-color: rgba(239, 68, 68, 0.45);
}

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

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 900px) {
  .navbar-inner {
    display: flex;
    justify-content: space-between;
  }

  .bento-grid,
  .bento-2x2,
  .steps-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .card-span-2 {
    grid-column: span 1;
  }

  .code-window-body {
    grid-template-columns: 1fr;
  }

  .code-pane {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .hero-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-links,
  .nav-desktop-only {
    display: none;
  }

  .nav-mobile-toggle {
    display: inline-flex;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .section {
    padding: 56px 0;
  }

  .section-header {
    margin-bottom: 32px;
  }

  .card {
    padding: 20px;
  }

  .cta-banner {
    padding: 36px 20px;
  }

  .window-dots {
    display: none;
  }

  .code-window-header {
    padding: 10px 12px;
  }

  .code-pane,
  .code-response {
    padding: 16px;
  }

  .footer {
    padding: 32px 0;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .toast-stack {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .navbar-version-pill {
    display: none;
  }

  .hero {
    padding: 56px 0 48px;
  }

  .hero-badge {
    font-size: 11.5px;
    padding: 5px 11px;
    max-width: 100%;
  }

  .hero-subtitle {
    font-size: 15.5px;
    margin-bottom: 26px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 40px;
  }

  .hero-cta .btn,
  .cta-banner .btn {
    width: 100%;
  }

  .hero-metric {
    padding: 14px 10px;
  }

  .hero-metric strong {
    font-size: 15.5px;
  }

  .auth-shell {
    padding: 28px 16px;
  }

  .auth-card {
    padding: 24px 18px;
  }

  .otp-grid {
    gap: 6px;
  }

  .otp-digit {
    height: 46px;
    font-size: 19px;
  }
}
