:root {
  color-scheme: dark;
  --base: #080c12;
  --surface: #111a26;
  --text: #f6f8fb;
  --muted: #b7c3d1;
  --line: #344355;
  --blue: #5ca6ff;
  --blue-soft: #9dcbff;
  --footer: #0c121b;
  --header-line: #1c2734;
  --nav-text: #d0d9e3;
  --nav-border: #61738a;
  --nav-hover: #17273a;
  --menu-bg: #0c141e;
  --menu-border: #405066;
  --menu-button-border: #5a6a7d;
  --hero-image: url("./assets/home-at-dusk.png");
  --hero-overlay: linear-gradient(90deg, rgba(5, 9, 15, .96) 0%, rgba(5, 9, 15, .87) 31%, rgba(5, 9, 15, .38) 64%, rgba(5, 9, 15, .1) 100%), linear-gradient(0deg, rgba(5, 9, 15, .35), transparent 36%);
  --hero-overlay-mobile: linear-gradient(90deg, rgba(5, 9, 15, .92), rgba(5, 9, 15, .7) 55%, rgba(5, 9, 15, .26)), linear-gradient(0deg, rgba(5, 9, 15, .42), transparent 46%);
  --hero-text: #f6f8fb;
  --hero-description: #eef2f7;
  --hero-link-border: #b2c0cf;
  --cta-text: #061421;
  --cta-hover: #8bc0ff;
  --system-rule: #526276;
  --footer-border: #263343;
  --footer-muted: #b1becc;
  --video-shadow: rgba(0, 0, 0, .38);
  --selection-text: #06101b;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}
[data-theme="light"] {
  color-scheme: light;
  --base: #f8fbfd;
  --surface: #eaf1f7;
  --text: #142333;
  --muted: #40546a;
  --line: #b9c9d9;
  --blue: #195fae;
  --blue-soft: #175da9;
  --footer: #eef3f8;
  --header-line: #d1dfea;
  --nav-text: #304256;
  --nav-border: #8da5bd;
  --nav-hover: #e1ebf5;
  --menu-bg: #f8fbfd;
  --menu-border: #bfcedd;
  --menu-button-border: #8ca3b8;
  --hero-image: url("./assets/home-in-daylight.png");
  --hero-overlay: linear-gradient(90deg, rgba(248, 251, 253, .98) 0%, rgba(248, 251, 253, .9) 31%, rgba(248, 251, 253, .31) 64%, rgba(248, 251, 253, .04) 100%), linear-gradient(0deg, rgba(248, 251, 253, .18), transparent 36%);
  --hero-overlay-mobile: linear-gradient(90deg, rgba(248, 251, 253, .97), rgba(248, 251, 253, .84) 55%, rgba(248, 251, 253, .35)), linear-gradient(0deg, rgba(248, 251, 253, .3), transparent 46%);
  --hero-text: #142333;
  --hero-description: #253a50;
  --hero-link-border: #6d8399;
  --cta-text: #fff;
  --cta-hover: #0f4e96;
  --system-rule: #aabed0;
  --footer-border: #c6d5e2;
  --footer-muted: #52657a;
  --video-shadow: rgba(39, 69, 98, .18);
  --selection-text: #fff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body { margin: 0; background: var(--base); color: var(--text); font-family: "Aptos", "Segoe UI", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; touch-action: manipulation; }
button { font: inherit; touch-action: manipulation; }
img, video { display: block; max-width: 100%; }
::selection { background: var(--blue); color: var(--selection-text); }
:focus-visible { outline: 2px solid var(--blue-soft); outline-offset: 5px; }
.page-width { width: min(100% - 80px, 1420px); margin-inline: auto; }
.skip-link { position: absolute; z-index: 30; top: -100px; left: 20px; padding: 12px 18px; background: var(--blue); color: #06101b; }
.skip-link:focus { top: 12px; }

.site-header { position: relative; z-index: 10; padding-top: env(safe-area-inset-top); background: var(--base); border-bottom: 1px solid var(--header-line); }
.header-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.header-controls { display: flex; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: .88rem; letter-spacing: .065em; font-weight: 800; white-space: nowrap; }
.brand img, .footer-brand img { object-fit: contain; }
[data-theme="light"] .brand img, [data-theme="light"] .footer-brand img { filter: drop-shadow(0 1px 1px rgba(20, 35, 51, .6)); }
.brand img { width: 41px; height: 41px; }
.brand strong { color: var(--blue-soft); font-weight: 800; }
.site-nav { display: flex; align-items: center; gap: clamp(24px, 3vw, 48px); font-size: .94rem; font-weight: 650; }
.site-nav a:not(.nav-cta) { color: var(--nav-text); }
.nav-cta { display: inline-flex; align-items: center; gap: 18px; min-height: 42px; padding: 0 16px; border: 1px solid var(--nav-border); border-radius: 3px; }
.nav-cta span, .text-link span, .site-footer a span { color: var(--blue-soft); }
.theme-toggle { display: grid; place-items: center; flex: none; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--text); cursor: pointer; user-select: none; }
.theme-toggle svg { display: block; width: 27px; height: 27px; }
.theme-toggle[hidden] { display: none; }
.theme-toggle:active { transform: scale(.97); }
.menu-toggle { display: none; }

.hero { position: relative; isolation: isolate; min-height: min(800px, calc(100svh - 75px)); overflow: hidden; background-color: var(--base); background-image: var(--hero-image); background-size: cover; background-position: center 56%; }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: var(--hero-overlay); }
.hero-content { min-height: min(800px, calc(100svh - 75px)); display: flex; align-items: center; padding-block: 80px 96px; }
.hero-copy { max-width: 750px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: Arial, "Segoe UI", sans-serif; }
h1 { margin-bottom: 28px; color: var(--hero-text); font-size: clamp(4rem, 6vw, 6.3rem); line-height: .99; letter-spacing: -.045em; font-weight: 800; text-wrap: balance; }
h1 span { color: var(--blue-soft); }
.hero-description { max-width: 550px; margin-bottom: 33px; color: var(--hero-description); font-size: clamp(1.08rem, 1.3vw, 1.22rem); line-height: 1.57; }
.hero-actions { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 28px; min-height: 56px; padding: 0 24px; border-radius: 3px; font-weight: 750; white-space: nowrap; user-select: none; transition: transform 140ms var(--ease-out), background-color 140ms var(--ease-out); }
.button:active { transform: scale(.97); }
.button-primary { background: var(--blue); color: var(--cta-text); }
.button-primary span { color: var(--cta-text); }
.text-link { display: inline-flex; align-items: center; gap: 12px; padding-block: 8px; border-bottom: 1px solid var(--hero-link-border); color: var(--hero-text); font-weight: 700; white-space: nowrap; }

.system-section { padding-block: clamp(96px, 10vw, 156px); background: var(--surface); }
.system-intro { max-width: 810px; margin-bottom: clamp(68px, 8vw, 116px); }
.system-intro h2, .pitch-heading h2 { margin-bottom: 24px; font-size: clamp(3rem, 5.2vw, 5.7rem); line-height: 1.05; letter-spacing: -.04em; font-weight: 800; }
.system-intro p, .pitch-heading p { max-width: 620px; margin-bottom: 0; color: var(--muted); font-size: 1.17rem; line-height: 1.65; }
.system-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--system-rule); }
.detail-row { padding: 34px 38px 12px 0; }
.detail-row + .detail-row { padding-left: 38px; border-left: 1px solid var(--line); }
.detail-row h3 { margin-bottom: 12px; font-size: clamp(1.5rem, 2vw, 2rem); letter-spacing: -.025em; }
.detail-row p { max-width: 330px; margin-bottom: 0; color: var(--muted); font-size: 1.04rem; line-height: 1.6; }

