/* ============================================================
   skyZenith Drones — design system
   Concept: flight log meets engineering drawing.
   Dark sections = night-ops console. Light sections = drawing sheet.
   ============================================================ */

/* ---------- Fonts (self-hosted) ---------- */
@font-face { font-family: "Poppins"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("../fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("../fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("../fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("../fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/plex-mono-400.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --ink-deep: #0B0F14; --white: #FFFFFF; --ink: #111827; --muted: #4B5563;
  --amber: #F2A31B; --amber-deep: #A16207; --hairline: #E5E7EB;
  --ink-deep-92: rgba(11, 15, 20, .92);
  --font-head: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", Consolas, monospace;
  --container: 1120px; --radius: 10px;
  --space-1: .5rem; --space-2: 1rem; --space-3: 1.5rem; --space-4: 2.5rem;
  --space-5: 4rem; --space-6: 6rem;
  --dur: .22s; --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body); font-weight: 400; line-height: 1.65;
  color: var(--ink); background: var(--white);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 2px; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.12; letter-spacing: -.015em; }
h1 { font-size: clamp(2.5rem, 5.4vw, 3.7rem); }
h2 { font-size: clamp(1.85rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.17rem; font-weight: 500; }
p  { max-width: 62ch; }
.lede { font-size: 1.13rem; color: var(--muted); }
.section--dark .lede { color: rgba(255, 255, 255, .78); }
.eyebrow {
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--amber-deep); margin-bottom: var(--space-2);
}
.section--dark .eyebrow { color: var(--amber); }
.mono { font-family: var(--font-mono); }

/* ---------- Layout primitives ---------- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2rem); }
.section { padding-block: var(--space-6); background: var(--white); }
.section--tight { padding-block: var(--space-5); }
.section--dark {
  background-color: var(--ink-deep); color: var(--white); position: relative;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='640' viewBox='0 0 1200 640'%3E%3Cg fill='none' stroke='%23FFFFFF' stroke-opacity='.055'%3E%3Cpath d='M-40 520 C 220 430 420 610 700 520 S 1120 430 1260 500'/%3E%3Cpath d='M-40 560 C 240 480 460 650 740 560 S 1140 470 1260 540'/%3E%3Cpath d='M-40 480 C 200 390 380 560 660 480 S 1100 390 1260 460'/%3E%3Cpath d='M-40 140 C 260 60 480 220 760 140 S 1160 60 1260 120'/%3E%3Cpath d='M-40 100 C 240 20 440 180 720 100 S 1120 30 1260 80'/%3E%3C/g%3E%3Cg fill='none' stroke='%23F2A31B' stroke-opacity='.10' stroke-dasharray='2 10'%3E%3Cpath d='M-40 320 C 300 240 620 400 1260 300'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 1200px 640px; background-repeat: repeat;
}
.grid-2, .grid-3, .grid-4 { display: grid; gap: var(--space-3); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 920px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding-block: var(--space-5); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: .82rem 1.7rem; border-radius: 6px;
  font-family: var(--font-head); font-weight: 500; font-size: .98rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--amber); color: var(--ink-deep); }
.btn--primary:hover { background: #FFB52E; }
.btn--ghost { border-color: rgba(255, 255, 255, .45); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); }
.section:not(.section--dark) .btn--ghost { border-color: rgba(17, 24, 39, .35); color: var(--ink); }
.section:not(.section--dark) .btn--ghost:hover { border-color: var(--ink); }
.btn-row { display: flex; gap: var(--space-2); flex-wrap: wrap; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink-deep-92); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.site-header .container { display: flex; align-items: center; gap: var(--space-3); height: 72px; }
.brand { margin-right: auto; display: flex; align-items: center; gap: .68rem; text-decoration: none; }
.brand img { height: 36px; width: auto; }
.brand-name { font-family: var(--font-head); font-weight: 600; font-size: 1.22rem;
  color: var(--white); letter-spacing: -.01em; }
.brand-name small { display: block; font-family: var(--font-mono); font-weight: 400;
  font-size: .58rem; letter-spacing: .34em; color: rgba(255, 255, 255, .55);
  text-transform: uppercase; line-height: 1; margin-top: .1rem; }
.site-nav { display: flex; align-items: center; gap: 1.7rem; }
.site-nav a {
  color: rgba(255, 255, 255, .82); text-decoration: none; font-size: .95rem; font-weight: 500;
  padding-block: .35rem; border-bottom: 2px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.site-nav a:hover { color: var(--white); }
.site-nav a[aria-current="page"] { color: var(--white); border-bottom-color: var(--amber); }
.site-nav .btn { border-bottom: none; padding: .6rem 1.25rem; }
.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--white); margin: 5px 0; transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }
@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--ink-deep); padding: var(--space-2) clamp(1.25rem, 4vw, 2rem) var(--space-3);
    border-bottom: 1px solid rgba(255, 255, 255, .08); gap: .35rem;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: .7rem 0; border-bottom: 1px solid rgba(255, 255, 255, .07); }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--amber); }
  .site-nav .btn { margin-top: var(--space-2); text-align: center; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; min-height: 62vh; display: grid; align-items: end; padding-block: var(--space-6); }
.hero--tall { min-height: min(86vh, 820px); }
.hero__media { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; }
.hero__media::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,15,20,.74) 0%, rgba(11,15,20,.62) 45%, rgba(11,15,20,.9) 100%); }
.hero .container { position: relative; z-index: 1; }
.hero h1 { max-width: 17ch; }
.hero .lede { margin-top: var(--space-2); max-width: 52ch; }
.hero .btn-row { margin-top: var(--space-4); }

/* Staggered load reveal (dark heroes only) */
.reveal > * { opacity: 0; transform: translateY(14px);
  animation: rise .7s var(--ease) forwards; }
.reveal > *:nth-child(1) { animation-delay: .05s; }
.reveal > *:nth-child(2) { animation-delay: .16s; }
.reveal > *:nth-child(3) { animation-delay: .27s; }
.reveal > *:nth-child(4) { animation-delay: .38s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Cards / badges / chips ---------- */
.card {
  position: relative; display: block; background: var(--white); text-decoration: none;
  border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: var(--space-3); overflow: hidden;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--amber); transform: scaleX(0); transform-origin: left;
  transition: transform .32s var(--ease); }
.card:hover { transform: translateY(-3px); border-color: rgba(242, 163, 27, .55);
  box-shadow: 0 14px 34px -18px rgba(11, 15, 20, .28); }
.card:hover::before { transform: scaleX(1); }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .96rem; }
.card .card__go { display: inline-block; margin-top: var(--space-2); font-family: var(--font-mono);
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--amber-deep); }

