/* NUAV Labs — site styles
   Tokens follow the NUAV Labs design system. Dark is the signature theme;
   the light theme follows the brand's "light page" rules (#006E9C cyan, #0E1116 text). */

:root {
  --surface: #0A0D12;
  --raised: #121821;
  --night: #161E29;
  --panel: #1A2430;
  --sky: #0F2A36;
  --sky-text: #C9D3DD;
  --hairline: #222B36;
  --line2: #2E3A48;
  --ink: #E8EDF2;
  --muted: #9AA6B4;
  --accent: #38C6F4;       /* text/lines in cyan */
  --accent-fill: #38C6F4;  /* cyan fills always keep the bright brand cyan */
  --on-accent: #0A0D12;
  --signal: #C4F042;
  --gaeilge: #4CC17A;
  --grid-dot: #222B36;
  --mark-n: #38C6F4;
  --mark-l: #E8EDF2;

  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-sans: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --font-foghlaim: "Fraunces", Georgia, serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  color-scheme: dark;
}

:root[data-theme="light"] {
  --surface: #F6F8FA;
  --raised: #FFFFFF;
  --night: #EAF1F6;
  --panel: #E3EBF2;
  --sky: #E1F4FC;
  --sky-text: #33404D;
  --hairline: #D9E1E8;
  --line2: #C3CEDA;
  --ink: #0E1116;
  --muted: #4A5563;
  --accent: #006E9C;
  --gaeilge: #1E7F45;
  --grid-dot: #CCD8E2;
  --mark-n: #006E9C;
  --mark-l: #0E1116;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
}

body.theme-ready,
body.theme-ready * {
  transition: background-color .35s ease, border-color .35s ease, color .35s ease, fill .35s ease;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body.theme-ready, body.theme-ready * { transition: none; }
}

a { color: var(--accent); }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

h1, h2, h3 { font-family: var(--font-display); margin: 0; }
p { margin: 0; }

.container { max-width: 1200px; margin: 0 auto; padding-inline: 20px; }

.skip-link {
  position: absolute; left: 16px; top: -48px;
  padding: 8px 12px; border-radius: var(--radius-md);
  background: var(--accent-fill); color: var(--on-accent); font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ---------- Logo ---------- */
.mark-n { fill: var(--mark-n); }
.mark-l { fill: var(--mark-l); }
.mark-dot { fill: var(--signal); }

.lockup { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.wordmark { font-family: var(--font-display); font-size: 22px; line-height: 1; letter-spacing: -0.4px; color: var(--ink); }
.wordmark b { color: var(--accent); font-weight: 700; }
.wordmark span { font-weight: 400; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--hairline); }
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 16px; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; font-size: 15px; }
.nav-links > a { color: var(--muted); text-decoration: none; padding: 10px 0; }
.nav-links > a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.theme-btn {
  width: 44px; height: 44px; padding: 0; cursor: pointer;
  border-radius: var(--radius-md); border: 1px solid var(--hairline);
  background: var(--raised); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
}
.theme-btn:hover { border-color: var(--accent); color: var(--accent); }
.theme-btn .icon-moon { display: none; }
:root[data-theme="light"] .theme-btn .icon-sun { display: none; }
:root[data-theme="light"] .theme-btn .icon-moon { display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 20px; border-radius: var(--radius-md);
  font-weight: 600; text-decoration: none;
}
.btn-sm { min-height: 44px; padding: 0 16px; }
.btn-primary { background: var(--accent-fill); color: var(--on-accent); }
.btn-primary:hover { color: var(--on-accent); filter: brightness(1.08); }
.btn-secondary { border: 1px solid var(--line2); color: var(--ink); }
.btn-secondary:hover { border-color: var(--accent); color: var(--ink); }
.link-arrow { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; text-decoration: none; color: var(--accent); }

/* ---------- Shared bits ---------- */
.eyebrow { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 1.5px; color: var(--accent); }
.eyebrow.muted { color: var(--muted); }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.h2 { font-weight: 700; font-size: clamp(30px, 4vw, 40px); line-height: 1.15; letter-spacing: -0.8px; }
.lead { font-size: 18px; line-height: 28px; color: var(--muted); max-width: 540px; }

