@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("./hanken-grotesk.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("./jetbrains-mono.woff2") format("woff2");
}

:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-2: #f1f4f9;
  --surface-3: #e6ebf2;
  --ink: #0f1d33;
  --muted: #53627a;
  --dim: #8794a8;
  --line: #e0e6ee;
  --line-strong: #c9d2de;
  --navy: #0b2559;
  --accent: #1259d6;
  --accent-hover: #0d48b3;
  --accent-soft: rgba(18, 89, 214, 0.09);
  --accent-soft-2: rgba(18, 89, 214, 0.16);
  --cyan: #0a8fb8;
  --cyan-soft: rgba(10, 143, 184, 0.1);
  --trace-3: #d9822b;
  --ok: #188f66;
  --warn: #c77700;
  --grad: linear-gradient(120deg, #1d6fe8, #17b3e2);
  --card: rgba(255, 255, 255, 0.9);
  --scope-bg: #0d1a2e;
  --maxw: 1180px;
  --display: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --shadow-1: 0 1px 2px rgba(15, 29, 51, 0.06), 0 1px 3px rgba(15, 29, 51, 0.04);
  --shadow-2: 0 2px 6px rgba(15, 29, 51, 0.06), 0 8px 20px rgba(15, 29, 51, 0.06);
  --shadow-3: 0 14px 34px rgba(15, 29, 51, 0.13);
  color-scheme: light;
}

body[data-theme="dark"] {
  --bg: #080d16;
  --surface: #0f1622;
  --surface-2: #141d2b;
  --surface-3: #1b2636;
  --ink: #e5ecf5;
  --muted: #95a3b8;
  --dim: #64728a;
  --line: #1e2a3b;
  --line-strong: #2a3850;
  --navy: #cfe0ff;
  --accent: #4d94ff;
  --accent-hover: #6aa6ff;
  --accent-soft: rgba(77, 148, 255, 0.14);
  --accent-soft-2: rgba(77, 148, 255, 0.24);
  --cyan: #3cc6ee;
  --cyan-soft: rgba(60, 198, 238, 0.12);
  --trace-3: #f0a14a;
  --ok: #34c98b;
  --warn: #e0a030;
  --card: rgba(15, 22, 34, 0.9);
  --scope-bg: #060b14;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-2: 0 2px 8px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-3: 0 14px 40px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  background:
    radial-gradient(900px 520px at 100% -8%, rgba(23, 179, 226, 0.1), transparent 60%),
    radial-gradient(760px 460px at -10% 0%, rgba(29, 111, 232, 0.08), transparent 58%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body[data-theme="dark"] {
  background:
    radial-gradient(900px 520px at 100% -8%, rgba(23, 179, 226, 0.14), transparent 60%),
    radial-gradient(760px 460px at -10% 0%, rgba(29, 111, 232, 0.16), transparent 58%),
    var(--bg);
}

/* Faint oscilloscope graticule behind the page top. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 40px 40px;
  opacity: 0.55;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 70%);
}

a {
  color: inherit;
  text-decoration: none;
}

a.inline,
.legal-block a,
.step code {
  color: var(--accent);
}

a.inline:hover,
.legal-block a:hover {
  text-decoration: underline;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.028em;
}

.hl {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Navigation */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand img {
  width: 32px;
  height: 32px;
  padding: 3px;
  border-radius: 9px;
  background: #fff;
  box-shadow: var(--shadow-1);
}

.brand b {
  color: var(--accent);
}

.brand i {
  color: var(--muted);
  font-style: normal;
  font-weight: 600;
}

.brand-footer {
  font-size: 18px;
}

.links {
  display: flex;
  gap: 22px;
  margin-left: 6px;
}

.links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.16s ease;
}

.links a:hover,
.foot-grid a:hover {
  color: var(--ink);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.switch-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow-1);
  font-family: var(--mono);
  font-size: 12px;
}

.switch-pill button {
  min-height: 28px;
  padding: 6px 11px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  letter-spacing: 0.04em;
}

.switch-pill button.on {
  background: var(--accent);
  color: #fff;
  font-weight: 500;
}

.theme-toggle button {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  padding: 6px 10px;
}

