:root {
  --bg: #12161c;
  --surface: #e3e6ec;
  --ink: #28c97f;
  --accent: #4a5568;
  --sub: #f0f4f8;
  --border: #2d3748;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --radius: 4px;
  --font-display: system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: 0.3s var(--ease-out);
}

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

body {
  font-family: var(--font-display);
  background-color: var(--bg);
  color: var(--sub);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

h1, h2, h3, h4 {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--sub);
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.1; }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.2; }
h3 { font-size: 1.25rem; }

p {
  color: var(--sub);
  opacity: 0.9;
  margin-bottom: 1rem;
  max-width: 65ch;
}

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

a:hover, a:focus {
  color: var(--sub);
}

button {
  cursor: pointer;
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  display: block;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background-color: var(--ink);
  z-index: 1000;
  transition: width 0.1s linear;
}

.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: rgba(18, 22, 28, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  padding: 1rem 0;
  transition: box-shadow var(--transition);
}

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

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.brand-logo {
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--sub);
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.menu-toggle {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background-color: var(--sub);
  transition: background-color var(--transition);
}

.main-nav {
  position: fixed;
  top: 60px;
  left: 0;
  width: 100%;
  background-color: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 2rem 1.5rem;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--transition), opacity var(--transition);
}

.main-nav.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

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

.main-nav a {
  font-size: 1.1rem;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--sub);
}

.page-content {
  padding-top: 80px;
  padding-bottom: 120px;
}

.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: flex-end;
  padding: 4rem 1.5rem 2rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-grid line {
  stroke: var(--accent);
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: end;
}

.hero-text h1 {
  margin-bottom: 1rem;
  color: var(--sub);
}

.hero-subtitle {
  font-size: 1.1rem;
  max-width: 50ch;
  color: var(--sub);
  opacity: 0.8;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius);
  transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition);
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
}

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

.btn-primary:hover, .btn-primary:focus {
  background-color: #22a869;
  box-shadow: 0 0 0 4px rgba(40, 201, 127, 0.2);
}

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

.btn-secondary:hover, .btn-secondary:focus {
  background-color: var(--sub);
  color: var(--bg);
}

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

.hero-indicator {
  align-self: center;
  cursor: pointer;
}

.hero-indicator svg circle {
  transition: transform 0.5s ease;
  transform-origin: center;
}

.hero-indicator:hover svg circle {
  animation: rotateRing 3s linear infinite;
}

@keyframes rotateRing {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.vertical-axial {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--ink), transparent);
  opacity: 0.2;
  z-index: 0;
  pointer-events: none;
}

section {
  position: relative;
  padding: 5rem 0;
  z-index: 1;
}

section::after {
  content: "";
  position: absolute;
  bottom: -40px;
  left: 0;
  width: 100%;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  z-index: 0;
  pointer-events: none;
}

.metrics-section {
  background-color: var(--surface);
  color: var(--bg);
  clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
  padding: 4rem 0;
}

.metrics-section h2 {
  color: var(--bg);
}

.metrics-section p {
  color: var(--accent);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.stat-card {
  border-left: 3px solid var(--ink);
  padding-left: 1rem;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 900;
  font-family: var(--font-mono);
  color: var(--bg);
  margin-bottom: 0.5rem;
}

.about-section {
  background-color: var(--bg);
}

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

.about-visual svg {
  width: 100%;
  max-width: 400px;
  border: 2px solid var(--border);
  padding: 1rem;
}

.process-section {
  background-color: var(--surface);
  clip-path: polygon(0 2%, 100% 0, 100% 98%, 0 100%);
  color: var(--bg);
}

.process-section h2, .process-section h3 {
  color: var(--bg);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.step-card {
  background-color: var(--bg);
  color: var(--sub);
  padding: 2rem;
  border: 1px solid var(--border);
  position: relative;
}

.step-number {
  position: absolute;
  top: -15px;
  left: 20px;
  background-color: var(--ink);
  color: var(--bg);
  padding: 0.25rem 0.75rem;
  font-weight: 800;
  font-family: var(--font-mono);
}

.features-section {
  background-color: var(--bg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature-card {
  background-color: var(--surface);
  color: var(--bg);
  padding: 2rem;
  border-top: 4px solid var(--ink);
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
}

.benefits-section {
  background-color: var(--surface);
  color: var(--bg);
  clip-path: polygon(0 3%, 100% 0, 100% 97%, 0 100%);
}

.benefits-section h2 {
  color: var(--bg);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.benefit-card {
  background-color: var(--bg);
  color: var(--sub);
  padding: 2rem;
  border: 1px solid var(--border);
}

.benefit-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
}

.testimonials-section {
  background-color: var(--bg);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.testimonial-card {
  background-color: var(--surface);
  color: var(--bg);
  padding: 2rem;
  border-left: 4px solid var(--ink);
}

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

.author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.avatar {
  width: 40px;
  height: 40px;
  background-color: var(--ink);
  color: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
}

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

.author-role {
  font-size: 0.85rem;
  color: var(--accent);
}

.faq-section {
  background-color: var(--surface);
  color: var(--bg);
}

.faq-section h2 {
  color: var(--bg);
}

.faq-list {
  margin-top: 2rem;
}

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

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.5rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--bg);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: "+";
  font-size: 1.5rem;
  transition: transform var(--transition);
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition), padding var(--transition);
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding-bottom: 1.5rem;
}

.faq-answer p {
  color: var(--accent);
}

.contact-section {
  background-color: var(--bg);
}

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

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-field label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink);
  text-transform: uppercase;
}