.card { background: var(--raised); border: 1px solid var(--hairline); border-radius: var(--radius-lg); }

.pill {
  display: inline-block; align-self: flex-start;
  padding: 3px 12px; border-radius: var(--radius-pill);
  font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 1px;
}
.pill-live { background: var(--accent-fill); color: var(--on-accent); }
.pill-next { border: 1px solid var(--accent); color: var(--accent); }
.pill-later { background: var(--panel); color: var(--ink); }
.pill-signal { background: var(--signal); color: #0A0D12; }

.grid-auto { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 360px)), 1fr)); }

.dots {
  background-color: var(--night);
  background-image: radial-gradient(var(--grid-dot) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
}

/* ---------- Hero ---------- */
.hero { border-bottom: 1px solid var(--hairline); }
.hero-inner { --min: 440px; padding-block: 72px 88px; gap: 48px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.hero h1 { font-weight: 700; font-size: clamp(40px, 6vw, 64px); line-height: 1.05; letter-spacing: -1.5px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.badge-link {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 4px 14px 4px 4px; border-radius: var(--radius-pill);
  background: var(--raised); border: 1px solid var(--hairline);
  color: var(--ink); text-decoration: none; font-size: 14px;
}
.badge-link .pill { padding: 2px 10px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

.name-card { padding: 32px; display: flex; flex-direction: column; gap: 24px; }
.name-parts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.name-part { background: var(--panel); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.name-part strong { font-family: var(--font-display); font-weight: 700; font-size: 32px; line-height: 36px; color: var(--accent); }
.name-part span { font-size: 15px; }
.name-card p { font-size: 15px; line-height: 22px; color: var(--muted); }

/* ---------- Products ---------- */
.section { padding-block: 96px 88px; display: flex; flex-direction: column; gap: 40px; }
.product { padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.product.featured { border: 2px solid var(--accent); }
.product-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.product-name { display: flex; flex-direction: column; gap: 4px; }
.product-title { font-family: var(--font-display); font-weight: 700; font-size: 34px; line-height: 40px; letter-spacing: -0.6px; }
.product-title.foghlaim { font-family: var(--font-foghlaim); letter-spacing: 0; color: var(--gaeilge); }
.endorse { font-family: var(--font-display); font-size: 14px; color: var(--muted); }
.product > p { font-size: 17px; line-height: 26px; }
.checks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--muted); }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks svg { flex-shrink: 0; margin-top: 3px; stroke: var(--accent); }

/* ---------- Look, Plane! ---------- */
.band { background: var(--night); border-block: 1px solid var(--hairline); }
.lp-inner { --min: 440px; padding-block: 96px; gap: 56px; align-items: center; }
.lp-copy { display: flex; flex-direction: column; gap: 28px; }
.lp-title { font-weight: 700; font-size: clamp(36px, 5vw, 52px); line-height: 1.05; letter-spacing: -1.2px; }
.steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.steps li { display: flex; gap: 16px; align-items: flex-start; border-radius: 12px; padding: 16px 20px; }
.step-num { font-family: var(--font-mono); font-size: 14px; font-weight: 500; color: var(--accent); padding-top: 2px; }
.steps strong { display: block; font-weight: 600; }
.steps span { font-size: 15px; color: var(--muted); }
.callout { background: var(--sky); border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.callout h3 { font-weight: 600; font-size: 20px; line-height: 26px; }
.callout p { font-size: 15px; line-height: 22px; color: var(--sky-text); }

/* The phone stays dark in both themes, like a real device screen */
.phone-fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.phone-fig figcaption { font-family: var(--font-mono); font-size: 12px; letter-spacing: 1px; color: var(--muted); }
.phone { width: 300px; max-width: 100%; height: 600px; border-radius: 44px; background: #0A0D12; border: 1px solid #2E3A48; padding: 12px; }
.screen {
  position: relative; width: 100%; height: 100%; border-radius: 34px; overflow: hidden; color: #E8EDF2;
  background-color: #0F2A36; background-image: radial-gradient(#1C4152 1.2px, transparent 1.2px); background-size: 24px 24px;
}
.screen-title { position: absolute; top: 22px; left: 0; right: 0; text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.target { position: absolute; top: 132px; left: 64px; width: 148px; height: 112px; }
.target i { position: absolute; width: 22px; height: 22px; border: 0 solid #38C6F4; }
.target i:nth-child(1) { top: 0; left: 0; border-top-width: 3px; border-left-width: 3px; border-top-left-radius: 6px; }
.target i:nth-child(2) { top: 0; right: 0; border-top-width: 3px; border-right-width: 3px; border-top-right-radius: 6px; }
.target i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 3px; border-left-width: 3px; border-bottom-left-radius: 6px; }
.target i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 3px; border-right-width: 3px; border-bottom-right-radius: 6px; }
.target svg { position: absolute; top: 20px; left: 38px; transform: rotate(-35deg); }
.far-plane { position: absolute; top: 300px; right: 34px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.far-plane svg { transform: rotate(20deg); }
.far-plane span { padding: 2px 8px; border-radius: var(--radius-sm); background: #121821; font-family: var(--font-mono); font-size: 11px; color: #9AA6B4; }
.flight-card { position: absolute; left: 14px; right: 14px; bottom: 16px; background: #121821; border: 1px solid #222B36; border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.flight-top { display: flex; justify-content: space-between; align-items: center; }
.flight-no { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: #38C6F4; }
.flight-card .pill { padding: 2px 10px; font-size: 11px; letter-spacing: 0; }
.route { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 18px; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.stat { background: #1A2430; border-radius: var(--radius-md); padding: 8px 10px; font-family: var(--font-mono); font-size: 14px; }
.stat small { display: block; font-size: 10px; letter-spacing: 1px; color: #9AA6B4; }

/* ---------- Principles ---------- */
.principle { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.principle svg { stroke: var(--accent); }
.principle h3, .idea h3 { font-weight: 600; font-size: 20px; line-height: 26px; }
.principle p, .idea p { font-size: 15px; line-height: 22px; color: var(--muted); }
.gemini { --min: 320px; background: var(--sky); border-radius: var(--radius-lg); padding: 28px 32px; gap: 16px 40px; align-items: center; }
.gemini h3 { font-weight: 600; font-size: 22px; line-height: 28px; }
.gemini p { color: var(--sky-text); }

/* ---------- Ideas ---------- */
.ideas { border-top: 1px solid var(--hairline); }
.ideas .section { padding-block: 88px; gap: 32px; }
.ideas .h2 { font-size: clamp(26px, 3.4vw, 32px); }
.idea { border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; gap: 10px; }

/* ---------- Contact ---------- */
.contact-inner { --min: 440px; padding-block: 96px; gap: 48px; align-items: start; }
.contact-copy { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.contact-email { font-family: var(--font-mono); font-size: 14px; color: var(--muted); }
.about-card { padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.about-card h3 { font-weight: 700; font-size: 26px; line-height: 32px; }
.about-card hr { border: 0; height: 1px; background: var(--hairline); margin: 0; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; font-size: 15px; }
.facts small { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 1px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--hairline); }
.footer-inner { padding-block: 40px 48px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.footer-brand { display: flex; flex-direction: column; gap: 10px; }
.footer-brand .wordmark { font-size: 19px; }
.footer-brand p, .footer-legal { font-size: 14px; color: var(--muted); }
.footer-legal { font-size: 13px; line-height: 20px; display: flex; flex-direction: column; gap: 4px; }
.footer-legal a { color: inherit; }
.footer-legal a:hover { color: var(--ink); }

/* ---------- Text pages (privacy) ---------- */
.prose { max-width: 800px; padding-block: 72px 88px; gap: 28px; }
.prose .section-head { max-width: none; }
.prose h1 { font-weight: 700; font-size: clamp(32px, 5vw, 44px); line-height: 1.1; letter-spacing: -1px; }
.prose .updated { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.prose-card { padding: 28px 32px; display: flex; flex-direction: column; gap: 12px; }
.prose-card h2 { font-weight: 600; font-size: 22px; line-height: 28px; }
.prose-card ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.prose-card p { overflow-wrap: anywhere; }
@media (max-width: 520px) { .prose-card { padding: 22px 20px; } }