.theme-toggle button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 22px rgba(18, 89, 214, 0.24);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-ghost {
  border-color: var(--line);
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow-1);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-sm {
  padding: 9px 15px;
  font-size: 14px;
}

/* Shared surfaces */

.panel,
.card,
form,
.usp,
.control-box,
.undo-card,
.fmt-col,
.offline-band {
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow-2);
}

.panel {
  overflow: hidden;
  border-radius: 18px;
}

.panel-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--dim);
  font-family: var(--mono);
  font-size: 12px;
}

.panel-title {
  margin-left: 4px;
  color: var(--muted);
}

.bar-chip {
  margin-left: auto;
  padding: 2px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  font-size: 11px;
}

.bar-chip.ok {
  border-color: color-mix(in srgb, var(--ok) 35%, transparent);
  background: color-mix(in srgb, var(--ok) 10%, transparent);
  color: var(--ok);
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.is-red {
  background: #e5484d;
}

.is-accent {
  background: var(--accent);
}

.is-cyan {
  background: var(--cyan);
}

.panel-body {
  padding: 18px;
}

section {
  padding: 84px 0;
}

.section-tight-top {
  padding: 0 0 20px;
}

.sec-head {
  max-width: 760px;
  margin-bottom: 40px;
}

.sec-head h2,
.section-tight {
  margin: 16px 0 14px;
  font-size: clamp(30px, 3.6vw, 46px);
}

.sec-head p,
.section-copy {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.section-copy {
  margin-top: 16px;
}

/* Hero */

.hero {
  padding: 84px 0 64px;
}

.hero-grid,
.contact-grid,
.split {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 52px;
  align-items: center;
}

.hero-title {
  max-width: 14ch;
  margin-top: 18px;
  font-size: clamp(38px, 5vw, 64px);
}

.lede {
  max-width: 46ch;
  margin: 22px 0 30px;
  color: var(--muted);
  font-size: 19px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.alt-band {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--dim);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow-1);
}

.alt-band b {
  color: var(--cyan);
  font-weight: 500;
}

.scope-stage {
  position: relative;
  padding-bottom: 46px;
}

.scope-panel {
  box-shadow: var(--shadow-3);
}

.scope {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 480 / 260;
  background: var(--scope-bg);
}

.scope path,
.media-trace path {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.scope-grid path {
  stroke: rgba(255, 255, 255, 0.07);
  stroke-width: 1;
}

.tr-a {
  stroke: #4d94ff;
  stroke-width: 2.2;
}

.tr-b {
  stroke: #3cc6ee;
  stroke-width: 1.8;
}

.tr-c {
  stroke: #f0a14a;
  stroke-width: 1.6;
}

.ev-band {
  fill: rgba(240, 161, 74, 0.14);
}

.cursor-line {
  stroke: rgba(255, 255, 255, 0.55);
  stroke-width: 1;
  stroke-dasharray: 4 4;
}

.cursor-line.c2 {
  stroke: rgba(60, 198, 238, 0.7);
}

.snap {
  fill: #0d1a2e;
  stroke: #f0a14a;
  stroke-width: 2;
}

.chat-bubble {
  position: absolute;
  right: -10px;
  bottom: 0;
  width: min(330px, 82%);
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-3);
  font-size: 14px;
  line-height: 1.45;
}

.bubble-user {
  margin: 0 0 8px auto;
  width: fit-content;
  max-width: 90%;
  padding: 7px 11px;
  border-radius: 12px 12px 3px 12px;
  background: var(--accent);
  color: #fff;
}

.bubble-ai {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  color: var(--ink);
}

.ai-dot,
.ok-dot {
  flex: none;
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 0 4px var(--cyan-soft);
}

.ok-dot {
  margin-top: 0;
  background: var(--ok);
  box-shadow: none;
}

/* USP strip */

.usp {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border-radius: 18px;
}

.usp-tile {
  padding: 24px 22px;
  border-right: 1px solid var(--line);
}

.usp-tile:last-child {
  border-right: 0;
  background: linear-gradient(160deg, var(--accent-soft), transparent 70%);
}

.usp-h {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.k {
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

/* Cards */

.grid {
  display: grid;
  gap: 18px;
}

.g3 {
  grid-template-columns: repeat(3, 1fr);
}

.g4 {
  grid-template-columns: repeat(4, 1fr);
}

.cards-gap {
  margin-top: 40px;
}

.card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-radius: 16px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-3);
}

.card:hover::after {
  opacity: 1;
}

.ico {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border: 1px solid var(--accent-soft-2);
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}

.card h3 {
  margin-bottom: 9px;
  font-size: 19px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
}

svg.i {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

/* Assistant */

.split {
  align-items: stretch;
}

.chat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 15px;
}

.msg {
  max-width: 88%;
  padding: 10px 13px;
  border-radius: 13px;
  line-height: 1.5;
}

.msg.user {
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  background: var(--accent);
  color: #fff;
}

.msg.ai {
  border-bottom-left-radius: 4px;
  background: var(--surface-2);
}

.code-mini,
.code {
  margin: 0;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
}

.code-mini {
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--scope-bg);
  color: #cfe0ff;
}

