/* FreeFLY v4 Flagship Cockpit & Editorial Visual System
   Zero external dependencies; full accessibility, 320px+ responsiveness, and motion-safe. */
.home {
  background: #f5f8fc;
  --navy: #0a2a45;
  --blue: #0e5d88;
  --ink: #102638;
  --muted: #50677a;
  --card: #ffffff;
  --border: #d9e5ef;
}

button {
  font: inherit;
}

button:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 3px solid #48a7cf;
  outline-offset: 4px;
}

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 40;
  background: linear-gradient(90deg, #4db4dc, #9ce7f8);
  transform: scaleX(var(--read-progress, 0));
  transform-origin: left;
  pointer-events: none;
}

/* Sticky Glass Navigation with Capsule Dock */
.home .header,
.legal-header {
  position: sticky;
  top: 0;
  z-index: 30;
  width: 100%;
  min-height: 78px;
  padding: 12px max(40px, calc((100vw - 1200px) / 2));
  background: rgba(6, 20, 35, 0.86);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  transition: background 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.home.scrolled .header {
  background: rgba(6, 20, 35, 0.94);
  border-bottom-color: rgba(164, 215, 240, 0.16);
  box-shadow: 0 14px 34px -18px rgba(1, 8, 16, 0.85);
}

.home .header .brand,
.legal-header .brand {
  color: #ffffff;
  font-size: 20px;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.home .header .brand img,
.legal-header .brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 6px 14px rgba(0, 10, 22, 0.5);
}

.home .header .brand b,
.legal-header .brand b {
  color: #9ec7dd;
  font-size: 13.5px;
  font-weight: 500;
}

.home .header nav,
.legal-header nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-dock {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.nav-dock a,
.legal-header nav a:not(.nav-cta) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: #cfe3ef;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.nav-dock a:hover,
.nav-dock a.is-active,
.legal-header nav a:not(.nav-cta):hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.13);
}

.home .nav-cta,
.legal-header .nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08));
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.home .nav-cta:hover,
.legal-header .nav-cta:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.55);
  transform: translateY(-1px);
}

.lang-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.lang-link:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* Flagship Cockpit Hero */
.sky-hero {
  position: relative;
  isolation: isolate;
  background: linear-gradient(155deg, #050d17 0%, #082036 48%, #0b3352 100%);
  color: #ffffff;
  overflow: hidden;
}

.sky-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 52% 55% at 72% 45%, rgba(45, 152, 206, 0.34), transparent 70%),
    radial-gradient(circle at 12% 88%, rgba(21, 96, 140, 0.28), transparent 52%);
  pointer-events: none;
}

.sky-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(164, 212, 238, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(164, 212, 238, 0.05) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse at 70% 45%, black 15%, transparent 78%);
  pointer-events: none;
}

.sky-route {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  fill: none;
  stroke: #79cae2;
  stroke-width: 1.1;
  pointer-events: none;
}

.route-base {
  opacity: 0.16;
}

.route-dash {
  stroke-dasharray: 160 1800;
  stroke-dashoffset: calc(-1350 * var(--read-progress, 0));
  opacity: 0.72;
}

.sky-route circle {
  fill: #c7eef8;
  stroke: none;
}

.sky-route .route-pulse {
  fill: rgba(154, 229, 248, 0.16);
  stroke: rgba(154, 229, 248, 0.48);
  stroke-width: 1;
}

.home .hero {
  width: min(1200px, calc(100% - 96px));
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr);
  gap: 32px;
  padding-block: 54px 36px;
  min-height: 700px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.home .hero .intro-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #cbe7f5;
  font-size: 12.5px;
  font-weight: 500;
  margin-bottom: 24px;
}

.intro-sep {
  opacity: 0.45;
}

.intro-ver {
  color: #8ad6ee;
  font-weight: 600;
}

.signal {
  width: 7px;
  height: 7px;
  background: #6ee2f5;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(110, 226, 245, 0.18);
}

