/* ==========================================================================
   AeroCam landing — palette lifted from the app itself (colors.xml):
   canvas #000 / #141414, accent teal #55D6BE, recording red #FF0505,
   success #6CCB31, warning amber, secondary text #B8C1CC.
   ========================================================================== */

:root {
  --bg: #000000;
  --bg-raised: #101214;
  --bg-alt: #0a0c0d;
  --panel: #141618;
  --line: #23282c;
  --text: #ffffff;
  --text-2: #b8c1cc;
  --text-3: #7b8794;
  --accent: #55d6be;
  --accent-dim: rgba(85, 214, 190, 0.12);
  --rec: #ff0505;
  --ok: #6ccb31;
  --focus: #ffe900;
  --surface-muted: #303030;    /* dji_surface_muted */
  --surface-selector: #4b4b4b; /* dji_surface_selector */
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --maxw: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }

.mono { font-family: var(--mono); }
.accent { color: var(--accent); }

/* ------------------------------ nav ------------------------------ */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(0, 0, 0, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; gap: 16px;
}
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 800; font-size: 1.1rem; color: var(--text);
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }
.brand-logo {
  height: 28px;
  width: 50px; /* 28 * (470/264) */
  display: block;
  color: inherit;
}
.nav-links { display: flex; gap: 22px; }
.nav-links a {
  color: var(--text-2); font-size: 0.88rem; font-weight: 500;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* ------------------------------ buttons ------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px;
  font-weight: 700; font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
  cursor: pointer;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--accent); color: #04211c;
}
.btn-primary:hover { background: #72e1cc; }
.btn-ghost {
  color: var(--text); border-color: var(--line); background: transparent;
}
.btn-ghost:hover { background: var(--bg-raised); }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }
.icon { width: 16px; height: 16px; }

/* ------------------------------ hero ------------------------------ */
.hero { position: relative; overflow: hidden; padding: 92px 0 72px; }
.hero-terrain-bg {
  position: absolute; inset: 0;
  pointer-events: none;
  background: url("cycling-terrain.svg") center / cover no-repeat;
  mask-image: linear-gradient(to bottom, #000 0%, #000 65%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 65%, transparent 100%);
}
.hero-inner {
  position: relative;
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: 56px; align-items: center;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 0.8rem;
  color: var(--text-2); margin-bottom: 20px;
}
h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 850; margin-bottom: 22px;
}
.lede {
  color: var(--text-2); font-size: 1.15rem; max-width: 34em; margin-bottom: 32px;
}
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-license { font-size: 0.8rem; color: var(--text-3); letter-spacing: 0.06em; }
.hero-disclaimer { font-size: 0.72rem; color: var(--text-3); margin-top: 6px; }

/* ------------------------------ strip ------------------------------ */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.strip-inner {
  padding: 42px 24px;
  display: flex; align-items: center; gap: 44px;
  font-size: 1.25rem; color: var(--text-2); max-width: 52em;
}
.strip-inner p { text-align: left; }
.strip-strong { color: var(--text); font-weight: 800; display: block; margin-bottom: 6px; font-size: 1.45rem; }
.strip-logo {
  flex-shrink: 0;
  width: 190px; height: 107px;
  color: var(--accent);
}
.strip-logo .wind { animation: none; }
.strip-logo .wind-1 { animation-delay: 0s; }
.strip-logo .wind-2 { animation-delay: 0.5s; }
.strip-logo .wind-3 { animation-delay: 0.25s; }
.strip-logo .wind-4 { animation-delay: 0.65s; }
.strip-logo .wind-5 { animation-delay: 0.4s; }
@keyframes gust {
  0%, 100% { transform: translateX(0); opacity: 0.45; }
  50% { transform: translateX(-16px); opacity: 1; }
}

/* ------------------------------ sections ------------------------------ */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 52px; }
.kicker {
  font-family: var(--mono); color: var(--accent); font-size: 0.8rem;
  letter-spacing: 0.08em; display: block; margin-bottom: 12px;
}
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 830; }

