/* AI-DRM — single stylesheet, no build step.
   Palette sampled from the reference art: muted slate-teal, not neon cyan. */

:root {
  --bg:        #141a21;   /* page */
  --surface:   #1b232b;   /* cards, alternating bands */
  --surface-2: #202b33;   /* raised */
  --border:    #2c3b45;
  --border-lit:#344952;
  --text:      #e6f0f2;
  --muted:     #93aab2;
  --accent:    #7fb1ba;
  --accent-lit:#cdebef;

  --measure: 68ch;
  --wrap: 1120px;
  --radius: 10px;

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;

  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent-lit); text-decoration-color: color-mix(in srgb, var(--accent) 50%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent-lit); }

:focus-visible { outline: 2px solid var(--accent-lit); outline-offset: 3px; border-radius: 3px; }

.skip {
  position: absolute; left: -9999px;
  background: var(--surface-2); color: var(--text);
  padding: .7rem 1rem; border-radius: var(--radius); z-index: 10;
}
.skip:focus { left: 1rem; top: 1rem; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 62ch; }
.prose { max-width: var(--measure); color: var(--muted); }

/* ---------- header ---------- */

.site-head {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  gap: .6rem 1rem; flex-wrap: wrap;
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
  padding: 1rem 0;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  font-weight: 650; letter-spacing: .06em; font-size: 1.05rem;
  color: var(--text); text-decoration: none;
}

.site-head nav { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.site-head nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.site-head nav a:hover { color: var(--text); }

/* ---------- nav dropdown ---------- */

/* Pure CSS: hover for pointers, :focus-within for keyboards. No JavaScript, so
   the strict CSP stays strict. The parent is still a real link, so on touch —
   where there is no hover — tapping it goes to the Products page, which lists
   the same children. */

.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  /* Vertical padding bridges the gap to the panel, so the menu does not close
     while the pointer travels down to it. Negative margin keeps the layout. */
  padding-block: .75rem;
  margin-block: -.75rem;
}

.nav-item > a::after {
  content: "";
  display: inline-block;
  margin-left: .38rem;
  border: 4px solid transparent;
  border-top-color: currentColor;
  transform: translateY(2px);
  opacity: .6;
  transition: transform .15s ease, opacity .15s ease;
}
.nav-item:hover > a::after,
.nav-item:focus-within > a::after { opacity: 1; }

.sub {
  position: absolute;
  top: 100%;
  left: -.6rem;
  z-index: 20;
  min-width: 12rem;
  margin: 0;
  padding: .35rem;
  list-style: none;
  background: var(--surface-2);
  border: 1px solid var(--border-lit);
  border-radius: var(--radius);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .5);
  /* visibility (not just opacity) keeps the closed menu out of the tab order */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  transition: opacity .14s ease, transform .14s ease, visibility .14s;
}

.nav-item:hover .sub,
.nav-item:focus-within .sub {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.sub a {
  display: block;
  padding: .5rem .65rem;
  border-radius: 6px;
  white-space: nowrap;
  color: var(--muted);
  text-decoration: none;
  font-size: .93rem;
}
.sub a:hover,
.sub a:focus-visible { background: var(--bg); color: var(--text); }
.sub a[aria-current="page"] { color: var(--accent-lit); }

@media (prefers-reduced-motion: reduce) {
  .sub, .nav-item > a::after { transition: none; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  padding: .7rem 1.3rem;
  border-radius: var(--radius);
  border: 1px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent-lit);
  font-weight: 600; font-size: .97rem;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease;
}
.btn:hover { background: color-mix(in srgb, var(--accent) 24%, transparent); }
.btn-ghost { border-color: var(--border-lit); background: none; color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); background: none; }
.btn-small { padding: .45rem .95rem; font-size: .9rem; }

/* ---------- hero ---------- */

/* Decorative artwork layer: sits behind the header and hero both, so the
   circuit field starts at the very top of the page with no seam. */
.backdrop {
  position: absolute;
  inset: 0 0 auto 0;
  height: clamp(560px, 88vh, 900px);
  z-index: -1;
  background-image:
    radial-gradient(ellipse 60% 55% at 50% 45%,
                    color-mix(in srgb, var(--accent) 10%, transparent), transparent 72%),
    url("assets/circuit.svg");
  background-size: auto, cover;
  background-position: center, center;
  background-repeat: no-repeat;
}
/* Fade the artwork out at the bottom so it reads as atmosphere, not wallpaper. */
.backdrop::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 30%, var(--bg) 96%);
}

.hero {
  padding: clamp(3rem, 10vw, 7rem) 0 clamp(4rem, 10vw, 7rem);
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  margin: 0 0 1.1rem;
  color: var(--accent);
  font-size: .82rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
}