.home h1 {
  font-size: clamp(44px, 5.1vw, 72px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.04em;
  margin: 0 0 24px;
  background: linear-gradient(180deg, #ffffff 0%, #c8e2f3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.home .hero .lead {
  font-size: 18px;
  line-height: 1.85;
  color: #bdd4e3;
  max-width: 440px;
  margin-bottom: 34px;
}

.home .hero .button {
  background: linear-gradient(180deg, #ffffff 0%, #e4f3fb 100%);
  color: #092c46;
  border: 1px solid #ffffff;
  border-radius: 999px;
  gap: 14px;
  padding: 13px 24px;
  font-size: 15px;
  font-weight: 650;
  box-shadow: 0 18px 34px -14px rgba(0, 12, 24, 0.85);
  transition: transform 0.2s, box-shadow 0.2s;
}

.home .hero .button:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 40px -14px rgba(0, 12, 24, 0.95);
}

.home .hero .button .btn-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(9, 44, 70, 0.1);
  font-size: 13px;
}

.home .hero .text-link {
  color: #e2f0f7;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
  transition: background 0.2s, border-color 0.2s;
}

.home .hero .text-link:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.45);
}

.hero-specs {
  list-style: none;
  margin: 34px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 500px;
}

.hero-specs li {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hero-specs strong {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.hero-specs span {
  font-size: 11.5px;
  color: #9cbccf;
  line-height: 1.4;
}

/* Titanium Device Frame & Telemetry HUDs */
.hero-visual {
  position: relative;
  min-height: 625px;
  padding-bottom: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1100px;
  min-width: 0;
}

.device-stage {
  width: 248px;
  margin: 0;
  position: relative;
  z-index: 2;
  transform: rotate(-3.5deg) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  animation: arrival 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.device.titanium {
  position: relative;
  background: linear-gradient(145deg, #4b5c69 0%, #1d2934 38%, #141c24 100%);
  padding: 8px;
  border: 1px solid rgba(203, 224, 238, 0.38);
  border-radius: 40px;
  box-shadow:
    0 50px 90px -20px rgba(0, 8, 16, 0.88),
    0 0 0 1px rgba(10, 22, 34, 0.9),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.dynamic-island {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 66px;
  height: 18px;
  border-radius: 999px;
  background: #080c10;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  z-index: 3;
  pointer-events: none;
}

.device picture {
  display: block;
}

.device img {
  width: 100%;
  border-radius: 32px;
}

.orbit {
  position: absolute;
  width: 470px;
  height: 470px;
  border: 1px solid rgba(132, 198, 232, 0.18);
  border-radius: 50%;
  transform: rotateX(56deg) rotateZ(-24deg);
  pointer-events: none;
}

.orbit-one {
  top: 64px;
}

.orbit-two {
  width: 600px;
  height: 600px;
  top: -2px;
  opacity: 0.45;
}

.hud-card {
  position: absolute;
  z-index: 3;
  padding: 13px 15px;
  border-radius: 16px;
  background: rgba(9, 25, 42, 0.82);
  border: 1px solid rgba(173, 217, 238, 0.25);
  box-shadow:
    0 20px 40px -16px rgba(0, 8, 18, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: #edf7fc;
  pointer-events: none;
  font-variant-numeric: tabular-nums;
}

.hud-flight {
  top: 72px;
  left: -34px;
  width: 218px;
}

.hud-brief {
  bottom: 120px;
  right: -24px;
  width: 230px;
}

.hud-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.09);
  margin: 7px 0;
}

.hud-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.hud-tag {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(105, 206, 242, 0.18);
  color: #9be5fa;
}

.hud-tag-ok {
  background: rgba(64, 204, 138, 0.2);
  color: #8bf0bd;
}

.hud-time {
  font-size: 11px;
  color: #a9cae0;
}

.hud-route {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.hud-route strong {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hud-route span {
  font-size: 12px;
  color: #d2eaf7;
  font-weight: 600;
}

.hud-brief-line {
  font-size: 11.5px;
  font-weight: 600;
  color: #f0f8fc;
}

.hud-sub {
  font-size: 11px;
  color: #abc7d9;
  line-height: 1.4;
}

.visual-caption {
  position: absolute;
  right: -4px;
  top: 46px;
  font-size: 11.5px;
  writing-mode: vertical-rl;
  letter-spacing: 0.22em;
  color: #7ea3ba;
}

.hero-controls {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 4;
}

.appearance {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(190, 221, 229, 0.24);
  border-radius: 999px;
  background: rgba(6, 24, 42, 0.9);
  box-shadow: 0 12px 26px -10px rgba(0, 8, 16, 0.75);
}

.appearance button {
  color: #bdd3df;
  background: transparent;
  border: 0;
  padding: 6px 18px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.appearance button[aria-pressed="true"] {
  background: #eaf5fb;
  color: #092c46;
  font-weight: 650;
}

.preview-note {
  margin: 0;
  font-size: 11px;
  color: #9cb9cc;
  text-align: center;
  white-space: nowrap;
}

.hero-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(173, 198, 218, 0.16);
  padding-block: 18px 22px;
  font-size: 12.5px;
  color: #9bb8cb;
}

.hero-bottom a {
  color: #dceef8;
  text-decoration: none;
  font-weight: 500;
}

.hero-bottom a span {
  margin-left: 8px;
}

/* Editorial Section Headings */
.eyebrow {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #176aa0;
  text-transform: uppercase;
}

.home .section-heading {
  margin-bottom: 48px;
  align-items: flex-end;
}

.home h2 {
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.03em;
  color: #0b2438;
}

.home .section-heading > p {
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--muted);
}

/* Journey Tabs & Interactive Stage */
.home .journey {
  padding-block: 96px;
}

.journey-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 44px;
  align-items: stretch;
}

.journey-tabs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.journey-tabs::before {
  display: none;
}

.journey-tabs button {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid #dbe6ef;
  border-radius: 18px;
  background: #ffffff;
  text-align: left;
  padding: 20px 20px;
  color: #4f697d;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s, background 0.2s;
}

.journey-tabs button:hover {
  border-color: #acc9dc;
  transform: translateY(-1px);
}

.phase-num {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: #edf5fa;
  color: #135d88;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  transition: background 0.2s, color 0.2s;
}

.phase-copy {
  min-width: 0;
}

.journey-tabs strong {
  display: block;
  font-size: 18.5px;
  font-weight: 650;
  color: #123149;
}

.journey-tabs small {
  font-size: 12.5px;
  display: block;
  margin-top: 4px;
  color: #627c90;
}

.journey-tabs .tab-arrow {
  margin-left: auto;
  font-size: 18px;
  opacity: 0.35;
  transition: opacity 0.2s, transform 0.2s;
}

.journey-tabs button[aria-selected="true"] {
  border-color: #176ba7;
  background: linear-gradient(135deg, #ffffff 0%, #eff7fc 100%);
  box-shadow: 0 16px 32px -22px rgba(9, 46, 75, 0.36);
}

.journey-tabs button[aria-selected="true"] .phase-num {
  background: #0e5d88;
  color: #ffffff;
}

.journey-tabs button[aria-selected="true"] .tab-arrow {
  opacity: 1;
  color: #0e5d88;
  transform: translate(1px, -1px);
}

.journey-panels {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 36px 38px;
  box-shadow: 0 24px 50px -30px rgba(9, 46, 75, 0.22);
  position: relative;
  min-width: 0;
}

.journey-panels article:not([hidden]) {
  animation: panel-in 0.32s both;
}

.journey-panels h3 {
  font-size: 24px;
  font-weight: 700;
  color: #0b263b;
  margin-bottom: 10px;
}

.journey-panels p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.82;
  margin-bottom: 18px;
}

.panel-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 650;
  color: var(--blue);
  text-decoration: none;
}

.panel-link:hover {
  text-decoration: underline;
}

.phase-visual {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  gap: 10px;
}

.phase-visual span {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 0 0 112px;
  height: 68px;
  border-radius: 14px;
  background: #f3f8fc;
  border: 1px solid #d5e5f0;
  color: #104569;
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
}

.phase-visual svg {
  fill: none;
  stroke: #13689c;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.phase-visual i {
  height: 1.5px;
  flex: 1;
  min-width: 8px;
  background: #92b6ca;
  position: relative;
}

.phase-visual i::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  right: 0;
  top: -2.25px;
  border-top: 1.5px solid #92b6ca;
  border-right: 1.5px solid #92b6ca;
  transform: rotate(45deg);
}

.panel-preview {
  background: #0b1c2d;
  border: 1px solid #1b3650;
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 22px;
  color: #e6f2fa;
  font-variant-numeric: tabular-nums;
}

.pp-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.pp-badge {
  font-size: 11px;
  font-weight: 700;
  color: #8ee0fa;
  background: rgba(110, 206, 244, 0.16);
  padding: 2px 9px;
  border-radius: 999px;
}

.pp-meta {
  font-size: 11.5px;
  color: #8eb0c7;
}

.pp-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.pp-row strong {
  font-size: 15px;
  color: #ffffff;
}

.pp-pill {
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
}

.pp-ok {
  background: rgba(54, 198, 128, 0.2);
  color: #8ff0bd;
}

.pp-warn {
  background: rgba(244, 174, 58, 0.22);
  color: #ffd388;
}

.pp-sub {
  font-size: 12.5px;
  color: #a9c4d6;
  line-height: 1.55;
}

/* Bento Core Capabilities Grid */
.home .feature-section {
  padding-block: 4px 98px;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.bento-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 18px 38px -28px rgba(9, 46, 75, 0.24);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.bento-card:hover {
  transform: translateY(-3px);
  border-color: #acc8dc;
  box-shadow: 0 24px 48px -28px rgba(9, 46, 75, 0.32);
}

.bento-wide {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}

.bento-wide:not(:has(.bento-visual)) {
  grid-template-columns: minmax(0, 1fr);
}

.bento-dark {
  background: linear-gradient(145deg, #071829 0%, #0c2c47 100%);
  border-color: #1a4060;
  color: #ffffff;
}

.bento-dark:hover {
  border-color: #2f6996;
}

.bento-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #2076ad;
  margin-bottom: 10px;
}

.bento-dark .bento-kicker {
  color: #7cd0ee;
}

.bento-card h3 {
  font-size: 21px;
  font-weight: 700;
  color: #0b273c;
  margin-bottom: 10px;
}

.bento-dark h3 {
  color: #ffffff;
}

.bento-card p {
  font-size: 14.5px;
  line-height: 1.82;
  color: var(--muted);
  margin-bottom: 20px;
}

.bento-dark p {
  color: #bfd5e4;
}

.home .feature-symbol {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: #eaf4fa;
  border: 1px solid #d0e4f2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.home .feature-symbol svg {
  fill: none;
  stroke: #0e5d88;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
}

.feature-tags span {
  font-size: 11.5px;
  font-weight: 500;
  color: #1f5c7e;
  background: #eff6fa;
  border: 1px solid #d9e9f3;
  padding: 4px 10px;
  border-radius: 999px;
}

.feature-tags-dark span {
  color: #cde8f6;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.mini-ui {
  background: rgba(4, 15, 27, 0.72);
  border: 1px solid rgba(154, 211, 238, 0.22);
  border-radius: 18px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-variant-numeric: tabular-nums;
}

.mini-ui-light {
  background: #f4f9fd;
  border-color: #d6e6f2;
}

.mini-ui-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 650;
  color: #cde6f5;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mini-ui-light .mini-ui-head {
  color: #133955;
  border-bottom-color: #dce9f3;
}

.mini-pill {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(244, 174, 58, 0.2);
  color: #ffd388;
}

.mini-pill-light {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fff3df;
  color: #9e5800;
}

.mini-ui-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: #e4f2fb;
}

.mini-ui-light .mini-ui-item {
  color: #204560;
}

.mini-tag-warn,
.mini-tag-ok,
.mini-tag-blue {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
}

.mini-tag-warn {
  background: rgba(244, 174, 58, 0.18);
  color: #ffd388;
}

.mini-tag-ok {
  background: rgba(54, 198, 128, 0.18);
  color: #8ff0bd;
}

.mini-tag-blue {
  background: rgba(110, 206, 244, 0.18);
  color: #9be5fa;
}

/* Dark Hardware Showcase Section (#experience) */
.home .experience {
  padding-block: 100px;
  background: linear-gradient(160deg, #061320 0%, #0b2339 100%);
  color: #ffffff;
}

.home .experience-grid {
  grid-template-columns: 0.9fr 1.2fr;
  gap: 68px;
}

.home .dark-art {
  width: 246px;
  position: relative;
  transform: rotate(2.5deg);
}

.dark-glow {
  position: absolute;
  inset: 20px -38px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 160, 214, 0.34), transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.home .dark-art .device {
  position: relative;
  z-index: 1;
}

.home .dark-art figcaption {
  margin-top: 20px;
  font-size: 12px;
  color: #9ab9cc;
}

.home .experience-copy .intro-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #7cd0ee;
  margin-bottom: 12px;
}

.home .experience-copy h2 {
  color: #ffffff;
  margin-bottom: 16px;
}

.exp-lead {
  color: #bed4e3;
  font-size: 16px;
  line-height: 1.85;
  max-width: 540px;
  margin-bottom: 24px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.home .detail {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(173, 217, 238, 0.16);
  border-radius: 18px;
  padding: 20px;
  margin-top: 0;
  max-width: none;
}

.home .detail h3 {
  font-weight: 650;
  font-size: 16.5px;
  color: #ffffff;
  margin-bottom: 8px;
}

.home .detail p {
  line-height: 1.78;
  font-size: 13.5px;
  color: #b7cede;
}

.home .detail a {
  color: #8ee0fa;
}

/* FAQ Section */
.home .faq {
  padding-block: 96px;
}

.faq-head {
  margin-bottom: 30px;
}

.home .faq h2 {
  font-size: clamp(26px, 2.8vw, 34px);
  margin: 0;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.home .faq details {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 22px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.home .faq details[open] {
  border-color: #9ec3da;
  box-shadow: 0 12px 28px -22px rgba(9, 46, 75, 0.25);
}

.home .faq summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 16px;
  font-weight: 650;
  color: #0e2e44;
}

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

.home .faq summary::after {
  content: "+";
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #edf5fa;
  color: #0e5d88;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.25s, background 0.2s;
}

.home .faq details[open] summary::after {
  transform: rotate(45deg);
  background: #0e5d88;
  color: #ffffff;
}

.home .faq details[open] p {
  animation: panel-in 0.25s both;
  line-height: 1.85;
  margin-top: 14px;
}

/* Get CTA Banner */
.home .get {
  background: linear-gradient(135deg, #071d32 0%, #0d3d61 100%);
  color: #ffffff;
  border-radius: 24px;
  padding: 40px 44px;
  box-shadow: 0 26px 52px -26px rgba(4, 22, 40, 0.65);
  position: relative;
  overflow: hidden;
}

.home .get::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 86% 20%, rgba(122, 206, 236, 0.24), transparent 48%);
  pointer-events: none;
}

.get-brand {
  display: flex;
  align-items: center;
  gap: 22px;
  position: relative;
  z-index: 1;
}

.get-kicker {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #8ee0fa;
  margin-bottom: 4px;
}

.home .get h2 {
  font-size: 28px;
  color: #ffffff;
  margin-bottom: 4px;
}

.home .get p {
  color: #c5dbe8;
  font-size: 14px;
}

.home .get img {
  border-radius: 18px;
  box-shadow: 0 12px 24px rgba(0, 15, 30, 0.45);
}

.home .get .button {
  position: relative;
  z-index: 1;
  background: #eff8fc;
  color: #0b314b;
  border-radius: 999px;
  padding: 13px 26px;
  gap: 8px;
  font-weight: 650;
  transition: transform 0.2s, background 0.2s;
}

.home .get .button:hover {
  transform: translateY(-2px);
  background: #ffffff;
}

.home .safety {
  color: #5b7588;
  font-size: 12px;
  line-height: 1.7;
  padding-block: 22px 56px;
}

.home .safety strong {
  color: #2f5169;
}

/* Footer & Legal Pages */
.home .footer,
.footer {
  border-top: 1px solid #d2e1ec;
  background: #eaf1f7;
  padding-block: 36px 28px;
}

.home .footer a,
.footer a {
  font-size: 13px;
  color: #2c5570;
}

.home .footer a:hover,
.footer a:hover {
  color: #092e4b;
}

.home .footer .brand,
.footer .brand {
  font-size: 20px;
  color: #092e4b;
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.document {
  background: #ffffff;
  border: 1px solid #dbe7f0;
  border-radius: 22px;
  padding: 46px 50px;
  margin-block: 38px 58px;
  box-shadow: 0 18px 40px -28px rgba(9, 46, 75, 0.2);
}

.document > div:first-child {
  border-bottom: 1px solid #dbe7f0;
  padding-bottom: 22px;
  margin-bottom: 26px;
}

.document > div > .brand {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #176baf;
  margin-bottom: 6px;
}

.document h1 {
  font-size: 34px;
  color: #092e4b;
  margin-bottom: 14px;
}

.document h2 {
  font-size: 21px;
  color: #0e3854;
  margin-top: 32px;
}

.document .muted,
.document small {
  color: #566e80;
  font-size: 14px;
}

.document .lang-nav {
  display: inline-flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.document .lang-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 999px;
  background: #e8f2fa;
  border: 1px solid #cfe2f0;
  color: #0f3d63;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.document .lang-pill:hover {
  background: #d8eaf8;
  border-color: #b4d3ea;
  color: #082b47;
}

.document hr.divider {
  border: 0;
  border-top: 1.5px solid #d8e4ee;
  margin: 44px 0 36px;
}

.document code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
  padding: 2px 6px;
  border-radius: 5px;
  background: #edf5fb;
  color: #0e3b5e;
}

.document .notice {
  border-radius: 12px;
  border-left: 4px solid #0e5d88;
  background: #eef6fb;
}

.document .error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.document .button-secondary {
  background: #eaf3fa;
  color: #0c3554;
  border: 1px solid #c6dced;
}

.document .button-secondary:hover {
  background: #dcebf7;
  color: #07263f;
}

@media (prefers-color-scheme: dark) {
  body:not(.home) {
    background: #081421;
    color: #dbe7f3;
  }
  body:not(.home) .skip {
    background: #0f2133;
    color: #ffffff;
  }
  .document {
    background: #0f2133;
    border-color: #1e3852;
    box-shadow: 0 22px 48px -28px rgba(0, 6, 14, 0.78);
    color: #dbe7f3;
  }
  .document > div:first-child,
  .document hr.divider {
    border-color: #1e3852;
  }
  .document > div > .brand {
    color: #7cd0ee;
  }
  .document h1 {
    color: #f2f8fd;
  }
  .document h2,
  .document h3 {
    color: #cce4f7;
  }
  .document p,
  .document li,
  .document td {
    color: #c4d7e8;
  }
  .document strong {
    color: #eef6fc;
  }
  .document a:not(.button) {
    color: #6bc4f5;
  }
  .document .muted,
  .document small {
    color: #8fa9bf;
  }
  .document .lang-pill {
    background: #163049;
    border-color: #264b6e;
    color: #d6ebfb;
  }
  .document .lang-pill:hover {
    background: #1f4060;
    border-color: #386a99;
    color: #ffffff;
  }
  .document code {
    background: #152d45;
    color: #9be0fa;
  }
  .document .notice {
    background: #132a42;
    border-left-color: #4db4e6;
    color: #dcebf7;
  }
  .document table {
    background: #0b1928;
  }
  .document th {
    background: #132940;
    color: #e6f2fc;
  }
  .document td,
  .document th {
    border-color: #213c57;
  }
  .document .button {
    background: #1b6ca8;
    color: #ffffff;
  }
  .document .button:hover {
    background: #2380c4;
  }
  .document .button-secondary {
    background: #163049;
    color: #dcecf9;
    border-color: #2a5177;
  }
  .document .button-secondary:hover {
    background: #1f4162;
    color: #ffffff;
  }
  body:not(.home) .footer {
    background: #06101b;
    border-top-color: #182e45;
  }
  body:not(.home) .footer a {
    color: #9ab8d1;
  }
  body:not(.home) .footer a:hover {
    color: #ffffff;
  }
  body:not(.home) .footer .brand {
    color: #e6f2fc;
  }
  body:not(.home) .footer-bottom {
    color: #7f9bb3;
  }
}

@keyframes arrival {
  from {
    opacity: 0.72;
    transform: rotate(-3.5deg) translateY(12px);
  }
  to {
    opacity: 1;
    transform: rotate(-3.5deg) translateY(0);
  }
}

@keyframes panel-in {
  from {
    opacity: 0.25;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Breakpoints */
@media (min-width: 1500px) {
  .home .hero {
    min-height: 730px;
  }
  .hero-visual {
    min-height: 640px;
  }
  .device-stage {
    width: 266px;
  }
}

@media (max-width: 1080px) {
  .hud-flight {
    left: -12px;
    width: 204px;
  }
  .hud-brief {
    right: -12px;
    width: 214px;
  }
  .visual-caption {
    display: none;
  }
}

@media (max-width: 960px) {
  .home .header,
  .legal-header {
    padding-inline: 24px;
  }
  .home .hero {
    width: calc(100% - 48px);
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    min-height: 0;
    padding-block: 42px 26px;
  }
  .hero-visual {
    min-height: 580px;
    padding-bottom: 84px;
  }
  .hud-flight {
    left: 4%;
    top: 40px;
  }
  .hud-brief {
    right: 4%;
    bottom: 104px;
  }
  .journey-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .bento-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .bento-wide {
    grid-column: span 1;
    grid-template-columns: minmax(0, 1fr);
  }
  .home .experience-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .home .dark-art {
    transform: none;
  }
  .detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .home .header,
  .legal-header {
    min-height: 0;
    padding: 12px 16px;
    gap: 10px 8px;
    flex-wrap: wrap;
    align-items: center;
  }
  .legal-header {
    flex-wrap: nowrap;
  }
  .home .header .brand,
  .legal-header .brand {
    font-size: 18px;
    order: 1;
  }
  .home .header .brand img,
  .legal-header .brand img {
    width: 30px;
    height: 30px;
  }
  .home .header .brand b,
  .legal-header .brand b {
    font-size: 12px;
  }
  .home .header nav {
    display: contents;
  }
  .legal-header nav {
    width: auto;
    margin-left: auto;
    justify-content: flex-end;
    gap: 6px;
  }
  .home .lang-link {
    order: 2;
    margin-left: auto;
  }
  .home .nav-cta {
    order: 2;
    margin-left: 0;
    padding: 6px 12px;
    font-size: 12px;
  }
  .legal-header .nav-cta {
    order: 2;
    margin-left: auto;
    padding: 6px 12px;
    font-size: 12px;
  }
  .nav-dock {
    order: 3;
    flex: 0 0 100%;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2px;
    padding: 3px;
  }
  .nav-dock a {
    padding: 6px 4px;
    font-size: 12px;
    text-align: center;
  }
  .legal-header nav a:not(.nav-cta):not(.lang-link) {
    padding: 6px 8px;
    font-size: 12px;
    text-align: center;
  }
  .home .hero {
    width: calc(100% - 32px);
    padding-block: 28px 22px;
    gap: 22px;
  }
  .home h1 {
    font-size: clamp(34px, 10.5vw, 42px);
    margin-bottom: 18px;
  }
  .home .hero .intro-label {
    font-size: 11.5px;
    margin-bottom: 16px;
    max-width: 100%;
    flex-wrap: wrap;
  }
  .home .hero .lead {
    font-size: 15px;
    margin-bottom: 22px;
    max-width: 100%;
  }
  .home .hero .actions {
    gap: 10px;
    flex-wrap: wrap;
  }
  .home .hero .button {
    font-size: 14px;
    padding: 11px 18px;
  }
  .home .hero .text-link {
    font-size: 13px;
    padding: 10px 15px;
  }
  .hero-specs {
    margin-top: 22px;
    padding-top: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .hero-specs strong {
    font-size: 14px;
  }
  .hero-specs span {
    font-size: 10.5px;
  }
  .hero-visual {
    min-height: 0;
    height: auto;
    padding-bottom: 0;
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }
  .device-stage {
    width: min(220px, 68vw);
    transform: rotate(-2.5deg);
    margin-block: 6px 2px;
  }
  .dynamic-island {
    top: 14px;
    width: 58px;
    height: 15px;
  }
  .orbit {
    width: 260px;
    height: 260px;
    top: 20px;
  }
  .orbit-two {
    width: 310px;
    height: 310px;
    top: -10px;
  }
  .hud-card {
    position: static;
    width: 100%;
    max-width: 100%;
  }
  .hero-controls {
    position: static;
    transform: none;
    margin-top: 4px;
    max-width: 100%;
  }
  .preview-note {
    white-space: normal;
  }
  .hero-bottom {
    font-size: 11.5px;
    padding-block: 16px 20px;
    gap: 10px;
  }
  .home .journey {
    padding-block: 56px;
  }
  .home .section-heading {
    margin-bottom: 26px;
  }
  .journey-tabs button {
    padding: 16px;
    gap: 14px;
  }
  .journey-tabs strong {
    font-size: 17px;
  }
  .journey-panels {
    padding: 22px 18px;
    border-radius: 18px;
  }
  .phase-visual {
    gap: 6px;
  }
  .phase-visual span {
    flex: 1 1 0;
    min-width: 0;
    height: 62px;
    font-size: 11px;
    padding-inline: 4px;
  }
  .journey-panels h3 {
    font-size: 20px;
  }
  .home .feature-section {
    padding-bottom: 58px;
  }
  .bento-card {
    padding: 22px 20px;
    border-radius: 20px;
  }
  .home .feature-symbol {
    position: static;
    margin-bottom: 14px;
  }
  .home .experience {
    padding-block: 58px;
  }
  .home .dark-art {
    width: 210px;
  }
  .home .faq {
    padding-block: 56px;
  }
  .home .faq details {
    padding: 15px 16px;
  }
  .home .faq summary {
    font-size: 15px;
  }
  .home .get {
    padding: 26px 22px;
    gap: 18px;
  }
  .get-brand {
    gap: 14px;
  }
  .home .get img {
    width: 54px;
    height: 54px;
  }
  .home .get h2 {
    font-size: 22px;
  }
  .home .get .button {
    width: 100%;
  }
  .document {
    padding: 28px 20px;
    margin-block: 24px 40px;
  }
  .document h1 {
    font-size: 26px;
  }
}

@media (max-width: 375px) {
  .home .header,
  .legal-header {
    padding-inline: 12px;
    gap: 8px 6px;
  }
  .home .header .brand,
  .legal-header .brand {
    font-size: 16.5px;
    gap: 8px;
  }
  .home .header .brand img,
  .legal-header .brand img {
    width: 28px;
    height: 28px;
  }
  .home .header .brand b,
  .legal-header .brand b {
    font-size: 11px;
    margin-left: 3px;
  }
  .home .lang-link,
  .legal-header .lang-link {
    padding: 5px 8px;
    font-size: 11.5px;
    min-width: 32px;
  }
  .home .nav-cta,
  .legal-header .nav-cta {
    padding: 5px 10px;
    font-size: 11.5px;
  }
  .legal-header nav a:not(.nav-cta):not(.lang-link) {
    padding: 5px 6px;
    font-size: 11.5px;
  }
  .nav-dock a {
    padding: 6px 2px;
    font-size: 11.5px;
  }
  .home .hero .intro-label {
    font-size: 11px;
    padding: 5px 10px;
    gap: 6px;
  }
}

@media (max-width: 359px) {
  .home .header .brand b,
  .legal-header .brand b {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home *,
  .home *::before,
  .home *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .device-stage {
    transform: rotate(-2.5deg) !important;
  }
  .route-dash,
  .reading-progress,
  .route-pulse {
    display: none;
  }
}
