/* ===== CSS Variables ===== */
:root {
  --primary: #c7a15f;
  --primary-light: #f3eada;
  --primary-dark: #b38e50;
  --text-dark: #1a1a1a;
  --text-light: #555555;
  --text-muted: #888888;
  --surface: #ffffff;
  --background: #f9f9f9;
  --border-color: #e5e5e5;
  --radius: 16px;
  --radius-sm: 8px;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease-in-out;
  --header-bg: rgba(255, 255, 255, 0.85);
  --header-bg-scrolled: rgba(255, 255, 255, 0.95);
}

/* ===== Dark Mode ===== */
[data-theme="dark"] {
  --primary: #d4b06a;
  --primary-light: #2a2520;
  --primary-dark: #e8c97e;
  --text-dark: #f0f0f0;
  --text-light: #b0b0b0;
  --text-muted: #777777;
  --surface: #1e1e1e;
  --background: #121212;
  --border-color: #333333;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.4);
  --header-bg: rgba(18, 18, 18, 0.85);
  --header-bg-scrolled: rgba(18, 18, 18, 0.95);
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-light);
  background-color: var(--background);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== Skip Link (Accessibility) ===== */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--primary);
  color: white;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  z-index: 1000;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 16px;
}

/* ===== Focus Styles ===== */
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===== Scroll Progress Bar ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  width: 0%;
  z-index: 1000;
  transition: width 0.1s linear;
}

/* ===== Container & Layout ===== */
.container {
  width: min(1200px, 90%);
  margin: 0 auto;
}

.section {
  padding: 100px 0;
}

.section-alt {
  background-color: var(--surface);
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 16px;
  font-weight: 800;
}

.section-subtitle {
  font-size: 1.1rem;
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
  color: var(--text-light);
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
  transition: var(--transition);
}

.site-header.scrolled {
  padding: 10px 0;
  background-color: var(--header-bg-scrolled);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-dark);
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text strong {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
}

