/* ============================================================
   QUADRORED — cyberpunk FPV drone landing
   Pure CSS3. Dark theme, high contrast, red accent + glow.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg:        #0d0d0d;   /* deep black page */
  --bg-grid:   #141414;
  --elev:      #121212;
  --card:      #1a1a1a;   /* card surface */
  --card-2:    #1f1f1f;
  --border:    #262626;
  --border-2:  #333333;
  --accent:    #ff0033;   /* brand red */
  --accent-lo: #ff3355;
  --accent-hi: #ff5e7a;
  --accent-dp: #c8001f;
  --text:      #ffffff;
  --dim:       #888888;   /* secondary text */
  --mute:      #5a5a5a;
  --glow:      rgba(255, 0, 51, .55);
  --glow-soft: rgba(255, 0, 51, .22);

  --font-display: 'Orbitron', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: .01em;
  overflow-x: hidden;
  /* subtle technical grid + vignette */
  background-image:
    radial-gradient(1200px 700px at 78% -8%, rgba(255,0,51,.10), transparent 60%),
    linear-gradient(var(--bg-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px);
  background-size: 100% 100%, 56px 56px, 56px 56px;
  background-position: 0 0, 0 0, 0 0;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input { font-family: inherit; }
ul { list-style: none; }

::selection { background: var(--accent); color: #fff; }

/* ---------- Shared layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: clamp(72px, 11vw, 140px); position: relative; }

/* eyebrow / HUD label */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--glow);
}

.section-head { margin-bottom: clamp(40px, 6vw, 72px); max-width: 720px; }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.05;
  letter-spacing: .01em;
  margin-top: 18px;
  text-transform: uppercase;
}
.section-head p { color: var(--dim); margin-top: 18px; font-size: clamp(15px, 1.6vw, 18px); max-width: 56ch; }

.text-accent { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  --bw: 1px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 16px 30px;
  border-radius: var(--radius);
  transition: all .3s var(--ease);
  white-space: nowrap;
  border: var(--bw) solid transparent;
}
.btn svg { width: 18px; height: 18px; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 rgba(255,0,51,0), 0 8px 24px -10px var(--glow);
}
.btn-primary:hover {
  background: var(--accent-lo);
  box-shadow: 0 0 28px var(--glow), 0 10px 30px -8px var(--glow);
  transform: translateY(-2px);
}
.btn-primary:active { transform: translateY(0); background: var(--accent-dp); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-2);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 20px var(--glow-soft); }

.btn-block { width: 100%; }
.btn-lg { padding: 19px 38px; font-size: 15px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 80;
  transition: background .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(10,10,10,.72);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: .18em;
  color: #fff;
  display: inline-flex;
  align-items: center;
}
.logo .q { color: var(--accent); text-shadow: 0 0 18px var(--glow); }
.logo:hover .q { text-shadow: 0 0 26px var(--glow); }

/* ============================================================
   HERO  (3 switchable layouts via [data-hero])
   ============================================================ */
.hero { position: relative; padding-top: 150px; padding-bottom: clamp(60px, 9vw, 120px); overflow: hidden; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
}
.hero-copy { position: relative; z-index: 3; }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 7.2vw, 88px);
  line-height: .98;
  letter-spacing: .005em;
  text-transform: uppercase;
  margin: 22px 0 0;
}
.hero h1 .brand {
  display: block;
  font-size: .56em;
  font-weight: 700;
  letter-spacing: .1em;
  color: #fff;
  margin-bottom: .14em;
}
.hero h1 .line2 { color: var(--text); display: block; }
.hero h1 .accent-word { color: var(--accent); text-shadow: 0 0 40px var(--glow); }
.hero-sub {
  color: var(--dim);
  font-size: clamp(16px, 1.8vw, 19px);
  max-width: 48ch;
  margin-top: 26px;
}
.hero-cta { display: flex; gap: 16px; margin-top: 38px; flex-wrap: wrap; }

.hero-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
}
.hero-stage .drone { width: min(560px, 92%); filter: drop-shadow(0 30px 60px rgba(0,0,0,.6)); }

/* ring / reticle behind drone */
.hero-reticle {
  position: absolute;
  inset: 0;
  margin: auto;
  width: min(540px, 86%);
  aspect-ratio: 1;
  z-index: 0;
  pointer-events: none;
  opacity: .9;
}

.hero-readout {
  position: absolute;
  left: 0; bottom: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--mute);
  display: flex;
  gap: 22px;
  z-index: 3;
}
.hero-readout b { color: var(--accent); font-weight: 600; }

