:root {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Palette — midnight navy + lens cyan (matches R1 flyer) */
  --color-bg: #0d1622;
  --color-surface: #131f30;
  --color-surface-offset: #0a1320;
  --color-divider: #24354c;
  --color-text: #eef3f8;
  --color-text-muted: #8fa5bd;
  --color-text-inverse: #f4f7fb;
  --color-accent: #5bbce4;
  --color-accent-hover: #7cc9ea;
  --color-ink: #0d1622;
  --color-ink-soft: #16283c;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;

  /* Motion */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.45);

  /* Widths */
  --content-default: 1080px;
  --content-wide: 1200px;

  /* Fonts */
  --font-display: 'Satoshi', 'General Sans', 'Helvetica Neue', sans-serif;
  --font-body: 'General Sans', 'Helvetica Neue', sans-serif;
}

/* ---------- Body blueprint grid (flyer motif) ---------- */
body {
  background-image:
    linear-gradient(rgba(143, 165, 189, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 165, 189, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 22, 34, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-divider);
}

.header-inner {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
}

.brand-logo {
  display: block;
  height: 38px;
  width: auto;
}

.brand-sub {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-text);
  line-height: 1.5;
}

.site-nav {
  display: none;
  align-items: center;
  gap: var(--space-6);
}

.site-nav a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--color-text);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.header-phone {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  white-space: nowrap;
}

.header-phone:hover {
  color: var(--color-accent);
}

@media (min-width: 820px) {
  .site-nav {
    display: flex;
  }
}

@media (max-width: 640px) {
  .header-phone {
    display: none;
  }

  .header-cta .btn {
    white-space: nowrap;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-full, 9999px);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  min-height: 44px;
  cursor: pointer;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-ink);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
}

.btn-ghost {
  border: 1px solid rgba(244, 247, 251, 0.5);
  color: var(--color-text-inverse);
}

.btn-ghost:hover {
  background: rgba(244, 247, 251, 0.12);
}

.btn-quiet {
  border: 1px solid var(--color-divider);
  color: var(--color-text);
}

.btn-quiet:hover {
  border-color: var(--color-accent);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  color: var(--color-text-inverse);
  isolation: isolate;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to top,
    rgba(8, 14, 22, 0.88) 0%,
    rgba(8, 14, 22, 0.6) 50%,
    rgba(8, 14, 22, 0.2) 100%
  );
}

.hero-inner {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding: var(--space-24) var(--space-4) var(--space-16);
  width: 100%;
}

.hero .hero-kicker {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
  max-width: none;
}

.hero-kicker span {
  white-space: nowrap;
}

@media (max-width: 480px) {
  .hero-kicker .kicker-wide {
    display: none;
  }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 600;
  letter-spacing: -0.01em;
  max-width: 16ch;
  margin-bottom: var(--space-5);
}

.hero p {
  font-size: var(--text-lg);
  max-width: 46ch;
  color: rgba(238, 243, 248, 0.88);
  margin-bottom: var(--space-8);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* ---------- Sections ---------- */
#packages,
#addons,
#twilight,
#process,
#faq {
  scroll-margin-top: 96px;
}

.section {
  padding-block: clamp(var(--space-12), 7vw, var(--space-24));
}

.container {
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.container-wide {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.section-label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-4);
}

.section-intro {
  color: var(--color-text-muted);
  max-width: 52ch;
  margin-bottom: var(--space-10);
}

/* ---------- Why R1 (split) ---------- */
.why-grid {
  display: grid;
  gap: var(--space-10);
  align-items: center;
}

@media (min-width: 900px) {
  .why-grid {
    grid-template-columns: 1fr 1.05fr;
    gap: var(--space-16);
  }
}

.why-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
}

.why-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.why-list {
  counter-reset: why;
  display: grid;
  gap: var(--space-6);
}

.why-item {
  counter-increment: why;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-4);
  align-items: start;
}

.why-item::before {
  content: counter(why, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-accent);
  line-height: 1.4;
}

.why-item h3 {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.why-item p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ---------- Packages ---------- */
.packages {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 700px) {
  .packages {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1060px) {
  .packages {
    grid-template-columns: repeat(4, 1fr);
  }
}

.pkg {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  box-shadow: var(--shadow-sm);
}

.pkg h3 {
  font-size: var(--text-base);
  font-weight: 600;
}

.pkg-price {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
}

.pkg-price span {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  display: block;
  font-weight: 400;
}

.pkg ul {
  display: grid;
  gap: var(--space-2);
  margin-block: var(--space-2);
  list-style: none;
}

.pkg li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding-left: var(--space-4);
  position: relative;
}

.pkg li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-accent);
}

.pkg .btn {
  margin-top: auto;
}

.pkg--featured {
  background: var(--color-ink-soft);
  border-color: var(--color-accent);
  color: var(--color-text-inverse);
}

.pkg--featured .pkg-price,
.pkg--featured h3 {
  color: var(--color-text-inverse);
}

.pkg--featured .pkg-price span,
.pkg--featured li {
  color: rgba(238, 243, 248, 0.72);
}

.pkg--featured .btn-primary {
  background: var(--color-accent);
}