.badge { border-top: 1px solid rgba(255, 255, 255, .14); padding-top: var(--space-2); position: relative; }
.badge::before { content: ""; position: absolute; top: -1px; left: 0; width: 34px; height: 1px; background: var(--amber); }
.badge h3 { font-size: 1rem; margin-bottom: .3rem; }
.badge p { font-size: .9rem; color: rgba(255, 255, 255, .66); }

.chip-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip { font-family: var(--font-mono); font-size: .82rem; color: var(--ink);
  border: 1px solid var(--hairline); border-radius: 999px; padding: .45rem 1rem; background: var(--white); }

/* ---------- How it works ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding-top: var(--space-3); }
.step::before { counter-increment: step; content: "0" counter(step);
  font-family: var(--font-mono); font-size: 2.6rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(17, 24, 39, .28);
  display: block; margin-bottom: var(--space-2); }
.section--dark .step::before { -webkit-text-stroke-color: rgba(255, 255, 255, .34); }
.step h3 { margin-bottom: .4rem; }
.step p { color: var(--muted); font-size: .97rem; }
.section--dark .step p { color: rgba(255, 255, 255, .72); }
@media (min-width: 721px) {
  .steps .step:not(:first-child)::after { content: ""; position: absolute; top: 4.1rem;
    left: calc(-1 * var(--space-3) + 6px); width: calc(var(--space-3) * 1.4); height: 0;
    border-top: 1px dashed rgba(17, 24, 39, .3); }
  .section--dark .steps .step:not(:first-child)::after { border-top-color: rgba(255, 255, 255, .3); }
}

/* ---------- Spec block (mono, engineering voice) ---------- */
.specs {
  font-family: var(--font-mono); font-size: .92rem; line-height: 2.1;
  border: 1px solid var(--hairline); border-left: 3px solid var(--amber);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: var(--space-3) var(--space-3); background: #FAFAF8; color: var(--ink);
}
.specs li { list-style: none; }
.specs li::before { content: "— "; color: var(--amber-deep); }
.specs ul { padding: 0; margin: 0; }

/* ---------- Lists ---------- */
.checklist { padding: 0; margin: 0; }
.checklist li { list-style: none; padding-left: 1.6rem; position: relative; margin-bottom: .55rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .52em;
  width: .7em; height: .7em; border: 2px solid var(--amber); border-radius: 2px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-deep); color: rgba(255, 255, 255, .72);
  padding-block: var(--space-5) var(--space-4); font-size: .93rem;
  border-top: 1px solid rgba(255, 255, 255, .07); }
.site-footer .container { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: var(--space-3); }
@media (max-width: 980px) { .site-footer .container { grid-template-columns: 1fr 1fr; } }
.site-footer img { height: 72px; width: auto; margin-bottom: var(--space-2); }
.site-footer h3 { font-size: .8rem; font-family: var(--font-mono); letter-spacing: .15em;
  text-transform: uppercase; color: rgba(255, 255, 255, .45); margin-bottom: var(--space-2); font-weight: 400; }
.site-footer a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: .45rem; }
.footer-meta { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .08);
  padding-top: var(--space-3); margin-top: var(--space-2);
  display: flex; justify-content: space-between; gap: var(--space-2); flex-wrap: wrap;
  font-size: .82rem; color: rgba(255, 255, 255, .45); }
