:root {
  --navy: #0a1628;
  --navy-mid: #0f2040;
  --navy-light: #1a3560;
  --blue: #0066cc;
  --blue-bright: #1a8cff;
  --cyan: #00c8ff;
  --gold: #f5a623;
  --white: #ffffff;
  --white-dim: rgba(255,255,255,0.7);
  --white-faint: rgba(255,255,255,0.12);
  --glass: rgba(255,255,255,0.06);
  --glass-border: rgba(255,255,255,0.12);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--navy);
  color: var(--white);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
}

h1, h2, h3 { font-family: 'Lexend', sans-serif; font-weight: 700; letter-spacing: -0.01em; }

.icon-svg { width: 1em; height: 1em; display: inline-block; vertical-align: -0.125em; }

/* ---- ACCESSIBILITY: skip link ---- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--cyan);
  color: var(--navy);
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 8px;
  z-index: 1000;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; }

/* ---- ACCESSIBILITY: visible focus states ---- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse 80% 50% at 10% 20%, rgba(0,102,204,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 80%, rgba(0,200,255,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 50% 50%, rgba(245,166,35,0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

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

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* ---- NAV ---- */
nav.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,22,40,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
}
.nav-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.brand {
  font-family: 'Lexend', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.nav-links {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 500;
  color: var(--white-dim);
  align-items: center;
}
.nav-links > a, .nav-item > .nav-top-link {
  padding: 8px 12px;
  border-radius: 8px;
}
.nav-links > a:hover, .nav-item:hover > .nav-top-link { color: var(--white); background: var(--white-faint); }
.nav-item { position: relative; }
.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--navy-mid);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 8px;
  min-width: 180px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.nav-item:hover .nav-dropdown, .nav-item:focus-within .nav-dropdown { display: block; }
.nav-dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--white-dim);
}
.nav-dropdown a:hover { background: var(--white-faint); color: var(--white); }

@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* ---- PAGE HERO (for content pages) ---- */
.page-hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 64px 24px 40px;
  max-width: 780px;
  margin: 0 auto;
}
.page-hero .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white-faint);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--cyan);
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}
.page-hero h1 {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--white);
}
.page-hero h1::after {
  content: '';
  display: block;
  width: 56px;
  height: 4px;
  margin: 16px auto 0;
  background: var(--gold);
  border-radius: 2px;
}
.page-hero p {
  font-size: 17px;
  color: var(--white-dim);
  max-width: 560px;
  margin: 0 auto;
}

/* ---- HOME HERO ---- */
.hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 100px 24px 70px;
  max-width: 780px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white-faint);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--cyan);
  letter-spacing: 0.04em;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(32px, 5.5vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--white);
}
.hero h1::after {
  content: '';
  display: block;
  width: 64px;
  height: 4px;
  margin: 20px auto 0;
  background: var(--gold);
  border-radius: 2px;
}
.hero p {
  font-size: 18px;
  color: var(--white-dim);
  max-width: 560px;
  margin: 0 auto;
}

/* ---- SECTION ---- */
section { position: relative; z-index: 1; padding: 48px 0; }

.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

/* ---- PRODUCT CARD (home page) ---- */
.product-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 32px;
}
.product-card.reverse { grid-template-columns: 1.1fr 1fr; }
.product-card.reverse .product-media { order: 2; }
.product-card.reverse .product-copy { order: 1; }
.product-media { display: flex; align-items: center; justify-content: center; }
.product-media img { max-width: 100%; border-radius: 20px; }
.product-media img.icon-img { width: 140px; height: 140px; border-radius: 30px; box-shadow: 0 20px 50px rgba(0,0,0,0.4); }
.product-media img.screenshot-img { max-height: 380px; box-shadow: 0 20px 50px rgba(0,0,0,0.4); }
.product-copy h2 { font-size: 28px; font-weight: 700; margin-bottom: 12px; }
.product-copy p { color: var(--white-dim); margin-bottom: 20px; }
.feature-list { list-style: none; margin-bottom: 24px; }
.feature-list li { display: flex; align-items: flex-start; gap: 10px; color: var(--white-dim); font-size: 15px; margin-bottom: 10px; }
.feature-list li::before { content: '⚓'; flex-shrink: 0; font-size: 14px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--blue-bright), var(--cyan));
  color: var(--navy);
  font-weight: 700;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: 100px;
}
.btn:hover { opacity: 0.9; }
.btn.disabled { background: var(--glass); border: 1px solid var(--glass-border); color: var(--white-dim); cursor: default; }

.badge-teen {
  display: inline-block;
  background: rgba(245,166,35,0.15);
  border: 1px solid rgba(245,166,35,0.4);
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}

/* ---- INFO / TWO-COL GRID ---- */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.info-box {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 32px;
}
.info-box h3 { font-size: 20px; margin-bottom: 10px; }
.info-box p { color: var(--white-dim); font-size: 15px; margin-bottom: 16px; }
.info-box a.link { color: var(--cyan); font-weight: 600; font-size: 14px; }
.info-box a.link:hover { text-decoration: underline; }

