/* Inova Cloud. Tokens from the brand repo (inovacc/brand, tokens/tokens.json); layout from the
   owner's HTML kit (floating header, hero with the architecture photo, dark footer). */
@font-face {
  font-family: "Sora";
  src: url("/fonts/sora-400.8b241a2a.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Sora";
  src: url("/fonts/sora-600.1d0b46ef.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #0B132B;
  --blue: #2563EB;
  --cyan: #00E5E9;
  --charcoal: #1E293B;
  --gray: #E5E7EB;

  --bg: #F2F7FB;
  --surface: #FFFFFF;
  --hero-bg: #FFFFFF;
  --text: var(--navy);
  --muted: #475569;
  --line: var(--gray);
  --accent: var(--blue);
  --grad: linear-gradient(90deg, #2563EB 0%, #1D4ED8 100%);
  --tint-a: rgb(37 99 235 / 0.08);
  --tint-b: rgb(0 150 254 / 0.10);
  --chip: #EFF6FF;
  --shadow: 0 20px 60px rgb(29 78 216 / 0.07), 0 3px 14px rgb(15 23 42 / 0.04);

  --radius: 16px;
  --font: "Sora", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
  --code-bg: var(--navy);
  --code-text: var(--gray);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--navy);
    --surface: var(--charcoal);
    --hero-bg: var(--navy);
    --text: var(--gray);
    --muted: #94A3B8;
    --line: rgb(255 255 255 / 0.10);
    --accent: #60A5FA;
    --grad: linear-gradient(90deg, #60A5FA 0%, #00E5E9 100%);
    --tint-a: rgb(96 165 250 / 0.10);
    --tint-b: rgb(0 229 233 / 0.08);
    --chip: rgb(96 165 250 / 0.12);
    --shadow: 0 20px 60px rgb(0 0 0 / 0.35);
  }
}

* { 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: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[id] { scroll-margin-top: 24px; }

/* ---------- Header: sits directly on the hero photo, no bar ---------- */
/* The header and hero are always dark, so they carry their own tokens. */
.site-header, .hero {
  --text: #F1F5F9;
  --muted: #CBD5E1;
  --accent: #60A5FA;
  --line: rgb(255 255 255 / 0.16);
  --surface: rgb(255 255 255 / 0.06);
  --chip: rgb(96 165 250 / 0.16);
  --grad: linear-gradient(90deg, #60A5FA 0%, #00E5E9 100%);
  color: var(--text);
}
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 20; padding: 12px 16px 0; }
.nav-shell {
  position: relative;
  max-width: 1200px;
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand { display: inline-block; line-height: 0; margin-right: auto; }
.brand img { display: block; height: 48px; width: auto; }
.brand:hover { text-decoration: none; }

.main-nav { display: none; gap: 26px; }
.main-nav a, .langs a { text-shadow: 0 1px 3px rgb(0 0 0 / 0.45); }
.main-nav a { color: var(--text); font-size: 0.875rem; font-weight: 600; white-space: nowrap; }
.main-nav a:hover { color: var(--cyan); text-decoration: none; }

.langs { display: none; gap: 2px; }
.langs a {
  display: inline-block;
  min-width: 44px;
  padding: 12px 8px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
  border-radius: 10px;
}
.langs a:hover { color: var(--text); text-decoration: none; background: rgb(255 255 255 / 0.08); }
.langs a[aria-current] { color: var(--cyan); }

@media (min-width: 960px) {
  .main-nav, .langs { display: flex; }
  .menu { display: none; }
}

/* Mobile menu without JavaScript: a <details> disclosure. */
.menu summary {
  list-style: none;
  width: 44px;
  height: 44px;
  padding: 12px 10px;
  border-radius: 10px;
  cursor: pointer;
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; height: 2px; margin: 4px 0; border-radius: 2px; background: var(--text); }
.menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--charcoal);
  box-shadow: 0 20px 60px rgb(0 0 0 / 0.35);
}
.menu-panel nav:first-child { display: flex; flex-direction: column; }
.menu-panel nav:first-child a { padding: 12px 10px; color: var(--text); font-weight: 600; }
.menu-panel .langs { display: flex; margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--line); }
.menu-panel a { text-shadow: none; }

/* ---------- Buttons ---------- */
.button {
  min-height: 48px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 13px;
  font-weight: 600;
  font-size: 0.9rem;
}
.button:hover { text-decoration: none; }
.button-primary { color: #FFFFFF; background: var(--blue); box-shadow: 0 10px 30px rgb(37 99 235 / 0.22); }
.button-secondary { color: var(--text); border: 1px solid var(--line); background: var(--surface); }
.button-secondary:hover { border-color: var(--accent); }
.nav-cta { border-radius: 999px; }

/* ---------- Hero: dark, copy left, the architecture photo right and up to the top edge ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 0;
  background: var(--navy);
  border-bottom: 1px solid var(--line);
}
.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 168px 16px 88px;
}
.hero-copy > * { max-width: 640px; }

.eyebrow {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.eyebrow span { margin: 0 6px; color: var(--cyan); }

h1 {
  margin: 0;
  font-size: clamp(2.6rem, 5.4vw, 4.2rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.hl { color: var(--accent); }
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .hl { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
}

.hero-lead { margin: 28px 0 0; color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.7; }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-capabilities {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  font-size: 0.85rem;
  font-weight: 600;
}
.hero-capabilities li { display: inline-flex; align-items: center; gap: 10px; }
.mini-icon {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  color: var(--accent);
  background: var(--chip);
}
.mini-icon .ico { width: 20px; height: 20px; }

.hero-visual { display: none; }
@media (min-width: 900px) {
  .hero-visual {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    /* The photo is 964 px wide; never show it wider, or it upscales and goes soft. */
    width: min(50%, 964px);
    z-index: 1;
    /* Layers, top first: a scrim behind the header text, the fade into the navy on the left
       edge, then the photo. */
    background:
      linear-gradient(180deg, rgb(11 19 43 / 0.7) 0%, rgb(11 19 43 / 0) 28%),
      linear-gradient(90deg, #0B132B 0%, rgb(11 19 43 / 0.98) 5%, rgb(11 19 43 / 0.52) 20%, rgb(11 19 43 / 0) 42%),
      url("/brand/hero-building.webp") center top / cover no-repeat;
  }
  .hero-copy > * { max-width: 50%; }
  .hero-copy > h1 { max-width: 58%; }
}

/* ---------- Sections ---------- */
section { padding: 64px 0 0; }

h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
h2::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.about-label { margin: 0 0 12px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.statement { margin: 0; max-width: 44ch; font-size: clamp(1.3rem, 2.8vw, 1.8rem); line-height: 1.4; letter-spacing: -0.015em; }
.about-body { margin: 20px 0 0; max-width: 70ch; color: var(--muted); font-size: 1.05rem; }

.grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  counter-reset: item;
}
@media (min-width: 560px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.grid li {
  counter-increment: item;
  min-height: 120px;
  padding: 18px 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--tint-a), transparent 55%), var(--surface);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}
