:root {
  --bg: #0b0f17;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-2: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.12);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.72);
  --faint: rgba(255, 255, 255, 0.55);
  --brand: #7dd3fc;
  --brand-2: #a78bfa;
  --danger: #fb7185;
  --ok: #34d399;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  --shadow-popover: 0 8px 24px rgba(0, 0, 0, 0.25);
  --radius: 14px;
  --radius-sm: 10px;
  --max: 1120px;
  --pad: 24px;
  --ring: 0 0 0 4px rgba(125, 211, 252, 0.25);
  /* Glass Tokens (Dark Default) */
  --glass-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.03) 100%);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-shadow: 0 4px 24px -1px rgba(0, 0, 0, 0.2);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #fbfbfe;
    --panel: rgba(10, 20, 40, 0.04);
    --panel-2: rgba(10, 20, 40, 0.06);
    --border: rgba(10, 20, 40, 0.10);
    --text: rgba(10, 20, 40, 0.92);
    --muted: rgba(10, 20, 40, 0.72);
    --faint: rgba(10, 20, 40, 0.55);
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    --shadow-popover: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-popover: 0 4px 12px rgba(0, 0, 0, 0.08);
    --ring: 0 0 0 4px rgba(56, 189, 248, 0.22);
    /* Glass Tokens (Light) - Boosted for Visibility */
    --glass-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.95) 100%);
    --glass-border: rgba(10, 20, 40, 0.12);
    /* Darker border */
    --glass-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
    /* Deeper shadow */
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: radial-gradient(1200px 800px at 18% 10%, rgba(125, 211, 252, 0.22), transparent 65%),
    radial-gradient(900px 600px at 80% 20%, rgba(167, 139, 250, 0.16), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 24%),
    var(--bg);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.5;
}

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

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--max);
  padding: 0 var(--pad);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(10, 12, 18, 0.55);
  border-bottom: 1px solid var(--border);
}

