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

:root {
  --bg-deep: #f8f9fe;
  --bg-surface: #eef0fb;
  --bg-elevated: #e4e7f7;
  --accent: #5a73ff;
  --accent-light: #7b8fff;
  --accent-dim: #4359cc;
  --text: #2a2d3e;
  --text-dim: #6b6f85;
  --heading: #131526;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg-deep);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent);
  color: #fff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 80px);
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

/* ── Navigation ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 24px 0;
  transition: all 0.5s ease;
}
nav.scrolled {
  background: rgba(248, 249, 254, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 16px 0;
  border-bottom: 1px solid rgba(90, 115, 255, 0.12);
}
nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--heading);
  letter-spacing: 0.02em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-icon {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  flex-shrink: 0;
}
.nav-logo span { color: var(--accent); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* ── Language switcher ── */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid rgba(90, 115, 255, 0.2);
  overflow: hidden;
}
.lang-btn {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 14px;
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.3s ease;
}
.lang-btn:not(:last-child) {
  border-right: 1px solid rgba(90, 115, 255, 0.2);
}
.lang-btn.active {
  background: var(--accent);
  color: #fff;
}
.lang-btn:not(.active):hover {
  color: var(--heading);
  background: rgba(90, 115, 255, 0.06);
}

.nav-cta {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  padding: 10px 28px;
  border: 1px solid rgba(90, 115, 255, 0.3);
  transition: all 0.4s ease;
}
.nav-cta:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 140%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 50%, rgba(90, 115, 255, 0.06) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 30%, rgba(90, 115, 255, 0.04) 0%, transparent 50%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}
.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero-eyebrow::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--accent);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 300;
  line-height: 1.08;
  color: var(--heading);
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent-light);
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 520px;
  margin-bottom: 48px;
  line-height: 1.8;
}
.hero-actions {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  padding: 18px 44px;
  text-decoration: none;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  opacity: 0;
  transition: opacity 0.4s ease;
}
.btn-primary:hover::after { opacity: 1; }
.btn-primary span { position: relative; z-index: 1; }

.btn-ghost {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  padding: 18px 32px;
  transition: color 0.4s ease;
}
.btn-ghost:hover { color: var(--heading); }
.btn-ghost svg {
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
  width: 16px;
  height: 16px;
}

/* ── Waveform canvas ── */
.hero-waveform {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 45%;
  height: 60%;
  opacity: 0.18;
  pointer-events: none;
  z-index: 1;
}

/* ── Section commons ── */
section { padding: clamp(80px, 12vw, 160px) 0; }

.section-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-dim);
  margin-bottom: 20px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 300;
  color: var(--heading);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.section-title em {
  font-style: italic;
  color: var(--accent-light);
}

/* ── Divider ── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(90, 115, 255, 0.18), transparent);
  max-width: 1200px;
  margin: 0 auto;
}

/* ── Video ── */
.video-section { background: var(--bg-surface); }
.video-wrapper {
  margin-top: 56px;
  position: relative;
  aspect-ratio: 16/9;
  background: var(--bg-elevated);
  border: 1px solid rgba(90, 115, 255, 0.15);
  overflow: hidden;
  cursor: pointer;
}
.video-wrapper iframe,
.video-wrapper video {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  object-fit: cover;
}

/* ── Features ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 72px;
  background: rgba(90, 115, 255, 0.12);
}
.feature-card {
  background: var(--bg-deep);
  padding: clamp(36px, 4vw, 64px);
  transition: background 0.5s ease;
}
.feature-card:hover {
  background: var(--bg-surface);
}
.feature-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 300;
  color: rgba(90, 115, 255, 0.18);
  line-height: 1;
  margin-bottom: 28px;
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--heading);
  margin-bottom: 16px;
  line-height: 1.3;
}
.feature-card p {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.8;
}
.feature-stat {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(90, 115, 255, 0.1);
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--accent);
  font-style: italic;
}

/* ── How it works ── */
.how-section { background: var(--bg-surface); }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  margin-top: 72px;
}
.step {
  position: relative;
}
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 32px;
  right: -30px;
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, rgba(90, 115, 255, 0.3), transparent);
}
.step-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.step-num::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(90, 115, 255, 0.15);
}
.step h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--heading);
  margin-bottom: 12px;
}
.step p {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.8;
}

/* ── Pricing ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 72px;
  max-width: 860px;
  background: rgba(90, 115, 255, 0.12);
}
.pricing-card {
  background: var(--bg-deep);
  padding: clamp(40px, 5vw, 64px);
  position: relative;
}
.pricing-card.featured {
  background: var(--bg-surface);
}
.pricing-badge {
  position: absolute;
  top: 0;
  right: 40px;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 16px;
}
.pricing-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--heading);
  margin-bottom: 8px;
}
.pricing-price {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 300;
  color: var(--heading);
  margin-bottom: 8px;
}
.pricing-price span {
  font-size: 1rem;
  color: var(--text-dim);
}
.pricing-period {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 32px;
}
.pricing-features {
  list-style: none;
  margin-bottom: 36px;
}
.pricing-features li {
  font-size: 0.9rem;
  color: var(--text-dim);
  padding: 10px 0;
  border-bottom: 1px solid rgba(90, 115, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 12px;
}
.pricing-features li::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--accent-dim);
  border-radius: 50%;
  flex-shrink: 0;
}
.pricing-card .btn-primary {
  display: block;
  text-align: center;
}
.pricing-card .btn-ghost {
  display: block;
  text-align: center;
  border: 1px solid rgba(90, 115, 255, 0.2);
}

/* ── Testimonials ── */
.testimonials-section { background: var(--bg-surface); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 72px;
  background: rgba(90, 115, 255, 0.1);
}
.testimonial {
  background: var(--bg-surface);
  padding: clamp(32px, 3vw, 48px);
}
.testimonial-quote {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 300;
  font-style: italic;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 28px;
}
.testimonial-quote::before {
  content: '\201C';
  display: block;
  font-family: var(--font-display);
  font-size: 4rem;
  color: rgba(90, 115, 255, 0.25);
  line-height: 0.5;
  margin-bottom: 16px;
}
.testimonial-author {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}
.testimonial-author strong {
  display: block;
  color: var(--heading);
  font-weight: 400;
  margin-bottom: 2px;
}

/* ── Final CTA ── */
.final-cta {
  text-align: center;
  padding: clamp(100px, 15vw, 200px) 0;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(90, 115, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.final-cta .section-title {
  max-width: 650px;
  margin: 0 auto 20px;
}
.final-cta-sub {
  font-size: 1.05rem;
  color: var(--text-dim);
  margin-bottom: 48px;
}

/* ── Footer ── */
footer {
  padding: 40px 0;
  border-top: 1px solid rgba(90, 115, 255, 0.1);
}
footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-left {
  font-size: 0.8rem;
  color: var(--text-dim);
}
.footer-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.footer-links a {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-links a:hover { color: var(--accent); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .features-grid, .steps, .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .step:not(:last-child)::after { display: none; }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
  .hero-waveform { display: none; }
  footer .container {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

/* ── Grain overlay ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}
