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

:root {
  --bg:         #0d1117;
  --bg-surface: #161b22;
  --bg-card:    #1c2128;
  --bg-hover:   #21262d;
  --border:     #30363d;
  --text:       #e6edf3;
  --text-muted: #8b949e;
  --text-dim:   #6e7681;
  --lime:       #a3d977;
  --lime-dim:   #7cb342;
  --lime-glow:  rgba(163, 217, 119, 0.15);
  --teal:       #56d4c8;
  --red:        #f85149;
  --amber:      #d29922;
  --blue:       #58a6ff;
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --max-w:      1120px;
  --font:       -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
  --font-mono:  'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--lime); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--teal); }

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

/* ===== Layout ===== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section   { padding: 100px 0; }

/* ===== Navigation ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(13, 17, 23, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.25rem; font-weight: 700; color: var(--text);
}
.nav-brand span { font-size: 1.4rem; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  color: var(--text-muted); font-size: 0.9rem; font-weight: 500;
  transition: color 0.2s; letter-spacing: 0.01em;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-mobile-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.5rem; cursor: pointer; }

/* ===== Hero ===== */
.hero {
  padding: 160px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, var(--lime-glow) 0%, transparent 70%);
  pointer-events: none;
  animation: hero-glow 8s ease-in-out infinite alternate;
}
@keyframes hero-glow {
  0%   { opacity: 0.4; transform: translateX(-50%) scale(1); }
  100% { opacity: 0.7; transform: translateX(-50%) scale(1.2); }
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 99px;
  background: var(--bg-surface); border: 1px solid var(--border);
  font-size: 0.85rem; color: var(--text-muted); margin-bottom: 32px;
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  position: relative;
}
.hero h1 .highlight {
  background: linear-gradient(135deg, var(--lime) 0%, var(--teal) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-muted); max-width: 600px; margin: 0 auto 40px;
  line-height: 1.5;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius-md);
  font-size: 1rem; font-weight: 600;
  cursor: pointer; border: none;
  transition: all 0.2s ease;
}
.btn-primary {
  background: var(--lime); color: #111;
}
.btn-primary:hover { background: #b5e68a; color: #111; transform: translateY(-1px); box-shadow: 0 8px 30px var(--lime-glow); }
.btn-secondary {
  background: var(--bg-surface); color: var(--text); border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--bg-hover); border-color: var(--text-dim); transform: translateY(-1px); }

.hero-banner {
  margin: 60px auto 0; max-width: 580px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  position: relative;
}

/* ===== Trust bar ===== */
.trust-bar {
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}
.trust-items {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 40px;
}
.trust-item {
  display: flex; align-items: center; gap: 10px;
  color: var(--text-muted); font-size: 0.9rem; font-weight: 500;
}
.trust-icon {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  background: var(--bg-surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}

/* ===== Features ===== */
.features-header {
  text-align: center; margin-bottom: 64px;
}
.features-header .label {
  display: inline-block; font-size: 0.8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--lime); margin-bottom: 16px;
}
.features-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700; letter-spacing: -0.02em;
}

.feature-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center;
  margin-bottom: 96px;
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row.reverse .feature-visual { order: -1; }

.feature-text .feature-number {
  font-size: 0.8rem; font-weight: 700; color: var(--lime-dim);
  text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 12px;
}
.feature-text h3 {
  font-size: 1.8rem; font-weight: 700; margin-bottom: 16px;
  letter-spacing: -0.01em; line-height: 1.2;
}
.feature-text p {
  color: var(--text-muted); font-size: 1.05rem; line-height: 1.7;
  margin-bottom: 20px;
}
.feature-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.feature-tag {
  padding: 4px 12px; border-radius: 99px;
  font-size: 0.78rem; font-weight: 500;
  background: var(--bg-surface); border: 1px solid var(--border);
  color: var(--text-muted);
}

.feature-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
  border: 1px solid var(--border);
}