.confirm {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 13px;
  border: 1px dashed var(--accent);
  border-radius: 10px;
  background: var(--accent-soft);
  font-size: 14px;
  font-weight: 600;
}

.confirm-btns {
  display: inline-flex;
  gap: 6px;
}

.mini-btn {
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12.5px;
}

.mini-btn.on {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.control-box {
  padding: 30px;
  border-radius: 18px;
  background:
    radial-gradient(420px 220px at 100% 0, var(--cyan-soft), transparent 70%),
    var(--card);
}

.control-box h3 {
  margin: 14px 0 18px;
  font-size: 24px;
}

.checks {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sec-head .checks {
  margin-top: 22px;
}

.checks li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
  font-size: 15.5px;
}

.checks li::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.3 2.3 4.7-4.9' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat,
    var(--grad);
}

/* Offline */

.offline-section {
  padding-top: 40px;
}

.offline-band {
  padding: 48px;
  border-radius: 24px;
  border-color: color-mix(in srgb, var(--cyan) 30%, var(--line));
  background:
    radial-gradient(600px 300px at 100% 0, var(--cyan-soft), transparent 65%),
    radial-gradient(520px 280px at 0 100%, var(--accent-soft), transparent 65%),
    var(--card);
}

.offline-band .sec-head {
  max-width: 820px;
}

.flow {
  display: grid;
  grid-template-columns: 1fr 48px 1.15fr 48px 1fr 0.8fr;
  align-items: center;
  gap: 0;
  margin: 8px 0 44px;
}

.flow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-height: 118px;
  justify-content: center;
  padding: 16px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  text-align: center;
  box-shadow: var(--shadow-1);
}

.flow-node b {
  font-size: 16px;
}

.flow-node.main {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow-2);
}

.flow-node.main img {
  width: 34px;
  height: 34px;
  padding: 3px;
  border-radius: 9px;
  background: #fff;
}

.flow-node.cloud {
  margin-left: 22px;
  border-style: dashed;
  background: transparent;
  box-shadow: none;
  color: var(--dim);
}

.flow-k {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.flow-tags {
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 12px;
}

.flow-arrow {
  position: relative;
  height: 2px;
  margin: 0 6px;
  background: var(--grad);
}

.flow-arrow::after {
  content: "";
  position: absolute;
  top: -4px;
  right: -1px;
  border: 5px solid transparent;
  border-left: 7px solid #17b3e2;
  border-right: 0;
}

.offline-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
}

.sub-h {
  margin-bottom: 18px;
  font-size: 21px;
}

.points,
.steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.point,
.step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.point svg {
  flex: none;
  margin-top: 2px;
  color: var(--cyan);
}

.point b,
.step b {
  display: block;
  color: var(--ink);
}

.point span,
.step span:not(.step-n) {
  color: var(--muted);
  font-size: 15.5px;
}

.step-n {
  display: grid;
  flex: none;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
}

.step code {
  font-family: var(--mono);
  font-size: 13.5px;
  white-space: nowrap;
}

.steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.steps-row .step {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow-2);
}

@media (max-width: 940px) {
  .steps-row {
    grid-template-columns: 1fr;
  }
}

.offline-band .media-wide {
  margin-top: 44px;
}

/* Analysis */

.split-rev {
  align-items: center;
}