/* Static ride-screen showcase */
.widget-showcase { border-bottom: 1px solid var(--line); }
.widget-showcase .section-head { max-width: 650px; }
.widget-showcase .section-head p { margin-top: 18px; color: var(--text-2); }
.widget-choice-note { border-left: 2px solid var(--accent); padding-left: 18px; }
.widget-choice-note strong { display: block; color: var(--accent); font-size: 1.08rem; margin-bottom: 4px; }
.widget-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
.widget-example { min-width: 0; }
.widget-example img {
  display: block; width: 100%; max-width: 290px; height: auto; margin: 0 auto;
  border: 1px solid var(--line); border-radius: var(--radius);
}
.widget-example figcaption { margin: 24px auto 0; max-width: 290px; }
.widget-example h3 { font-size: 1.08rem; margin-bottom: 8px; }
.widget-example p { color: var(--text-2); font-size: .92rem; }
@media (max-width: 700px) {
  .widget-gallery { grid-template-columns: 1fr; gap: 40px; }
  .widget-example img, .widget-example figcaption { max-width: 300px; }
}

/* Feature content leads; dividers separate capabilities. */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; row-gap: 32px; }
.card { border-top: 1px solid var(--line); padding-top: 22px; }
.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { color: var(--text-2); font-size: 1rem; max-width: 48ch; }

/* split sections */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.split-copy p { color: var(--text-2); margin-top: 16px; max-width: 34em; }
.split-copy h2 { margin-top: 0; }
.split-reverse .split-copy { order: 2; }
.split-reverse > *:last-child { order: 1; }

/* stat panel (keep awake) */
.stat-panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px;
}
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-value {
  font-family: var(--mono); font-size: 3.4rem; font-weight: 800; color: var(--accent);
  line-height: 1; font-variant-numeric: tabular-nums;
}
.stat-unit { font-family: var(--mono); color: var(--text-2); letter-spacing: 0.08em; font-size: 0.85rem; text-transform: uppercase; margin-top: 8px; }
.stat-desc { color: var(--text-2); margin-top: 12px; font-size: 0.92rem; }

