/* ══════════════════════════════════════════════════════════════════════
   3letter VPN — Main Stylesheet
   Design: Dark theme, glassmorphic cards, gradient accents
   Fonts: Space Grotesk (headings) + Inter (body)
   ══════════════════════════════════════════════════════════════════════ */

/* ── Custom Properties ───────────────────────────────────────────────── */
:root {
  --bg: #0a0a1a;
  --bg-card: #12122a;
  --bg-card-alt: #181838;
  --bg-input: #0e0e22;
  --border: #252550;
  --border-hover: #667eea;

  --primary: #667eea;
  --primary-light: #8b9cf7;
  --secondary: #764ba2;
  --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

  --text: #c8c8e0;
  --text-bright: #eeeeff;
  --text-muted: #6e6e94;

  --success: #22c55e;
  --error: #ef4444;
  --warning: #f59e0b;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(102, 126, 234, 0.12);

  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --transition: 200ms ease;
  --transition-slow: 400ms ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

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

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

a:hover {
  color: var(--text-bright);
}

ul, ol {
  list-style: none;
}

/* ── Typography ──────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-bright);
  line-height: 1.2;
  font-weight: 600;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0.75rem auto 0;
  text-align: center;
}

/* ── Layout ──────────────────────────────────────────────────────────── */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.4;
}

.btn:focus-visible {
  outline: 2px solid var(--primary-light);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 2px 12px rgba(102, 126, 234, 0.25);
}

.btn-primary:hover {
  opacity: 0.92;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.35);
  color: #fff;
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-outline {
  background: transparent;
  color: var(--primary-light);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: rgba(102, 126, 234, 0.08);
  color: var(--text-bright);
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1.1rem;
  border-radius: var(--radius-md);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ── Header / Nav ────────────────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 26, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(37, 37, 80, 0.5);
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: -0.02em;
}

.logo:hover { color: var(--text-bright); }

.logo span {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition);
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  padding: 0.25rem;
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 160px 0 100px;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.12) 0%, transparent 70%);
  top: -250px;
  right: -150px;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(118, 75, 162, 0.1) 0%, transparent 70%);
  bottom: -150px;
  left: -100px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

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

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.hero-cta {
  margin-bottom: 3rem;
}

/* Feature pills in hero */
.hero-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(102, 126, 234, 0.08);
  border: 1px solid rgba(102, 126, 234, 0.2);
  border-radius: 100px;
  font-size: 0.9rem;
  color: var(--text);
}

.hero-pill svg {
  width: 18px;
  height: 18px;
  color: var(--primary-light);
  flex-shrink: 0;
}

/* ── Pricing ─────────────────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.pricing-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
}

.pricing-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.pricing-card.selected {
  border-color: var(--primary);
  background: linear-gradient(180deg, rgba(102, 126, 234, 0.06) 0%, var(--bg-card) 100%);
  box-shadow: var(--shadow-glow);
}

.pricing-card.popular {
  border-color: var(--secondary);
}

.pricing-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: #fff;
  padding: 4px 16px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.pricing-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--text-bright);
  margin-bottom: 1rem;
  font-weight: 500;
}

.pricing-price {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--text-bright);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.pricing-price .currency {
  font-size: 1.5rem;
  font-weight: 500;
  opacity: 0.7;
  margin-left: 2px;
}

.pricing-per-month {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.pricing-savings {
  color: var(--success);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
  min-height: 1.2em;
}

.pricing-card .btn {
  width: 100%;
}

/* ── Payment Form ────────────────────────────────────────────────────── */
.payment-section {
  max-width: 480px;
  margin: 0 auto;
}

.payment-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.payment-card h3 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-bright);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.form-input::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-bright);
  font-family: var(--font-body);
  font-size: 1rem;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236e6e94' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 6 3.5 4 3.5-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 2.5rem;
}

.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.form-select option {
  background: var(--bg-card);
  color: var(--text-bright);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-group a {
  color: var(--primary-light);
}

.checkbox-group a:hover {
  text-decoration: underline;
}

/* Plan summary above the button */
.plan-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(102, 126, 234, 0.06);
  border: 1px solid rgba(102, 126, 234, 0.15);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
}