.split-rev .sec-head {
  margin-bottom: 0;
}

.code-panel .code {
  padding: 16px 18px;
  background: var(--scope-bg);
  color: #d7e3f7;
}

.ln {
  display: inline-block;
  width: 22px;
  margin-right: 12px;
  color: #50607a;
  text-align: right;
  user-select: none;
}

.cm {
  color: #6f86a8;
}

.fn {
  color: #6aa6ff;
}

.nu {
  color: #f0a14a;
}

.st {
  color: #5fd3a5;
}

.code-out {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12.5px;
}

/* Workflow and undo */

.undo-card {
  display: grid;
  grid-template-columns: 0.36fr 1fr;
  gap: 36px;
  align-items: center;
  padding: 34px;
  border-radius: 20px;
  border-color: var(--accent-soft-2);
  background:
    radial-gradient(420px 240px at 0 50%, var(--accent-soft), transparent 70%),
    var(--card);
}

.undo-card h3 {
  margin: 12px 0 10px;
  font-size: clamp(22px, 2.4vw, 28px);
}

.undo-card p {
  margin: 0;
  color: var(--muted);
}

.undo-visual {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.kbd {
  display: inline-grid;
  place-items: center;
  min-width: 54px;
  height: 54px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 4px;
  border-radius: 11px;
  background: var(--surface);
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 500;
}

.plus {
  color: var(--dim);
  font-family: var(--mono);
}

.undo-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  max-width: 170px;
  margin-top: 14px;
}

.undo-stack span {
  height: 7px;
  border-radius: 4px;
  background: var(--accent-soft-2);
}

.undo-stack span:first-child {
  background: var(--grad);
}

.undo-stack span:nth-child(2) {
  width: 88%;
}

.undo-stack span:nth-child(3) {
  width: 76%;
}

.undo-stack span:nth-child(4) {
  width: 64%;
}

.undo-stack span:nth-child(5) {
  width: 52%;
}

.undo-card + .grid {
  margin-top: 22px;
}

/* Formats */

.fmt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.fmt-col {
  padding: 24px;
  border-radius: 16px;
}

.fmt-col h3 {
  margin-bottom: 14px;
  font-size: 19px;
}

.fmt-col ul {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fmt-col li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 15.5px;
}

.fmt-col li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 8px;
  height: 2px;
  background: var(--grad);
}

/* Media slots */

.media {
  margin: 0;
}

.media-wide {
  max-width: 900px;
  margin: 40px auto 0;
}

.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--scope-bg);
  box-shadow: var(--shadow-2);
}

.media-frame video,
.media-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-trace {
  position: absolute;
  inset: 18% 6%;
  width: 88%;
  height: 64%;
  opacity: 0.55;
}

.media-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(4px);
}

.media-play svg {
  width: 26px;
  height: 26px;
  margin-left: 3px;
  fill: #fff;
}

.media-soon {
  position: absolute;
  right: 14px;
  bottom: 12px;
  padding: 3px 9px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.1);
  color: #cfe0ff;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.media-toggle {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(10, 20, 40, 0.55);
  cursor: pointer;
  opacity: 0.75;
  backdrop-filter: blur(4px);
  transition: opacity 0.15s ease;
}

.media-frame:hover .media-toggle,
.media-toggle:focus-visible {
  opacity: 1;
}

.media-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.media-toggle svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

.media figcaption {
  margin-top: 10px;
  color: var(--dim);
  font-size: 14px;
  text-align: center;
}

/* Contact */

.contact-grid {
  grid-template-columns: 0.95fr 1.05fr;
  align-items: start;
  gap: 44px;
}

.info-list {
  margin-top: 26px;
}