.brand-text small {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  text-decoration: none;
  color: var(--text-light);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.nav a:not(.btn):hover::after,
.nav a:not(.btn).active::after {
  width: 100%;
}

.nav a:hover,
.nav a.active {
  color: var(--primary);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Theme Toggle */
.theme-toggle {
  background: none;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--text-light);
  transition: var(--transition);
}

.theme-toggle:hover {
  background-color: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}

.icon-moon {
  display: none;
}

[data-theme="dark"] .icon-sun {
  display: none;
}

[data-theme="dark"] .icon-moon {
  display: block;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 110;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-dark);
  transition: var(--transition);
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 15px rgba(199, 161, 95, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(199, 161, 95, 0.4);
}

.btn-secondary {
  background-color: var(--surface);
  color: var(--text-dark);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}

/* Language Toggle Buttons */
.btn-lang {
  padding: 8px 16px;
  font-size: 0.85rem;
  background-color: var(--surface);
  color: var(--text-light);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

.btn-lang.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-color: var(--primary);
}

.btn-lang:hover:not(.active) {
  border-color: var(--primary);
  color: var(--primary);
}

/* ===== Hero Section ===== */
.hero {
  text-align: center;
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -20%;
  width: 140%;
  height: 200%;
  background: radial-gradient(ellipse at center top, rgba(199, 161, 95, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.eyebrow {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 0.9rem;
  background-color: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 600;
  margin-bottom: 20px;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--text-dark);
  margin: 0 auto 20px;
  max-width: 800px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.lead {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 40px;
  color: var(--text-light);
}

.cta-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-mockup {
  margin-top: 60px;
  position: relative;
}

.hero-mockup img {
  max-width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

/* ===== How It Works / Steps Section ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}

.steps-grid::before {
  content: "";
  position: absolute;
  top: 60px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, var(--border-color), var(--primary), var(--border-color));
  z-index: 0;
}

.step-card {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.9rem;
  margin: 0 auto 16px;
  box-shadow: 0 4px 12px rgba(199, 161, 95, 0.3);
}

.step-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background-color: var(--primary-light);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: var(--transition);
}

.step-icon svg {
  width: 32px;
  height: 32px;
  color: var(--primary-dark);
}

.step-card:hover .step-icon {
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(199, 161, 95, 0.2);
}

.step-card h3 {
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  max-width: 280px;
  margin: 0 auto;
}

/* ===== Features Section ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.feature-card {
  background-color: var(--surface);
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  background-color: var(--primary-light);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: var(--transition);
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  color: var(--primary-dark);
}

.feature-card:hover .feature-icon {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.feature-card:hover .feature-icon svg {
  color: white;
}

.feature-card h3 {
  font-size: 1.3rem;
  color: var(--text-dark);
  margin-bottom: 12px;
  font-weight: 700;
}

.feature-card p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== Stats Section ===== */
.stats-section {
  padding: 80px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.stat-number {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.stat-suffix {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-light);
  font-weight: 500;
}

/* ===== Testimonials Section ===== */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.testimonial-card {
  background-color: var(--surface);
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.testimonial-stars {
  color: #f59e0b;
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.testimonial-card > p {
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.7;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.testimonial-author strong {
  color: var(--text-dark);
  display: block;
  font-size: 0.95rem;
}

.testimonial-author small {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ===== FAQ Section ===== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

details {
  background-color: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 20px 24px;
  transition: var(--transition);
}

details:hover {
  border-color: var(--primary);
}

details[open] {
  box-shadow: var(--shadow);
  border-color: var(--primary);
}

summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--primary);
  transition: var(--transition);
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background-color: var(--primary-light);
}

details[open] summary::after {
  transform: rotate(45deg);
}

details p {
  margin-top: 16px;
  line-height: 1.7;
  animation: fadeSlideDown 0.3s ease;
}

@keyframes fadeSlideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== CTA Section ===== */
.cta-section {
  background: linear-gradient(135deg, var(--primary-light), rgba(199, 161, 95, 0.15));
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(199, 161, 95, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.cta-section .section-title,
.cta-section .section-subtitle {
  position: relative;
  z-index: 1;
}

.cta-section .cta-row {
  position: relative;
  z-index: 1;
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--border-color);
  padding: 48px 0;
  text-align: center;
  background-color: var(--surface);
}

.footer-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand .brand-mark {
  width: 32px;
  height: 32px;
  font-size: 1rem;
}

.footer-brand strong {
  font-size: 1.1rem;
  color: var(--text-dark);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.social-links a {
  color: var(--text-light);
  text-decoration: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  display: grid;
  place-items: center;
  transition: var(--transition);
}

.social-links a:hover {
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-color: var(--primary);
  transform: translateY(-2px);
}

.footer-links a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.footer-links a:hover {
  text-decoration: underline;
}

/* ===== Language Toggle ===== */
.language-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  gap: 4px;
  z-index: 100;
  background-color: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 4px;
  box-shadow: var(--shadow);
}

/* ===== Back to Top Button ===== */
.back-to-top {
  position: fixed;
  bottom: 80px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 15px rgba(199, 161, 95, 0.3);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(199, 161, 95, 0.4);
}

/* ===== Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeInAnimation 0.8s ease-out forwards;
}

@keyframes fadeInAnimation {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    background-color: var(--surface);
    z-index: 105;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: var(--transition);
  }

  .nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav a {
    font-size: 1.2rem;
  }

  .nav a:not(.btn)::after {
    display: none;
  }

  .hero {
    padding: 80px 0 60px;
  }

  h1 {
    font-size: 2rem;
  }

  .lead {
    font-size: 1rem;
  }

  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .cta-row {
    flex-direction: column;
    align-items: center;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .steps-grid::before {
    display: none;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .language-toggle {
    bottom: 16px;
    right: 16px;
  }

  .back-to-top {
    bottom: 72px;
    right: 16px;
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .brand-text small {
    display: none;
  }
}

/* ===== Print Styles ===== */
@media print {
  .site-header,
  .back-to-top,
  .language-toggle,
  .scroll-progress,
  .hamburger,
  .theme-toggle {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .section {
    padding: 24px 0;
  }
}
