/* ============================================
   Fone Radar — Brand Stylesheet
   Palette: Neon signal green #00FF88, Dark navy #0C121B / #020711, Amber #FFB300
   Theme: "radar screen at night"
   ============================================ */

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

:root {
  --neon: #00FF88;
  --neon-dark: #00D97A;
  --neon-dim: rgba(0, 255, 136, 0.12);
  --neon-ghost: rgba(0, 255, 136, 0.07);
  --amber: #FFB300;
  --amber-dark: #E09E00;
  --navy: #0C121B;
  --navy-deep: #020711;
  --surface: #161D28;
  --surface-soft: #1E2229;
  --surface-green: #2A3535;
  --border: rgba(255, 255, 255, 0.08);
  --border-green: rgba(0, 255, 136, 0.25);
  --text: #E8ECEF;
  --text-muted: #9AA5AE;
  --text-alpha: rgba(232, 236, 239, 0.6);
  --white: #FFFFFF;
  --shadow-sm: 0 2px 8px rgba(2, 7, 17, 0.4);
  --shadow-md: 0 4px 24px rgba(2, 7, 17, 0.5);
  --shadow-lg: 0 8px 40px rgba(2, 7, 17, 0.6);
  --glow-sm: 0 0 0 1px rgba(0, 255, 136, 0.25), 0 4px 16px rgba(0, 255, 136, 0.15);
  --glow-md: 0 0 0 1px rgba(0, 255, 136, 0.35), 0 6px 24px rgba(0, 255, 136, 0.22);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --max-width: 1200px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--navy-deep);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
  color: var(--neon-dark);
}

/* --- Container --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(12, 18, 27, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-green);
  padding: 0 24px;
  height: 72px;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.nav-brand span em {
  font-style: normal;
  color: var(--neon);
}

.nav-brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
  box-shadow: var(--glow-sm);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.2s;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--neon-ghost);
}

.nav-links a.nav-x {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-weight: 600;
}

.nav-links a.nav-x:hover {
  color: var(--neon);
}

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

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

/* --- Hero Section --- */
.hero {
  padding: 150px 24px 90px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 80% -10%, rgba(0, 255, 136, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 10% 110%, rgba(0, 255, 136, 0.07) 0%, transparent 50%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -140px;
  right: -120px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  border: 1px solid rgba(0, 255, 136, 0.15);
  background: radial-gradient(circle, rgba(0, 255, 136, 0.06) 0%, transparent 70%);
  pointer-events: none;
  box-shadow: 0 0 0 40px rgba(0, 255, 136, 0.03), 0 0 0 80px rgba(0, 255, 136, 0.02);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 1px solid rgba(0, 255, 136, 0.10);
  background: radial-gradient(circle, rgba(0, 255, 136, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text h1 {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 16px;
}

.hero-text h1 span {
  color: var(--neon);
  text-shadow: 0 0 24px rgba(0, 255, 136, 0.35);
}

.hero-slogan {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--neon);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-slogan .radar-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 12px var(--neon);
  animation: radarPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes radarPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 540px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.hero-banner {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--border-green);
  background: var(--surface);
}

.hero-banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
}

.btn-primary {
  background: var(--neon);
  color: #001A0E;
  box-shadow: 0 4px 16px rgba(0, 255, 136, 0.35);
}

.btn-primary:hover {
  background: var(--neon-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 255, 136, 0.45);
  color: #001A0E;
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-green);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--neon);
  color: var(--neon);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--text-muted);
}

.btn-outline:hover {
  background: var(--text);
  color: var(--navy-deep);
  transform: translateY(-2px);
}

.btn-neon-ghost {
  background: var(--neon-ghost);
  color: var(--neon);
  font-weight: 600;
}

.btn-neon-ghost:hover {
  background: var(--neon-dim);
  color: var(--neon-dark);
}

.btn-download {
  font-size: 1.1rem;
  padding: 16px 36px;
}

.btn-download .icon {
  font-size: 1.25rem;
}

/* --- Section --- */
.section {
  padding: 80px 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.section-header .accent-line {
  width: 48px;
  height: 4px;
  background: var(--neon);
  border-radius: 2px;
  margin: 16px auto;
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.6);
}

