/* === Custom Properties === */
:root {
  --color-primary: #2D3436;
  --color-secondary: #00B894;
  --color-secondary-dark: #009B7D;
  --color-accent: #FDCB6E;
  --color-bg: #FFFFFF;
  --color-surface: #F7F8F9;
  --color-surface-warm: #FAF9F7;
  --color-text: #2D3436;
  --color-text-secondary: #636E72;
  --color-border: rgba(45, 52, 54, 0.08);

  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;

  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4.5rem;
  --spacing-2xl: 6.5rem;

  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 2px rgba(45, 52, 54, 0.04);
  --shadow: 0 1px 3px rgba(45, 52, 54, 0.06), 0 6px 16px rgba(45, 52, 54, 0.04);
  --shadow-lg: 0 4px 12px rgba(45, 52, 54, 0.06), 0 16px 40px rgba(45, 52, 54, 0.06);
  --max-width: 1140px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

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

a:hover { color: var(--color-secondary-dark); }

ul, ol { list-style: none; }

/* === Typography === */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.12;
  color: var(--color-primary);
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

h1 em {
  font-style: normal;
  color: var(--color-secondary);
}

h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }

h3 { font-size: 1.125rem; letter-spacing: -0.01em; }

p { margin-bottom: 1rem; }

/* === Layout === */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

section { padding: var(--spacing-xl) 0; }

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

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.section-header h2 { margin-bottom: 0.5rem; }

.section-header p {
  color: var(--color-text-secondary);
  font-size: 1.0625rem;
  max-width: 520px;
  margin: 0 auto;
}

/* === Header & Navigation === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
  padding: 0.75rem 0;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--color-primary);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--color-secondary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
  font-weight: 700;
}

.nav-links {
  display: none;
  gap: var(--spacing-md);
}

.nav-links a {
  color: var(--color-text-secondary);
  font-weight: 600;
  font-size: 0.875rem;
  transition: color var(--transition);
  position: relative;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-secondary);
  border-radius: 1px;
  transition: width var(--transition);
}

.nav-links a:hover::after { width: 100%; }

.nav-cta { display: none; }

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

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-open .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .hamburger span:nth-child(2) { opacity: 0; }
.nav-open .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--color-bg);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
}

.mobile-nav.active { display: flex; }

.mobile-nav a {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

.mobile-nav a:hover { color: var(--color-secondary); }

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.625rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  letter-spacing: 0.005em;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--color-secondary);
  color: white;
  box-shadow: 0 2px 8px rgba(0, 184, 148, 0.2), 0 1px 2px rgba(0, 184, 148, 0.1);
}

.btn-primary:hover {
  background: var(--color-secondary-dark);
  color: white;
  box-shadow: 0 4px 16px rgba(0, 184, 148, 0.3), 0 2px 4px rgba(0, 184, 148, 0.15);
}

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

.btn-secondary:hover {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
  background: rgba(0, 184, 148, 0.03);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* === Hero === */
.hero {
  padding: var(--spacing-xl) 0 var(--spacing-lg);
  background: var(--color-surface-warm);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse 600px 400px at 10% 80%, rgba(0, 184, 148, 0.04) 0%, transparent 100%),
    radial-gradient(ellipse 500px 300px at 90% 20%, rgba(253, 203, 110, 0.05) 0%, transparent 100%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 540px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.875rem;
  background: rgba(0, 184, 148, 0.08);
  border: 1px solid rgba(0, 184, 148, 0.15);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-secondary-dark);
  margin-bottom: 1.25rem;
  letter-spacing: 0.01em;
}

.hero h1 { margin-bottom: 1rem; }

.hero .subheadline {
  font-size: 1.0625rem;
  color: var(--color-text-secondary);
  margin-bottom: 1.75rem;
  max-width: 480px;
  line-height: 1.7;
}

.hero .btn-group { margin-bottom: 1.75rem; }

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--color-text-secondary);
  font-weight: 500;
}

.trust-badge::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--color-secondary);
  border-radius: 50%;
  flex-shrink: 0;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-visual img {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

/* === Feature Cards === */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.feature-card {
  background: var(--color-bg);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  border-color: rgba(0, 184, 148, 0.2);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 40px;
  height: 40px;
  background: rgba(0, 184, 148, 0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.875rem;
  color: var(--color-secondary);
  font-size: 1.125rem;
}

.feature-card h3 { margin-bottom: 0.25rem; }

.feature-card p {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0;
  line-height: 1.6;
}

/* === How It Works === */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: 640px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.25rem 0;
  position: relative;
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 18px;
  top: calc(1.25rem + 38px);
  bottom: 0;
  width: 2px;
  background: rgba(0, 184, 148, 0.15);
}

.step-number {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  background: var(--color-primary);
  color: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.875rem;
  position: relative;
  z-index: 1;
}

.step:first-child .step-number { background: var(--color-secondary); }

.step-content h3 { margin-bottom: 0.2rem; }

.step-content p {
  color: var(--color-text-secondary);
  margin-bottom: 0;
  font-size: 0.9375rem;
}

/* === Terms Block === */
.terms {
  background: var(--color-primary);
  color: white;
  padding: var(--spacing-xl) 0;
  position: relative;
  overflow: hidden;
}

.terms::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse 500px 300px at 0% 0%, rgba(0, 184, 148, 0.08) 0%, transparent 100%),
    radial-gradient(ellipse 400px 200px at 100% 100%, rgba(253, 203, 110, 0.05) 0%, transparent 100%);
  pointer-events: none;
}

