/* SightControl website. Gardner Avionics palette: navy #1B2F4B, sky #2F7FC1, ground #B8681E,
   plus the HUD clearance colours (green / yellow / red) and waypoint pink. */
:root {
  --navy: #1b2f4b;
  --night: #0b1626;
  --panel: #12233a;
  --sky: #2f7fc1;
  --sky-hi: #5fa8e6;
  --ground: #b8681e;
  --ground-hi: #e08a3c;
  --ink: #e9f0f7;
  --muted: #9fb1c6;
  --line: rgba(159, 177, 198, .18);
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font: 17px/1.6 "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--sky-hi); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(28px, 3.4vw, 40px); }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; }
.section-lede { color: var(--muted); max-width: 44em; margin: 0 0 48px; font-size: 18px; }

.preview-banner {
  background: repeating-linear-gradient(45deg, #5b3a00, #5b3a00 12px, #6e4700 12px, #6e4700 24px);
  color: #ffe3a3; text-align: center; font-weight: 600; padding: 10px 16px; font-size: 14px;
}

/* nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(11, 22, 38, .82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: 14px; }
.brand img { background: #fff; border-radius: 50%; padding: 2px; }
.nav nav { display: flex; gap: 28px; }
.nav nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav nav a:hover { color: var(--ink); }

/* hero */
.hero {
  padding: 88px 0 104px;
  background:
    radial-gradient(1000px 500px at 80% 10%, rgba(47, 127, 193, .28), transparent 60%),
    radial-gradient(800px 400px at 10% 100%, rgba(184, 104, 30, .18), transparent 60%),
    var(--night);
}
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.6vw, 68px); font-weight: 700; }
.lede { font-size: 21px; color: #c7d5e4; max-width: 30em; }
.pill { display: inline-block; font-size: 12.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ground-hi); border: 1px solid rgba(224, 138, 60, .45); border-radius: 999px; padding: 5px 14px; margin-bottom: 22px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 18px; }
.hero-note { color: var(--muted); font-size: 14px; margin: 0; }
.button { display: inline-block; padding: 14px 26px; border-radius: 999px; background: var(--sky); color: #fff; font-weight: 600; text-decoration: none; border: 1px solid var(--sky); transition: background .2s, transform .2s; }
.button:hover { background: var(--sky-hi); transform: translateY(-1px); }
.button.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.button.ghost:hover { border-color: var(--muted); background: rgba(255, 255, 255, .04); }
.button.disabled { background: transparent; color: var(--muted); border: 1px dashed var(--muted); cursor: default; transform: none; }





/* features */
.features { background: var(--panel); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.card { position: relative; background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015)); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card h3 { font-size: 20px; margin-top: 18px; }
.card p { color: #c2d0df; margin: 0; font-size: 16px; }
.card.preview { border-style: dashed; border-color: rgba(224, 138, 60, .6); }
.icon { width: 42px; height: 42px; padding: 9px; border-radius: 11px; background: rgba(47, 127, 193, .16); stroke: var(--sky-hi); stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.badge { display: inline-block; margin-top: 16px; font-size: 12px; font-weight: 600; color: var(--ground-hi); border: 1px solid rgba(224, 138, 60, .5); border-radius: 6px; padding: 3px 8px; }

/* system */
.arch { display: flex; align-items: stretch; gap: 0; }
.arch-node { flex: 1; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; display: flex; flex-direction: column; gap: 6px; }
.arch-node b { font-size: 17px; }
.arch-node span { color: var(--muted); font-size: 14.5px; }
.arch-link { flex: 0 0 40px; align-self: center; height: 2px; background: linear-gradient(90deg, var(--sky), var(--ground)); position: relative; }
.arch-link::after { content: ""; position: absolute; right: -1px; top: -4px; border: 5px solid transparent; border-left: 7px solid var(--ground); }

/* gallery */
.gallery { background: var(--panel); }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.shots figure { margin: 0; }
.shots img { border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0, 0, 0, .45); }
.shots figcaption { color: var(--muted); font-size: 14.5px; margin-top: 12px; }

/* builder */
.builder { background: linear-gradient(180deg, #f4f7fa, #e8eef4); color: var(--navy); }
.builder-inner { display: grid; grid-template-columns: 360px 1fr; gap: 64px; align-items: center; }
.builder p { font-size: 19px; color: #31465f; margin: 0; }

/* roadmap */
.roadmap { border-top: 1px solid var(--line); }
.roadmap p { color: #c2d0df; max-width: 44em; font-size: 18px; }

/* workshop */
.workshop-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0; }
.stats div { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.stats dt { color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .1em; }
.stats dd { margin: 4px 0 0; font-size: 22px; font-weight: 700; }
.since { color: var(--muted); font-size: 14px; }
.log { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.log li { position: relative; padding: 0 0 22px 26px; display: grid; gap: 2px; }
.log li::before { content: ""; position: absolute; left: -7px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--night); border: 2px solid var(--sky); }
.log time { color: var(--ground-hi); font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.log span { color: #d3dfeb; }
.log .empty { color: var(--muted); }

/* call to action */
.cta-band { text-align: center; background: radial-gradient(700px 300px at 50% 0%, rgba(47, 127, 193, .3), transparent 70%), var(--panel); }
.cta-inner p { color: var(--muted); font-size: 18px; margin: 0 0 28px; }

/* footer */
footer { padding: 48px 0 40px; border-top: 1px solid var(--line); }
.notice { border: 1.5px solid var(--ground); border-radius: 12px; padding: 18px 22px; margin-bottom: 28px; }
.notice b { color: var(--ground-hi); font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; }
.notice p { margin: 6px 0 0; color: #c7d5e4; font-size: 14.5px; }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 13.5px; }

@media (max-width: 900px) {
  section { padding: 72px 0; }
  .hero-inner, .builder-inner, .workshop-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { order: -1; max-width: 320px; margin: 0 auto; }
  .arch { flex-direction: column; }
  .arch-link { flex: 0 0 28px; width: 2px; height: auto; align-self: center; background: linear-gradient(180deg, var(--sky), var(--ground)); }
  .arch-link::after { right: -4px; top: auto; bottom: -1px; border: 5px solid transparent; border-top: 7px solid var(--ground); }
  .nav nav { display: none; }
  .builder-inner .lockup { max-width: 280px; }
}
@media (max-width: 520px) { .stats { grid-template-columns: 1fr; } }

/* Let grid children shrink below long identifiers (e.g. EFIS_GNSS_STATUS) on narrow screens. */
.hero-inner > *, .builder-inner > *, .workshop-inner > *, .log li { min-width: 0; }
body { overflow-wrap: break-word; }
.log span { overflow-wrap: anywhere; }

/* Print / PDF: keep the dark backgrounds and colours, drop the sticky nav. */
@media print {
  /* Wide page in A4 proportions so the desktop layout prints, not the phone one. */
  @page { size: 1280px 1810px; margin: 0; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  html, body { background: var(--night); }
  .nav { position: static; backdrop-filter: none; background: var(--night); }
  .card, .arch-node, .stats div, .log li, .notice { break-inside: avoid; }
  section { padding: 56px 0; }
}
@media print {
  h2, .section-lede { break-after: avoid; }
  .hero, .system, .builder, .workshop-inner, .cta-band { break-inside: avoid; }
}
/* Force the desktop layout in print, whatever width the print engine reports. */
@media print {
  .hero-inner { grid-template-columns: 1.1fr .9fr; gap: 56px; }
  .builder-inner { grid-template-columns: 360px 1fr; gap: 64px; }
  .workshop-inner { grid-template-columns: .8fr 1.2fr; gap: 64px; }
  .hero-art { order: 0; max-width: none; margin: 0; }
  .nav nav { display: flex; }
  .arch { flex-direction: row; }
  .arch-link { flex: 0 0 40px; width: auto; height: 2px; background: linear-gradient(90deg, var(--sky), var(--ground)); }
  .arch-link::after { right: -1px; top: -4px; bottom: auto; border: 5px solid transparent; border-left: 7px solid var(--ground); }
  .stats { grid-template-columns: repeat(3, 1fr); }
}

/* card status note (e.g. part of a feature still in development) */
.card .note { margin-top: 14px; font-size: 13.5px; color: var(--ground-hi); }

/* roadmap grid */
.roadmap { background: var(--night); border-top: 1px solid var(--line); }
.road-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.road-item { border: 1px dashed rgba(159, 177, 198, .35); border-radius: 12px; padding: 20px; break-inside: avoid; }
.road-item h3 { font-size: 17px; margin: 12px 0 6px; }
.road-item p { margin: 0; color: var(--muted); font-size: 14.5px; }
.status { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; border-radius: 6px; padding: 3px 8px; }
.status.dev { color: #ffd9b0; background: rgba(184, 104, 30, .35); }
.status.planned { color: var(--sky-hi); background: rgba(47, 127, 193, .2); }
@media print { .roadmap { break-before: page; } .pill { break-after: avoid; } }

/* ---- SightControl additions ---- */
.brand span { letter-spacing: .12em; }
.brand b { color: var(--sky-hi); font-weight: 600; }
.brand img { background: none; padding: 0; }
.hero h1 { font-size: clamp(44px, 6.4vw, 80px); }

/* hero cockpit scene */
.scene { width: 100%; max-width: 560px; margin: 0 auto; display: block; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .55)); }
.scene .world { transform-origin: 320px 200px; animation: bank 16s ease-in-out infinite; }
.scene .pin { animation: pulse 2.4s ease-in-out infinite; }
.scene .ticks { animation: sight 4s ease-in-out infinite; transform-origin: 320px 200px; }
@keyframes bank {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  25% { transform: rotate(-6deg) translateY(8px); }
  55% { transform: rotate(3deg) translateY(-6px); }
  80% { transform: rotate(5deg) translateY(4px); }
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes sight { 0%, 100% { transform: scale(1); } 50% { transform: scale(.9); } }
@media (prefers-reduced-motion: reduce) {
  .scene .world, .scene .pin, .scene .ticks { animation: none; }
  html { scroll-behavior: auto; }
}
@media print { .scene .world, .scene .pin, .scene .ticks { animation: none; } }

/* clearance colour key under the feature lede */
.icon { stroke: var(--sky-hi); }

/* workshop log area tags */
.log .tag { font-style: normal; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sky-hi); background: rgba(47, 127, 193, .16); border-radius: 5px; padding: 2px 7px; margin-right: 8px; }

/* layered app icon, the way visionOS stacks it */
.app-icon { position: relative; width: 112px; height: 112px; margin: 0 auto 26px; border-radius: 50%; overflow: hidden; box-shadow: 0 18px 40px rgba(0, 0, 0, .5); }
.app-icon img { position: absolute; inset: 0; width: 100%; height: 100%; }
.app-icon img:nth-child(3) { transition: transform .4s; }
.app-icon:hover img:nth-child(3) { transform: scale(1.06); }

.builder .lockup { background: var(--night); border-radius: 16px; padding: 22px; }

/* hero video (drop a file in video/ to replace the illustration) */
.hero-video { width: 100%; max-width: 560px; margin: 0 auto; display: block; border-radius: 26px; border: 2px solid #2a4466; background: #06101d; aspect-ratio: 16 / 10; object-fit: cover; box-shadow: 0 30px 60px rgba(0, 0, 0, .55); }

/* White Gardner Avionics banner under the nav, matching the GA Pilot Log site. */
.logo-banner { background: #fff; text-align: center; padding: 24px 0; }
.logo-banner img { display: block; margin: 0 auto; width: 360px; max-width: 80%; height: auto; }
