:root {
  --primary: #0f172a;
  --primary-light: #1e293b;
  --accent: #0d9488;
  --accent-hover: #0f766e;
  --accent-gold: #d97706;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
  --max-width: 1200px;
}

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

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
}

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

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

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

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent);
  color: white;
  padding: 8px;
  z-index: 100;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
header {
  background: var(--bg-white);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 1rem 0;
}

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

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary);
}

nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--text-dark);
  font-weight: 500;
}

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

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.burger span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--primary);
  transition: 0.3s;
}

/* Hero Section */
.hero {
  padding: 5rem 0;
  background: var(--primary);
  color: white;
  position: relative;
  overflow: hidden;
}

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

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

.hero-content h1 {
  color: white;
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.1rem;
  color: #cbd5e1;
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 0.75rem 1.75rem;
  border-radius: 4px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

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

.btn-secondary {
  background: transparent;
  border: 2px stroke var(--accent);
  color: white;
  margin-left: 1rem;
}

.btn-secondary:hover {
  background: rgba(13, 148, 136, 0.2);
}

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

/* Statistics */
.stats {
  padding: 3rem 0;
  background: var(--bg-white);
  border-bottom: 1px solid #e2e8f0;
}

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

.stat-item h3 {
  font-size: 2.5rem;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
}

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

/* Sections General */
section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

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

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

.step-card {
  background: var(--bg-white);
  padding: 2rem 1.5rem;
  border-radius: 6px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
  text-align: center;
  position: relative;
}

.step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: var(--accent-gold);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.step-card i {
  font-size: 2rem;
  color: var(--accent);
  margin-top: 1rem;
  margin-bottom: 1rem;
}

/* Trust Blocks */
.trust-section {
  background: var(--primary-light);
  color: white;
}

.trust-section h2 {
  color: white;
}

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

.trust-card {
  background: rgba(255,255,255,0.05);
  padding: 2.5rem;
  border-radius: 6px;
  border-left: 4px solid var(--accent);
}

.trust-card h3 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

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

.service-card {
  background: var(--bg-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
  transition: transform 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
}

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

.service-card-body {
  padding: 1.5rem;
}

.service-card-body h3 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.service-card-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.features-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  object-fit: cover;
  height: 450px;
}

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

.feature-list li {
  margin-bottom: 1.5rem;
  display: flex;
  gap: 1rem;
}

.feature-list i {
  color: var(--accent);
  font-size: 1.5rem;
  margin-top: 0.25rem;
}

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

.price-card {
  background: var(--bg-white);
  border-radius: 8px;
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
  position: relative;
  border-top: 4px solid transparent;
}

.price-card.recommended {
  border-top: 4px solid var(--accent);
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
  transform: scale(1.03);
}

.badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--accent-gold);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: bold;
}

.price-amount {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--primary);
  margin: 1.5rem 0;
}

.price-features {
  list-style: none;
  margin-bottom: 2rem;
  text-align: left;
}

.price-features li {
  margin-bottom: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.price-features i {
  color: var(--accent);
}

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

details {
  background: var(--bg-white);
  padding: 1.25rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--primary);
}

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

summary::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  transition: transform 0.3s;
}

details[open] summary::after {
  transform: rotate(180deg);
}

details p {
  margin-top: 1rem;
  color: var(--text-muted);
}

/* Form Section */
.form-section {
  background: var(--bg-white);
  border-top: 1px solid #e2e8f0;
}

.form-container {
  max-width: 700px;
  margin: 0 auto;
}

form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group-full {
  grid-column: span 2;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
}

input, textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 1rem;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.checkbox-group input {
  width: auto;
  margin-top: 0.25rem;
}

.checkbox-group label {
  font-weight: normal;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Trust Layer */
.trust-layer {
  background: #f1f5f9;
  padding: 3rem 0;
  border-top: 1px solid #e2e8f0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.trust-layer-container h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

/* Footer */
footer {
  background: var(--primary);
  color: #94a3b8;
  padding: 4rem 0 2rem 0;
  font-size: 0.9rem;
}

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

.footer-brand h3 {
  color: white;
  margin-bottom: 1rem;
}

.footer-links h4 {
  color: white;
  margin-bottom: 1.25rem;
}

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

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #94a3b8;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  text-align: center;
}

/* Cookie Banner */
#cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 600px;
  background: var(--primary-light);
  color: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  z-index: 100;
  display: none;
}

.cookie-content {
  margin-bottom: 1.5rem;
}

.cookie-content h4 {
  color: white;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.cookie-content p {
  font-size: 0.85rem;
  color: #cbd5e1;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.btn-cookie-accept {
  background: var(--accent);
  color: white;
  border: none;
  padding: 0.5rem 1.25rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
}

.btn-cookie-reject {
  background: transparent;
  color: #cbd5e1;
  border: 1px solid #475569;
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  cursor: pointer;
}

.btn-cookie-reject:hover {
  background: rgba(255,255,255,0.05);
}

/* Specific Article Layout for Legal Pages */
.article-layout {
  padding: 5rem 0;
  background: var(--bg-white);
}

.article-content {
  max-width: 800px;
  margin: 0 auto;
}

.article-content h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.article-content h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.article-content p {
  margin-bottom: 1.5rem;
  color: #334155;
}

.article-content ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
  color: #334155;
}

/* Responsiveness */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero-image img {
    height: 350px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
  .price-card.recommended {
    transform: scale(1);
  }
}

@media (max-width: 768px) {
  nav {
    position: relative;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-white);
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    width: 250px;
    border-radius: 4px;
    gap: 1rem;
  }
  .nav-links.active {
    display: flex;
  }
  .burger {
    display: flex;
  }
  .trust-grid {
    grid-template-columns: 1fr;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  form {
    grid-template-columns: 1fr;
  }
  .form-group-full {
    grid-column: span 1;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

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