:root {
  --bg: #0f1114;
  --surface: #1a1d22;
  --surface-hover: #22262d;
  --text: #e8eaed;
  --muted: #9aa0a6;
  --accent: #c8cdd4;
  --border: rgba(200, 205, 212, 0.1);
  --font-display: "Cinzel", Georgia, serif;
  --max-w: 1100px;
  --section-pad: clamp(3rem, 8vw, 6rem);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(15, 17, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo:hover { text-decoration: none; }
.logo img { height: 28px; width: auto; display: block; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.nav-cta:hover {
  background: var(--surface-hover);
  border-color: rgba(200, 205, 212, 0.2);
  text-decoration: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

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

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 4px 20px rgba(200, 205, 212, 0.2);
}

.btn-primary:hover {
  box-shadow: 0 6px 28px rgba(200, 205, 212, 0.3);
}

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

.btn-secondary:hover {
  background: var(--surface);
  border-color: rgba(200, 205, 212, 0.25);
}

/* Hero */
.hero {
  padding-top: calc(64px + var(--section-pad));
  padding-bottom: var(--section-pad);
  min-height: 90vh;
  display: flex;
  align-items: center;
}

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

.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero-tagline {
  font-size: 1.25rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.hero-sub {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Sections */
section {
  padding: var(--section-pad) 0;
}

.section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 2.5rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: rgba(200, 205, 212, 0.18);
  transform: translateY(-2px);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(200, 205, 212, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Split tunnel diagram */
.split-diagram {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5rem;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
}

.split-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
}

.split-box h3 {
  font-size: 0.875rem;
  color: var(--accent);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.split-list li {
  padding: 0.5rem 0;
  color: var(--muted);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}

.split-list li:last-child { border-bottom: none; }

.split-arrow {
  font-size: 1.5rem;
  color: var(--muted);
  text-align: center;
}

.split-direct .split-list li::before { content: "→ "; color: #6b9; }
.split-tunnel .split-list li::before { content: "⇢ "; color: var(--accent); }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.step {
  text-align: center;
  padding: 1.5rem 1rem;
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 auto 1rem;
}

.step h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.875rem;
  color: var(--muted);
}

/* IP demo */
.ip-demo {
  max-width: 480px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
}

.ip-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.ip-toggle-label {
  font-size: 0.875rem;
  color: var(--muted);
}

.ip-toggle {
  position: relative;
  width: 56px;
  height: 30px;
  background: #2a2e35;
  border-radius: 15px;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

.ip-toggle[aria-checked="true"] {
  background: rgba(200, 205, 212, 0.25);
}

.ip-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  background: var(--accent);
  border-radius: 50%;
  transition: transform 0.3s;
}

.ip-toggle[aria-checked="true"] .ip-toggle-thumb {
  transform: translateX(26px);
}

.ip-flag {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  transition: transform 0.3s;
}

.ip-address {
  font-family: ui-monospace, monospace;
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.ip-country {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.ip-status {
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  background: rgba(200, 205, 212, 0.08);
  color: var(--muted);
  display: inline-block;
  transition: color 0.3s, background 0.3s;
}

.ip-demo.vpn-on .ip-status {
  background: rgba(107, 153, 136, 0.15);
  color: #8bc4a8;
}

/* Pricing soon */
.pricing-soon {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(135deg, var(--surface) 0%, #151820 100%);
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 2.5rem 2rem;
}

.pricing-soon h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.pricing-soon p {
  color: var(--muted);
  font-size: 0.95rem;
}

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

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

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.faq-question:hover { color: var(--accent); }

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--muted);
  transition: transform 0.3s;
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer-inner {
  padding: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item.open .faq-answer { max-height: 300px; }

/* Download */
.download-section {
  text-align: center;
  background: linear-gradient(180deg, transparent 0%, rgba(26, 29, 34, 0.5) 100%);
  border-top: 1px solid var(--border);
}

.download-btn {
  font-size: 1.125rem;
  padding: 1rem 2rem;
  margin-bottom: 0.75rem;
}

.download-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.store-badge-wrap {
  position: relative;
  opacity: 0.5;
  pointer-events: none;
}

.store-badge-wrap img {
  height: 48px;
  width: auto;
  display: block;
}

.store-badge-soon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 17, 20, 0.6);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Footer */
.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--muted);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }

  .phone-wrap { order: -1; padding-top: 0; }

  .split-diagram {
    grid-template-columns: 1fr;
  }

  .split-arrow { transform: rotate(90deg); }

  .steps {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
  .feature-card:hover { transform: none; }
}