/* --- Features --- */
.features {
  background: var(--navy);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.feature-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: all 0.3s;
  border: 1px solid var(--border);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), 0 0 0 1px var(--border-green);
  border-color: var(--border-green);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--neon-ghost);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
  color: var(--neon);
  box-shadow: inset 0 0 0 1px var(--border-green);
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- Screenshots --- */
.screenshots {
  background: var(--navy-deep);
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.screenshot-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
}

.screenshot-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), 0 0 0 1px var(--border-green);
  border-color: var(--border-green);
}

.screenshot-card img {
  width: 100%;
  display: block;
  aspect-ratio: 9/20;
  object-fit: cover;
  object-position: top;
}

.screenshot-label {
  padding: 12px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  text-transform: capitalize;
}

/* --- Download Section --- */
.download {
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(0, 255, 136, 0.08) 0%, transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
}

.download-info {
  max-width: 600px;
  margin: 0 auto;
}

.download-version {
  display: inline-block;
  background: var(--neon-ghost);
  color: var(--neon);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--border-green);
  margin-bottom: 16px;
}

.download-notes {
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--text-alpha);
  line-height: 1.7;
}

.download-notes strong {
  color: var(--text);
}

.download-notes code {
  background: var(--neon-dim);
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--neon);
  font-weight: 600;
}

/* --- About / Narrative --- */
.about {
  background: var(--navy);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

.about-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 32px;
  border: 1px solid var(--border);
}

.about-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.about-card h3 span {
  color: var(--neon);
}

.about-card p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* --- Footer --- */
.footer {
  background: var(--navy-deep);
  color: var(--text);
  padding: 60px 24px 32px;
  border-top: 1px solid var(--border);
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 16px;
  color: var(--text);
}

.footer-brand span em {
  font-style: normal;
  color: var(--neon);
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  box-shadow: var(--glow-sm);
}

.footer-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

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

.footer-divider {
  max-width: var(--max-width);
  margin: 0 auto;
  border: none;
  border-top: 1px solid var(--border);
  margin-bottom: 24px;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-alpha);
}

.footer-bottom a {
  color: var(--text-muted);
}

.footer-bottom a:hover {
  color: var(--neon);
}

/* --- Legal Pages (shared) --- */
.legal-page {
  padding: 7rem 24px 4rem;
}

.legal-page .container {
  max-width: 800px;
}

.legal-header {
  margin-bottom: 3rem;
}

.legal-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.legal-header .meta {
  color: var(--text-muted);
  font-size: 1rem;
}

.legal-content {
  background: var(--surface);
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.legal-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

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

.legal-content ul, .legal-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.legal-content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.legal-content code {
  background: var(--neon-dim);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--neon);
  font-weight: 600;
}

.legal-content strong {
  color: var(--text);
}

.legal-content a {
  color: var(--neon);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content a:hover {
  color: var(--neon-dark);
}

/* --- Lightbox --- */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  background: rgba(2, 7, 17, 0.92);
  backdrop-filter: blur(8px);
  padding: 40px;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 0 1px var(--border-green);
  object-fit: contain;
}

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeInUp 0.6s ease-out;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-text h1 {
    font-size: 2.75rem;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .screenshots-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav {
    height: 64px;
    padding: 0 16px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 16px;
    flex-direction: column;
    gap: 4px;
    border-bottom: 1px solid var(--border-green);
    box-shadow: var(--shadow-md);
  }

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

  .nav-links a {
    padding: 12px 16px;
    width: 100%;
    border-radius: var(--radius-sm);
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    padding: 100px 16px 60px;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-slogan {
    font-size: 1rem;
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }

  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }

  .section {
    padding: 60px 16px;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

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

  .screenshots-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .screenshot-card img {
    aspect-ratio: 9/19;
  }

  .screenshot-label {
    font-size: 0.75rem;
    padding: 8px 10px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  /* Legal pages */
  .legal-page {
    padding: 5rem 16px 3rem;
  }

  .legal-header h1 {
    font-size: 1.75rem;
  }

  .legal-content {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .screenshots-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-text h1 {
    font-size: 1.75rem;
  }
}

/* --- Utility --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

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

.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