/* ---- Layout B: centered ---- */
body[data-hero="b"] .hero-grid {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
  gap: 0;
}
body[data-hero="b"] .hero-copy { order: 1; max-width: 900px; }
body[data-hero="b"] .hero h1 { font-size: clamp(44px, 10vw, 124px); }
body[data-hero="b"] .hero-sub { margin-inline: auto; }
body[data-hero="b"] .hero-cta { justify-content: center; }
body[data-hero="b"] .hero-stage { order: 2; margin-top: -2vw; min-height: unset; }
body[data-hero="b"] .hero-stage .drone { width: min(620px, 96%); }
body[data-hero="b"] .hero-readout { left: 50%; transform: translateX(-50%); }

/* ---- Layout C: drone left, oversized type right ---- */
body[data-hero="c"] .hero-grid { grid-template-columns: 1fr 1.1fr; }
body[data-hero="c"] .hero-stage { order: -1; min-height: 480px; }
body[data-hero="c"] .hero-stage .drone { width: min(640px, 104%); transform: translateX(-6%); }
body[data-hero="c"] .hero h1 { font-size: clamp(44px, 8.2vw, 104px); }
body[data-hero="c"] .hero-copy { text-align: left; }

/* ============================================================
   SPECS  (4 cards)
   ============================================================ */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.spec-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px 32px;
  overflow: hidden;
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.spec-card::after {
  content: "";
  position: absolute;
  inset: auto auto 0 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.spec-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -24px var(--glow);
}
.spec-card:hover::after { transform: scaleX(1); }

.spec-ico {
  display: grid;
  place-items: center start;
  width: 48px; height: 48px;
  color: var(--accent);
  margin-bottom: 22px;
}
.spec-ico svg { width: 48px; height: 48px; }
.spec-num {
  position: absolute;
  top: 22px; right: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--mute);
}
.spec-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1;
  letter-spacing: .01em;
}
.spec-value small { font-size: .5em; color: var(--dim); font-family: var(--font-mono); font-weight: 400; letter-spacing: .05em; margin-left: 5px; }
.spec-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-top: 14px; }
.spec-desc { color: var(--dim); font-size: 14.5px; margin-top: 10px; }

/* ============================================================
   CATALOG
   ============================================================ */
.catalog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.model-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.model-card:hover { border-color: var(--border-2); box-shadow: 0 30px 60px -40px rgba(0,0,0,.9); }

.model-media {
  position: relative;
  aspect-ratio: 16 / 11;
  display: grid;
  place-items: center;
  padding: 30px;
  background:
    radial-gradient(120% 90% at 50% 18%, rgba(255,0,51,.12), transparent 60%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 1px, transparent 1px 40px),
    var(--elev);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.model-media .drone { width: 78%; transition: transform .5s var(--ease); filter: drop-shadow(0 18px 36px rgba(0,0,0,.55)); }
.model-card:hover .model-media .drone { transform: scale(1.05) rotate(-1.5deg); }
.model-tag {
  position: absolute;
  top: 16px; left: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(255,0,51,.06);
}

.model-body { padding: 28px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.model-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 2.6vw, 28px);
  text-transform: uppercase;
  letter-spacing: .02em;
}
.model-name span { color: var(--accent); }
.model-blurb { color: var(--dim); font-size: 15px; margin-top: 10px; }

.spec-list { margin-top: 22px; border-top: 1px solid var(--border); }
.spec-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14.5px;
}
.spec-list .k { color: var(--dim); font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; }
.spec-list .v { color: var(--text); font-weight: 600; text-align: right; white-space: nowrap; }

.model-foot {
  margin-top: auto;
  padding-top: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.price { display: flex; flex-direction: column; }
.price .label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.price .amount { font-family: var(--font-display); font-weight: 800; font-size: clamp(24px, 2.8vw, 30px); }

/* ============================================================
   ORDER FORM
   ============================================================ */
.order { position: relative; }
.order-card {
  max-width: 600px;
  margin-inline: auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: clamp(30px, 5vw, 52px);
  position: relative;
  overflow: hidden;
}
.order-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.order .section-head { text-align: center; margin-inline: auto; }

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 9px;
}
.field input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 15.5px;
  padding: 15px 16px;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.field input::placeholder { color: var(--mute); }
.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,0,51,.15);
  background: #0a0a0a;
}
.field.invalid input { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,0,51,.2); }
.field .err {
  display: none;
  color: var(--accent-hi);
  font-size: 12.5px;
  margin-top: 7px;
  font-family: var(--font-mono);
  letter-spacing: .03em;
}
.field.invalid .err { display: block; }