/* thanks band */
.thanks {
  background: var(--bg-alt);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.thanks-inner {
  padding: 26px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.thanks-inner p { color: var(--text-2); font-size: 0.95rem; max-width: 36em; }
.thanks-inner strong { color: var(--text); }
.thanks-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.star-glyph { color: var(--focus); }
#star-count { color: var(--text-3); font-family: var(--mono); font-size: 0.8rem; margin-left: 6px; }

/* steps */
.steps {
  list-style: none;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  counter-reset: step;
}
.step {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px;
}
.step-num {
  font-family: var(--mono); color: var(--accent); font-size: 0.85rem;
  display: block; margin-bottom: 14px;
}
.step h3 { margin-bottom: 10px; font-size: 1.1rem; }
.step p { color: var(--text-2); font-size: 0.92rem; }

/* install */
.install-inner .section-head { text-align: center; }
.install-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 38px 36px; max-width: 760px; margin: 0 auto;
}
.install-steps { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.install-steps li { color: var(--text-2); font-size: 1rem; }
.install-steps .mono { color: var(--accent); margin-right: 8px; }
.install-cta { margin-top: 30px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.install-note { font-size: 0.82rem; color: var(--text-3); max-width: 30em; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 52px 0 40px; background: var(--bg-alt); }
.footer-inner { display: flex; flex-direction: column; gap: 26px; }
.footer-brand p { color: var(--text-3); font-size: 0.85rem; margin-top: 10px; }
.footer-contact { font-size: 0.8rem; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; font-size: 0.88rem; }
.footer-legal {
  color: var(--text-3); font-size: 0.78rem; border-top: 1px solid var(--line);
  padding-top: 22px; max-width: 60em;
}

/* ------------------------------ animation ------------------------------ */

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .strip-logo .wind { animation: none; }
}

/* ------------------------------ responsive ------------------------------ */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split-reverse .split-copy { order: 0; }
  .steps { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 600px) {
  .cards { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 48px; }
  .section { padding: 64px 0; }
  .strip-inner { flex-direction: column; gap: 20px; }
  .strip-inner p { text-align: center; }
}

/* Keep the hero copy readable while reserving space for a future image. */
.hero-copy { max-width: 34rem; }
.hero-copy h1 { font-size: clamp(2.5rem, 4.6vw, 3.6rem); }

.trigger-detail { border-top: 1px solid var(--line); }
.trigger-detail:last-child { border-bottom: 1px solid var(--line); }
.trigger-detail summary { cursor: pointer; padding: 18px 0; font-family: var(--sans); font-size: 1rem; line-height: 1.5; display: flex; align-items: center; justify-content: space-between; gap: 14px; list-style: none; }
.trigger-detail summary::-webkit-details-marker { display: none; }
.trigger-detail summary::after { content: '+'; color: var(--accent); font-size: 1.2rem; }
.trigger-detail[open] summary::after { content: '−'; }

.trigger-detail p { padding: 0 28px 18px 0; font-size: 1rem; color: var(--text-2); }
.trigger-detail summary:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
section[id] { scroll-margin-top: 82px; }
@media (max-width: 480px) {
  .pill { font-size: .8rem; padding: 0; }
}

/* Keep the explanatory copy fixed at the top as trigger details expand. */
#highlights .split { align-items: start; }

/* Cockpit composition: devices lead, bicycle contours recede. */
.hero-inner { grid-template-columns: 1.08fr 1fr; gap: 38px; }
.hero-cockpit {
  position: relative; width: 100%; aspect-ratio: .88;
  align-self: center; isolation: isolate;
}
.hero-cockpit::before {
  content: "";
  position: absolute; inset: 0 -8%; z-index: -1;
  background: radial-gradient(ellipse at 50% 33%, #000b 10%, #0006 40%, transparent 70%);
}
.cockpit-art {
  position: relative; width: 100%;
  mask-image: linear-gradient(to bottom, #000 0%, #000 53%, transparent 86%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 53%, transparent 86%);
}
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero-cockpit { max-width: 560px; margin: 0 auto; }
}
@media (max-width: 600px) {
  .hero-cockpit { aspect-ratio: .95; }
}

.hero-cockpit img { display: block; width: 100%; height: auto; }
.cockpit-recording-dot {
  position: absolute; left: 48.8%; top: 26%;
  width: 1.2%; aspect-ratio: 1; border-radius: 50%;
  background: #ff0505; transform: translate(-50%, -50%);

}
@keyframes cockpit-recording-blink {
  0%, 64% { opacity: 1; }
  65%, 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .cockpit-recording-dot { animation: none; }
}

/* Native 1.1 screenshots retain their original proportions. */
.release-gallery { align-items: start; }
.release-gallery .widget-example img { height: auto; object-fit: contain; }
.release-gallery figcaption + img { margin-top: 28px; }
.automation-screenshots { display: flex; gap: 12px; align-items: flex-start; margin-top: 24px; }
.automation-screenshots img { width: calc(50% - 6px); height: auto; border-radius: 12px; }

/* Reading rhythm; typography within the device demo is preserved. */
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.transparency-copy .split-copy { max-width: 64ch; }
.transparency-copy .split-copy p { max-width: none; }
.hero-disclaimer { font-size: .8rem; }

.trigger-board { min-width: 0; }
#highlights .split { align-items: start; }
@media (min-width: 961px) { .nav-links { gap: 16px; } }

/* Compact feature graphics, beside the title rather than inside a tile. */
#features .card h3 { display: flex; align-items: center; gap: 12px; }
#features .feature-graphic { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 24px; width: 24px; height: 24px; color: var(--accent); }
#features .feature-graphic svg { display: block; width: 22px; height: 22px; }
#features .feature-title { min-width: 0; }

/* Approved headline font and compact trigger rows. */
@font-face {
  font-family: "Barlow Semi Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/BarlowSemiCondensed-SemiBold.ttf") format("truetype");
}
h1, h2, h3 {
  font-family: "Barlow Semi Condensed", var(--sans);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.12;
}
#highlights .trigger-detail summary {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 16px;
  gap: 10px;
  padding: 9px 0;
  min-height: 44px;
  line-height: 1.4;
}
#highlights .trigger-icon { display: flex; align-items: center; color: var(--accent); }
#highlights .trigger-icon svg { display: block; width: 18px; height: 18px; }
#highlights .trigger-detail summary::after { justify-self: end; }
#highlights .trigger-detail p { padding: 0 26px 12px 28px; }

/* The test ride continues the automation explanation. */
#highlights { padding-bottom: 0; }
#highlights + #widgets { padding-top: 32px; }
#widgets .ride-demo-intro { margin-bottom: 20px; }
#widgets #ride-demo-title { font-size: clamp(1.35rem, 2.4vw, 1.65rem); }
@media (max-width: 600px) { #highlights + #widgets { padding-top: 24px; } }