.grid li:nth-child(even) { background: linear-gradient(135deg, var(--tint-b), transparent 55%), var(--surface); }
.grid li::before {
  content: counter(item, decimal-leading-zero);
  content: counter(item, decimal-leading-zero) / "";
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
}

/* Principles: the five brand keywords with their line icons. */
.keys {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 560px) { .keys { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .keys { grid-template-columns: repeat(5, 1fr); } }
.keys li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.keys .ico { width: 28px; height: 28px; color: var(--accent); margin-bottom: 10px; }
.keys strong { font-weight: 600; font-size: 1.02rem; letter-spacing: -0.01em; }
.keys span { color: var(--muted); font-size: 0.9rem; line-height: 1.45; }

/* ---------- Product page: lead lines, status tags, cards, code, panels (tokens only) ---------- */
.lead { margin: -4px 0 24px; max-width: 70ch; color: var(--muted); font-size: 1.05rem; }
.hero-note { margin: 20px 0 0; color: var(--muted); font-size: 0.85rem; line-height: 1.6; }

/* A tag always carries its state in words; colour only reinforces it. */
.tag {
  display: inline-block;
  align-self: flex-start;
  padding: 2px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tag-live { color: var(--accent); background: var(--chip); border-color: var(--accent); }
.tag-soon { color: var(--muted); border-style: dashed; }

/* Buttons that have no target yet are real disabled buttons. */
button.button { font-family: inherit; font-size: 0.9rem; }
.button[disabled] {
  cursor: not-allowed;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--line);
  box-shadow: none;
}
.button .tag { padding: 0 8px; font-size: 0.65rem; }
.nav-login { display: none; }
@media (min-width: 1180px) { .nav-login { display: block; } }
.nav-cta { display: none; }
@media (min-width: 960px) { .nav-cta { display: inline-flex; } }
.menu-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.menu-actions .button { width: 100%; }

.values { padding-top: 40px; }
@media (min-width: 900px) { .keys-4 { grid-template-columns: repeat(4, 1fr); } }

.grid-title { color: var(--text); }
.grid-body { color: var(--muted); font-weight: 400; font-size: 0.9rem; line-height: 1.5; }

.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 560px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } .cards-4 { grid-template-columns: repeat(4, 1fr); } }
.card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.card strong { font-weight: 600; font-size: 1.02rem; letter-spacing: -0.01em; }
.card > span:not(.tag) { flex: 1; color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
.card .tag { margin-top: 6px; }

.developers { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; }
@media (min-width: 900px) { .developers { grid-template-columns: 5fr 7fr; gap: 40px; } }
.notes { margin: 0; padding-left: 1.2em; color: var(--muted); font-size: 0.95rem; }
.notes li { margin: 0 0 6px; }
.code { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--code-bg); color: var(--code-text); overflow: hidden; }
.code figcaption { padding: 10px 16px; border-bottom: 1px solid var(--line); color: var(--cyan); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.code pre { margin: 0; padding: 16px; overflow-x: auto; font: 400 0.82rem/1.7 var(--mono); }
.code code { font: inherit; }
.code pre:focus-visible { outline: 2px solid var(--cyan); outline-offset: -2px; border-radius: 0; }

.panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--tint-a), transparent 55%), var(--surface);
}
.panel .lead { margin: 0; }
.panel h2 { margin-bottom: 14px; }
.panel-note { margin: 16px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--muted); font-size: 0.9rem; }
.cta .hero-actions { margin-top: 24px; }

