/* ============================================================
   FractalDNS — Unified Stylesheet
   ============================================================ */

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  /* Brand */
  --accent:       #3b82f6;
  --accent-light: #60a5fa;
  --accent-glow:  rgba(59, 130, 246, 0.25);

  /* Surfaces */
  --bg-base:    #0b0f1a;
  --bg-card:    #1c2230;
  --surface:    #111827;
  --surface2:   #1e293b;

  /* Text */
  --text-primary: #e2e8f0;
  --text-muted:   #94a3b8;

  /* Borders */
  --border: rgba(255, 255, 255, 0.08);

  /* Radii */
  --radius:    12px;
  --radius-lg: 20px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

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

/* ── Layout ────────────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 96px 0; }

/* ── Navigation (index.html) ───────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 26, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo img  { height: 36px; }
.nav-logo span { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }

/* ── Navigation (policy pages — Bootstrap override) ────────── */
.navbar {
  background: rgba(11, 15, 26, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
}

.navbar-brand img { height: 28px; }

.nav-link {
  color: var(--text-muted) !important;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
  padding: 0.4rem 0.9rem !important;
}
.nav-link:hover { color: var(--text-primary) !important; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s, transform 0.15s;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-primary { background: var(--accent); color: #fff; }
.btn-outline  { background: transparent; color: var(--accent-light); border: 1.5px solid var(--accent); }
.btn-sm  { font-size: 14px; padding: 8px 18px; }
.btn-lg  { font-size: 16px; padding: 13px 32px; }

/* ── Section Labels ────────────────────────────────────────── */
.section-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 12px;
  text-align: center;
}

h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-title {
  text-align: center;
}

.section-desc {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 56px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ── Hero Logo Lockup ──────────────────────────────────────── */
.hero-logo-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.hero-logo-lockup img {
  height: 56px;
  filter: drop-shadow(0 0 18px rgba(59, 130, 246, 0.45));
}

.hero-logo-lockup span {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

/* ── Hero ──────────────────────────────────────────────────── */
#hero {
  padding: 120px 0 96px;
  text-align: center;
  background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(59, 130, 246, 0.18), transparent);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: var(--accent-light);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 5px 14px;
  margin-bottom: 24px;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-light);
  flex-shrink: 0;
}

#hero h1 {
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

#hero h1 span { color: var(--accent-light); }

#hero .hero-sub {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 72px;
}

/* Phone mockups */
.hero-phones {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: flex-end;
  flex-wrap: wrap;
}

.hero-phone {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s;
}
.hero-phone:hover { transform: translateY(-8px); border-color: rgba(59, 130, 246, 0.45); }

.hero-phone.main { width: 220px; aspect-ratio: 9/19.5; }
.hero-phone.side { width: 180px; aspect-ratio: 9/19.5; opacity: 0.75; }

.hero-phone .ph-icon  { font-size: 32px; }
.hero-phone .ph-label { font-size: 11px; color: var(--text-muted); letter-spacing: 0.04em; }

/* ── How It Works ──────────────────────────────────────────── */
#how { background: var(--surface); }

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

.step {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 0.2s, transform 0.2s;
  text-align: center;
}
.step:hover { border-color: rgba(59, 130, 246, 0.45); transform: translateY(-4px); }

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-glow);
  border: 1.5px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-light);
  margin: 0 auto 20px;
}

.step h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.step p  { font-size: 15px; color: var(--text-muted); }

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  transition: border-color 0.2s, transform 0.2s;
  text-align: center;
}
.feature-card:hover { border-color: var(--accent); transform: translateY(-4px); }

.feature-icon { font-size: 32px; margin-bottom: 16px; }
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature-card p  { font-size: 15px; color: var(--text-muted); }

/* ── Security Levels ───────────────────────────────────────── */
#levels { background: var(--surface); }

.levels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.level-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  transition: border-color 0.2s, transform 0.2s;
  text-align: center;
}
.level-card:hover    { border-color: rgba(59, 130, 246, 0.4); transform: translateY(-3px); }
.level-card.free     { border-color: rgba(59, 130, 246, 0.4); }

.level-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.level-card p  { font-size: 14px; color: var(--text-muted); }

/* Badges */
.level-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.level-badge.valign-middle { vertical-align: middle; }

