:root {
  --bg: #eee8ff;
  --surface: #ffffff;
  --ink: #2e174f;
  --accent: #7651b6;
  --secondary: #bca4ec;
  --shadow: 0 4px 24px rgba(46, 23, 79, 0.08);
  --radius: 16px;
  --font-main: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--secondary));
  z-index: 1000;
  transition: width 0.1s linear;
}

.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(238, 232, 255, 0.9);
  backdrop-filter: blur(12px);
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: var(--shadow);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
}

.brand-logo svg {
  flex-shrink: 0;
}

.main-nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.main-nav a {
  color: var(--ink);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.main-nav a:hover::after {
  width: 100%;
}

#menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
}

#menu-toggle span {
  display: block;
  height: 3px;
  background: var(--ink);
  transition: var(--transition);
}

.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 8rem 5% 4rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(118, 81, 182, 0.15) 0%, transparent 60%),
              repeating-linear-gradient(0deg, transparent 0, transparent 49px, rgba(118, 81, 182, 0.05) 50px),
              repeating-linear-gradient(90deg, transparent 0, transparent 49px, rgba(118, 81, 182, 0.05) 50px);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.pill-badge {
  display: inline-block;
  background: rgba(118, 81, 182, 0.1);
  color: var(--accent);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(118, 81, 182, 0.2);
}

.gradient-text {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--ink) 0%, var(--accent) 50%, var(--secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 1.25rem;
  max-width: 650px;
  margin-bottom: 2.5rem;
  color: rgba(46, 23, 79, 0.8);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: var(--ink);
  color: var(--surface);
  box-shadow: 0 4px 16px rgba(46, 23, 79, 0.2);
}

.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(118, 81, 182, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
}

.btn-secondary:hover {
  background: var(--ink);
  color: var(--surface);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.metrics-section {
  padding: 4rem 5%;
  background: var(--surface);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat-card {
  text-align: center;
  padding: 2rem;
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stat-number {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.about-section {
  padding: 6rem 5%;
}

.reversed-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.content-block p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.visual-block svg {
  width: 100%;
  max-width: 400px;
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(118, 81, 182, 0.15));
}

.process-section, .features-section, .benefits-section, .testimonials-section, .faq-section, .contact-section {
  padding: 6rem 5%;
}

.section-intro {
  max-width: 700px;
  margin-bottom: 3rem;
  font-size: 1.15rem;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.step {
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.step-number {
  font-size: 4rem;
  font-weight: 900;
  color: rgba(118, 81, 182, 0.1);
  position: absolute;
  top: 1rem;
  right: 1.5rem;
}

.step h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--ink);
}

.features-grid, .benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card, .benefit-card {
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.feature-card:hover, .benefit-card:hover {
  transform: translateY(-5px);
}

.feature-card svg, .benefit-card svg {
  margin-bottom: 1.5rem;
  display: block;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial-card {
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stars {
  color: var(--accent);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.testimonial-card blockquote {
  font-style: italic;
  margin-bottom: 1.5rem;
  color: rgba(46, 23, 79, 0.85);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.initial {
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: var(--surface);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.author-name {
  font-weight: 700;
  color: var(--ink);
}

.author-role {
  font-size: 0.9rem;
  color: rgba(46, 23, 79, 0.7);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 800px;
}

.faq-item {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.5rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  background: transparent;
  color: var(--ink);
  transition: background var(--transition);
}

.faq-question:hover {
  background: rgba(118, 81, 182, 0.05);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 2rem;
}

.faq-question.active {
  color: var(--accent);
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 2rem 1.5rem;
}

.contact-section .form-field {
  margin-bottom: 1.5rem;
}

.form-field label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--ink);
}

.form-field input, .form-field textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid rgba(46, 23, 79, 0.1);
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--surface);
  transition: border-color var(--transition);
}

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

.field-error {
  display: block;
  color: #d32f2f;
  font-size: 0.85rem;
  margin-top: 0.25rem;
  min-height: 1.2em;
}

.cta-banner {
  background: var(--ink);
  color: var(--surface);
  padding: 5rem 5%;
  text-align: center;
}

.cta-banner h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  -webkit-text-fill-color: initial;
  background: none;
  color: var(--surface);
}

.cta-banner p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.site-footer {
  background: var(--ink);
  color: var(--secondary);
  padding: 4rem 5% 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-col h3 {
  color: var(--surface);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: var(--secondary);
  opacity: 0.8;
}

.footer-col a:hover {
  opacity: 1;
  color: var(--surface);
}

.site-footer p {
  margin-top: 1rem;
  font-size: 0.9rem;
  opacity: 0.7;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--surface);
  padding: 1rem 5%;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.1);
  z-index: 900;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.cookie-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cookie-actions {
  display: flex;
  gap: 0.5rem;
}

.cookie-close {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  font-size: 1.5rem;
  color: var(--ink);
}

.side-nav {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 50;
}

.dot {
  width: 12px;
  height: 12px;
  background: var(--secondary);
  border-radius: 50%;
  opacity: 0.5;
  transition: all var(--transition);
  padding: 0;
}

.dot.active {
  background: var(--accent);
  opacity: 1;
  transform: scale(1.3);
}

.breadcrumb {
  padding: 1rem 5%;
  background: transparent;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--accent);
}

.breadcrumb .current {
  color: var(--ink);
  font-weight: 600;
}

.legal-page {
  padding: 4rem 5%;
  max-width: 900px;
  margin: 0 auto;
}

.legal-page h1 {
  margin-bottom: 1rem;
}

.effective-date {
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 2rem;
  font-weight: 600;
}

.legal-page h2 {
  margin: 2.5rem 0 1rem;
  font-size: 1.4rem;
}

.legal-page p {
  margin-bottom: 1.5rem;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.legal-table th, .legal-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(46, 23, 79, 0.1);
}

.legal-table th {
  background: rgba(118, 81, 182, 0.1);
  font-weight: 600;
}

.thank-you-card {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 5%;
}

.success-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 2rem;
}

.thank-you-card h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.thank-you-card p {
  max-width: 600px;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible, .fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--surface);
    padding: 1rem 5%;
    box-shadow: var(--shadow);
  }

  .main-nav.active {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 1rem;
  }

  #menu-toggle {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding: 6rem 5% 3rem;
  }

  .stats-grid, .process-steps, .features-grid, .benefits-grid, .testimonials-grid, .footer-grid {
    grid-template-columns: 1fr;
  }

  .reversed-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .visual-block svg {
    max-width: 100%;
  }

  .side-nav {
    display: none;
  }

  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  .cookie-content {
    width: 100%;
  }

  .cookie-actions {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}