:root {
  --color-primary: #0f172a;
  --color-secondary: #1e293b;
  --color-accent: #d97706;
  --color-accent-hover: #b45309;
  --color-text-dark: #1e293b;
  --color-text-light: #f8fafc;
  --color-bg-light: #f8fafc;
  --color-bg-alt: #f1f5f9;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', Helvetica, Arial, sans-serif;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
}

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

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

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

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

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

/* Header */
header {
  background-color: var(--color-primary);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 2px stroke var(--color-accent);
}

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

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text-light);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: bold;
}

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

nav ul {
  display: flex;
  list-style: none;
  gap: 20px;
}

nav a {
  color: var(--color-text-light);
  font-weight: 500;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-text-light);
  font-size: 1.8rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.85)), url('images/hero.jpg') no-repeat center center/cover;
  color: var(--color-text-light);
  padding: 100px 0;
  text-align: center;
}

.hero h1 {
  color: var(--color-text-light);
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.btn {
  display: inline-block;
  background-color: var(--color-accent);
  color: white;
  padding: 12px 30px;
  border-radius: 5px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

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

/* Stats */
.stats {
  padding: 50px 0;
  background-color: var(--color-bg-alt);
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.stat-card h3 {
  font-size: 2.5rem;
  color: var(--color-accent);
  margin-bottom: 10px;
}

/* How It Works */
.steps {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

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

.step-card {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  text-align: center;
  position: relative;
}

.step-number {
  background: var(--color-accent);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  font-weight: bold;
}

/* Features */
.features {
  padding: 80px 0;
  background-color: var(--color-bg-alt);
}

.features-split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 50px;
}

.features-image {
  flex: 1 1 450px;
}

.features-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.features-content {
  flex: 1 1 450px;
}

.features-content ul {
  list-style: none;
  margin-top: 20px;
}

.features-content li {
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
}

.features-content li::before {
  content: "\f00c";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: var(--color-accent);
  position: absolute;
  left: 0;
  top: 2px;
}

/* Pricing */
.pricing {
  padding: 80px 0;
}

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

.price-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 40px;
  text-align: center;
  position: relative;
  transition: var(--transition);
}

.price-card.featured {
  border-color: var(--color-accent);
  box-shadow: 0 10px 20px rgba(217, 119, 6, 0.15);
  transform: translateY(-5px);
}

.badge {
  background: var(--color-accent);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
}

.price {
  font-size: 3rem;
  font-family: var(--font-heading);
  color: var(--color-primary);
  margin: 20px 0;
}

/* Form Section */
.form-section {
  padding: 80px 0;
  background-color: var(--color-secondary);
  color: var(--color-text-light);
}

.form-section h2 {
  color: var(--color-text-light);
  text-align: center;
  margin-bottom: 30px;
}

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

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-family: var(--font-body);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.checkbox-group input {
  margin-top: 5px;
}

/* Accordion */
.accordion-item {
  border-bottom: 1px solid #e2e8f0;
  padding: 15px 0;
}

.accordion-header {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-size: 1.2rem;
  font-family: var(--font-heading);
  font-weight: bold;
  color: var(--color-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-content {
  display: none;
  padding-top: 15px;
  color: #475569;
}

/* Trust Layer & Footer */
.trust-layer {
  background-color: var(--color-bg-alt);
  padding: 40px 0;
  border-top: 1px solid #e2e8f0;
  font-size: 0.9rem;
  color: #475569;
}

footer {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  padding: 40px 0;
  font-size: 0.9rem;
}

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

.footer-col h4 {
  color: var(--color-text-light);
  margin-bottom: 20px;
}

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

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

.footer-col a {
  color: #cbd5e1;
}

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

.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 20px;
  text-align: center;
  color: #94a3b8;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  padding: 20px;
  z-index: 1000;
  display: none;
  max-width: 500px;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

/* Utilities */
.text-center { text-align: center; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* CJK Fonts & Media Queries */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-primary);
    padding: 20px;
    border-top: 1px solid #334155;
  }
  nav ul.show { display: flex; }
  .hero h1 { font-size: 2.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}