/* ── RUNWAY INTELLIGENCE -- Landing Page Styles ── */

:root {
  --bg: #0d1117;
  --bg2: #161b22;
  --bg3: #1c2330;
  --accent: #e8a838;
  --accent2: #58a6ff;
  --text: #e6edf3;
  --text2: #8b949e;
  --border: rgba(255,255,255,0.08);
  --glass: rgba(13,17,23,0.72);
  --radius: 12px;
  --nav-h: 64px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  z-index: 100;
  transition: background 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}
.nav.scrolled {
  background: rgba(13,17,23,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo img { height: 28px; width: auto; }
.nav-logo span {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.nav-logo .logo-accent { color: var(--accent); }

.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text2);
  transition: color 0.2s;
  letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--accent);
  color: var(--bg);
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(232,168,56,0.3);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-bg::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 800px;
  height: 800px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(232,168,56,0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* Radar SVG animation */
.radar-container {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 500px;
  height: 500px;
  transform: translate(-50%, -50%);
  opacity: 0.15;
}
.radar-ring {
  fill: none;
  stroke: var(--accent);
  stroke-width: 0.5;
}
.radar-sweep {
  fill: none;
  stroke: url(#sweepGrad);
  stroke-width: 2;
  stroke-linecap: round;
  transform-origin: center;
  animation: rotate 8s linear infinite;
}
@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.radar-blip {
  fill: var(--accent);
  opacity: 0;
  animation: blip 8s ease-in-out infinite;
}
.radar-blip:nth-child(2) { animation-delay: 2s; }
.radar-blip:nth-child(3) { animation-delay: 4.5s; }
.radar-blip:nth-child(4) { animation-delay: 6s; }
@keyframes blip {
  0%, 15% { opacity: 0; }
  20% { opacity: 0.9; }
  60% { opacity: 0.3; }
  100% { opacity: 0; }
}

/* Grid lines background */
.hero-grid {
  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: 80px 80px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  margin-bottom: 32px;
  font-family: 'IBM Plex Mono', monospace;
}
.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3fb950;
  animation: livePulse 2s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: 64px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
}
.hero h1 .accent { color: var(--accent); }

.hero-sub {
  font-size: 18px;
  color: var(--text2);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--accent);
  color: var(--bg);
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232,168,56,0.25);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: transparent;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  border-radius: 10px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.btn-secondary:hover {
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.03);
}

/* ── PRODUCTS ── */
.products {
  padding: 120px 48px;
  max-width: 1200px;
  margin: 0 auto;
}
.section-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 16px;
  font-family: 'IBM Plex Mono', monospace;
}
.section-title {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 16px;
  color: var(--text2);
  max-width: 560px;
  margin-bottom: 56px;
  line-height: 1.6;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  position: relative;
  padding: 36px 32px;
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  overflow: hidden;
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232,168,56,0.3), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
  border-color: rgba(255,255,255,0.12);
}
.product-card:hover::before { opacity: 1; }

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 22px;
}
.card-icon.map { background: rgba(232,168,56,0.12); color: var(--accent); }
.card-icon.fbo { background: rgba(88,166,255,0.12); color: var(--accent2); }
.card-icon.enterprise { background: rgba(63,185,80,0.12); color: #3fb950; }

.card-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--text2);
  font-family: 'IBM Plex Mono', monospace;
}

.product-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.product-card p {
  font-size: 15px;
  color: var(--text2);
  line-height: 1.6;
  margin-bottom: 24px;
}

.card-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card-features li {
  font-size: 14px;
  color: var(--text2);
  display: flex;
  align-items: center;
  gap: 10px;
}
.card-features li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  transition: gap 0.2s;
}
.card-link:hover { gap: 10px; }
.card-link .arrow { transition: transform 0.2s; }

/* ── FEATURES STRIP ── */
.features-strip {
  padding: 80px 48px;
  max-width: 1200px;
  margin: 0 auto;
}
.strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.strip-item {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: border-color 0.2s;
}
.strip-item:hover { border-color: rgba(255,255,255,0.12); }
.strip-value {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
  font-family: 'IBM Plex Mono', monospace;
}
.strip-value.amber { color: var(--accent); }
.strip-value.blue { color: var(--accent2); }
.strip-value.green { color: #3fb950; }
.strip-label {
  font-size: 13px;
  color: var(--text2);
}

/* ── FOOTER ── */
.footer {
  padding: 48px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 80px auto 0;
}
.footer-left {
  display: flex;
  align-items: center;
  gap: 24px;
}
.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-logo img { height: 22px; width: auto; }
.footer-logo span {
  font-weight: 700;
  font-size: 15px;
}
.footer-divider {
  width: 1px;
  height: 20px;
  background: var(--border);
}
.footer-text {
  font-size: 13px;
  color: var(--text2);
}
.footer-mtg-link {
  color: var(--text2);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}
.footer-mtg-link:hover {
  color: var(--accent);
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: 13px;
  color: var(--text2);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── MOBILE NAV OVERLAY ── */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13,17,23,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  transition: opacity 0.3s;
}
.nav-open .mobile-menu {
  display: flex;
  opacity: 1;
}
.mobile-menu a {
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--accent); }

.nav-open .hamburger span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-open .hamburger span:nth-child(2) { opacity: 0; }
.nav-open .hamburger span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── TABLET ── */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-card:last-child { grid-column: span 2; }
  .strip-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── MOBILE ── */
@media (max-width: 768px) {
  .nav { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }

  .hero { padding: 100px 20px 60px; min-height: 90vh; }
  .hero h1 { font-size: 40px; }
  .hero-sub { font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn-primary, .btn-secondary { width: 100%; max-width: 280px; justify-content: center; }

  .radar-container { width: 350px; height: 350px; }

  .products { padding: 80px 20px; }
  .section-title { font-size: 30px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card:last-child { grid-column: span 1; }

  .features-strip { padding: 60px 20px; }
  .strip-grid { grid-template-columns: repeat(2, 1fr); }

  .footer {
    flex-direction: column;
    gap: 24px;
    padding: 32px 20px;
    text-align: center;
  }
  .footer-left { flex-direction: column; }
  .footer-divider { width: 40px; height: 1px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 32px; }
  .strip-grid { grid-template-columns: 1fr; }
  .strip-value { font-size: 24px; }
}