.pkg--featured .btn-primary:hover {
  background: var(--color-accent-hover);
}

.pkg-badge {
  display: inline-block;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  padding: var(--space-1) var(--space-3);
  border-radius: 9999px;
  align-self: flex-start;
}

.pkg-badge--light {
  color: var(--color-accent);
  border: 1px solid rgba(91, 188, 228, 0.45);
  background: rgba(91, 188, 228, 0.08);
}

.pkg-badge--dark {
  color: var(--color-ink);
  background: var(--color-accent);
}

/* ---------- Size table ---------- */
.size-table-wrap {
  margin-top: var(--space-10);
  overflow-x: auto;
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}

.size-table {
  min-width: 640px;
  font-size: var(--text-sm);
}

.size-table th,
.size-table td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--color-divider);
  white-space: nowrap;
}

.size-table thead th {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  font-weight: 500;
}

.size-table tbody tr:last-child td {
  border-bottom: none;
}

.size-table td:first-child {
  font-weight: 500;
}

.size-note {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-3);
}

/* ---------- Add-ons table ---------- */
.addon-table {
  font-size: var(--text-sm);
}

.addon-table th,
.addon-table td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--color-divider);
}

.addon-table thead th {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  font-weight: 500;
}

.addon-table td:first-child {
  font-weight: 500;
}

.addon-table .num {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.addon-table .new-flag {
  font-size: var(--text-xs);
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-left: var(--space-2);
}

/* ---------- Twilight showcase ---------- */
.showcase {
  position: relative;
  color: var(--color-text-inverse);
  isolation: isolate;
  padding-block: clamp(var(--space-16), 9vw, var(--space-24));
}

.showcase img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.showcase::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    100deg,
    rgba(12, 20, 28, 0.88) 0%,
    rgba(12, 20, 28, 0.55) 55%,
    rgba(12, 20, 28, 0.25) 100%
  );
}

.showcase-inner {
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.showcase .section-label {
  color: var(--color-accent);
}

.showcase h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  max-width: 22ch;
  margin-bottom: var(--space-4);
}

.showcase p {
  max-width: 44ch;
  color: rgba(238, 243, 248, 0.85);
  margin-bottom: var(--space-6);
}

.showcase .btn-primary {
  background: #9dafc3;
  color: var(--color-ink);
}

.showcase .btn-primary:hover {
  background: #b3c2d3;
}

/* ---------- Drone split ---------- */
.drone-grid {
  display: grid;
  gap: var(--space-10);
  align-items: center;
}

@media (min-width: 900px) {
  .drone-grid {
    grid-template-columns: 1.05fr 1fr;
    gap: var(--space-16);
  }
}

.drone-grid .why-image {
  aspect-ratio: 16 / 10;
}

.drone-facts {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.drone-facts div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-3);
  align-items: baseline;
}

.drone-facts dt {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-accent);
  min-width: 3.2em;
}

.drone-facts dd {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ---------- Process ---------- */
.process {
  display: grid;
  gap: var(--space-8);
  counter-reset: step;
}

@media (min-width: 900px) {
  .process {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-10);
  }
}

.step {
  counter-increment: step;
  border-top: 1px solid var(--color-divider);
  padding-top: var(--space-5);
}

.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}

.step h3 {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.step p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 720px;
}

.faq details {
  border-bottom: 1px solid var(--color-divider);
}

.faq summary {
  padding: var(--space-4) 0;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  min-height: 44px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '';
  flex: none;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(var(--color-accent), var(--color-accent)) center / 100% 2px no-repeat,
    linear-gradient(var(--color-accent), var(--color-accent)) center / 2px 100% no-repeat;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq .faq-answer {
  padding-bottom: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 60ch;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  color: var(--color-text-inverse);
  isolation: isolate;
  padding-block: clamp(var(--space-16), 8vw, var(--space-24)) var(--space-8);
}

.site-footer img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.site-footer::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(12, 20, 28, 0.88);
}

.footer-grid {
  display: grid;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.site-footer .footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-3);
  color: rgba(238, 243, 248, 0.92);
}

.site-footer .footer-brand img {
  position: static;
  inset: auto;
  height: 44px;
  width: auto;
  object-fit: initial;
  z-index: auto;
  flex: none;
}

.site-footer p,
.site-footer li {
  color: rgba(238, 243, 248, 0.75);
  font-size: var(--text-sm);
}

.site-footer h3 {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(238, 243, 248, 0.55);
  margin-bottom: var(--space-4);
  font-weight: 500;
}

.footer-list {
  display: grid;
  gap: var(--space-2);
}

.footer-list a {
  color: rgba(238, 243, 248, 0.85);
  text-decoration: none;
}

.footer-list a:hover {
  color: #fff;
}

.footer-fineprint {
  border-top: 1px solid rgba(238, 243, 248, 0.18);
  padding-top: var(--space-6);
  font-size: var(--text-xs);
  color: rgba(238, 243, 248, 0.55);
  display: grid;
  gap: var(--space-2);
  max-width: none;
}

/* ---------- Scroll reveal ---------- */
/* Hidden state only applies when JS is available (html.js), so content
   is never invisible without JavaScript. */
.js .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(16px);
}

.reveal {
  transition:
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}