.plan-summary-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.plan-summary-value {
  font-weight: 600;
  color: var(--text-bright);
}

/* ── Promo Section ───────────────────────────────────────────────────── */
.promo-toggle-wrap {
  text-align: center;
  margin-top: 1.5rem;
}

.promo-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.95rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition);
}

.promo-toggle-btn:hover {
  color: var(--primary-light);
}

.promo-toggle-btn svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition);
}

.promo-toggle-btn.open svg {
  transform: rotate(180deg);
}

.promo-form-wrap {
  max-width: 480px;
  margin: 1rem auto 0;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height var(--transition-slow), opacity var(--transition-slow), margin var(--transition-slow);
}

.promo-form-wrap.visible {
  max-height: 400px;
  opacity: 1;
  margin-top: 1.5rem;
}

.promo-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
}

.promo-card h3 {
  text-align: center;
  margin-bottom: 1.25rem;
  font-size: 1.15rem;
}

.promo-input-row {
  display: flex;
  gap: 0.75rem;
}

.promo-input-row .form-group {
  flex: 1;
}

/* ── Alert messages ──────────────────────────────────────────────────── */
.alert {
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.alert svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #fca5a5;
}

.alert-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: #86efac;
}

/* ── Steps / How it Works ────────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: calc(16.67% + 24px);
  right: calc(16.67% + 24px);
  height: 2px;
  background: var(--border);
}

.step-card {
  text-align: center;
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  position: relative;
  z-index: 1;
}

.step-card h3 {
  margin-bottom: 0.5rem;
}

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

/* ── Apps Section ────────────────────────────────────────────────────── */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: border-color var(--transition);
}

.app-card:hover {
  border-color: rgba(102, 126, 234, 0.4);
}

.app-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(102, 126, 234, 0.1);
  color: var(--primary-light);
}

.app-icon svg {
  width: 24px;
  height: 24px;
}

.app-card h3 {
  margin-bottom: 0.4rem;
}

.app-card .app-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

.app-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.app-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  background: rgba(102, 126, 234, 0.08);
  border: 1px solid rgba(102, 126, 234, 0.2);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--primary-light);
  transition: all var(--transition);
}

.app-link:hover {
  background: rgba(102, 126, 234, 0.15);
  color: var(--text-bright);
}

.app-link svg {
  width: 14px;
  height: 14px;
}

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

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