h1 {
  margin: 0 0 1.4rem;
  font-size: clamp(1.95rem, 6.4vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 700;
}

.lede {
  margin: 0 auto;
  max-width: 60ch;
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  color: var(--muted);
}

.cta-row { margin-top: 2.2rem; display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

/* ---------- bands ---------- */

.band { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.band-alt { background: var(--surface); border-block: 1px solid var(--border); }

h2 {
  margin: 0 0 1.2rem;
  font-size: clamp(1.45rem, 3.6vw, 2.35rem);
  line-height: 1.2; letter-spacing: -0.02em; font-weight: 680;
  max-width: 24ch;
}

h3 { margin: 0 0 .5rem; font-size: 1.06rem; font-weight: 640; letter-spacing: -0.01em; }

/* ---------- cards ---------- */

.cards {
  margin-top: 2.8rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 1.1rem;
}

.card {
  padding: 1.5rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.band-alt .card { background: var(--bg); }
.card p { margin: 0; color: var(--muted); font-size: .96rem; }

/* ---------- steps ---------- */

.steps {
  margin: 2.8rem 0 0; padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.6rem 1.4rem;
}
.steps li { counter-increment: step; padding-top: 1.1rem; border-top: 1px solid var(--border-lit); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block; margin-bottom: .7rem;
  color: var(--accent); font-size: .8rem; font-weight: 700; letter-spacing: .12em;
}
.steps p { margin: 0; color: var(--muted); font-size: .96rem; }

/* ---------- specs ---------- */

.specs { margin: 2.4rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.4rem; }
.specs > div { padding-top: 1rem; border-top: 1px solid var(--border-lit); }
.specs dt { color: var(--accent); font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.specs dd { margin: .45rem 0 0; font-size: 1.02rem; }

/* ---------- footer ---------- */

.site-foot { padding: 2.2rem 0; border-top: 1px solid var(--border); }
.foot-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.site-foot p { margin: 0; color: var(--muted); font-size: .9rem; }

/* ---------- interior page bits ---------- */

.cta-left { justify-content: flex-start; }
.mt { margin-top: clamp(2.5rem, 6vw, 4rem); }

.site-head nav a.current { color: var(--text); }

/* ---------- cards, extended ---------- */

.kicker {
  margin: 0 0 .35rem;
  color: var(--accent);
  font-size: .72rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
}
.card-lead h3 { font-size: 1.35rem; }
.card-soon { border-style: dashed; }
.card-more { margin-top: 1rem !important; font-size: .95rem; }

/* ---------- product block ---------- */

.product h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: .8rem; }

.ticks { margin: 1.8rem 0 0; padding: 0; list-style: none; max-width: var(--measure); }
.ticks li {
  position: relative;
  padding: .55rem 0 .55rem 1.9rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
}
.ticks li::before {
  content: ""; position: absolute; left: .35rem; top: 1.15rem;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
}

/* ---------- centred band ---------- */

/* Used by the pitch-video section. The media is centred, so the heading and
   lead-in are too — a centred video under a left-aligned heading reads as a
   layout bug rather than a decision. */
.band-center { text-align: center; }
.band-center h2,
.band-center .prose { margin-inline: auto; }

/* ---------- video ---------- */

.video { margin: 2.4rem auto 0; max-width: 900px; }
.video video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 848 / 478;      /* reserve the box before the poster loads */
  background: #000;
  border: 1px solid var(--border-lit);
  border-radius: var(--radius);
}
.video figcaption {
  margin-top: .8rem;
  text-align: center;
  color: var(--muted);
  font-size: .88rem;
  letter-spacing: .02em;
}

/* ---------- team ---------- */

.team {
  margin: 2.8rem 0 0; padding: 0; list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2rem 1.6rem;
}
.member img {
  /* aspect-ratio reserves the box before the file loads, so no intrinsic
     width/height attributes are needed and none can go stale. */
  width: 100%; aspect-ratio: 1;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-2);
  margin-bottom: 1.1rem;
}
.member h3 { margin-bottom: .15rem; font-size: 1.15rem; }
.member p { margin: 0; color: var(--muted); font-size: .95rem; }
.member .role {
  color: var(--accent);
  font-size: .78rem; font-weight: 600;
  letter-spacing: .11em; text-transform: uppercase;
  margin-bottom: .7rem;
}

/* ---------- roles (careers) ---------- */

.roles { margin: 2.4rem 0 0; padding: 0; list-style: none; display: grid; gap: 1.1rem; }
.role-item {
  padding: 1.6rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: var(--measure);
}
.role-item h3 { margin-bottom: .2rem; }
.role-item p { margin: 0; color: var(--muted); font-size: .96rem; }
.role-item .role {
  color: var(--accent); font-size: .78rem; font-weight: 600;
  letter-spacing: .11em; text-transform: uppercase; margin-bottom: .9rem;
}

/* ---------- legal pages ---------- */

.legal h2 { font-size: 1.15rem; margin: 2.2rem 0 .6rem; max-width: none; }
.legal p { color: var(--muted); }
.notice {
  padding: 1.1rem 1.3rem;
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  border: 1px solid var(--border-lit);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  font-size: .95rem;
}
.notice strong { color: var(--text); }

/* ---------- footer links ---------- */

.foot-links { display: flex; gap: 1.3rem; flex-wrap: wrap; }
.foot-links a { color: var(--muted); text-decoration: none; font-size: .9rem; }
.foot-links a:hover { color: var(--text); text-decoration: underline; }

/* ---------- narrow viewports ---------- */

/* Six links plus the button is a wide header. Tighten the spacing before
   letting it wrap onto a second row. */
@media (max-width: 1040px) {
  .site-head nav { gap: 1rem; }
  .site-head nav a { font-size: .9rem; }
  .site-head .btn-small { padding: .42rem .8rem; }
}


@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap, .hero-inner, .site-head { width: min(100% - 1.8rem, var(--wrap)); }
  .site-head { padding: .8rem 0; }
  .site-head nav { gap: .9rem; font-size: .9rem; }
  .cta-row .btn { flex: 1 1 auto; text-align: center; }
  .team { gap: 1.6rem 1.2rem; }
  .foot-inner { flex-direction: column; gap: .6rem; }
  .steps { gap: 1.3rem; }
}

@media (max-width: 380px) {
  .site-head nav a:not(.btn), .site-head .nav-item { display: none; }
}
