:root {
  --bg: #0b0e14;
  --bg-alt: #10141d;
  --card: #131826;
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #eef1f7;
  --text-dim: #9aa4b8;
  --text-dimmer: #6b7488;
  --accent-1: #7c5cff;
  --accent-2: #22d3ee;
  --accent-gradient: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  --success: #34d399;
  --radius: 16px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Background texture */
body {
  background-image:
    radial-gradient(600px circle at 15% -10%, rgba(124, 92, 255, 0.18), transparent 60%),
    radial-gradient(500px circle at 90% 10%, rgba(34, 211, 238, 0.14), transparent 55%);
  background-repeat: no-repeat;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(11, 14, 20, 0.75);
  border-bottom: 1px solid var(--card-border);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img {
  width: 28px;
  height: 28px;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-dim);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.15s ease;
}

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

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

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

.btn-primary {
  background: var(--accent-gradient);
  color: #0b0e14;
  box-shadow: 0 8px 24px -8px rgba(124, 92, 255, 0.6);
}

.btn-primary:hover {
  box-shadow: 0 10px 28px -6px rgba(124, 92, 255, 0.75);
}

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

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-lg {
  padding: 14px 26px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
}

/* Hero */
.hero {
  padding: 96px 0 72px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--card-border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.2);
}

.hero h1 {
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  font-weight: 800;
}

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

.hero p.lead {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 auto 36px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.fine-print {
  font-size: 13px;
  color: var(--text-dimmer);
}

/* Limited-time trial promo: crossed-out old value + highlighted new one */
.promo-strike {
  text-decoration: line-through;
  color: var(--text-dimmer);
  white-space: nowrap;
}

.promo-value {
  color: var(--success);
  font-weight: 700;
  white-space: nowrap;
}

/* Waveform visual */
.waveform {
  margin: 64px auto 0;
  max-width: 760px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  height: 120px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--card-border);
}

.waveform .bar {
  width: 5px;
  border-radius: 3px;
  background: var(--accent-gradient);
  opacity: 0.85;
  animation: bounce 1.6s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: scaleY(0.35); }
  50% { transform: scaleY(1); }
}

@media (prefers-reduced-motion: reduce) {
  .waveform .bar { animation: none; transform: scaleY(0.7); }
}

/* Sections */
section {
  padding: 88px 0;
}

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 56px;
}

.section-tag {
  color: var(--accent-2);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  font-weight: 800;
}

.section-head p {
  color: var(--text-dim);
  font-size: 16.5px;
  margin: 0;
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.step {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px 22px;
  position: relative;
}

.step .num {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent-gradient);
  color: #0b0e14;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 15px;
}

.step h3 {
  font-size: 17px;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.step p {
  color: var(--text-dim);
  font-size: 14.5px;
  margin: 0;
}

/* Feature grid */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.feature:hover {
  border-color: rgba(124, 92, 255, 0.4);
  transform: translateY(-2px);
}

.feature .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(124, 92, 255, 0.12);
  color: var(--accent-2);
  margin-bottom: 16px;
}

.feature .icon svg {
  width: 20px;
  height: 20px;
}

.feature h3 {
  font-size: 16.5px;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.feature p {
  color: var(--text-dim);
  font-size: 14.5px;
  margin: 0;
}

/* Profiles strip */
.profiles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 44px;
}

.profile-pill {
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--card-border);
  font-size: 13.5px;
  color: var(--text-dim);
  font-weight: 500;
}

/* Trial mockup card */
.trial-mock {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px;
  max-width: 460px;
  margin: 0 auto 64px;
}

.trial-mock .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.trial-mock .row:last-child {
  margin-bottom: 0;
}

.trial-mock .label {
  font-size: 13px;
  color: var(--text-dimmer);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.trial-mock .value {
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 600;
}

.meter {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.meter-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--accent-gradient);
}

.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--success);
  background: rgba(52, 211, 153, 0.12);
  padding: 4px 10px;
  border-radius: 999px;
}

/* Pricing */
.billing-toggle {
  display: flex;
  justify-content: center;
  gap: 2px;
  width: fit-content;
  margin: 0 auto 36px;
  padding: 4px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--card-border);
}

.billing-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.billing-toggle-btn.is-active {
  background: var(--accent-gradient);
  color: #0b0e14;
}

.billing-toggle-btn .save-badge {
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.16);
  color: var(--success);
}

