/* ==========================================================================
   Data Falcon — brand is a single, deliberate dark world (dusk / instrument
   panel). No light theme: the dark ground is the identity, not a mode.
   ========================================================================== */

:root {
  /* -- palette: dusk navy ground, falcon-eye amber accent, slate structural -- */
  --bg: #0B0F16;
  --bg-elevated: #121826;
  --bg-inset: #0E1420;
  --line: #232C3D;
  --line-soft: #1A2130;
  --ink: #ECEFF4;
  --ink-muted: #8D97AC;
  --ink-faint: #57607A;
  --accent: #E3A83B;
  --accent-strong: #F3C868;
  --accent-soft: rgba(227, 168, 59, 0.13);
  --accent-line: rgba(227, 168, 59, 0.35);
  --structural: #4C6478;

  /* -- type roles -- */
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Roboto Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --fs-h1: clamp(2.6rem, 2rem + 3.2vw, 4.6rem);
  --fs-h2: clamp(1.7rem, 1.4rem + 1.6vw, 2.6rem);
  --fs-h3: 1.2rem;
  --fs-body: 1rem;
  --fs-lead: 1.15rem;
  --fs-eyebrow: 0.78rem;
  --fs-small: 0.82rem;

  --maxw: 1180px;
  --pad: clamp(1.25rem, 1rem + 2vw, 3rem);
  --radius: 3px;
}

/* -- reset -- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

p { margin: 0 0 1em; color: var(--ink); }
a { color: inherit; }

img, svg { display: block; max-width: 100%; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #14100A;
  padding: 0.6em 1em;
  z-index: 200;
}
.skip-link:focus { left: var(--pad); top: var(--pad); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* -- eyebrow / labels -- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.9em;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before {
  content: "";
  width: 0.9em;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}

/* -- buttons -- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85em 1.6em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.btn-primary {
  background: var(--accent);
  color: #14100A;
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-outline:hover { border-color: var(--accent-line); color: var(--accent-strong); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 22, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  text-decoration: none;
}
.brand-mark { width: 26px; height: 26px; flex-shrink: 0; }
.brand-word {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.site-nav {
  display: flex;
  gap: 2rem;
  margin-left: auto;
}
.site-nav a {
  text-decoration: none;
  color: var(--ink-muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.18s ease;
}
.site-nav a:hover { color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 1.25rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 1px;
  margin: 0 7px;
  background: var(--ink-muted);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(4rem, 3rem + 4vw, 7rem);
  padding-bottom: clamp(3rem, 2rem + 3vw, 5rem);
  border-bottom: 1px solid var(--line-soft);
}

.hero-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.stoop-line {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.stoop-line-path {
  stroke: var(--structural);
  stroke-width: 1;
  opacity: 0.55;
  stroke-dasharray: 1600;
  stroke-dashoffset: 1600;
  animation: draw-stoop 1.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s forwards;
}
@keyframes draw-stoop {
  to { stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .stoop-line-path { stroke-dashoffset: 0; animation: none; }
}

.radar {
  position: absolute;
  top: clamp(1rem, 4vw, 3rem);
  right: clamp(0.5rem, 3vw, 3rem);
  width: clamp(140px, 16vw, 220px);
  height: auto;
  opacity: 0.5;
}
.radar-ring { fill: none; stroke: var(--line); stroke-width: 1; }
.radar-sweep {
  stroke: var(--accent);
  stroke-width: 1;
  transform-origin: 120px 120px;
  opacity: 0.7;
  animation: sweep 6s linear infinite;
}
@keyframes sweep { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .radar-sweep { animation: none; } }

.hero-inner { position: relative; max-width: 760px; }

.hero-title { font-size: var(--fs-h1); margin-bottom: 0.5em; }
.accent-text { color: var(--accent); }

.hero-sub {
  font-size: var(--fs-lead);
  color: var(--ink-muted);
  max-width: 42ch;
  margin-bottom: 2em;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: clamp(3.5rem, 2.5rem + 4vw, 6.5rem) 0; }
.section-alt { background: var(--bg-elevated); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

.section-head { max-width: 640px; margin-bottom: clamp(2.5rem, 2rem + 2vw, 3.5rem); }
.section-head h2 { font-size: var(--fs-h2); }

/* -- approach / flight path -- */
.flight-path { position: relative; }
.flight-path-line { display: none; }

