:root {
  --navy: #0b1f3a;
  --ocean: #1e4e8c;
  --sky: #4c8ddb;
  --ice: #d7e6f7;
  --mist: #f4f8fc;
  --ink: #1a2433;
  --cyan: #2bb3c0;
  --amber: #e0a04a;
  --muted: #5a6b82;
  --line: #c8d6e8;
  --violet: #6b4de6;
  --lilac: #a98cf5;
  --lilac-mist: #efeafe;
  --deep-v: #3b2a73;
  --white: #ffffff;
  --radius: 20px;
  --spine: 7.5rem;
  --dock-h: 4.25rem;
  --font-d: "Space Grotesk", system-ui, sans-serif;
  --font-b: "Outfit", system-ui, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 1.25rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-b);
  color: var(--ink);
  background:
    linear-gradient(165deg, rgba(215, 230, 247, 0.7), var(--mist) 38%, rgba(239, 234, 254, 0.9)),
    var(--mist);
  line-height: 1.55;
}

body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(107, 77, 230, 0.05) 0,
    rgba(107, 77, 230, 0.05) 1px,
    transparent 1px,
    transparent 36px
  );
  z-index: 0;
}

body::after {
  content: "";
  pointer-events: none;
  position: fixed;
  width: min(70vw, 520px);
  height: min(70vw, 520px);
  right: -8%;
  top: -12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(107, 77, 230, 0.22), transparent 68%);
  filter: blur(8px);
  z-index: 0;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--navy);
  color: var(--white);
  padding: 0.6rem 1rem;
  z-index: 100;
}

.skip:focus { left: 0.75rem; }

a { color: var(--ocean); }
a:hover { color: var(--violet); }

code {
  font-size: 0.86em;
  background: var(--lilac-mist);
  padding: 0.08em 0.35em;
  border-radius: 6px;
}

.eyebrow {
  margin: 0 0 0.65rem;
  font-family: var(--font-d);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ocean);
  font-weight: 600;
}

h1, h2, h3 {
  font-family: var(--font-d);
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--navy);
}

h1 { font-size: clamp(2.4rem, 7vw, 4.4rem); margin: 0 0 0.35rem; }
h2 { font-size: clamp(1.7rem, 4vw, 2.45rem); margin: 0 0 0.7rem; }
h3 { font-size: 1.15rem; margin: 0 0 0.4rem; }

.aperture {
  position: relative;
  display: inline-block;
  width: 2.1rem;
  height: 1.55rem;
  border: 2.5px solid var(--ice);
  border-radius: 0.4rem;
  box-shadow: 0 0 18px rgba(43, 179, 192, 0.35);
}

.aperture::after {
  content: "";
  position: absolute;
  inset: 22% 18%;
  border: 1.5px solid var(--cyan);
  border-radius: 0.22rem;
}

.aperture--sm { width: 1.45rem; height: 1.05rem; border-width: 2px; }

/* —— desktop spine (not a sticky top bar) —— */
.spine {
  display: none;
}

@media (min-width: 960px) {
  .spine {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--spine);
    padding: 1.6rem 0.85rem 1.4rem;
    border-right: 1px solid var(--line);
    background: rgba(244, 248, 252, 0.86);
    backdrop-filter: blur(14px);
    z-index: 20;
  }

  .spine__mark {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
    text-decoration: none;
    color: var(--navy);
  }

  .spine__word {
    font-family: var(--font-d);
    font-weight: 700;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 1.05rem;
  }

  .spine__nav {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
  }

  .spine__nav a {
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--muted);
    font-weight: 600;
  }

  .spine__nav a:hover,
  .spine__nav a.is-active { color: var(--violet); }

  .spine__meta {
    margin: 0;
    font-size: 0.7rem;
    color: var(--muted);
    writing-mode: vertical-rl;
    transform: rotate(180deg);
  }

  .dock,
  .sheet { display: none !important; }

  .stage { margin-left: var(--spine); }
}

/* —— mobile dock + sheet menu —— */
.dock {
  position: fixed;
  left: 0.75rem;
  right: 0.75rem;
  bottom: calc(0.65rem + env(safe-area-inset-bottom));
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.7rem 0.55rem 0.9rem;
  background: rgba(11, 31, 58, 0.94);
  color: var(--white);
  border-radius: 999px;
  border: 1px solid rgba(169, 140, 245, 0.35);
  box-shadow: 0 12px 40px rgba(11, 31, 58, 0.28), 0 0 24px rgba(107, 77, 230, 0.25);
}

.dock__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-d);
  font-weight: 700;
}

.dock__toggle {
  appearance: none;
  border: 0;
  background: var(--violet);
  color: var(--white);
  font: 600 0.85rem var(--font-b);
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
}

.dock__bars,
.dock__bars::before,
.dock__bars::after {
  display: block;
  width: 0.9rem;
  height: 1.5px;
  background: var(--white);
  position: relative;
}

.dock__bars::before,
.dock__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.dock__bars::before { top: -4px; }
.dock__bars::after { top: 4px; }

.sheet {
  position: fixed;
  left: 0.75rem;
  right: 0.75rem;
  bottom: calc(var(--dock-h) + 0.85rem + env(safe-area-inset-bottom));
  z-index: 29;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem;
  box-shadow: 0 18px 50px rgba(11, 31, 58, 0.18);
}

.sheet[hidden] { display: none; }

.sheet__nav {
  display: grid;
  gap: 0.15rem;
}

