:root {
  --bg: #0b1120;
  --surface: #f8f9fa;
  --ink: #0f172a;
  --accent: #c5a059;
  --secondary: #4a6fa5;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius: 12px;
  --radius-sm: 6px;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --container-width: 1200px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--surface);
}

body.site-dark {
  background-color: var(--bg);
  color: var(--surface);
}

body.site-light {
  background-color: var(--surface);
  color: var(--ink);
}

.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;
}

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

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

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg);
  border-bottom: 1px solid var(--accent);
  padding: 10px 0;
  transition: var(--transition);
}

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

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}

.logo-mark {
  display: flex;
  align-items: center;
}

.main-nav {
  display: flex;
  align-items: center;
}

#menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--accent);
  margin: 5px 0;
  transition: var(--transition);
}

#nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 20px;
}

.nav-link {
  color: var(--surface);
  font-weight: 500;
}

.nav-link:hover {
  color: var(--accent);
}

/* Scroll Progress */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background-color: var(--accent);
  width: 0%;
  z-index: 101;
  transition: width 0.1s linear;
}

/* Hero */
.hero-section {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

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

.hero-visual {
  width: 100%;
  height: auto;
  max-height: 400px;
}

.hero-content {
  padding: 20px;
}

#hero-title {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--surface);
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 30px;
  color: var(--surface);
  opacity: 0.9;
}

.hero-actions {
  display: flex;
  gap: 15px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--bg);
}

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

.btn-secondary {
  background-color: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-secondary:hover {
  background-color: var(--accent);
  color: var(--bg);
}

/* Metrics */
.metrics-section {
  padding: 60px 0;
  background-color: var(--bg);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stat-item {
  padding: 20px;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  display: block;
  margin-top: 5px;
  color: var(--surface);
}

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

h1, h2, h3 {
  margin-top: 0;
  color: inherit;
}

h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  text-align: center;
  color: var(--accent);
}

/* About */
.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.content-visual {
  width: 100%;
  height: auto;
  max-height: 300px;
  margin-bottom: 30px;
}

/* Process */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.step-item {
  padding: 20px;
  background-color: var(--bg);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  text-align: center;
}

.step-icon {
  margin-bottom: 15px;
}

.step-icon svg {
  width: 48px;
  height: 48px;
  margin: 0 auto;
}

/* Features & Benefits */
.features-grid, .benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card, .benefit-card {
  padding: 20px;
  background-color: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.feature-icon, .benefit-icon {
  margin-bottom: 15px;
}

.feature-icon svg, .benefit-icon svg {
  width: 48px;
  height: 48px;
  margin: 0 auto;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-card {
  padding: 20px;
  background-color: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--accent);
}

.star-rating {
  color: var(--accent);
  margin-bottom: 15px;
  font-size: 1.25rem;
}

.testimonial-quote {
  font-style: italic;
  margin-bottom: 15px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-weight: 600;
}

.author-role {
  font-size: 0.875rem;
  opacity: 0.8;
}

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

.faq-item {
  margin-bottom: 15px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 15px 20px;
  background-color: var(--bg);
  color: var(--accent);
  border: none;
  text-align: left;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
}

.faq-question:hover {
  background-color: var(--secondary);
  color: var(--surface);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background-color: var(--surface);
  color: var(--ink);
}

.faq-answer p {
  padding: 15px 20px;
  margin: 0;
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

/* Contact */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-field {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}

.form-input {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  background-color: var(--bg);
  color: var(--surface);
  font-size: 1rem;
}

.field-error {
  color: #e53e3e;
  font-size: 0.875rem;
  display: none;
}

.form-input:invalid:not(:placeholder-shown) + .field-error {
  display: block;
}

/* CTA */
.cta-section {
  background-color: var(--accent);
  color: var(--bg);
  text-align: center;
  padding: 60px 0;
}

.cta-text {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.cta-section .btn-primary {
  background-color: var(--bg);
  color: var(--accent);
}

.cta-section .btn-primary:hover {
  background-color: var(--secondary);
  color: var(--surface);
}

/* Footer */
.site-footer {
  background-color: var(--bg);
  color: var(--surface);
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-heading {
  color: var(--accent);
  margin-bottom: 15px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--surface);
}

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

.footer-address, .footer-contact {
  margin-top: 15px;
}

.footer-email, .footer-phone {
  color: var(--accent);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid var(--accent);
  padding-top: 20px;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--bg);
  border-top: 1px solid var(--accent);
  padding: 15px 20px;
  z-index: 1000;
  display: flex;
  justify-content: center;
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: var(--container-width);
  width: 100%;
}

.cookie-text {
  margin: 0;
  color: var(--surface);
}

.cookie-actions {
  display: flex;
  gap: 10px;
}

/* Legal Page */
.legal-page {
  min-height: 80vh;
  background-color: var(--bg);
  color: var(--surface);
  padding: 60px 0;
}

.breadcrumb {
  padding: 10px 0;
  color: var(--ink);
}

body.site-dark .breadcrumb {
  color: var(--surface);
}

.breadcrumb-sep {
  margin: 0 5px;
}

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

.legal-section {
  padding: 40px 0;
}

.legal-intro {
  margin-bottom: 20px;
}

.legal-contact {
  margin-top: 40px;
  padding: 20px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
}

/* Cookie Table */
.cookie-table-container {
  overflow-x: auto;
}

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.cookie-table th, .cookie-table td {
  padding: 10px;
  border: 1px solid var(--accent);
  text-align: left;
}

/* Thank You */
.thank-you-section {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thank-you-card {
  text-align: center;
  padding: 40px;
  background-color: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-width: 600px;
  width: 100%;
}

.success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
}

.thank-you-text {
  margin-bottom: 15px;
}

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

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

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

/* Signature Features */
.dot-pattern-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  opacity: 0.1;
}

.dot-pattern-container span {
  position: absolute;
  width: 4px;
  height: 4px;
  background-color: var(--accent);
  border-radius: 50%;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  #menu-toggle {
    display: block;
  }

  #nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg);
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--accent);
  }

  #nav-menu.is-open {
    display: flex;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-visual {
    max-height: 250px;
  }

  #hero-title {
    font-size: 2rem;
  }

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

  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-actions {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .fade-up {
    transition: none;
  }

  .fade-up.visible, .fade-up.is-visible {
    opacity: 1;
    transform: none;
  }

  #scroll-progress {
    transition: none;
  }
}