/* OnAirRender Studio and OnAirGraph websites - design system and layout.
   The same file on both websites. One stylesheet, no build step. Tokens first, then base, components,
   page sections, utilities. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/InterVariable.woff2") format("woff2");
}

:root {
  --bg: #0B0D11;
  --bg-2: #15191F;
  --surface: #20262E;
  --surface-2: #2D3540;
  --text: #F0F2F5;
  --text-2: #A7B0BA;
  --text-3: #8A939E;
  --accent: #B72C3B;
  --accent-hover: #D64654;
  --border: #303740;
  --border-soft: #22282F;

  --ok: #7FD1A3;
  --ok-bg: rgba(63, 178, 127, .10);
  --ok-line: rgba(63, 178, 127, .34);
  --dev: #E3B866;
  --dev-bg: rgba(217, 164, 65, .10);
  --dev-line: rgba(217, 164, 65, .34);
  --plan: #9DB2D6;
  --plan-bg: rgba(122, 147, 184, .10);
  --plan-line: rgba(122, 147, 184, .34);
  --expl: #B9AEE0;
  --expl-bg: rgba(154, 140, 194, .10);
  --expl-line: rgba(154, 140, 194, .34);

  --font: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, "Liberation Mono", monospace;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(72px, 9vw, 136px);
  --radius: 8px;
  --radius-lg: 12px;
  --header-h: 68px;
  --shadow-shot: 0 30px 80px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .04);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
/* Grid columns are minmax(0, 1fr), never a bare 1fr: a bare 1fr cannot shrink
   below its content, so a code block (pre) would push the page wider than a
   phone screen. */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-2);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  font-feature-settings: "cv11", "ss03";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  color: var(--text);
  margin: 0;
  font-weight: 620;
  line-height: 1.15;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--text); text-decoration-color: rgba(240, 242, 245, .35); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }

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

code, kbd, .mono { font-family: var(--mono); font-size: .9em; }

ul { padding-left: 1.2em; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 46px;
  padding: .7rem 1.3rem;
  border: 1px solid transparent;
  border-radius: 6px;
  font: inherit;
  font-size: .95rem;
  font-weight: 560;
  line-height: 1.2;
  letter-spacing: .005em;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }

