@import "./tokens.css";

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-sans);
  color: var(--color-text);
  background:
    linear-gradient(180deg, #0a1c33 0%, var(--color-bg) 280px);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--color-brand);
  color: #fff;
  font-weight: 800;
}
.skip-link:focus { left: 0.75rem; top: 0.75rem; }

.ticker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
  padding: 0.45rem 1rem;
  background: #04101f;
  color: #9ec4ff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.ticker span { white-space: nowrap; }
.ticker span:not(:last-child)::after {
  content: "·";
  margin-left: 1.5rem;
  color: var(--color-brand);
}

.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1.1rem;
  background: rgba(5, 14, 28, 0.92);
  border-bottom: 1px solid rgba(58, 160, 255, 0.25);
}
.bar__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.04em;
}
.bar__brand img { width: 40px; height: 40px; }
.bar__brand em {
  font-style: normal;
  color: var(--ez-cyan);
}
.bar__nav {
  display: none;
  gap: 1.25rem;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  font-weight: 700;
}
.bar__nav a:hover { color: #fff; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1.1rem;
  border-radius: 4px;
  border: 1px solid transparent;
  font-weight: 800;
  font-size: 0.9rem;
}
.btn--primary {
  background: var(--color-brand);
  color: #fff;
}
.btn--primary:hover { background: var(--color-brand-hover); }
.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}
.btn--lg { min-height: 50px; padding-inline: 1.3rem; }

.stage,
.catalog,
.lanes,
.split,
.promo,
.faq,
.foot {
  scroll-margin-top: 72px;
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.stage {
  display: grid;
  gap: 1.5rem;
  padding: 1.6rem 0 1rem;
}
.kicker {
  margin: 0 0 0.6rem;
  color: var(--ez-cyan);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.stage h1 {
  margin: 0;
  max-width: 11ch;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  line-height: 0.95;
}
.stage__lead {
  max-width: 36rem;
  color: #c5d6ee;
  font-size: 1.05rem;
}
.stage__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.2rem 0 1.4rem;
}
.meters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.meters li {
  padding: 0.75rem 0.7rem;
  background: rgba(8, 22, 42, 0.85);
  border-left: 3px solid var(--color-brand);
}
.meters strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
}
.meters span {
  color: var(--color-text-secondary);
  font-size: 0.75rem;
}
.stage__shot {
  margin: 0;
  position: relative;
}
.stage__shot > img {
  width: 100%;
  height: min(62vw, 420px);
  object-fit: cover;
  object-position: center 20%;
  border-radius: 6px 48px 6px 6px;
  border: 1px solid rgba(4, 255, 255, 0.35);
}
.stage__shot figcaption {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  margin-top: 0.7rem;
  color: var(--color-text-secondary);
  font-size: 0.85rem;
}
.stage__shot figcaption img { width: 36px; height: 36px; }

.catalog { padding: 1.5rem 0 0.4rem; }
.catalog__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.catalog__head h2,
.split h2,
.faq h2,
.panel h2 {
  margin: 0 0 0.8rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
}
.catalog__head a {
  color: var(--ez-cyan);
  font-weight: 800;
  font-size: 0.9rem;
}
.bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}
.tile {
  position: relative;
  overflow: hidden;
  min-height: 120px;
  background: #081426;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.tile img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}
.tile span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.4rem 0.6rem 0.45rem;
  background: linear-gradient(transparent, rgba(4, 10, 20, 0.92));
  font-weight: 800;
  font-size: 0.85rem;
}
.tile--wide { grid-column: 1 / -1; }
.tile--wide img { height: 210px; }
.aside {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}

.lanes {
  display: grid;
  gap: 0;
  margin-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.lanes article {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.lanes h3 {
  margin: 0 0 0.3rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.lanes p {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 0.92rem;
}

.split {
  display: grid;
  gap: 1.2rem;
  padding: 1.8rem 0;
}
.path {
  list-style: none;
  margin: 0;
  padding: 0;
}
.path li {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 0.7rem;
  padding: 0.85rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.16);
}
.path b {
  font-family: var(--font-display);
  color: var(--ez-cyan);
}
.path h3 { margin: 0 0 0.25rem; font-size: 1rem; }
.path p { margin: 0; color: var(--color-text-secondary); font-size: 0.92rem; }

.panel {
  padding: 1.1rem;
  background: #07182c;
  border: 1px solid rgba(2, 115, 245, 0.45);
}
.panel dl { margin: 0; }
.panel dl > div {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.6rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.panel dt { color: var(--color-text-secondary); font-size: 0.8rem; }
.panel dd { margin: 0; font-weight: 700; }
.panel p {
  color: var(--color-text-secondary);
  font-size: 0.85rem;
}
.panel .btn { margin-top: 0.4rem; }

.promo {
  display: grid;
  gap: 0.7rem;
}
.promo article {
  padding: 1rem 1rem 1rem 0.9rem;
  background: linear-gradient(90deg, rgba(2, 115, 245, 0.18), transparent 70%);
  border-left: 4px solid var(--color-brand);
}
.promo h3 { margin: 0 0 0.35rem; font-family: var(--font-display); }
.promo p { margin: 0; color: var(--color-text-secondary); }
.promo a {
  display: inline-block;
  margin-top: 0.6rem;
  color: var(--ez-cyan);
  font-weight: 800;
}

.faq { padding: 1.6rem 0 2rem; }
.faq details {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.85rem 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin: 0.45rem 0 0; color: var(--color-text-secondary); }

.foot {
  padding-bottom: 2rem;
  color: var(--color-text-secondary);
  font-size: 0.85rem;
}
.foot__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.foot__top strong { display: block; color: #fff; }
.foot__badges { display: inline-flex; gap: 0.4rem; align-items: center; }
.foot p { margin: 0.8rem 0 0; }

@media (min-width: 860px) {
  .bar__nav { display: flex; }
  .stage {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    padding-top: 2.4rem;
  }
  .stage__shot > img { height: 460px; }
  .bento { grid-template-columns: 1.4fr 1fr 1fr; }
  .tile--wide { grid-column: 1 / 2; grid-row: 1 / 3; }
  .tile--wide img,
  .tile img { height: 100%; min-height: 160px; }
  .lanes { grid-template-columns: repeat(4, 1fr); }
  .lanes article { border-bottom: 0; border-right: 1px solid rgba(255, 255, 255, 0.12); padding-right: 1rem; }
  .lanes article:last-child { border-right: 0; }
  .split { grid-template-columns: 1.15fr 0.85fr; align-items: start; }
  .promo { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 520px) {
  .meters { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