.form-note { text-align: center; color: var(--mute); font-size: 12.5px; margin-top: 16px; font-family: var(--font-mono); letter-spacing: .04em; }

.form-success {
  text-align: center;
  padding: 20px 0;
}
.form-success .ok-ring {
  width: 64px; height: 64px;
  margin: 0 auto 22px;
  border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid var(--accent);
  color: var(--accent);
  box-shadow: 0 0 30px var(--glow-soft);
}
.form-success .ok-ring svg { width: 30px; height: 30px; }
.form-success h3 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .04em; font-size: 24px; }
.form-success p { color: var(--dim); margin-top: 10px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 46px;
  background: #0a0a0a;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-inner .logo { font-size: 18px; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links a { color: var(--dim); font-size: 14px; transition: color .25s var(--ease); }
.footer-links a:hover { color: var(--accent); }
.copy { color: var(--mute); font-size: 13px; font-family: var(--font-mono); letter-spacing: .04em; }

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(5,5,5,.78);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s var(--ease);
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  width: min(560px, 100%);
  background: var(--card);
  border: 1px solid var(--border-2);
  border-radius: 8px;
  padding: clamp(28px, 4vw, 44px);
  position: relative;
  transform: translateY(18px) scale(.98);
  opacity: 0;
  transition: transform .35s var(--ease), opacity .35s var(--ease);
  max-height: 92vh;
  overflow-y: auto;
}
.modal-overlay.open .modal { transform: none; opacity: 1; }
.modal::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.modal-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  color: var(--dim);
  transition: all .25s var(--ease);
}
.modal-close:hover { border-color: var(--accent); color: var(--accent); transform: rotate(90deg); }
.modal .eyebrow { margin-bottom: 14px; }
.modal h3 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(22px, 3vw, 28px); letter-spacing: .02em; }
.modal .modal-sub { color: var(--dim); margin: 12px 0 26px; font-size: 15px; }

.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 22px; }
.choice {
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  transition: all .25s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.choice .nm { font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.choice .pr { font-family: var(--font-mono); font-size: 13px; color: var(--dim); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice:hover { border-color: var(--accent-lo); }
.choice.sel { border-color: var(--accent); background: rgba(255,0,51,.07); box-shadow: 0 0 24px -8px var(--glow); }
.choice.sel .pr { color: var(--accent); }

/* ============================================================
   HERO SWITCHER (preview affordance)
   ============================================================ */
.hero-switch {
  position: fixed;
  left: 20px; bottom: 20px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16,16,16,.86);
  border: 1px solid var(--border-2);
  border-radius: 999px;
  padding: 7px 8px 7px 14px;
  backdrop-filter: blur(10px);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mute);
  box-shadow: 0 14px 30px -16px rgba(0,0,0,.8);
}
.hero-switch .hs-label { white-space: nowrap; }
.hero-switch .hs-btns { display: flex; gap: 4px; }
.hero-switch button {
  width: 30px; height: 28px;
  border-radius: 999px;
  color: var(--dim);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  transition: all .25s var(--ease);
}
.hero-switch button:hover { color: var(--text); }
.hero-switch button.active { background: var(--accent); color: #fff; box-shadow: 0 0 16px var(--glow-soft); }

/* ============================================================
   Scroll reveal
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .reveal.in { opacity: 1; transform: none; }
}

/* prop spin */
@media (prefers-reduced-motion: no-preference) {
  .prop-disc { transform-box: fill-box; transform-origin: center; animation: spin 6s linear infinite; }
  @keyframes spin { to { transform: rotate(360deg); } }
  .ret-spin { transform-box: fill-box; transform-origin: center; animation: spin 48s linear infinite; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .specs-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero-grid,
  body[data-hero="c"] .hero-grid { grid-template-columns: 1fr; text-align: left; }
  .hero-stage { order: -1 !important; min-height: 320px !important; margin-top: 0 !important; }
  body[data-hero="c"] .hero-stage .drone { transform: none; }
  .hero-copy { order: 1 !important; }
  .hero-readout { position: static; margin-top: 26px; }
  .catalog-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .specs-grid { grid-template-columns: 1fr; }
  .header-inner { height: 64px; }
  .hero { padding-top: 120px; }
  .choice-row { grid-template-columns: 1fr; }
  .hero-switch { left: 12px; bottom: 12px; padding: 6px 8px; }
  .hero-switch .hs-label { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 360px) {
  :root { --gutter: 16px; }
}