.btn-secondary { background: transparent; color: var(--text); border-color: #3B4450; }
.btn-secondary:hover { border-color: #5C6774; background: rgba(255, 255, 255, .03); }

.btn-sm { min-height: 38px; padding: .45rem .95rem; font-size: .88rem; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  color: var(--text);
  font-weight: 560;
  text-decoration: none;
}
.text-link .icon-inline { width: 18px; height: 18px; transition: transform .18s var(--ease); }
.text-link:hover .icon-inline { transform: translateX(3px); }

.icon { width: 24px; height: 24px; flex: none; }

/* ---------- Product family bar (above the header) ---------- */

.family-bar { background: #08090C; border-bottom: 1px solid var(--border-soft); }
.family-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
.family-label { margin: 0; color: var(--text-3); font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.family-list { display: flex; gap: 2px; margin: 0 -10px 0 0; padding: 0; list-style: none; }
.family-list a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; color: var(--text-3); font-size: .8rem; font-weight: 500; white-space: nowrap; text-decoration: none; border-radius: 4px; transition: color .15s var(--ease); }
.family-label a { color: inherit; text-decoration: none; }
.family-label a:hover { color: var(--text); }
.family-list a:hover { color: var(--text); }
.family-list a[aria-current] { color: var(--text); }
.family-list a[aria-current]::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
@media (max-width: 560px) {
  .family-label { display: none; }
  .family-list { margin: 0 0 0 -10px; }
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 13, 17, .88);
  border-bottom: 1px solid rgba(48, 55, 64, .7);
}
@supports (backdrop-filter: blur(1px)) {
  .site-header { backdrop-filter: saturate(140%) blur(8px); -webkit-backdrop-filter: saturate(140%) blur(8px); }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  flex: none;
}
.brand-mark { width: 40px; height: 40px; }
.brand-name { font-size: 1.05rem; font-weight: 640; letter-spacing: -0.01em; white-space: nowrap; }
.brand-name span { font-weight: 400; color: var(--text-2); }

.site-nav { display: flex; align-items: center; gap: 28px; }
.nav-list { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav-list a {
  position: relative;
  display: block;
  padding: 8px 12px;
  color: var(--text-2);
  font-size: .92rem;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  border-radius: 6px;
  transition: color .15s var(--ease);
}
.nav-list a:hover { color: var(--text); }
.nav-ext { display: inline-block; width: 13px; height: 13px; margin-left: 5px; vertical-align: -1px; opacity: .65; }
.nav-list a[aria-current="page"] { color: var(--text); }
.nav-list a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: -13px;
  height: 2px;
  background: var(--accent);
}

.nav-toggle { display: none; }

@media (max-width: 1100px) {
  .js .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    margin-right: -8px;
    background: transparent;
    border: 0;
    color: var(--text);
    cursor: pointer;
    border-radius: 6px;
  }
  .nav-toggle-bars,
  .nav-toggle-bars::before,
  .nav-toggle-bars::after {
    display: block;
    width: 20px; height: 1.5px;
    background: currentColor;
    transition: transform .2s var(--ease), opacity .2s var(--ease);
  }
  .nav-toggle-bars { position: relative; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

  .js .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 12px var(--gutter) 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .js .site-nav.is-open { display: flex; }
  .js .nav-list { flex-direction: column; gap: 0; }
  .js .nav-list a { padding: 14px 0; font-size: 1.02rem; border-bottom: 1px solid var(--border-soft); border-radius: 0; }
  .js .nav-list a[aria-current="page"]::after { left: 0; right: auto; top: 50%; bottom: auto; width: 3px; height: 18px; transform: translate(-12px, -50%); }
  .js .nav-cta { align-self: flex-start; }

  .no-js .header-inner { flex-wrap: wrap; padding-block: 10px; }
  .no-js .site-nav { flex-wrap: wrap; gap: 8px; }
  .no-js .nav-list { flex-wrap: wrap; }
}

/* ---------- Sections ---------- */

.section { padding-block: var(--section-y); position: relative; }
.section + .section { border-top: 1px solid var(--border-soft); }
.section-alt { background: var(--bg-2); }
.section-alt + .section, .section + .section-alt { border-top-color: transparent; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--text-3);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--accent); }

.section-heading { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-heading h2 { font-size: clamp(1.85rem, 1.3rem + 1.9vw, 2.8rem); }
.section-heading .lead { margin-top: 20px; }
.section-heading-center { margin-inline: auto; text-align: center; }
.section-heading-center .eyebrow { justify-content: center; }

.lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); line-height: 1.6; color: var(--text-2); max-width: 68ch; }

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

.hero {
  position: relative;
  padding-top: clamp(56px, 8vw, 112px);
  padding-bottom: clamp(64px, 8vw, 120px);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 50% at 78% 8%, rgba(183, 44, 59, .11), transparent 70%),
    linear-gradient(rgba(255, 255, 255, .022) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, rgba(255, 255, 255, .022) 1px, transparent 1px) 0 0 / 64px 64px;
  -webkit-mask-image: radial-gradient(90% 70% at 50% 0%, #000 30%, transparent 85%);
  mask-image: radial-gradient(90% 70% at 50% 0%, #000 30%, transparent 85%);
}

.hero-copy { max-width: 820px; }
.hero h1 {
  font-size: clamp(2.5rem, 1.5rem + 4vw, 4.6rem);
  font-weight: 660;
  line-height: 1.03;
  letter-spacing: -0.032em;
}
.hero .lead { margin-top: 24px; max-width: 640px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.dev-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  color: var(--text-3);
  font-size: .88rem;
}
.dev-note::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--dev);
  box-shadow: 0 0 0 4px rgba(217, 164, 65, .14);
}