.info-line {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.info-line svg {
  flex: none;
  margin-top: 2px;
  color: var(--accent);
}

.l,
label,
.foot-grid h4,
.foot-bottom {
  font-family: var(--mono);
}

.l {
  color: var(--dim);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.v {
  color: var(--ink);
}

form {
  padding: 26px;
  border-radius: 18px;
}

.field {
  margin-bottom: 16px;
}

label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

input,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15.5px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.submit-btn {
  width: 100%;
}

#cf-fields {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.form-hint {
  margin: 10px 0 0;
  color: var(--dim);
  font-size: 13px;
  text-align: center;
}

.form-status {
  min-height: 20px;
  margin-top: 8px;
  font-size: 14px;
}

.form-status.ok {
  color: var(--ok);
}

.form-status.err {
  color: #d11a2a;
}

/* Footer */

footer {
  padding: 54px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
}

.foot-copy {
  max-width: 34ch;
  margin: 14px 0 0;
}

.foot-grid h4 {
  margin: 0 0 14px;
  color: var(--dim);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.foot-grid a {
  display: block;
  padding: 4px 0;
  color: var(--muted);
}

.foot-grid a.brand {
  display: inline-flex;
  padding: 0;
  color: var(--ink);
}

.foot-grid .imprint a.inline {
  display: inline;
  padding: 0;
  color: var(--accent);
}

.imprint {
  font-size: 13.5px;
  line-height: 1.7;
}

.imprint b {
  color: var(--ink);
  font-weight: 600;
}

.foot-legal-links {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}

.foot-legal-links a {
  display: inline;
  padding: 0;
  text-decoration: underline;
}

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 12px;
}

/* Legal pages */

.legal-section {
  padding-top: 52px;
}

.legal-wrap {
  max-width: 760px;
}

.legal-wrap h1 {
  margin: 16px 0 10px;
  font-size: clamp(32px, 4vw, 48px);
}

.legal-note {
  margin: 0 0 40px;
  color: var(--muted);
  font-size: 15px;
}

.legal-block {
  margin-bottom: 30px;
}

.legal-block h2 {
  margin-bottom: 10px;
  font-size: 18px;
}

.legal-block p,
.legal-list {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.7;
}

.legal-block .legal-more {
  margin-top: 10px;
}

.legal-list {
  padding: 0;
  list-style: none;
}

.legal-list li {
  padding: 3px 0;
}

.legal-hint {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 13px;
}

/* Motion */

/* Content is visible by default; reveal.js enables the animation only when it can also show it again. */
.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal-ready .reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal-ready .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Responsive */

@media (max-width: 1060px) {
  .links {
    gap: 16px;
  }

  .g4 {
    grid-template-columns: 1fr 1fr;
  }

  .flow {
    grid-template-columns: 1fr 36px 1.15fr 36px 1fr;
  }

  .flow-node.cloud {
    grid-column: 1 / -1;
    flex-direction: row;
    min-height: 0;
    margin: 14px 0 0;
  }
}

@media (max-width: 940px) {
  .hero-grid,
  .contact-grid,
  .split,
  .offline-grid,
  .undo-card {
    grid-template-columns: 1fr;
  }

  .links {
    display: none;
  }

  .usp,
  .g3,
  .fmt-grid {
    grid-template-columns: 1fr 1fr;
  }

  .usp-tile:nth-child(2) {
    border-right: 0;
  }

  .usp-tile:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .chat-bubble {
    right: 8px;
  }

  .offline-band {
    padding: 34px 26px;
  }

  .foot-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  section {
    padding: 60px 0;
  }

  .hero {
    padding: 48px 0 40px;
  }

  .wrap {
    padding: 0 16px;
  }

  .nav-inner {
    gap: 10px;
  }

  .nav-right {
    gap: 6px;
  }

  .nav-right .btn,
  .brand i {
    display: none;
  }

  .usp,
  .g3,
  .g4,
  .fmt-grid {
    grid-template-columns: 1fr;
  }

  .usp-tile {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .usp-tile:last-child {
    border-bottom: 0;
  }

  .flow {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .flow-arrow {
    justify-self: center;
    width: 2px;
    height: 22px;
    margin: 0;
  }

  .flow-arrow::after {
    top: auto;
    right: -4px;
    bottom: -1px;
    border: 5px solid transparent;
    border-top: 7px solid #17b3e2;
    border-bottom: 0;
  }

  .flow-node {
    min-height: 0;
  }

  .offline-band {
    padding: 26px 18px;
    border-radius: 18px;
  }

  .control-box,
  .undo-card {
    padding: 22px;
  }

  .chat-bubble {
    position: relative;
    right: auto;
    width: auto;
    margin: -24px 12px 0;
  }

  .scope-stage {
    padding-bottom: 0;
  }
}