.form-field input {
  padding: 0.75rem;
  background-color: var(--surface);
  border: 1px solid var(--border);
  color: var(--bg);
  font-family: inherit;
  border-radius: var(--radius);
}

.form-field input:focus {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.field-error {
  color: #e53e3e;
  font-size: 0.85rem;
  min-height: 1.2em;
}

.cta-section {
  background-color: var(--ink);
  color: var(--bg);
  text-align: center;
  padding: 6rem 0;
  clip-path: polygon(0 0, 100% 2%, 100% 100%, 0 98%);
}

.cta-section h2 {
  color: var(--bg);
  margin-bottom: 2rem;
}

.site-footer {
  background-color: var(--bg);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}

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

.footer-brand h3, .footer-nav h4, .footer-info h4, .footer-legal h4 {
  color: var(--sub);
  margin-bottom: 1rem;
}

.footer-brand p, .footer-info p {
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.footer-nav ul, .footer-legal ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-nav a, .footer-legal a {
  color: var(--accent);
  font-size: 0.9rem;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  font-size: 0.8rem;
  color: var(--accent);
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--bg);
  border-top: 1px solid var(--border);
  padding: 1rem 1.5rem;
  z-index: 200;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transform: translateY(100%);
  transition: transform var(--transition);
}

.cookie-banner.visible {
  transform: translateY(0);
}

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

.breadcrumb {
  padding: 1rem 0;
  background-color: var(--bg);
  border-bottom: 1px solid var(--border);
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--accent);
}

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

.breadcrumb span {
  color: var(--sub);
}

.legal-page {
  background-color: var(--bg);
  padding-top: 2rem;
}

.legal-intro {
  margin-bottom: 3rem;
}

.legal-section {
  margin-bottom: 3rem;
}

.legal-section h2 {
  color: var(--ink);
  margin-bottom: 1rem;
}

.legal-section p {
  color: var(--sub);
  margin-bottom: 1rem;
}

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.cookie-table th, .cookie-table td {
  padding: 0.75rem;
  border: 1px solid var(--border);
  text-align: left;
  color: var(--sub);
}

.cookie-table th {
  background-color: var(--surface);
  color: var(--bg);
}

.legal-actions {
  margin: 4rem 0;
  text-align: center;
}

.thank-you-section {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
}

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

.thank-you-card {
  max-width: 600px;
  text-align: center;
  background-color: var(--surface);
  color: var(--bg);
  padding: 3rem;
  border-radius: var(--radius);
  border: 2px solid var(--ink);
}

.thank-you-card h1 {
  color: var(--bg);
  margin-bottom: 1.5rem;
}

.thank-you-card p {
  color: var(--accent);
  margin-bottom: 1.5rem;
}

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

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

.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(18, 22, 28, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 300;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background-color: var(--surface);
  color: var(--bg);
  padding: 2rem;
  border-radius: var(--radius);
  max-width: 500px;
  width: 100%;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--bg);
  cursor: pointer;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.hero-grid {
  width: 100%;
  height: 100%;
}

@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    align-items: flex-start;
    text-align: left;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .hero-indicator {
    display: none;
  }

  .about-layout, .contact-layout, .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

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

  section {
    padding: 3rem 0;
  }

  .cookie-banner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

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

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