@media (prefers-color-scheme: light) {
  .topbar {
    background: rgba(251, 251, 254, 0.8);
  }
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-badge {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background-image: url('/app-icon-blue.png');
  background-size: cover;
  background-position: center;
  box-shadow: 0 10px 30px rgba(125, 211, 252, 0.22);
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}

.nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.nav .cta {
  color: rgba(10, 20, 40, 0.92);
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.95), rgba(167, 139, 250, 0.9));
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(125, 211, 252, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.nav .cta:hover {
  text-decoration: none;
  filter: brightness(1.03);
}

.hero {
  padding: 68px 0 40px;
}

/* Enhanced centered hero layout */
.hero.hero-centered {
  padding: 80px 0 60px;
  text-align: center;
}

.hero-card {
  max-width: 100%;
  margin: 0 auto;
  padding: 48px 0;
}

.hero-badge {
  margin-bottom: 24px;
}

.hero-badge .brand-badge {
  width: 56px;
  height: 56px;
  margin: 0 auto;
  border-radius: 14px;
}

.hero-centered h1 {
  font-size: clamp(38px, 6vw, 56px);
  line-height: 1.1;
  margin: 0 0 20px;
}

.hero-centered .lead {
  font-size: 18px;
  max-width: 560px;
  margin: 0 auto 24px;
}

.hero-centered .hero-actions {
  justify-content: center;
  margin-bottom: 20px;
}

.hero-centered .fineprint {
  margin: 0;
}

.input-visual-wrapper {
  margin: 24px 0;
  min-height: 100px;
  position: relative;
}

.btn.large {
  padding: 14px 24px;
  font-size: 15px;
  border-radius: 14px;
}

.text-gradient {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-split {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 34px;
  align-items: start;
}

.hero-grid--single {
  grid-template-columns: 1fr;
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.kicker {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
}

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

h1 {
  margin: 16px 0 10px;
  font-size: clamp(42px, 5.5vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.lead {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  max-width: 64ch;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-weight: 800;
  font-size: 14px;
  background: var(--panel);
  color: var(--text);
  box-shadow: none;
  cursor: pointer;
}

.btn:hover {
  text-decoration: none;
  background: var(--panel-2);
}

.btn.primary {
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.95), rgba(167, 139, 250, 0.9));
  color: rgba(10, 20, 40, 0.92);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.btn.primary:hover {
  filter: brightness(1.03);
}

.btn.ghost {
  background: transparent;
}

.aside-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  padding: 18px;
}

.aside-card h3 {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.aside-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.aside-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}

.pill {
  font-size: 12px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.section {
  padding: 42px 0;
}

.section h2 {
  margin: 0 0 10px;
  font-size: 26px;
  letter-spacing: -0.02em;
}

.section p.sub {
  margin: 0;
  color: var(--muted);
  max-width: 80ch;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 18px;
}

@media (max-width: 860px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 18px;
}

@media (max-width: 980px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

.card {
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  background: var(--glass-bg);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 24px;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(125, 211, 252, 0.4);
  box-shadow: 0 12px 40px rgba(125, 211, 252, 0.12),
    inset 0 0 0 1px rgba(125, 211, 252, 0.1);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0.5;
}

.is-hidden {
  display: none !important;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--text);
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.bullets {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.bullets li {
  margin: 6px 0;
}

.pricing {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

.pricing .card {
  max-width: 480px;
  width: 100%;
}

.pricing .hero-actions {
  justify-content: center;
}

/* ── Segmented control ── */
.tier-selector {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 3px;
  margin-bottom: 20px;
  gap: 2px;
}

.tier-selector button {
  flex: 1;
  position: relative;
  padding: 8px 6px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.3;
}

.tier-selector button:hover {
  color: var(--fg);
}

.tier-selector button.active {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 2px 8px rgba(125, 211, 252, 0.3);
}

.tier-selector button .tier-badge {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 2px;
}

.tier-selector button:not(.active) .tier-badge {
  color: var(--brand);
}

/* ── Dynamic price area ── */
.pricing-dynamic-price {
  text-align: center;
  margin-bottom: 6px;
}

.pricing-dynamic-price .price {
  margin: 0;
  transition: opacity 0.15s ease;
}

.pricing-dynamic-device {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  margin: 0 0 4px;
  min-height: 1.4em;
  transition: opacity 0.15s ease;
}

/* Pricing guarantee label */
.pricing .guarantee-label {
  display: block;
  text-align: center;
  margin: 8px 0 18px;
  font-size: 12px;
  color: var(--faint);
  font-weight: 600;
}

/* Pricing feature list with checkmarks */
.pricing-features {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
  margin: 10px 0;
  line-height: 1.4;
}

.pricing-features li::before {
  content: "✓";
  flex-shrink: 0;
  font-weight: 900;
  font-size: 13px;
  color: var(--brand);
  margin-top: 1px;
}

/* Pricing bottom notes */
.pricing-notes {
  margin-top: 28px;
  text-align: center;
  color: var(--faint);
  font-size: 13px;
}

.pricing-notes p {
  margin: 4px 0;
}

@media (prefers-color-scheme: light) {
  .tier-selector {
    background: rgba(0, 0, 0, 0.03);
  }

  .tier-selector button.active {
    box-shadow: 0 2px 8px rgba(56, 189, 248, 0.25);
  }
}

.pricing-notes .guarantee-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ok);
  font-weight: 600;
  margin-top: 6px;
}

.pricing-notes .guarantee-note::before {
  content: "✓";
  font-weight: 900;
}


.price {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: 10px 0 6px;
}

.price small {
  font-size: 14px;
  font-weight: 800;
  color: var(--muted);
}

.fineprint {
  color: var(--faint);
  font-size: 12px;
  margin-top: 10px;
}

.trust {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.10), rgba(167, 139, 250, 0.09));
  padding: 18px;
  margin-top: 18px;
}

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

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

.grid-2 details {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.grid-2 details summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--text);
  list-style: none;
}

.grid-2 details summary::-webkit-details-marker {
  display: none;
}

.grid-2 details p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 26px 0 34px;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: start;
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer a {
  color: var(--muted);
  font-weight: 700;
}

.footer a:hover {
  color: var(--text);
  text-decoration: none;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  justify-content: flex-end;
}

@media (max-width: 860px) {
  .footer-links {
    justify-content: flex-start;
  }
}

.focusable:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 12px;
}

.lang-switch {
  position: relative;
}

.lang-switch summary {
  list-style: none;
  cursor: pointer;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-switch summary .globe-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.lang-switch summary:hover {
  color: var(--text);
}

.lang-switch summary::-webkit-details-marker {
  display: none;
}

.lang-switch[open] summary {
  border-color: var(--border);
  background: var(--panel);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 120px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-popover);
  padding: 6px;
  display: grid;
  gap: 2px;
}

.lang-menu a {
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  transition: all 0.15s ease;
}

.lang-menu a:hover {
  color: var(--text);
  text-decoration: none;
  background: var(--panel-2);
}

.lang-menu a.active {
  color: var(--brand);
}

.page {
  padding: 40px 0;
}

.page h1 {
  font-size: 38px;
  margin-bottom: 8px;
}

.page h2 {
  margin-top: 28px;
  font-size: 20px;
}

.page p,
.page li {
  color: var(--muted);
  max-width: 80ch;
}

/* Coming Soon Badge */
.badge-coming-soon {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  margin-left: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.2), rgba(167, 139, 250, 0.2));
  border: 1px solid rgba(125, 211, 252, 0.4);
  color: var(--brand);
  box-shadow: 0 2px 8px rgba(125, 211, 252, 0.15);
  vertical-align: middle;
  white-space: nowrap;
}

@media (prefers-color-scheme: light) {
  .badge-coming-soon {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(139, 92, 246, 0.15));
    border-color: rgba(56, 189, 248, 0.4);
    color: #0891b2;
  }
}

/* AI Badge */
.badge-ai {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  margin-left: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.25), rgba(167, 139, 250, 0.25));
  border: 1px solid rgba(125, 211, 252, 0.5);
  box-shadow: 0 2px 12px rgba(125, 211, 252, 0.2);
  vertical-align: middle;
  white-space: nowrap;
  background-clip: padding-box;
}

.badge-ai::before {
  content: "AI";
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
}

@media (prefers-color-scheme: light) {
  .badge-ai {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(139, 92, 246, 0.2));
    border-color: rgba(56, 189, 248, 0.5);
  }

  .badge-ai::before {
    background: linear-gradient(135deg, #0891b2 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
}


/* Coming Soon Card Overlay */
.card-coming-soon {
  position: relative;
  overflow: hidden;
}

.coming-soon-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11, 15, 23, 0.7);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: var(--radius);
}

.coming-soon-badge {
  font-size: 16px;
  font-weight: 800;
  padding: 12px 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.95), rgba(167, 139, 250, 0.9));
  color: rgba(10, 20, 40, 0.92);
  box-shadow: 0 10px 40px rgba(125, 211, 252, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.3);
  letter-spacing: 0.05em;
}

@media (prefers-color-scheme: light) {
  .coming-soon-overlay {
    background: rgba(251, 251, 254, 0.85);
  }
}