/* ===== How it works ===== */
.how-it-works {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.steps-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 32px; margin-top: 56px;
}
.step {
  text-align: center; padding: 32px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  position: relative;
}
.step:hover { border-color: var(--lime-dim); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.3); }
.step-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--lime-glow);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; font-size: 1.5rem;
}
.step h4 { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.step p  { color: var(--text-muted); font-size: 0.9rem; line-height: 1.5; }
.step-number {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--lime); color: #111;
  font-size: 0.75rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ===== Compatibility ===== */
.compat-grid {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 20px; margin-top: 48px;
}
.compat-card {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 24px; border-radius: var(--radius-md);
  background: var(--bg-surface); border: 1px solid var(--border);
  font-weight: 500; font-size: 1rem;
  transition: all 0.2s;
}
.compat-card:hover { border-color: var(--lime-dim); transform: translateY(-2px); }
.compat-icon { font-size: 1.5rem; }

/* ===== Privacy section ===== */
.privacy-highlights {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-top: 48px;
}
.privacy-card {
  padding: 32px; border-radius: var(--radius-md);
  background: var(--bg-surface); border: 1px solid var(--border);
  text-align: center;
  transition: all 0.3s;
}
.privacy-card:hover { border-color: var(--lime-dim); transform: translateY(-3px); }
.privacy-card-icon { font-size: 2rem; margin-bottom: 16px; }
.privacy-card h4 { font-size: 1.1rem; margin-bottom: 8px; font-weight: 600; }
.privacy-card p  { color: var(--text-muted); font-size: 0.9rem; line-height: 1.5; }

/* ===== Requirements ===== */
.req-box {
  max-width: 600px; margin: 48px auto 0;
  padding: 32px; border-radius: var(--radius-md);
  background: var(--bg-surface); border: 1px solid var(--border);
}
.req-item {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 0; font-size: 0.95rem;
}
.req-item + .req-item { border-top: 1px solid var(--border); }
.req-check { color: var(--lime); font-size: 1.1rem; }

/* ===== CTA section ===== */
.cta-section {
  text-align: center;
  position: relative;
}
.cta-section::before {
  content: '';
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(circle, var(--lime-glow) 0%, transparent 70%);
  pointer-events: none; opacity: 0.5;
}
.cta-section h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700; margin-bottom: 16px;
  letter-spacing: -0.02em; position: relative;
}
.cta-section p {
  color: var(--text-muted); font-size: 1.1rem;
  max-width: 500px; margin: 0 auto 32px;
}

/* ===== Footer ===== */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.footer-left { color: var(--text-dim); font-size: 0.85rem; }
.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a { color: var(--text-dim); font-size: 0.85rem; }
.footer-links a:hover { color: var(--text); }

/* ===== Scroll animations ===== */
.fade-in {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }

/* ===== Content page (privacy, support) ===== */
.page-content {
  padding: 140px 0 100px;
  min-height: calc(100vh - 160px);
}
.page-content h1 {
  font-size: 2.4rem; font-weight: 700; margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.page-content .page-subtitle {
  color: var(--text-muted); font-size: 1.1rem; margin-bottom: 48px;
}
.page-content h2 {
  font-size: 1.3rem; font-weight: 600; margin-top: 40px; margin-bottom: 12px;
  color: var(--text);
}
.page-content h3 {
  font-size: 1.1rem; font-weight: 600; margin-top: 32px; margin-bottom: 8px;
}
.page-content p, .page-content li {
  color: var(--text-muted); font-size: 1rem; line-height: 1.7;
  margin-bottom: 12px;
}
.page-content ul { padding-left: 20px; margin-bottom: 16px; }
.page-content code {
  padding: 2px 8px; border-radius: 4px;
  background: var(--bg-surface); border: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 0.88rem;
}
.page-content .highlight-box {
  padding: 24px; border-radius: var(--radius-md);
  background: var(--bg-surface); border: 1px solid var(--border);
  margin: 24px 0; border-left: 3px solid var(--lime);
}
.page-content .highlight-box p { margin-bottom: 0; }

/* Support page specific */
.support-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 24px; margin-top: 40px;
}
.support-card {
  padding: 32px; border-radius: var(--radius-md);
  background: var(--bg-surface); border: 1px solid var(--border);
  transition: all 0.3s;
}
.support-card:hover { border-color: var(--lime-dim); transform: translateY(-3px); }
.support-card-icon { font-size: 2rem; margin-bottom: 16px; }
.support-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.support-card p  { color: var(--text-muted); font-size: 0.9rem; line-height: 1.5; margin-bottom: 0; }
.support-card a  { display: inline-block; margin-top: 12px; font-weight: 500; font-size: 0.9rem; }

.faq-list { margin-top: 40px; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius-md);
  margin-bottom: 12px; overflow: hidden;
  background: var(--bg-surface);
}
.faq-question {
  width: 100%; padding: 20px 24px;
  background: none; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--text); font-size: 1rem; font-weight: 500;
  font-family: var(--font); text-align: left;
}
.faq-question:hover { background: var(--bg-hover); }
.faq-arrow { transition: transform 0.3s; font-size: 0.8rem; color: var(--text-muted); }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-answer-inner { padding: 0 24px 20px; color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .feature-row { grid-template-columns: 1fr; gap: 32px; }
  .feature-row.reverse .feature-visual { order: 0; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .privacy-highlights { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero { padding: 120px 0 64px; }
  .steps-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 16px 24px; gap: 16px;
  }
  .nav-mobile-toggle { display: block; }
  .trust-items { gap: 20px; }
  .compat-grid { gap: 12px; }
  .compat-card { padding: 12px 16px; font-size: 0.9rem; }
  .footer-inner { flex-direction: column; text-align: center; }
}