/* ---------- Footer: always dark ---------- */
.site-footer {
  margin-top: 96px;
  color: #EDF4FF;
  background:
    radial-gradient(circle at 94% 8%, rgb(0 109 255 / 0.28), transparent 26rem),
    radial-gradient(circle at 4% 96%, rgb(0 111 255 / 0.30), transparent 22rem),
    linear-gradient(104deg, #06182E 0%, #071A34 45%, #062759 100%);
}
.site-footer a, .site-footer .consent-open { color: rgb(244 248 255 / 0.92); }
.site-footer a:hover, .site-footer .consent-open:hover { color: var(--cyan); text-decoration: none; }
.site-footer a:focus-visible, .site-footer .consent-open:focus-visible { outline-color: var(--cyan); }

.footer-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 16px 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}
.footer-identity p { margin: 16px 0 0; color: rgb(237 244 255 / 0.78); font-size: 0.8rem; letter-spacing: 0.08em; }
.footer-symbol { display: block; width: 45px; height: auto; }
.footer-links { display: grid; grid-template-columns: 1fr; }
.footer-column {
  padding: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-column h2 { margin: 0 0 4px; color: #EDF4FF; font-size: 0.75rem; letter-spacing: 0.18em; }
.footer-column h2::after { display: none; }
.footer-column a { display: inline-block; padding: 4px 0; font-size: 0.95rem; }

@media (min-width: 720px) {
  .footer-main { grid-template-columns: 200px 1fr; }
  .footer-links { grid-template-columns: repeat(3, 1fr); }
  .footer-column { padding: 4px 32px 8px; border-left: 1px solid rgb(190 216 255 / 0.28); }
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 36px;
  justify-content: space-between;
  border-top: 1px solid rgb(194 218 255 / 0.28);
  font-size: 0.8rem;
}
.legal { margin: 0; color: rgb(244 248 255 / 0.85); }
.footer-mantra {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 18px;
  color: rgb(244 248 255 / 0.95);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.footer-mantra b { color: var(--cyan); font-weight: 400; letter-spacing: 0; }

/* ---------- Entrance: fade + slide up, staggered ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.in { animation: rise 0.45s ease-out backwards; }
.s1 { animation-delay: 60ms; }
.s2 { animation-delay: 120ms; }
.s3 { animation-delay: 180ms; }
.s4 { animation-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
  .in { animation: none; }
}

/* ---------- Cookie consent panel: bottom sheet on mobile, bottom-right card from 720px ---------- */
.consent {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  top: auto;
  width: 100%;
  max-width: none;
  max-height: 85vh;
  margin: 0;
  padding: 24px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
  /* show() (the first-visit banner) is not in the top layer, so it must out-stack the header (20)
     and the hero; showModal() (preferences) is in the top layer regardless. */
  z-index: 30;
}
.consent::backdrop {
  background: var(--navy);
  opacity: 0.5;
}
@media (min-width: 720px) {
  .consent {
    inset-inline: auto 24px;
    bottom: 24px;
    width: min(400px, calc(100vw - 48px));
    max-width: 400px;
    border-radius: var(--radius);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .consent::backdrop { transition: opacity 0.2s ease-out; }
}

/* <button> does not inherit the page font; the site's .button was only ever used on links. */
.consent button { font-family: inherit; }

.consent .consent-prefs { display: none; }
.consent[data-view="prefs"] .consent-banner { display: none; }
.consent[data-view="prefs"] .consent-prefs { display: block; }

/* The site's h2 is an uppercase, tracked section label with a rule after it; the panel's headings
   are plain titles, and the prefs title leaves room for the close button. */
.consent h2 {
  display: block;
  margin: 0 0 12px;
  padding-right: 40px;
  font-size: 1.05rem;
  letter-spacing: normal;
  text-transform: none;
  color: var(--text);
}
.consent h2::after { content: none; }
.consent p { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
.consent-banner p { margin-bottom: 16px; }

.consent-prefs { position: relative; padding-top: 4px; }
.consent-close {
  position: absolute;
  top: -4px;
  right: 0;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}
.consent-close:hover { border-color: var(--accent); }

.consent-rows { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.consent-row { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; row-gap: 2px; align-items: start; }
.consent-row input[type="checkbox"] { grid-column: 1; grid-row: 1 / span 2; margin-top: 3px; }
.consent-row label, .consent-row-label { grid-column: 2; font-weight: 600; font-size: 0.9rem; }
.consent-row p { grid-column: 2; margin: 0; color: var(--muted); font-size: 0.82rem; line-height: 1.4; }
.consent-row-static { grid-template-columns: 1fr; }
.consent-row-static .consent-row-label, .consent-row-static p { grid-column: 1; }

.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.consent-actions .button { flex: 1 1 100%; }
@media (min-width: 720px) {
  .consent-actions .button { flex: 1 1 auto; }
}

.site-footer .consent-open {
  border: none;
  background: none;
  padding: 4px 0;
  font: inherit;
  font-size: 0.8rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.site-footer .privacy-link { padding: 4px 0; text-decoration: underline; text-underline-offset: 3px; }

/* Header actions stay on one line and compact. */
.button { white-space: nowrap; }
.nav-cta { min-height: 40px; padding: 0 14px; gap: 8px; }
.button .tag { align-self: center; }