/* ---- CONTENT PAGE PANELS ---- */
.detail-panel {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 32px;
  margin-top: 20px;
}
.detail-panel h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.detail-panel p { color: var(--white-dim); font-size: 15px; margin-bottom: 12px; }
.detail-panel p:last-child { margin-bottom: 0; }
.detail-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.detail-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.95rem; color: var(--white-dim); line-height: 1.5; }
.detail-list li::before { content: '→'; color: var(--cyan); font-weight: 600; flex-shrink: 0; margin-top: 1px; }

/* ---- FEATURE / STEP GRIDS (walkthrough, features pages) ---- */
.steps-grid { display: grid; gap: 16px; margin-top: 32px; }
.step-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 24px 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.step-number {
  width: 36px; height: 36px; min-width: 36px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px; color: white;
}
.step-content h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.step-content p { font-size: 0.9rem; color: var(--white-dim); line-height: 1.5; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.feature-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 24px;
}
.feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border-radius: 12px;
  background: rgba(0,200,255,0.12);
  color: var(--cyan);
}
.feature-icon .icon-svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 0.85rem; color: var(--white-dim); line-height: 1.5; }
.feature-tag {
  display: inline-block;
  background: rgba(0,200,255,0.12);
  color: var(--cyan);
  border: 1px solid rgba(0,200,255,0.2);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  margin-top: 10px;
  letter-spacing: 0.03em;
}

/* ---- TIP BOX ---- */
.tip-box {
  background: linear-gradient(135deg, rgba(245,166,35,0.1), rgba(245,166,35,0.05));
  border: 1px solid rgba(245,166,35,0.25);
  border-radius: 14px;
  padding: 20px 24px;
  margin-top: 20px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.tip-box .tip-icon { font-size: 1.4rem; flex-shrink: 0; }
.tip-box p { font-size: 0.9rem; color: rgba(255,255,255,0.85); margin: 0; }
.tip-box strong { color: var(--gold); }

/* ---- TAB NAV (walkthrough page) ---- */
.tab-nav {
  position: sticky;
  top: 65px;
  z-index: 90;
  background: rgba(10,22,40,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tab-nav::-webkit-scrollbar { display: none; }
.tab-list { display: flex; gap: 0; max-width: 900px; margin: 0 auto; min-width: max-content; }
.tab-btn {
  background: none; border: none; color: var(--white-dim);
  font-family: 'Source Sans 3', sans-serif; font-size: 13px; font-weight: 500;
  padding: 16px 18px; cursor: pointer; white-space: nowrap;
  border-bottom: 2px solid transparent; transition: all 0.2s; letter-spacing: 0.01em;
}
.tab-btn:hover { color: var(--white); }
.tab-btn.active { color: var(--cyan); border-bottom-color: var(--cyan); }

.main { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; padding: 48px 24px 80px; }
.tab-section { display: none; }
.tab-section.active { display: block; }
.section-header { margin-bottom: 8px; }
.section-header h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; }
.section-header p { color: var(--white-dim); font-size: 1rem; max-width: 600px; }

/* ---- FAQ ---- */
.faq-list { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; }
.faq-item { background: var(--glass); border: 1px solid var(--glass-border); border-radius: 14px; overflow: hidden; }
.faq-question {
  width: 100%; background: none; border: none; color: var(--white);
  font-family: 'Source Sans 3', sans-serif; font-size: 0.95rem; font-weight: 500;
  text-align: left; padding: 20px 24px; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-chevron { font-size: 18px; color: var(--cyan); transition: transform 0.3s; flex-shrink: 0; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer { display: none; padding: 0 24px 20px; font-size: 0.9rem; color: var(--white-dim); line-height: 1.6; border-top: 1px solid var(--glass-border); padding-top: 16px; }
.faq-item.open .faq-answer { display: block; }

/* ---- CTA BLOCK ---- */
.cta-block {
  text-align: center; padding: 60px 24px; margin-top: 48px;
  background: var(--glass); border: 1px solid var(--glass-border); border-radius: 24px;
}
.cta-block h2 { font-size: 2rem; font-weight: 800; margin-bottom: 12px; }
.cta-block p { color: var(--white-dim); margin-bottom: 32px; }
.download-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: var(--navy); font-weight: 700; font-size: 1rem;
  padding: 16px 36px; border-radius: 100px;
}

/* ---- FOOTER ---- */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--glass-border);
  padding: 40px 0;
  margin-top: 40px;
}
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; font-size: 13px; color: var(--white-dim); }
.footer-links a:hover { color: var(--white); }
.footer-copy { font-size: 13px; color: var(--white-dim); }

@media (max-width: 720px) {
  .product-card, .product-card.reverse { grid-template-columns: 1fr; }
  .product-card.reverse .product-media, .product-card.reverse .product-copy { order: initial; }
  .product-card { padding: 32px 24px; }
  .info-grid { grid-template-columns: 1fr; }
}
