:root {
  --primary: #D97706;
  --primary-hover: #B45309;
  --bg-dark: #1E293B;
  --bg-light: #F8FAFC;
  --text-main: #0F172A;
  --text-light: #475569;
  --white: #FFFFFF;
  --border: #E2E8F0;
  --font-sans: 'Inter', sans-serif;
  --font-serif: 'Lora', Georgia, serif;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.7;
  font-size: 1.1rem;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--bg-dark);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Skip-Link for Accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--primary);
  color: var(--white);
  padding: 8px 16px;
  z-index: 9999;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
  transition: top 0.2s;
}
.skip-link:focus-visible {
  top: 20px;
}

*:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

/* Header */
header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--bg-dark);
}

.logo-link img {
  width: 40px;
  height: 40px;
}

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

.nav-links {
  display: flex;
  list-style: none;
  gap: 24px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-light);
  font-weight: 500;
  font-size: 1.05rem;
  transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
}

.burger-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.burger-menu span {
  display: block;
  width: 28px;
  height: 3px;
  background-color: var(--bg-dark);
  margin: 5px 0;
  transition: 0.4s;
}

/* Button UI */
.btn {
  display: inline-block;
  background-color: var(--primary);
  color: var(--white);
  padding: 12px 28px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

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

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

.btn-secondary:hover {
  background-color: rgba(217, 119, 6, 0.08);
}

/* Hero Section */
.hero {
  padding: 80px 0;
  background-color: var(--bg-dark);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(#ffffff0a 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

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

.hero h1 {
  color: var(--white);
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 24px;
}

.hero p {
  font-size: 1.25rem;
  color: #94A3B8;
  margin-bottom: 32px;
}

.hero-img-wrapper img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
  object-fit: cover;
  max-height: 450px;
}

/* Statistics */
.stats {
  padding: 40px 0;
  background-color: var(--white);
  border-bottom: 1px solid var(--border);
}

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

.stat-item h3 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.stat-item p {
  color: var(--text-light);
  font-size: 0.95rem;
}

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

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

.section-title h2 {
  font-size: 2.25rem;
  margin-bottom: 16px;
}

.section-title p {
  color: var(--text-light);
  font-size: 1.15rem;
}

/* How It Works Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step-card {
  background: var(--white);
  padding: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  text-align: center;
  position: relative;
}

.step-num {
  width: 48px;
  height: 48px;
  background-color: rgba(217, 119, 6, 0.1);
  color: var(--primary);
  font-weight: bold;
  font-size: 1.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px auto;
}

.step-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.step-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.service-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.service-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.service-content {
  padding: 32px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-content h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.service-content p {
  color: var(--text-light);
  margin-bottom: 24px;
  flex-grow: 1;
}

.service-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.service-link:hover {
  text-decoration: underline;
}

/* Feature Row */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.feature-img img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.feature-text h3 {
  font-size: 2rem;
  margin-bottom: 24px;
}

.feature-list {
  list-style: none;
}

.feature-list li {
  margin-bottom: 16px;
  position: relative;
  padding-left: 32px;
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
  font-weight: bold;
  font-size: 1.2rem;
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: stretch;
}

.pricing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px 32px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card.popular {
  border: 3px solid var(--primary);
  transform: scale(1.05);
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}

.popular-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary);
  color: var(--white);
  padding: 4px 16px;
  font-size: 0.85rem;
  font-weight: bold;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.price {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--bg-dark);
  font-weight: bold;
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 32px;
  flex-grow: 1;
  text-align: left;
}

.pricing-features li {
  margin-bottom: 12px;
  padding-left: 24px;
  position: relative;
  font-size: 0.95rem;
}

.pricing-features li::before {
  content: '•';
  color: var(--primary);
  position: absolute;
  left: 0;
  font-weight: bold;
  font-size: 1.2rem;
}

/* Lead Capture Form */
.form-section {
  background-color: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.form-wrapper {
  max-width: 650px;
  margin: 0 auto;
}

form {
  background: var(--bg-light);
  padding: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 20px;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.95rem;
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 1rem;
}

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

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
}

.form-consent input {
  margin-top: 5px;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.form-consent label {
  font-size: 0.9rem;
  color: var(--text-light);
}

.form-consent label a {
  color: var(--primary);
  text-decoration: none;
}

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

details {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 16px;
  overflow: hidden;
}

summary {
  padding: 24px;
  font-weight: bold;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  cursor: pointer;
  background-color: var(--white);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: bold;
}

details[open] summary::after {
  content: '−';
}

details .faq-content {
  padding: 0 24px 24px 24px;
  color: var(--text-light);
}

/* Trust Layer & Legal Disclaimer */
.trust-layer {
  background-color: #F1F5F9;
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.trust-layer-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.6;
}

.trust-disclaimer p {
  margin-bottom: 8px;
}

.trust-company {
  border-left: 2px solid var(--border);
  padding-left: 24px;
}

.trust-company h4 {
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: var(--bg-dark);
}

/* Footer */
footer {
  background-color: var(--bg-dark);
  color: var(--white);
  padding: 48px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  margin-bottom: 32px;
}

.footer-brand h3 {
  color: var(--white);
  margin-bottom: 16px;
}

.footer-brand p {
  color: #94A3B8;
  font-size: 0.95rem;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.footer-col h4 {
  color: var(--white);
  margin-bottom: 16px;
  font-size: 1rem;
}

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

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: #94A3B8;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #94A3B8;
}

.footer-bottom a {
  color: #94A3B8;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--primary);
}

/* Cookie Banner */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 600px;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  padding: 24px;
  border-radius: 8px;
  z-index: 9999;
}

.cookie-content {
  margin-bottom: 16px;
}

.cookie-content h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.cookie-content p {
  font-size: 0.9rem;
  color: var(--text-light);
}

.cookie-content a {
  color: var(--primary);
  text-decoration: none;
}

.cookie-buttons {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.cookie-buttons .btn {
  padding: 8px 20px;
  font-size: 0.95rem;
}

/* Responsive Rules */
@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .pricing-card.popular {
    transform: none;
  }
}

@media (max-width: 768px) {
  nav {
    position: relative;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 50px;
    right: -24px;
    background: var(--white);
    width: 250px;
    padding: 24px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  }
  .nav-links.active {
    display: flex;
  }
  .burger-menu {
    display: block;
  }
  .hero-grid, .services-grid, .feature-row, .steps-grid, .stats-grid, .trust-layer-content, .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

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