/* ═══════════════════════════════════════════════════════════════
   NavCast — Website Styles
   MFD-inspired instrument-panel aesthetic
   ═══════════════════════════════════════════════════════════════ */

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

:root {
  --bg:             #070809;
  --surface:        #111315;
  --surface-var:    #1C1F23;
  --outline:        #2A2D32;
  --outline-light:  #3A3E42;
  --primary:        #4A8AB8;
  --tertiary:       #4F9C82;
  --text:           #E4E4E8;
  --text-dim:       #8E9298;
  --text-label:     #5A5F66;
  --radius-sm:      4px;
  --radius-lg:      12px;
  --nav-h:          56px;
  --font:           'Lato', 'Helvetica Neue', Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: #5AB0F0; }

/* ── Navigation ──────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: #050608;
  border-bottom: 1px solid var(--outline);
}

.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h);
}

.nav-brand {
  display: flex; align-items: center; gap: 2px;
  font-size: 18px; font-weight: 300; color: var(--text);
  letter-spacing: 4px; text-transform: uppercase;
}

.nav-brand .dot { color: var(--primary); }

.nav-links { display: flex; gap: 8px; list-style: none; }
.nav-links a {
  color: var(--text-dim); font-size: 11px; font-weight: 500;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}

.nav-hamburger {
  display: none; background: none; border: none; cursor: pointer;
  padding: 8px;
}
.nav-hamburger span {
  display: block; width: 20px; height: 2px;
  background: var(--text-dim); margin: 4px 0;
  transition: 0.3s;
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 120px 24px 60px;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
}

.hero::after {
  content: '';
  position: absolute;
  width: 600px; height: 400px;
  top: 20%; left: 50%; transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(61,154,226,0.06), transparent 70%);
  pointer-events: none;
}

.hero-content { max-width: 740px; position: relative; z-index: 1; }

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 3.8rem);
  font-weight: 300; line-height: 1.08;
  letter-spacing: 1px;
  margin-bottom: 20px;
  color: #fff;
}

.hero h1 .highlight { color: var(--primary); font-weight: 300; }

.hero p {
  font-size: 15px; font-weight: 300; color: var(--text-dim);
  max-width: 520px; margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px;
  font-family: var(--font);
  font-size: 12px; font-weight: 500;
  letter-spacing: 1.5px;
  border-radius: var(--radius-sm);
  border: none; cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  text-transform: uppercase;
}

.btn-primary { background: var(--primary); color: #000; }
.btn-primary:hover { background: #5AB0F0; color: #000; }

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

/* ── Sections ────────────────────────────────────────────────── */
section { padding: 80px 24px; }

.section-inner { max-width: 1200px; margin: 0 auto; }

.section-title {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 300; margin-bottom: 32px;
  color: #fff;
  letter-spacing: 0.5px;
}

/* ── Feature Tile Grid ───────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.feature-card {
  border-radius: var(--radius-lg);
  padding: 16px 16px 20px;
  position: relative;
  overflow: hidden;
  min-height: 160px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:nth-child(1) { background: linear-gradient(180deg, #1A3050 0%, #0D1A2A 100%); }
.feature-card:nth-child(2) { background: linear-gradient(180deg, #1A3828 0%, #0D1E16 100%); }
.feature-card:nth-child(3) { background: linear-gradient(180deg, #3A1A1A 0%, #1E0D0D 100%); }
.feature-card:nth-child(4) { background: linear-gradient(180deg, #2A2818 0%, #181610 100%); }
.feature-card:nth-child(5) { background: linear-gradient(180deg, #0D2A30 0%, #081A1E 100%); }
.feature-card:nth-child(6) { background: linear-gradient(180deg, #2A1A30 0%, #180D20 100%); }

.feature-card::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.5;
  pointer-events: none;
}

.feature-card::after {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 120px; height: 120px;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.03) 50%, transparent 60%);
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.feature-icon {
  position: absolute;
  bottom: -4px; right: -4px;
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  font-size: 40px;
  color: #fff;
  opacity: 0.18;
  pointer-events: none;
}

.feature-card h3 {
  font-size: 13px; font-weight: 700; margin-bottom: 6px;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.5px;
  position: relative; z-index: 1;
  text-transform: uppercase;
}

.feature-card p {
  font-size: 12px; font-weight: 400;
  color: rgba(255,255,255,0.5);
  line-height: 1.55;
  letter-spacing: 0.3px;
  position: relative; z-index: 1;
}

/* ── CTA / Download ──────────────────────────────────────────── */
.cta {
  text-align: center;
  background: var(--bg);
  position: relative;
}

.cta::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 60%, rgba(61,154,226,0.04), transparent);
  pointer-events: none;
}

.cta .section-inner { position: relative; z-index: 1; }

.store-badges { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 24px;
  background: var(--surface-var);
  border: 1px solid var(--outline);
  border-radius: var(--radius-sm);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.store-badge:hover {
  border-color: var(--primary);
  color: var(--text);
  box-shadow: 0 0 16px rgba(61,154,226,0.15);
}

.store-badge-icon { font-size: 26px; }
.store-badge-text { text-align: left; }
.store-badge-text small {
  display: block; font-size: 10px;
  color: var(--text-label); letter-spacing: 1px; text-transform: uppercase;
}
.store-badge-text strong { font-size: 15px; font-weight: 600; }

.cta-note {
  margin-top: 20px; font-size: 12px; color: var(--text-label);
  letter-spacing: 0.5px;
}

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--outline);
  padding: 20px 24px;
  background: #030405;
}

.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 11px; color: var(--text-label);
  letter-spacing: 0.3px;
}

/* ── Legal Pages ─────────────────────────────────────────────── */
.legal {
  padding: 120px 24px 80px;
  min-height: 100vh;
}

.legal-inner { max-width: 740px; margin: 0 auto; }

.legal h1 {
  font-size: 2rem; font-weight: 700; margin-bottom: 8px; color: #fff;
}

.legal .last-updated {
  font-size: 12px; color: var(--text-label); margin-bottom: 40px;
}

.legal h2 {
  font-size: 1.1rem; font-weight: 600; margin: 36px 0 12px;
  color: var(--primary);
}

.legal p, .legal li {
  font-size: 14px; color: var(--text-dim); line-height: 1.75;
  margin-bottom: 12px;
}

.legal ul { padding-left: 24px; margin-bottom: 16px; }
.legal li { margin-bottom: 6px; }

.legal a { color: var(--primary); text-decoration: underline; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 960px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

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

  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: #050608;
    border-bottom: 1px solid var(--outline);
    padding: 16px 24px; gap: 4px;
  }

  .hero { min-height: auto; padding: 100px 20px 50px; }
  .hero h1 { font-size: 2rem; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }

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

  .store-badges { flex-direction: column; align-items: center; }
  .store-badge { width: 100%; justify-content: center; }
}