.footer-left {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-left a {
  color: var(--text-muted);
  font-weight: 500;
}

.footer-left a:hover {
  color: var(--primary-light);
}

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

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

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

/* ── Centered Card Page (success, renew, promo_success) ──────────────── */
.page-centered {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.page-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  max-width: 540px;
  width: 100%;
  text-align: center;
}

.page-card-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.page-card-icon.success {
  background: rgba(34, 197, 94, 0.12);
  color: var(--success);
}

.page-card-icon svg {
  width: 36px;
  height: 36px;
}

.page-card h1 {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

.page-card p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.page-card .steps-list {
  text-align: left;
  margin: 1.5rem 0;
}

.page-card .steps-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 0;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.5;
}

.page-card .steps-list li .step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.page-card .btn {
  margin-top: 1rem;
}

/* ── Key Reveal (blurred subscription URL on promo success) ──────────── */
.key-reveal-block {
  margin: 1.5rem 0;
  text-align: center;
}

.key-reveal-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.key-reveal-label svg {
  width: 16px;
  height: 16px;
  color: var(--primary-light);
}

.key-reveal-container {
  position: relative;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  cursor: pointer;
  overflow: hidden;
  transition: border-color var(--transition);
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.key-reveal-container:hover {
  border-color: var(--primary);
}

.key-reveal-container:focus-visible {
  outline: 2px solid var(--primary-light);
  outline-offset: 2px;
}

.key-reveal-value {
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.82rem;
  color: var(--primary-light);
  word-break: break-all;
  line-height: 1.6;
  filter: blur(8px);
  user-select: none;
  transition: filter 0.4s ease, user-select 0s;
}

.key-reveal-container.revealed .key-reveal-value {
  filter: blur(0);
  user-select: text;
}

.key-reveal-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  z-index: 2;
  background: rgba(14, 14, 34, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border-radius: var(--radius-md);
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.key-reveal-overlay svg {
  width: 28px;
  height: 28px;
  color: var(--primary-light);
  opacity: 0.9;
}

.key-reveal-overlay span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  opacity: 0.85;
}

.key-reveal-container.revealed .key-reveal-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.key-copy-btn {
  margin-top: 0.75rem;
  gap: 0.4rem;
}

.key-copy-btn.copied {
  border-color: var(--success);
  color: var(--success);
}

/* ── Renewal Page ────────────────────────────────────────────────────── */
.renew-status {
  background: var(--bg-card-alt);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  text-align: center;
}

.renew-status .label {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.2rem;
}

.renew-status .value {
  font-weight: 600;
  font-size: 1.05rem;
}

.status-active { color: var(--success); }
.status-expired { color: var(--error); }

.renew-card {
  max-width: 480px;
  width: 100%;
}

.renew-card h1 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

/* ── Animations ──────────────────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ── Reduced Motion ──────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .fade-in {
    opacity: 1;
    transform: none;
  }
}

/* ══════════════════════════════════════════════════════════════════════
   Guide Page
   ══════════════════════════════════════════════════════════════════════ */

/* ── Guide Hero ──────────────────────────────────────────────────────── */
.guide-hero {
  position: relative;
  overflow: hidden;
  padding: 140px 0 60px;
  text-align: center;
}

.guide-hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  pointer-events: none;
}

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

.guide-hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Guide Layout ────────────────────────────────────────────────────── */
.guide-section {
  padding-top: 40px;
}

.guide-container {
  max-width: 800px;
}

/* ── Platform Tabs ───────────────────────────────────────────────────── */
.guide-tabs {
  display: flex;
  gap: 0.5rem;
  padding: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
}

.guide-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.guide-tab svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.guide-tab:hover {
  color: var(--text);
  background: rgba(102, 126, 234, 0.06);
}

.guide-tab.active {
  color: #fff;
  background: var(--gradient);
  box-shadow: 0 2px 12px rgba(102, 126, 234, 0.25);
}

/* ── Tab Panels ──────────────────────────────────────────────────────── */
.guide-panel {
  display: none;
}

.guide-panel.active {
  display: block;
}

/* ── App Block ───────────────────────────────────────────────────────── */
.guide-app-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  margin-bottom: 1.25rem;
}

.guide-app-block:last-child {
  margin-bottom: 0;
}

.guide-app-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.guide-app-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(102, 126, 234, 0.1);
  color: var(--primary-light);
  flex-shrink: 0;
}

.guide-app-icon svg {
  width: 24px;
  height: 24px;
}

.guide-app-header h3 {
  margin: 0;
  font-size: 1.2rem;
}

.guide-app-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* ── Badge ────────────────────────────────────────────────────────────── */
.guide-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  vertical-align: middle;
}

.guide-badge-recommended {
  background: rgba(34, 197, 94, 0.12);
  color: var(--success);
  border: 1px solid rgba(34, 197, 94, 0.25);
}

/* ── Download Buttons ────────────────────────────────────────────────── */
.guide-download-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.guide-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: var(--gradient);
  color: #fff;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
}

.guide-download-btn:hover {
  opacity: 0.9;
  color: #fff;
  box-shadow: 0 2px 12px rgba(102, 126, 234, 0.3);
}

.guide-download-btn svg {
  width: 16px;
  height: 16px;
}

.guide-download-btn-alt {
  background: transparent;
  color: var(--primary-light);
  border: 1px solid var(--border);
}

.guide-download-btn-alt:hover {
  opacity: 1;
  border-color: var(--primary);
  background: rgba(102, 126, 234, 0.08);
  color: var(--text-bright);
}

/* ── Step List ────────────────────────────────────────────────────────── */
.guide-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: none;
}

.guide-steps li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.65rem 0;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.6;
  border-top: 1px solid rgba(37, 37, 80, 0.4);
}

.guide-steps li:first-child {
  border-top: none;
}

.guide-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(102, 126, 234, 0.12);
  color: var(--primary-light);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  font-family: var(--font-heading);
}

.guide-steps kbd {
  display: inline-block;
  padding: 1px 7px;
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.85em;
  color: var(--text-bright);
}