.billing-toggle-btn.is-active .save-badge {
  background: rgba(11, 14, 20, 0.16);
  color: #0b0e14;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.plan {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
}

.plan.featured {
  border-color: rgba(124, 92, 255, 0.55);
  background: linear-gradient(180deg, rgba(124, 92, 255, 0.1), var(--card) 40%);
  position: relative;
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 26px;
  background: var(--accent-gradient);
  color: #0b0e14;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
}

.plan h3 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin: 0 0 12px;
}

.plan .price {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.plan .price span {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dimmer);
}

.plan .price-note {
  font-size: 13.5px;
  color: var(--text-dimmer);
  margin-bottom: 24px;
}

.plan ul {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  flex: 1;
}

.plan li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.plan li svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--success);
}

.pricing-note {
  text-align: center;
  color: var(--text-dimmer);
  font-size: 13.5px;
  margin-top: 32px;
}

/* FAQ */
.faq {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--card-border);
}

.faq-item:first-child {
  border-top: 1px solid var(--card-border);
}

.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  text-align: left;
  padding: 22px 4px;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  gap: 20px;
}

.faq-q .chev {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
  color: var(--text-dimmer);
}

.faq-item[open] .faq-q .chev {
  transform: rotate(45deg);
}

.faq-a {
  padding: 0 4px 22px;
  color: var(--text-dim);
  font-size: 14.5px;
  max-width: 640px;
}

/* Final CTA */
.cta-banner {
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.18), rgba(34, 211, 238, 0.12));
  border: 1px solid var(--card-border);
  padding: 64px 40px;
  text-align: center;
}

.cta-banner h2 {
  font-size: clamp(26px, 4vw, 36px);
  margin: 0 0 14px;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.cta-banner p {
  color: var(--text-dim);
  margin: 0 0 32px;
  font-size: 16px;
}

/* Footer */
footer {
  border-top: 1px solid var(--card-border);
  padding: 48px 0 40px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand p {
  color: var(--text-dimmer);
  font-size: 13.5px;
  max-width: 280px;
  margin-top: 10px;
}

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

.footer-col h4 {
  font-size: 13px;
  color: var(--text-dimmer);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 14px;
}

.footer-col a {
  display: block;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 10px;
}

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

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--card-border);
  color: var(--text-dimmer);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* Responsive */
@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-actions .btn-ghost { display: none; }
  .steps { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 48px; }
  section { padding: 64px 0; }
  .cta-banner { padding: 48px 24px; }
}

/* Auth pages (signup / login) */
.auth-shell {
  min-height: calc(100vh - 69px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 36px 32px;
}

.auth-card h1 {
  font-size: 24px;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.auth-card .auth-sub {
  color: var(--text-dim);
  font-size: 14.5px;
  margin: 0 0 28px;
}

.auth-trial-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(124, 92, 255, 0.1);
  border: 1px solid rgba(124, 92, 255, 0.25);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.auth-trial-note svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--accent-2);
  margin-top: 1px;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 7px;
}

.field input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  background: var(--bg-alt);
  border: 1px solid var(--card-border);
  color: var(--text);
  font-size: 14.5px;
  font-family: inherit;
}

.field input:focus {
  outline: none;
  border-color: var(--accent-1);
}

.auth-submit {
  margin-top: 8px;
}

.google-signin-slot {
  display: flex;
  justify-content: center;
  min-height: 40px;
}

.auth-error {
  color: #e5484d;
  font-size: 13.5px;
  text-align: center;
  margin: 10px 0 0;
}

.auth-switch {
  text-align: center;
  font-size: 14px;
  color: var(--text-dim);
  margin-top: 22px;
}

.auth-switch a {
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 600;
}

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: var(--text-dimmer);
  text-decoration: none;
  margin-bottom: 20px;
}

.auth-back svg {
  width: 14px;
  height: 14px;
}

.auth-placeholder-note {
  text-align: center;
  font-size: 12.5px;
  color: var(--text-dimmer);
  max-width: 400px;
  margin: 20px auto 0;
}

/* Mobile nav panel */
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 8px 24px 20px;
  border-bottom: 1px solid var(--card-border);
  background: rgba(11, 14, 20, 0.95);
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  padding: 12px 4px;
  text-decoration: none;
  color: var(--text-dim);
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid var(--card-border);
}

.mobile-nav a:last-child {
  border-bottom: none;
}

.mobile-nav .btn {
  margin-top: 12px;
}