.hero-visual { position: relative; margin-top: clamp(48px, 6vw, 80px); }
.hero-visual .shot-main { margin: 0; }
.hero-visual .shot-main .shot-link { border-radius: var(--radius-lg); }
.hero-visual .shot-overlay {
  position: absolute;
  right: -1.5%;
  bottom: -9%;
  width: 31%;
  margin: 0;
}
.hero-visual .shot-overlay .shot-link { border-radius: var(--radius-lg); box-shadow: 0 30px 70px -10px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .06); }
.hero-visual > figcaption, .hero-caption {
  margin-top: 18px;
  color: var(--text-3);
  font-size: .82rem;
  max-width: 62%;
}
@media (max-width: 860px) {
  .hero-visual .shot-overlay { display: none; }
  .hero-caption { max-width: none; }
}

/* ---------- Page hero (sub pages) ---------- */

.page-hero {
  position: relative;
  padding-top: clamp(56px, 7vw, 104px);
  padding-bottom: clamp(48px, 6vw, 88px);
  border-bottom: 1px solid var(--border-soft);
  overflow: hidden;
  isolation: isolate;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(255, 255, 255, .02) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, rgba(255, 255, 255, .02) 1px, transparent 1px) 0 0 / 64px 64px;
  -webkit-mask-image: radial-gradient(80% 90% at 85% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(80% 90% at 85% 0%, #000 20%, transparent 75%);
}
.page-hero h1 { font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.6rem); font-weight: 650; letter-spacing: -0.028em; max-width: 900px; line-height: 1.07; }
.page-hero .lead { margin-top: 22px; }
.page-hero .hero-actions { margin-top: 32px; }
.page-hero-brand { display: flex; align-items: center; gap: 28px; }
.page-hero-brand img { width: 120px; height: 120px; flex: none; }
@media (max-width: 640px) {
  .page-hero-brand { flex-direction: column; align-items: flex-start; gap: 20px; }
  .page-hero-brand img { width: 88px; height: 88px; }
}

/* Local section navigation on long pages. */
.subnav {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  background: rgba(11, 13, 17, .92);
  border-bottom: 1px solid var(--border-soft);
}
.subnav ul {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a {
  display: block;
  padding: 14px 12px;
  color: var(--text-3);
  font-size: .86rem;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
}
.subnav a:hover, .subnav a.is-active { color: var(--text); }
.subnav li:first-child a { padding-left: 0; }

/* ---------- Screenshots ---------- */

.shot { margin: 0; }
.shot-link {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-2);
  box-shadow: var(--shadow-shot);
  cursor: zoom-in;
}
.shot:not(.shot-fit) .shot-link img { width: 100%; }
.shot-zoom {
  position: absolute;
  right: 12px; top: 12px;
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 6px;
  background: rgba(11, 13, 17, .78);
  color: var(--text);
  opacity: 0;
  transition: opacity .2s var(--ease);
}
.shot-zoom .icon { width: 18px; height: 18px; }
.shot-link:hover .shot-zoom, .shot-link:focus-visible .shot-zoom { opacity: 1; }
.shot figcaption { margin-top: 14px; color: var(--text-3); font-size: .84rem; line-height: 1.55; }

.shot-row { display: grid; gap: 20px; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); align-items: start; }
@media (max-width: 760px) { .shot-row { grid-template-columns: minmax(0, 1fr); } }

