/* Session Vault Waitlist — dark-friendly, mobile-ok */

:root {
  --bg: #0b0d12;
  --bg-elev: #12151c;
  --bg-card: #161a24;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #e8eaef;
  --text-muted: #9aa3b5;
  --text-dim: #6b7385;
  --accent: #5b8cff;
  --accent-hover: #7aa2ff;
  --accent-soft: rgba(91, 140, 255, 0.15);
  --success: #3dd68c;
  --success-soft: rgba(61, 214, 140, 0.12);
  --danger: #ff6b7a;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --font: "Inter", "Noto Sans TC", system-ui, -apple-system, sans-serif;
  --max: 1080px;
  --narrow: 560px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
}

img {
  max-width: 100%;
}

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(91, 140, 255, 0.22), transparent 55%),
    radial-gradient(ellipse 40% 30% at 90% 20%, rgba(120, 80, 255, 0.08), transparent 50%),
    radial-gradient(ellipse 40% 30% at 10% 60%, rgba(61, 214, 140, 0.05), transparent 50%);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.container.narrow {
  width: min(100% - 2rem, var(--narrow));
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(11, 13, 18, 0.75);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.logo:hover {
  color: var(--text);
}

.logo-mark {
  color: var(--accent);
  font-size: 1.15em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

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

.nav-cta {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent) !important;
  border: 1px solid rgba(91, 140, 255, 0.35);
}

.nav-cta:hover {
  background: rgba(91, 140, 255, 0.25);
  color: var(--accent-hover) !important;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem 1.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 0.15rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elev);
}

.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1.2;
}

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

.lang-btn.is-active {
  background: var(--accent-soft);
  color: var(--accent);
}

@media (max-width: 860px) {
  .nav a:not(.nav-cta) {
    display: none;
  }
}

/* Hero */
.hero {
  padding: 4.5rem 0 3.5rem;
}

.hero-inner {
  text-align: center;
  max-width: 780px;
  margin-inline: auto;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(91, 140, 255, 0.3);
  border-radius: 999px;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.hero-sub-en {
  margin: 0 auto 1rem;
  max-width: 640px;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.hero-lead {
  margin: 0 auto 1.75rem;
  max-width: 580px;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1.75rem;
}

.hero-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.hero-chips li {
  padding: 0.3rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 999px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.35rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}

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

.btn-ghost:hover {
  background: var(--bg-elev);
  color: var(--text);
}

.btn-block {
  width: 100%;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: rgba(18, 21, 28, 0.55);
  border-block: 1px solid var(--border);
}

.section-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  text-align: center;
}

.section-lead {
  margin: 0 auto 2.25rem;
  max-width: 560px;
  text-align: center;
  color: var(--text-muted);
}

.section-lead strong {
  color: var(--text);
  font-weight: 600;
}

/* Pain cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  max-width: 720px;
  margin-inline: auto;
}

.step {
  display: flex;
  gap: 1.15rem;
  align-items: flex-start;
  padding: 1.35rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.step-num {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 50%;
}

.step h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

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

/* Comparison table */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 560px;
}

.compare-table th,
.compare-table td {
  padding: 0.85rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.compare-table thead th {
  background: rgba(255, 255, 255, 0.03);
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.compare-table tbody th {
  text-align: left;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.yes {
  color: var(--success);
  font-weight: 700;
}

.no {
  color: var(--text-dim);
}

.partial {
  color: #e8b84a;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.price-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.price-card.featured {
  border-color: rgba(91, 140, 255, 0.45);
  box-shadow: 0 0 0 1px rgba(91, 140, 255, 0.2), var(--shadow);
  background: linear-gradient(165deg, rgba(91, 140, 255, 0.12), var(--bg-card) 40%);
}

.price-badge {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.price-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.price-amount {
  margin: 0 0 0.35rem;
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.price-was {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dim);
}

.price-unit {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.price-note {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.price-list {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  flex: 1;
}

.price-list li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.price-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

.price-card .btn {
  margin-top: auto;
}

/* Form */
.waitlist-form {
  display: grid;
  gap: 1.25rem;
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.field {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  border: none;
}

.field label,
.field legend {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.req {
  color: var(--danger);
}

.field input[type="email"],
.field input[type="text"],
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field input[type="email"]:focus,
.field input[type="text"]:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field textarea {
  resize: vertical;
  min-height: 5rem;
}

.check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.check,
.radio {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.check:hover,
.radio:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.check:has(input:checked),
.radio:has(input:checked) {
  border-color: rgba(91, 140, 255, 0.5);
  background: var(--accent-soft);
  color: var(--text);
}

.check input,
.radio input {
  accent-color: var(--accent);
  width: 1rem;
  height: 1rem;
}

.radio-stack {
  display: grid;
  gap: 0.5rem;
}

.field-error {
  margin: 0;
  font-size: 0.85rem;
  color: var(--danger);
}

.form-hint {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-dim);
  text-align: center;
}

.success {
  margin-top: 1.5rem;
  padding: 1.75rem;
  text-align: center;
  background: var(--success-soft);
  border: 1px solid rgba(61, 214, 140, 0.35);
  border-radius: var(--radius);
}

.success h3 {
  margin: 0 0 0.5rem;
  color: var(--success);
}

.success p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  text-align: center;
}

.footer-inner p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-note {
  margin-top: 0.35rem !important;
  font-size: 0.8rem !important;
  color: var(--text-dim) !important;
}

/* Mobile */
@media (max-width: 840px) {
  .cards,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .nav a:not(.nav-cta) {
    display: none;
  }
}

@media (max-width: 520px) {
  .hero {
    padding: 3rem 0 2.5rem;
  }

  .section {
    padding: 3rem 0;
  }

  .check-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

/* Light preference (still dark-friendly default; respects light if set) */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f6fa;
    --bg-elev: #ffffff;
    --bg-card: #ffffff;
    --border: rgba(15, 23, 42, 0.08);
    --border-strong: rgba(15, 23, 42, 0.16);
    --text: #0f172a;
    --text-muted: #475569;
    --text-dim: #94a3b8;
    --accent: #3b6ef5;
    --accent-hover: #2a56d4;
    --accent-soft: rgba(59, 110, 245, 0.12);
    --shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  }

  .site-header {
    background: rgba(244, 246, 250, 0.85);
  }

  .bg-glow {
    background:
      radial-gradient(ellipse 80% 50% at 50% -10%, rgba(59, 110, 245, 0.18), transparent 55%),
      radial-gradient(ellipse 40% 30% at 90% 20%, rgba(120, 80, 255, 0.06), transparent 50%);
  }

  .section-alt {
    background: rgba(226, 232, 240, 0.45);
  }

  .btn-primary {
    color: #fff;
  }
}

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


.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  white-space: nowrap;
}

.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font: inherit;
  font-weight: 500;
  padding: 0.2rem 0.15rem;
}

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

.lang-btn.is-active {
  color: var(--accent-hover);
}

.lang-sep {
  color: var(--text-dim);
  user-select: none;
}

@media (max-width: 860px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .header-right {
    justify-content: space-between;
  }
}