.pitch-section { padding-block: clamp(96px, 10vw, 156px); }
.pitch-heading { margin-bottom: 44px; }
.pitch-heading h2 { max-width: 900px; margin-bottom: 13px; }
.video-frame { background: #000; box-shadow: 0 26px 72px var(--video-shadow); }
.video-frame video { width: 100%; max-height: 78vh; aspect-ratio: 16 / 9; object-fit: contain; }
.site-footer { padding-block: 42px; padding-bottom: calc(42px + env(safe-area-inset-bottom)); border-top: 1px solid var(--footer-border); background: var(--footer); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.footer-brand { display: flex; align-items: center; gap: 15px; }
.footer-brand img { width: 46px; height: 46px; }
.footer-brand div { display: grid; gap: 5px; }
.footer-brand strong { font-size: .88rem; letter-spacing: .075em; }
.footer-brand span, .site-footer p { color: var(--footer-muted); font-size: .88rem; }
.site-footer p { margin: 0; }
.site-footer a { display: inline-flex; gap: 10px; font-weight: 700; white-space: nowrap; }

@media (hover: hover) and (pointer: fine) {
  .site-nav a:not(.nav-cta):hover, .text-link:hover, .site-footer a:hover { color: var(--blue-soft); }
  .nav-cta:hover { background: var(--nav-hover); border-color: var(--blue); }
  .theme-toggle:hover { background: var(--nav-hover); }
  .button-primary:hover { background: var(--cta-hover); transform: translateY(-2px); }
}
@media (max-width: 760px) {
  .page-width { width: min(100% - 40px, 620px); }
  .header-inner { min-height: 68px; gap: 10px; }
  .header-controls { gap: 8px; }
  .brand { font-size: .73rem; }
  .brand img { width: 36px; height: 36px; }
  .theme-toggle { width: 44px; height: 44px; }
  .menu-toggle { display: grid; place-content: center; gap: 6px; width: 44px; height: 44px; border: 1px solid var(--menu-button-border); border-radius: 3px; background: transparent; color: var(--text); cursor: pointer; user-select: none; }
  .menu-toggle span { display: block; width: 19px; height: 2px; background: currentColor; transition: transform 180ms var(--ease-out); }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 16px 20px 20px; background: var(--menu-bg); border-bottom: 1px solid var(--menu-border); visibility: hidden; opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out), visibility 180ms; }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: none; pointer-events: auto; }
  .site-nav a { padding: 13px 0; }
  .site-nav .nav-cta { margin-top: 8px; padding: 13px 16px; justify-content: space-between; }
  .hero, .hero-content { min-height: calc(100svh - 69px); }
  .hero { background-position: 63% center; }
  .hero::after { background: var(--hero-overlay-mobile); }
  .hero-content { padding-block: 74px 90px; }
  h1 { font-size: clamp(3.35rem, 11vw, 5rem); }
  .hero-description { max-width: 460px; margin-bottom: 29px; }
  .hero-actions { gap: 20px; }
  .system-intro { margin-bottom: 57px; }
  .system-intro h2, .pitch-heading h2 { font-size: clamp(2.8rem, 9vw, 4.5rem); }
  .system-details { display: block; }
  .detail-row, .detail-row + .detail-row { padding: 25px 0 28px; border-left: 0; border-bottom: 1px solid var(--line); }
  .detail-row h3 { margin-bottom: 8px; }
  .pitch-heading { margin-bottom: 28px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 390px) {
  .page-width { width: min(100% - 32px, 620px); }
  .brand { gap: 7px; font-size: .7rem; }
  .brand img { width: 32px; height: 32px; }
  .brand strong { display: none; }
  h1 { font-size: clamp(2.85rem, 12.7vw, 3.15rem); }
  .hero-actions { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .menu-toggle span, .site-nav, .theme-toggle { transition-duration: .01ms; }
  .button-primary:hover { transform: none; }
}