.pending-frame {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 8px;
  min-height: 260px;
  padding: 32px;
  border: 1px dashed #46505C;
  border-radius: var(--radius-lg);
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .018) 0 10px, transparent 10px 20px),
    var(--bg-2);
}
.shot + .pending-frame, .pending-frame + .shot { margin-top: 24px; }
.pending-tag {
  padding: 3px 9px;
  border-radius: 4px;
  background: var(--dev-bg);
  border: 1px solid var(--dev-line);
  color: var(--dev);
  font-size: .7rem;
  font-weight: 650;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.pending-title { margin: 6px 0 0; color: var(--text); font-weight: 600; }
.pending-note { margin: 0; color: var(--text-3); font-size: .88rem; max-width: 52ch; }

/* ---------- Status labels ---------- */

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 9px 3px 8px;
  border: 1px solid;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1.4;
  white-space: nowrap;
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-available { color: var(--ok); background: var(--ok-bg); border-color: var(--ok-line); }
.status-in-development { color: var(--dev); background: var(--dev-bg); border-color: var(--dev-line); }
.status-planned { color: var(--plan); background: var(--plan-bg); border-color: var(--plan-line); }
.status-exploratory { color: var(--expl); background: var(--expl-bg); border-color: var(--expl-line); }

.status-legend { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 0; padding: 0; list-style: none; }
.status-legend li { display: flex; align-items: center; gap: 10px; font-size: .88rem; color: var(--text-3); }

/* ---------- Feature grid (hairline spec-sheet layout) ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.feature {
  padding: clamp(24px, 3vw, 36px);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background-color .2s var(--ease);
}
.feature:hover { background: rgba(255, 255, 255, .015); }
.feature .icon { width: 28px; height: 28px; color: var(--text); margin-bottom: 22px; }
.feature h3 { font-size: 1.08rem; font-weight: 600; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.feature p { font-size: .95rem; color: var(--text-2); }
.feature .status { margin-top: 16px; }
/* Eight features: four columns while there is room, then two. */
.feature-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .feature-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Split (alternating image / text) ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.split + .split { margin-top: clamp(72px, 9vw, 128px); }
.split-reverse { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split-reverse .split-copy { order: 2; }
.split-copy h3 { font-size: clamp(1.4rem, 1.15rem + .9vw, 1.85rem); margin-bottom: 18px; }
.split-copy .eyebrow { margin-bottom: 14px; }
.split-copy ul { margin: 18px 0 0; padding: 0; list-style: none; }
.split-copy li { position: relative; padding-left: 22px; margin-top: 10px; font-size: .96rem; }
.split-copy li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 1.5px; background: var(--accent); }
.split-copy .status { margin-bottom: 16px; }
@media (max-width: 900px) {
  .split, .split-reverse { grid-template-columns: minmax(0, 1fr); }
  .split-reverse .split-copy { order: 0; }
}

/* Node montage: several genuine node renders side by side. */
.node-montage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.node-montage > figcaption { grid-column: 1 / -1; color: var(--text-3); font-size: .84rem; line-height: 1.55; }
@media (max-width: 560px) { .node-montage { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Concept flow diagram ---------- */

.flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: flow;
}
.flow-step {
  position: relative;
  padding: 28px 28px 30px;
  border: 1px solid var(--border);
  border-right-width: 0;
  background: var(--bg);
}
.flow-step:last-child { border-right-width: 1px; border-color: rgba(183, 44, 59, .55); background: linear-gradient(180deg, rgba(183, 44, 59, .07), transparent 70%), var(--bg); }
.flow-step:first-child { border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
.flow-step:last-child { border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
.flow-step::after {
  content: "";
  position: absolute;
  top: 50%; right: -9px;
  z-index: 1;
  width: 16px; height: 16px;
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  background: var(--bg);
  transform: translateY(-50%) rotate(45deg);
}
.flow-step:last-child::after { display: none; }
.flow-index { display: block; margin-bottom: 18px; color: var(--text-3); font-family: var(--mono); font-size: .78rem; letter-spacing: .06em; }
.flow-step h3 { font-size: 1.05rem; margin-bottom: 12px; }
.flow-step p { font-size: .9rem; color: var(--text-3); }
.flow-step ul { margin: 14px 0 0; padding: 0; list-style: none; }
.flow-step li { font-family: var(--mono); font-size: .76rem; color: var(--text-2); padding: 4px 0; border-top: 1px dashed var(--border-soft); }
.flow-note { margin-top: 20px; color: var(--text-3); font-size: .84rem; }
.flow.flow-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .flow, .flow.flow-3 { grid-template-columns: minmax(0, 1fr); }
  .flow-step { border-right-width: 1px; border-bottom-width: 0; }
  .flow-step:first-child { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .flow-step:last-child { border-bottom-width: 1px; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
  .flow-step::after { top: auto; bottom: -9px; right: auto; left: 32px; transform: rotate(135deg); }
}

/* ---------- Integration categories (home) ---------- */

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.category {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
}
.section-alt .category { background: var(--bg); }
.category-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.category-head .icon { color: var(--text-2); }
.category h3 { font-size: 1.02rem; }
.category > p { font-size: .9rem; color: var(--text-3); margin-bottom: 16px; }
.category-items { margin: auto 0 0; padding: 0; list-style: none; border-top: 1px solid var(--border-soft); }
.category-items li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border-soft); font-size: .9rem; color: var(--text); }
.category-items li:last-child { border-bottom: 0; padding-bottom: 0; }
@media (max-width: 960px) { .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .category-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Integration list (integrations page) ---------- */

.callout + .int-category, .int-category + .int-category { margin-top: clamp(56px, 7vw, 96px); }
.int-category-head { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 24px; }
.int-category-head .icon { width: 28px; height: 28px; margin-top: 4px; color: var(--text-2); }
.int-category-head h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.int-category-head p { margin-top: 8px; color: var(--text-3); max-width: 70ch; }

.int-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--border); }
.int-row {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) 136px;
  gap: 12px 32px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.int-name h3 { font-size: 1.05rem; }
.int-family { margin-top: 4px; color: var(--text-3); font-size: .86rem; font-family: var(--mono); }
.int-body p { font-size: .95rem; }
.int-note { margin-top: 8px !important; color: var(--text-3); font-size: .86rem !important; }
.int-status { justify-self: end; }
@media (max-width: 860px) {
  .int-row { grid-template-columns: minmax(0, 1fr) auto; }
  .int-body { grid-column: 1 / -1; grid-row: 2; }
}

.disclaimer {
  margin-top: clamp(48px, 6vw, 80px);
  padding: 20px 24px;
  border-left: 2px solid var(--border);
  color: var(--text-3);
  font-size: .86rem;
}

/* ---------- Generic cards / lists ---------- */

.card-grid { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 16px; }
.card {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-2);
}
.section-alt .card { background: var(--bg); }
.card .icon { color: var(--text); margin-bottom: 18px; }
.card h3 { font-size: 1.02rem; margin-bottom: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.card p { font-size: .92rem; }
.card .status { margin-top: 14px; }
.card h3 .status { margin-top: 0; }   /* badge beside a card title, centred on it */
@media (max-width: 960px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .card-grid { grid-template-columns: minmax(0, 1fr); } }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tag-list li {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-2);
  color: var(--text);
  font-size: .86rem;
}

.spec-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; margin: 0; }
.spec-list div { display: grid; grid-template-columns: minmax(120px, 2fr) 5fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border-soft); }
.spec-list dt { color: var(--text-3); font-size: .86rem; }
.spec-list dd { margin: 0; color: var(--text); font-size: .94rem; }
@media (max-width: 760px) { .spec-list { grid-template-columns: minmax(0, 1fr); } }