.terms .container { position: relative; z-index: 1; }
.terms h2 { color: white; }

.terms-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: var(--spacing-md);
}

.terms-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
}

.terms-list li::before {
  content: "\2713";
  color: var(--color-secondary);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

/* === Add-ons Grid === */
.addons-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.625rem;
}

.addon-card {
  background: var(--color-bg);
  padding: 0.875rem 1.125rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all var(--transition);
  font-size: 0.9rem;
}

.addon-card:hover {
  border-color: rgba(0, 184, 148, 0.25);
  background: rgba(0, 184, 148, 0.02);
}

.addon-icon {
  color: var(--color-secondary);
  font-size: 1rem;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

/* === SEO & Branding Sections === */
#seo, #branding { border-top: 1px solid var(--color-border); }

.split-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
  align-items: center;
}

.split-section .content h2 {
  margin-bottom: 0.875rem;
  max-width: 480px;
}

.split-section .content p {
  color: var(--color-text-secondary);
  line-height: 1.7;
  max-width: 560px;
}

/* === FAQ Accordion === */
.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

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

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
  transition: color var(--transition);
}

.faq-item summary:hover { color: var(--color-secondary); }
.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--color-secondary);
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: 1rem;
  width: 1.5rem;
  text-align: center;
}

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

.faq-answer {
  padding: 0 0 1rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  font-size: 0.9375rem;
}

.faq-answer p { margin-bottom: 0; }

/* === Final CTA === */
.final-cta {
  background: var(--color-primary);
  color: white;
  text-align: center;
  padding: var(--spacing-2xl) 0;
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse 600px 400px at 50% 0%, rgba(0, 184, 148, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.final-cta .container { position: relative; z-index: 1; }
.final-cta h2 { color: white; margin-bottom: 0.625rem; }

.final-cta p {
  color: rgba(255, 255, 255, 0.65);
  max-width: 440px;
  margin: 0 auto var(--spacing-md);
  font-size: 1rem;
}

.final-cta .btn-primary {
  padding: 0.875rem 2.25rem;
  font-size: 1rem;
}

/* === Footer === */
.site-footer {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.55);
  padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.footer-brand .logo { color: white; margin-bottom: 0.875rem; }
.footer-brand .logo-icon { box-shadow: none; }

.footer-brand p {
  font-size: 0.8125rem;
  line-height: 1.65;
  max-width: 320px;
}

.footer-links h4 {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.875rem;
}

.footer-links a {
  display: block;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8125rem;
  margin-bottom: 0.5rem;
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--color-secondary); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: var(--spacing-md);
  font-size: 0.75rem;
  text-align: center;
}

.footer-bottom a { color: rgba(255, 255, 255, 0.55); }
.footer-bottom a:hover { color: var(--color-secondary); }

/* === Scroll Reveal === */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active { opacity: 1; transform: translateY(0); }

.features-grid .reveal:nth-child(2) { transition-delay: 0.06s; }
.features-grid .reveal:nth-child(3) { transition-delay: 0.12s; }
.features-grid .reveal:nth-child(4) { transition-delay: 0.18s; }
.features-grid .reveal:nth-child(5) { transition-delay: 0.24s; }
.features-grid .reveal:nth-child(6) { transition-delay: 0.3s; }

.steps .reveal:nth-child(2) { transition-delay: 0.08s; }
.steps .reveal:nth-child(3) { transition-delay: 0.16s; }
.steps .reveal:nth-child(4) { transition-delay: 0.24s; }
.steps .reveal:nth-child(5) { transition-delay: 0.32s; }

.addons-grid .reveal:nth-child(2) { transition-delay: 0.04s; }
.addons-grid .reveal:nth-child(3) { transition-delay: 0.08s; }
.addons-grid .reveal:nth-child(4) { transition-delay: 0.12s; }
.addons-grid .reveal:nth-child(5) { transition-delay: 0.16s; }
.addons-grid .reveal:nth-child(6) { transition-delay: 0.2s; }
.addons-grid .reveal:nth-child(7) { transition-delay: 0.24s; }
.addons-grid .reveal:nth-child(8) { transition-delay: 0.28s; }

/* === Media Queries === */

@media (min-width: 768px) {
  .container { padding: 0 var(--spacing-md); }
  section { padding: var(--spacing-xl) 0; }

  .hero { padding: var(--spacing-2xl) 0 var(--spacing-xl); }

  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
  }

  .hero-visual img { max-width: 560px; }

  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .addons-grid { grid-template-columns: repeat(2, 1fr); }
  .terms-list { grid-template-columns: repeat(2, 1fr); }
  .split-section { grid-template-columns: 1fr 1fr; }
  .footer-content { grid-template-columns: 2fr 1fr 1fr; }
}

@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-block; }
  .hamburger { display: none; }

  .hero-grid { gap: var(--spacing-lg); }
  .hero-content { max-width: 500px; }

  .features-grid { grid-template-columns: repeat(3, 1fr); }
  .addons-grid { grid-template-columns: repeat(4, 1fr); }
  .steps { max-width: 700px; }
}