@media (max-width: 720px) { .site-footer .container { grid-template-columns: 1fr; } }

/* ---------- Breadcrumbs ---------- */
.crumbs { background: var(--white); border-bottom: 1px solid var(--hairline); }
.crumbs .container { display: flex; gap: .55rem; align-items: center; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted); padding-block: .6rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--amber-deep); }
.crumbs span[aria-hidden] { color: var(--hairline); }

/* ---------- Articles ---------- */
.container--narrow { max-width: 800px; margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2rem); }
.article h2 { margin: var(--space-4) 0 var(--space-2); }
.article p { margin-bottom: .95rem; max-width: none; }
.article ul { margin: 0 0 .95rem; padding-left: 1.3rem; }
.article li { margin-bottom: .4rem; }
.article a { color: var(--amber-deep); text-decoration: none; font-weight: 500; }
.article a:hover { text-decoration: underline; }
.dek { font-size: 1.16rem; color: var(--muted); max-width: 58ch; }
.takeaways { border: 1px solid var(--hairline); border-left: 3px solid var(--amber);
  border-radius: 0 var(--radius) var(--radius) 0; background: #FAFAF8;
  padding: var(--space-3); margin: var(--space-4) 0; }
.takeaways h2, .takeaways h3 { font-family: var(--font-mono); font-weight: 400; font-size: .8rem;
  letter-spacing: .15em; text-transform: uppercase; color: var(--muted); margin: 0 0 var(--space-2); }
.takeaways ul { margin: 0; padding: 0; }
.takeaways li { list-style: none; padding-left: 1.6rem; position: relative; margin-bottom: .55rem; }
.takeaways li::before { content: ""; position: absolute; left: 0; top: .5em;
  width: .65em; height: .65em; border: 2px solid var(--amber); border-radius: 2px; }

/* ---------- FAQ accordion ---------- */
.faq-cat { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--amber-deep); margin: var(--space-4) 0 var(--space-2); }
.faq-cat:first-of-type { margin-top: 0; }
.faq-item { border-bottom: 1px solid var(--hairline); }
.faq-item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between;
  gap: var(--space-2); align-items: baseline; padding: 1.05rem 0;
  font-family: var(--font-head); font-weight: 500; font-size: 1.04rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--font-mono); color: var(--amber-deep);
  flex-shrink: 0; transition: transform var(--dur) var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 0 1.1rem; color: var(--muted); max-width: 66ch; }
.faq-item .faq-a p { margin-bottom: .6rem; }
.faq-item .faq-a a { color: var(--amber-deep); font-weight: 500; text-decoration: none; }
.faq-item .faq-a a:hover { text-decoration: underline; }

/* ---------- Link chips (metro links etc.) ---------- */
a.chip { text-decoration: none; transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease); }
a.chip:hover { border-color: var(--amber); color: var(--amber-deep); }

/* ---------- Figures ---------- */
.figure { border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.figure img { width: 100%; height: auto; }
.figure figcaption { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em;
  color: var(--muted); padding: .7rem 1rem; border-top: 1px solid var(--hairline); text-transform: uppercase; }

/* ---------- Forms ---------- */
.grid-contact { display: grid; grid-template-columns: 1.5fr 1fr; gap: var(--space-5); }
@media (max-width: 880px) { .grid-contact { grid-template-columns: 1fr; } }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2) var(--space-3); }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 500; font-size: .92rem; margin-bottom: .35rem; }
.field label .req { color: var(--amber-deep); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--white);
  border: 1px solid var(--hairline); border-radius: 6px; padding: .7rem .85rem;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field textarea { min-height: 9.5rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(242, 163, 27, .18);
}
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.banner { border-radius: 6px; padding: var(--space-2) var(--space-3); margin-bottom: var(--space-3);
  font-size: .97rem; border: 1px solid; }
.banner--ok { background: #FFF8EB; border-color: rgba(242, 163, 27, .5); color: #6B4A05; }
.banner--fail { background: #FEF2F2; border-color: rgba(185, 28, 28, .35); color: #7F1D1D; }
.aside-panel { border-top: 1px solid var(--hairline); padding-top: var(--space-3); }
.aside-panel + .aside-panel { margin-top: var(--space-3); }
.aside-panel h3 { font-family: var(--font-mono); font-weight: 400; font-size: .8rem;
  letter-spacing: .15em; text-transform: uppercase; color: var(--muted); margin-bottom: .5rem; }
.aside-panel a { color: var(--amber-deep); text-decoration: none; font-weight: 500; }
.aside-panel a:hover { text-decoration: underline; }

/* ---------- Utilities ---------- */
.center { text-align: center; }
.center p { margin-inline: auto; }
.mt-2 { margin-top: var(--space-2); } .mt-3 { margin-top: var(--space-3); } .mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.bordered { border-top: 1px solid var(--hairline); }
.section-head { margin-bottom: var(--space-4); }

/* ---------- Motion safety ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal > * { opacity: 1; transform: none; }
}