.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: minmax(0, 1fr); } }

.callout {
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-2);
}
.callout h3 { font-size: 1.25rem; margin-bottom: 12px; }

/* Code sample (genuine API only). */
.code-block {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #0E1116;
  overflow: hidden;
}
.code-block figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-3);
  font-family: var(--mono);
  font-size: .76rem;
}
.code-block pre { margin: 0; padding: 20px 18px; overflow-x: auto; font-family: var(--mono); font-size: .84rem; line-height: 1.7; color: #D5DAE0; }
.code-block .c { color: #6F7A86; }
.code-block .k { color: #E07A86; }
.code-block .s { color: #9FCB9F; }
.code-block .f { color: #9DB2D6; }

/* ---------- OEM / CTA bands ---------- */

.oem-band {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.oem-areas { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--border); }
.oem-areas li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); color: var(--text); font-size: .95rem; }
.oem-areas .icon { width: 20px; height: 20px; color: var(--text-3); }
@media (max-width: 900px) { .oem-band { grid-template-columns: minmax(0, 1fr); } }

.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3rem); max-width: 820px; margin-inline: auto; }
.cta-band .lead { margin: 20px auto 0; }
.cta-band .hero-actions { justify-content: center; }

.graph-teaser { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.graph-teaser img { width: clamp(120px, 14vw, 180px); height: auto; }
.graph-teaser .hero-actions { margin-top: 28px; }
@media (max-width: 700px) { .graph-teaser { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Company website (onairtech.hu) ---------- */

.company-hero-inner { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.company-hero-logo { justify-self: center; width: min(100%, 360px); height: auto; }
.product-points { margin-top: clamp(40px, 5vw, 56px); }
.product-kind .status { position: relative; top: -2px; }   /* sits 2px low next to the bold line */
@media (max-width: 860px) {
  .company-hero-inner { grid-template-columns: minmax(0, 1fr); }
  .company-hero-logo { order: -1; justify-self: start; width: 150px; }
}

/* ---------- Effect catalogue (OnAirGraph) ---------- */

.fx-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.fx-group { padding: clamp(22px, 2.6vw, 32px); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.fx-group h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 1.02rem; font-weight: 600; margin-bottom: 14px; }
.fx-count { color: var(--text-3); font-size: .8rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.fx-group ul { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 20px; }
.fx-group li { break-inside: avoid; padding: 3px 0; color: var(--text-2); font-size: .88rem; line-height: 1.45; }
@media (max-width: 960px) { .fx-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .fx-groups { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Forms ---------- */

.form-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .form-layout { grid-template-columns: minmax(0, 1fr); } }

.form { display: grid; gap: 22px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 640px) { .form-row { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 8px; }
.field label, .field legend { color: var(--text); font-size: .9rem; font-weight: 550; }
.field .optional { color: var(--text-3); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #3A434E;
  border-radius: 6px;
  background: var(--bg-2);
  color: var(--text);
  font: inherit;
  font-size: .98rem;
  transition: border-color .15s var(--ease), background-color .15s var(--ease);
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field textarea { min-height: 180px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #4D5762; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent-hover); background: #181C23; box-shadow: 0 0 0 3px rgba(214, 70, 84, .18); }
.field [aria-invalid="true"] { border-color: #D64654; }
.field-error { color: #F08A94; font-size: .85rem; }
.field-hint { color: var(--text-3); font-size: .84rem; }

.check { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; font-size: .9rem; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); }

.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-message { padding: 16px 18px; border-radius: var(--radius); border: 1px solid; font-size: .94rem; }
.form-message h2, .form-message strong { color: inherit; font-size: 1rem; }
.form-message-ok { color: var(--ok); background: var(--ok-bg); border-color: var(--ok-line); }
.form-message-error { color: #F08A94; background: rgba(214, 70, 84, .08); border-color: rgba(214, 70, 84, .4); }
.form-privacy { color: var(--text-3); font-size: .84rem; }

.aside-block + .aside-block { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--border-soft); }
.aside-block h2, .aside-block h3 { font-size: 1rem; margin-bottom: 10px; }
.aside-block p { font-size: .92rem; }

/* ---------- Prose (legal pages) ---------- */

.prose { max-width: 760px; }
.prose h2 { font-size: 1.35rem; margin: 2.2em 0 .7em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { font-size: .98rem; }
.prose li + li { margin-top: .4em; }
.review-note {
  margin-bottom: 40px;
  padding: 16px 20px;
  border: 1px solid var(--dev-line);
  border-radius: var(--radius);
  background: var(--dev-bg);
  color: var(--dev);
  font-size: .92rem;
}
.to-confirm { color: var(--dev); font-style: normal; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--border); background: #090B0E; padding-top: clamp(56px, 7vw, 88px); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-brand p { max-width: 42ch; margin-top: 20px; font-size: .9rem; color: var(--text-3); }
.footer-brand .brand-mark { width: 48px; height: 48px; }
.footer-dev { color: var(--text-2) !important; }
.footer-dev a { color: inherit; text-underline-offset: 3px; text-decoration-color: var(--border); }
.footer-dev a:hover { color: var(--text); }
.footer-heading { color: var(--text); font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.footer-nav ul { margin: 0; padding: 0; list-style: none; }
.footer-nav li + li { margin-top: 10px; }
.footer-nav a { color: var(--text-2); font-size: .92rem; text-decoration: none; }
.footer-nav a:hover { color: var(--text); }
.footer-base { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: clamp(48px, 6vw, 72px); padding-block: 24px 32px; color: var(--text-3); font-size: .82rem; }
.footer-base::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid var(--border-soft); }
.footer-base p { margin: 0; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Lightbox ---------- */

.lightbox {
  width: 100vw; height: 100vh;
  max-width: none; max-height: none;
  margin: 0; padding: 0;
  border: 0;
  background: rgba(6, 7, 10, .94);
  color: var(--text);
}
.lightbox::backdrop { background: rgba(6, 7, 10, .9); }
.lightbox-inner { display: grid; grid-template-rows: auto 1fr auto; height: 100%; padding: 16px clamp(12px, 3vw, 40px) 20px; }
.lightbox-close { justify-self: end; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--border); border-radius: 6px; background: transparent; color: var(--text); font: inherit; font-size: .88rem; cursor: pointer; }
.lightbox-close:hover { border-color: #5C6774; }
.lightbox-stage { display: grid; place-items: center; min-height: 0; overflow: auto; padding-block: 12px; }
.lightbox-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 6px; }
.lightbox-caption { margin: 0; text-align: center; color: var(--text-3); font-size: .86rem; }

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
  .js .hero-copy > *, .js .hero-visual { animation: rise .8s var(--ease) both; }
  .js .hero-copy > :nth-child(2) { animation-delay: .06s; }
  .js .hero-copy > :nth-child(3) { animation-delay: .12s; }
  .js .hero-copy > :nth-child(4) { animation-delay: .18s; }
  .js .hero-copy > :nth-child(5) { animation-delay: .24s; }
  .js .hero-visual { animation-delay: .3s; animation-duration: 1s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Utilities ---------- */

.section-title { font-size: clamp(1.85rem, 1.3rem + 1.9vw, 2.8rem); margin-bottom: 20px; }
.split-copy .section-title { margin-bottom: 18px; }
.stack-s { margin-top: 16px !important; }
.cols-1 { grid-template-columns: minmax(0, 1fr) !important; }
.cols-2 { --cols: 2; }
.cols-4 { --cols: 4; }
.spec-list-single { grid-template-columns: minmax(0, 1fr); }
.spec-list dd .status { margin-left: 8px; vertical-align: 1px; }

.mt-0 { margin-top: 0 !important; }
.mt-l { margin-top: clamp(40px, 5vw, 64px); }
.center { text-align: center; }
.muted { color: var(--text-3); }
.small { font-size: .88rem; }
.actions-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.shot-narrow { max-width: 480px; width: 100%; justify-self: center; margin-inline: auto; }
/* Screenshot shown at its own pixel size at most (no upscaling), centred:
   the img keeps the size from its width/height attributes. */
.shot-fit { width: fit-content; max-width: 100%; margin-inline: auto; }
.shot-fit figcaption { contain: inline-size; }
.shot-fit.shot-start { margin-inline: 0; }
.field { align-content: start; }
.field .check { font-weight: 400; color: var(--text-2); font-size: .9rem; }

/* ---------- Private-preview sign-in (_site/gate.php) ---------- */

body.gate { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.gate-card {
  width: min(420px, 100%);
  padding: clamp(28px, 5vw, 40px);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.gate-mark { margin-bottom: 22px; }
.gate-card h1 { font-size: 1.6rem; margin: .25em 0 .4em; }
.gate-lead { color: var(--text-2); margin-bottom: 24px; }
.gate-card .form-message { margin-bottom: 20px; }
.gate-submit { width: 100%; }
.gate-note { margin-top: 20px; color: var(--text-3); font-size: .82rem; line-height: 1.55; }
