/* ============================================================
   3D Flight Radar — Site Styles
   Dark-first design inspired by the app's phosphor aesthetic
   ============================================================ */

/* Roboto Flex from Google Fonts (loaded in HTML) */

:root {
  --color-bg:         #0a0a0f;
  --color-surface:    #141419;
  --color-surface-2:  #1c1c24;
  --color-border:     rgba(255, 255, 255, 0.08);
  --color-text:       #e0e0e0;
  --color-text-dim:   rgba(255, 255, 255, 0.55);
  --color-accent:     #6ee7b7;   /* soft green — evokes radar / aviation */
  --color-accent-dim: rgba(110, 231, 183, 0.15);
  --color-white:      #ffffff;
  --radius:           12px;
  --radius-lg:        20px;
  --container-max:    1120px;
}

/* ── Reset & base ───────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Roboto Flex', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ── Buttons ────────────────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 100px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background 180ms, color 180ms, box-shadow 180ms;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--color-accent);
  color: #0a0a0f;
}
.btn-primary:hover {
  background: #86efcb;
  text-decoration: none;
  box-shadow: 0 4px 24px rgba(110, 231, 183, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border: 1.5px solid rgba(110, 231, 183, 0.35);
}
.btn-outline:hover {
  background: var(--color-accent-dim);
  text-decoration: none;
}

.btn-sm {
  padding: 8px 20px;
  font-size: 14px;
}

/* ── Header ─────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-white);
}

.logo-icon { color: var(--color-accent); }

.logo-text {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header-nav a {
  color: var(--color-text-dim);
  font-size: 14px;
  font-weight: 500;
  transition: color 150ms;
}
.header-nav a:hover {
  color: var(--color-white);
  text-decoration: none;
}

/* ── Hero ───────────────────────────────────────────────────── */

.hero {
  padding: 80px 0 40px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  color: var(--color-white);
}

.hero-sub {
  max-width: 600px;
  margin: 0 auto 32px;
  font-size: 18px;
  color: var(--color-text-dim);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-screenshot {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-screenshot img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

/* Screenshot placeholders — replace with real images */
.screenshot-placeholder {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--color-text-dim);
  font-size: 14px;
}

/* ── Features ───────────────────────────────────────────────── */

.features {
  padding: 80px 0;
}

.features h2,
.screenshots h2,
.install h2 {
  font-size: 32px;
  font-weight: 600;
  text-align: center;
  margin: 0 0 12px;
  color: var(--color-white);
}

.section-sub {
  text-align: center;
  color: var(--color-text-dim);
  margin: 0 0 40px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 200ms, box-shadow 200ms;
}
.feature-card:hover {
  border-color: rgba(110, 231, 183, 0.2);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--color-accent-dim);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--color-white);
}

.feature-card p {
  margin: 0;
  font-size: 15px;
  color: var(--color-text-dim);
  line-height: 1.6;
}

/* ── Screenshots ────────────────────────────────────────────── */

.screenshots {
  padding: 80px 0;
  background: var(--color-surface);
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(440px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.screenshot-card {
  margin: 0;
}

.screenshot-card img {
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  width: 100%;
  height: auto;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.screenshot-card figcaption {
  font-size: 14px;
  color: var(--color-text-dim);
  margin-top: 10px;
  text-align: center;
}

/* ── Install ────────────────────────────────────────────────── */

.install {
  padding: 80px 0;
}

.install-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.install-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}

.install-card h3 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 16px;
  color: var(--color-white);
}
.install-card h3 svg { color: var(--color-accent); }

.install-card pre {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 14px 18px;
  overflow-x: auto;
  margin: 0 0 12px;
  text-align: left;
}

.install-card code {
  font-family: 'JetBrains Mono', 'Fira Code', 'Roboto Mono', monospace;
  font-size: 14px;
  color: var(--color-accent);
  line-height: 1.7;
}

.install-card p {
  margin: 8px 0 0;
  font-size: 15px;
  color: var(--color-text-dim);
}

/* ── Footer ─────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 32px 0;
}

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

.footer-inner p {
  margin: 0;
  font-size: 14px;
  color: var(--color-text-dim);
}

.footer-nav {
  display: flex;
  gap: 24px;
}

.footer-nav a {
  font-size: 14px;
  color: var(--color-text-dim);
}
.footer-nav a:hover {
  color: var(--color-accent);
}

/* ── Responsive ─────────────────────────────────────────────── */

@media (max-width: 768px) {
  .header-nav { gap: 16px; }
  .header-nav a:not(.btn) { display: none; }

  .hero { padding: 48px 0 24px; }
  .hero-actions { flex-direction: column; align-items: center; }

  .feature-grid { grid-template-columns: 1fr; }
  .screenshot-grid { grid-template-columns: 1fr; }
  .install-grid { grid-template-columns: 1fr; }

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