.sheet__nav a {
  display: block;
  padding: 0.75rem 0.85rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  border-radius: 12px;
}

.sheet__nav a:hover,
.sheet__nav a.is-active { background: var(--lilac-mist); color: var(--deep-v); }

.stage {
  position: relative;
  z-index: 1;
  width: min(860px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 2.2rem 0 7.5rem;
}

@media (min-width: 960px) {
  .stage {
    width: min(880px, calc(100% - var(--spine) - 5rem));
    padding: 3.5rem 0 4.5rem;
  }
}

/* —— hero: window frame —— */
.window {
  position: relative;
  border-radius: 28px;
  padding: 1.35rem;
  background:
    linear-gradient(145deg, var(--navy), #1b2b5e 55%, var(--deep-v));
  border: 1px solid rgba(215, 230, 247, 0.28);
  box-shadow:
    0 0 0 8px rgba(215, 230, 247, 0.55),
    0 24px 60px rgba(11, 31, 58, 0.22),
    0 0 48px rgba(43, 179, 192, 0.18);
  overflow: hidden;
}

.window__mullion {
  position: absolute;
  inset: 12% 50% 12% auto;
  width: 1px;
  background: rgba(215, 230, 247, 0.18);
}

.window__pane {
  position: relative;
  padding: clamp(1.1rem, 4vw, 2.4rem) clamp(1rem, 4vw, 2.2rem);
}

.window h1,
.window .lede { color: var(--white); }

.lede {
  margin: 0 0 1rem;
  font-size: clamp(1.15rem, 2.6vw, 1.55rem);
  color: var(--lilac);
  font-weight: 600;
}

.hero__copy {
  margin: 0 0 1.4rem;
  max-width: 38rem;
  color: rgba(215, 230, 247, 0.92);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 650;
  font-size: 0.95rem;
}

.btn--primary {
  color: var(--white);
  background: linear-gradient(90deg, var(--ocean), var(--violet));
  box-shadow: 0 0 22px rgba(107, 77, 230, 0.45);
}

.btn--primary:hover { color: var(--white); filter: brightness(1.06); }

.btn--ghost {
  color: var(--ice);
  border: 1px solid rgba(215, 230, 247, 0.35);
}

.btn--ghost:hover { color: var(--white); background: rgba(255, 255, 255, 0.06); }

.metrics {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.metrics li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.85rem 0.75rem;
}

.metrics strong {
  display: block;
  font-family: var(--font-d);
  font-size: 1.45rem;
  color: var(--violet);
}

.metrics span {
  font-size: 0.78rem;
  color: var(--muted);
}

/* —— features timeline —— */
.features,
.about,
.privacy,
.contact { margin-top: 4.2rem; }

.band-head { max-width: 38rem; }

.band-head p { color: var(--muted); margin: 0 0 0.4rem; }

.band-head--right {
  margin-left: auto;
  text-align: right;
}

@media (max-width: 640px) {
  .band-head--right { text-align: left; margin-left: 0; }
}

.timeline {
  list-style: none;
  margin: 1.8rem 0 0;
  padding: 0 0 0 1.15rem;
  border-left: 2px solid var(--lilac);
}

.timeline li {
  position: relative;
  margin: 0 0 1.15rem;
  padding: 1.1rem 1.15rem 1.15rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(30, 78, 140, 0.06);
}

.timeline li::before {
  content: "";
  position: absolute;
  left: calc(-1.15rem - 6px);
  top: 1.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px var(--mist), 0 0 14px rgba(43, 179, 192, 0.7);
}

.idx {
  display: block;
  font-family: var(--font-d);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--violet);
  margin-bottom: 0.25rem;
}

.timeline p { margin: 0; color: var(--muted); }

/* —— about —— */
.about__grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.4rem;
}

.about__grid > p { margin: 0; color: var(--muted); }

.disclaimer {
  padding: 1.15rem 1.2rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--white), var(--lilac-mist));
}

.disclaimer h3 { font-size: 0.95rem; }
.disclaimer p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* —— privacy accordion —— */
.privacy__lead { color: var(--muted); max-width: 42rem; }

.accordion {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.55rem;
}

.accordion details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 1rem;
}

.accordion summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-d);
  font-weight: 650;
  padding: 1rem 0;
}

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

.accordion summary::after {
  content: "+";
  float: right;
  color: var(--violet);
  font-weight: 700;
}

.accordion details[open] summary::after { content: "–"; }

.accordion details > div {
  padding: 0 0 1rem;
  color: var(--muted);
}

.accordion ul { padding-left: 1.15rem; }

/* —— contact cards —— */
.cards {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 700px) {
  .cards { grid-template-columns: 1fr 1fr; }
}

.cards li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.05rem 1.15rem;
  box-shadow: 0 0 24px rgba(107, 77, 230, 0.06);
}

.cards__k {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ocean);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.cards a { font-weight: 650; text-decoration: none; }
.cards p { margin: 0; color: var(--muted); }

.foot {
  position: relative;
  z-index: 1;
  width: min(860px, calc(100% - 2.5rem));
  margin: 0 auto 6.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

@media (min-width: 960px) {
  .foot {
    margin-left: calc(var(--spine) + (100% - var(--spine) - min(880px, calc(100% - var(--spine) - 5rem))) / 2);
    width: min(880px, calc(100% - var(--spine) - 5rem));
    margin-bottom: 2.5rem;
  }
}

.foot a { text-decoration: none; font-weight: 600; }