.flight-stages {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}
.flight-stages::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 9px;
  height: 1px;
  background: linear-gradient(90deg, var(--structural), var(--accent-line));
}
.stage {
  position: relative;
  padding-top: 2.2rem;
}
.stage-marker {
  position: absolute;
  top: 0;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  background: var(--bg-elevated);
}
.stage-marker::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.stage-code {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  color: var(--ink-faint);
  letter-spacing: 0.1em;
  margin-bottom: 0.6em;
}
.stage h3 { font-size: 1.05rem; margin-bottom: 0.45em; }
.stage p { color: var(--ink-muted); font-size: 0.92rem; margin: 0; }

/* -- technology -- */
.tech-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem 2.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.tech-tile { display: flex; align-items: center; }
.tech-tile img {
  height: 2cm;
  width: auto;
  max-width: 6cm;
  object-fit: contain;
  transition: transform 0.18s ease, filter 0.18s ease;
}
.tech-tile:hover img {
  transform: translateY(-3px);
  filter: drop-shadow(0 6px 14px var(--accent-soft));
}

/* -- about -- */
.about-copy { max-width: 640px; margin-bottom: clamp(2.5rem, 2rem + 2vw, 3.5rem); }
.about-copy p:last-child { color: var(--ink-muted); }

.founders-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.founder-card {
  flex: 1 1 300px;
  max-width: 380px;
  text-align: center;
  background: var(--bg-inset);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 1.25rem + 1vw, 2rem);
}
.founder-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--accent-strong);
}
.founder-name {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  margin: 0 0 0.3em;
}
.founder-role { color: var(--ink-muted); font-size: 0.9rem; margin: 0 0 1.1em; }
.founder-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-soft);
  color: var(--ink-muted);
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}
.founder-link:hover {
  color: var(--accent);
  border-color: var(--accent-line);
  background: var(--accent-soft);
}
.linkedin-icon { width: 18px; height: 18px; fill: currentColor; }

/* -- contact -- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2.5rem, 2rem + 3vw, 5rem);
}
.contact-intro h2 { font-size: var(--fs-h2); }
.contact-intro p { color: var(--ink-muted); }
.contact-email {
  display: inline-block;
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-line);
  padding-bottom: 2px;
}
.contact-email:hover { color: var(--accent-strong); border-color: var(--accent-strong); }

.contact-form { background: var(--bg-inset); border: 1px solid var(--line-soft); padding: clamp(1.5rem, 1.25rem + 1vw, 2.25rem); border-radius: var(--radius); }
.field { margin-bottom: 1.2rem; display: flex; flex-direction: column; gap: 0.5em; }
.field label { font-size: 0.82rem; color: var(--ink-muted); font-weight: 500; }
.field input, .field textarea {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.75em 0.9em;
  resize: vertical;
  transition: border-color 0.18s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-submit { width: 100%; margin-top: 0.4rem; }
.form-note { font-size: var(--fs-small); color: var(--ink-faint); margin: 0.9em 0 0; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { border-top: 1px solid var(--line-soft); padding: 2.5rem 0 2rem; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.brand-footer .brand-word { color: var(--ink-muted); }
.footer-nav { display: flex; gap: 1.5rem; }
.footer-nav a { text-decoration: none; color: var(--ink-muted); font-size: 0.88rem; }
.footer-nav a:hover { color: var(--ink); }
.footer-social { display: flex; gap: 1.25rem; }
.footer-social a { text-decoration: none; color: var(--ink-muted); font-size: 0.88rem; }
.footer-social a:hover { color: var(--accent); }

.footer-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 920px) {
  .contact-grid { grid-template-columns: 1fr; }
  .flight-stages { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
  .flight-stages::before { display: none; }
}

@media (max-width: 760px) {
  .site-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--line-soft);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem var(--pad) 1rem;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 0.85rem 0; border-bottom: 1px solid var(--line-soft); }
  .nav-toggle { display: flex; }

  .flight-stages { grid-template-columns: 1fr; }
}