.badge-free { background: rgba(59, 130, 246, 0.2);   color: var(--accent-light); }
.badge-pro  { background: rgba(251, 191, 36, 0.15);  color: #fbbf24; }

/* Add-ons */
.addons-divider {
  margin: 56px 0 32px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.addons-divider h3 { font-size: 18px; font-weight: 700; white-space: nowrap; }
.addons-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.addons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.addon-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  transition: border-color 0.2s, transform 0.2s;
  text-align: center;
}
.addon-card:hover { border-color: rgba(251, 191, 36, 0.35); transform: translateY(-3px); }

.addon-icon   { font-size: 26px; margin-bottom: 12px; }
.addon-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.addon-card p  { font-size: 14px; color: var(--text-muted); }

/* ── Google Play Badge ─────────────────────────────────────── */
.nav-play-badge img {
  height: 36px;
  display: block;
  transition: opacity 0.15s, transform 0.15s;
}
.nav-play-badge:hover img { opacity: 0.85; transform: translateY(-1px); }

.play-badge-link { display: inline-block; }
.play-badge-img  { height: 56px; display: block; transition: opacity 0.15s, transform 0.15s; }
.play-badge-img:hover { opacity: 0.85; transform: translateY(-1px); }
.play-badge-lg   { height: 64px; }

/* ── Pricing Cards ──────────────────────────────────────────── */
.pricing-cards {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.pricing-card {
  flex: 1 1 220px;
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  border: 1px solid var(--border);
  text-align: center;
}

.pricing-card-free {
  background: var(--surface);
}

.pricing-card-pro {
  background: rgba(251, 191, 36, 0.05);
  border-color: rgba(251, 191, 36, 0.35);
}

.pricing-tier-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.pricing-card-pro .pricing-tier-label { color: #fbbf24; }

.pricing-price {
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.pricing-price-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0;
  margin-bottom: 4px;
}

.pricing-per {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-muted);
}

.pricing-divider {
  font-size: 20px;
  color: var(--text-muted);
  margin: 0 14px;
}

.pricing-card .pricing-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

/* ── Pricing Table ─────────────────────────────────────────── */
.pricing-table {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.pricing-table table { width: 100%; border-collapse: collapse; }

.pricing-table th,
.pricing-table td {
  padding: 16px 24px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}

.pricing-table thead th { background: var(--surface); font-size: 16px; font-weight: 700; }
.pricing-table thead th:not(:first-child) { text-align: center; }
.pricing-table tbody td:not(:first-child)  { text-align: center; }
.pricing-table tbody tr:last-child td      { border-bottom: none; }
.pricing-table tbody tr:hover td           { background: rgba(255, 255, 255, 0.02); }

.pricing-table th.col-pro,
.pricing-table td.col-pro { background: rgba(251, 191, 36, 0.04); }
.pricing-table thead th.col-pro { border-top: 2px solid #fbbf24; }

.col-pro { color: #fbbf24; }
.check   { color: #34d399; font-size: 18px; }
.cross   { color: var(--text-muted); font-size: 18px; }

.pricing-cta { margin-top: 32px; text-align: center; }

/* ── Privacy Section ───────────────────────────────────────── */
#privacy { background: var(--surface); }

.privacy-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.privacy-intro { color: var(--text-muted); font-size: 17px; margin-bottom: 40px; }

.privacy-points { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.privacy-points li { display: flex; gap: 16px; align-items: flex-start; }
.privacy-points .pi { font-size: 24px; flex-shrink: 0; margin-top: 2px; }
.privacy-points strong { display: block; font-size: 16px; margin-bottom: 4px; }
.privacy-points span   { font-size: 15px; color: var(--text-muted); }

/* Screenshot card (privacy split layout) */
.screenshot-card {
  flex: 1 1 220px;
  max-width: 260px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  aspect-ratio: 9/19.5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px;
}
.privacy-inner .screenshot-card { max-width: 100%; width: 100%; flex: none; aspect-ratio: 9/16; }
.sc-icon  { font-size: 36px; }
.sc-label { font-size: 12px; color: var(--text-muted); }

/* ── CTA Banner ────────────────────────────────────────────── */
#cta {
  text-align: center;
  background: radial-gradient(ellipse 80% 100% at 50% 100%, rgba(59, 130, 246, 0.12) 0%, transparent 70%),
              var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 96px 0;
}

.cta-title { font-size: clamp(26px, 4vw, 40px); font-weight: 800; line-height: 1.2; margin-bottom: 16px; }
.cta-sub   { font-size: 17px; color: var(--text-muted); max-width: 520px; margin: 0 auto 36px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Footer ────────────────────────────────────────────────── */
footer {
  background: #080c14;
  border-top: 1px solid var(--border);
  padding: 48px 24px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-logo img  { height: 32px; }
.footer-logo span { font-size: 16px; font-weight: 700; }

.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: 14px; color: var(--text-muted); transition: color 0.15s; }
.footer-links a:hover { color: #fff; }

.footer-copy { font-size: 13px; color: var(--text-muted); width: 100%; text-align: center; padding-top: 24px; }

/* ── Policy Pages (tos.html / privacy.html) ────────────────── */
.policy-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 5rem 1.5rem 6rem;
}

.policy-wrap h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 3rem;
}

.policy-wrap h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-light);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.policy-wrap p,
.policy-wrap ul { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1rem; }

.policy-wrap ul { padding-left: 1.5rem; }
.policy-wrap ul li { margin-bottom: 0.4rem; }

.policy-wrap .platform-meta {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.policy-wrap .platform-meta strong { color: var(--text-primary); }

.policy-divider { border-color: var(--border); opacity: 1; margin: 3rem 0; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  section { padding: 72px 0; }
  #hero   { padding: 80px 0 64px; }

  .privacy-inner { grid-template-columns: 1fr; }
  .privacy-inner .screenshot-card { display: none; }

  .pricing-table th,
  .pricing-table td { padding: 12px 16px; font-size: 13px; }
}

@media (max-width: 640px) {
  .hero-phone.side { display: none; }
  .hero-phone.main { width: 200px; }
}