.guide-steps code {
  padding: 1px 6px;
  background: var(--bg-card-alt);
  border-radius: 4px;
  font-size: 0.88em;
  color: var(--primary-light);
}

/* ── Info Card (Split Tunneling) ─────────────────────────────────────── */
.guide-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.guide-info-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(102, 126, 234, 0.1);
  color: var(--primary-light);
  margin-bottom: 1.25rem;
}

.guide-info-icon svg {
  width: 28px;
  height: 28px;
}

.guide-info-card h2 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.guide-info-desc {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.guide-info-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.guide-info-col {
  background: var(--bg-card-alt);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.guide-info-col h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.guide-info-col h4 svg {
  width: 18px;
  height: 18px;
  color: var(--primary-light);
  flex-shrink: 0;
}

.guide-info-col p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.guide-info-tip {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 1rem 1.25rem;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.6;
}

.guide-info-tip svg {
  width: 18px;
  height: 18px;
  color: var(--warning);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── FAQ Accordion ───────────────────────────────────────────────────── */
.guide-faq {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.guide-faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition);
}

.guide-faq-item[open] {
  border-color: rgba(102, 126, 234, 0.3);
}

.guide-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  font-weight: 600;
  color: var(--text-bright);
  cursor: pointer;
  list-style: none;
  transition: background var(--transition);
}

.guide-faq-item summary::-webkit-details-marker {
  display: none;
}

.guide-faq-item summary::marker {
  content: '';
}

.guide-faq-item summary:hover {
  background: rgba(102, 126, 234, 0.04);
}

.guide-faq-item summary svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform var(--transition);
}

.guide-faq-item[open] summary svg {
  transform: rotate(180deg);
}

.guide-faq-answer {
  padding: 0 1.25rem 1.25rem;
  color: var(--text);
  font-size: 0.93rem;
  line-height: 1.7;
}

.guide-faq-answer p {
  margin-bottom: 0.5rem;
}

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

.guide-faq-answer ol {
  list-style: decimal;
  padding-left: 1.25rem;
}

.guide-faq-answer ol li {
  margin-bottom: 0.35rem;
  padding-left: 0.25rem;
}

/* ── Responsive: Tablet ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 26, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 1rem 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    gap: 0.5rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.6rem 0;
    font-size: 1.05rem;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    padding: 120px 0 60px;
  }

  .section {
    padding: 56px 0;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }

  .pricing-card.popular {
    order: -1;
  }

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

  .steps-grid::before {
    display: none;
  }

  .apps-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-features {
    gap: 0.6rem;
  }

  .guide-hero {
    padding: 110px 0 40px;
  }

  .guide-tabs {
    gap: 0.25rem;
    padding: 4px;
  }

  .guide-tab {
    padding: 0.6rem 0.5rem;
    font-size: 0.85rem;
    gap: 0.35rem;
  }

  .guide-tab svg {
    width: 18px;
    height: 18px;
  }

  .guide-app-block {
    padding: 1.25rem 1.25rem;
  }

  .guide-info-columns {
    grid-template-columns: 1fr;
  }

  .promo-input-row {
    flex-direction: column;
    gap: 0;
  }

  .page-card {
    padding: 2rem 1.5rem;
  }
}

/* ── Responsive: Small Mobile ────────────────────────────────────────── */
@media (max-width: 480px) {
  .hero {
    padding: 110px 0 48px;
  }

  .hero-pill {
    font-size: 0.82rem;
    padding: 0.4rem 0.75rem;
  }

  .pricing-price {
    font-size: 2.25rem;
  }

  .payment-card,
  .promo-card {
    padding: 1.5rem 1.25rem;
  }

  .page-card {
    padding: 1.5rem 1rem;
    border-radius: var(--radius-lg);
  }

  .page-card-icon {
    width: 56px;
    height: 56px;
  }

  .page-card-icon svg {
    width: 28px;
    height: 28px;
  }

  .guide-tab span.guide-tab-label-full {
    display: none;
  }

  .guide-info-card {
    padding: 1.5rem 1.25rem;
  }

  .guide-info-card h2 {
    font-size: 1.15rem;
  }
}
