/* Layout: a single dark narrative column; the logo's own shapes (database E, blue data dot) drive every section. */
:root {
  --bg: #0A1422;
  --surface: #0F2138;
  --surface-2: #132944;
  --line: #22395A;
  --fg: #EEF2F7;
  --muted: #9AAAC0;
  --bar: #060B13;
  --blue: #0A5CF2;
  --blue-2: #27B4F3;
  --ok: #3FBF8A;
  --warn: #F2A93B;
  --display: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --body: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --wrap: 1120px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue-2); }
:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 30; padding: 10px 16px; border-radius: 8px; background: var(--surface-2); color: var(--fg); text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; margin: 0; }
p { margin: 0; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-2); }

/* header */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: var(--bar);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.top .mark { width: 112px; height: auto; display: block; color: var(--fg); }
.top nav { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--fg); }
.top nav a.btn-primary, .top nav a.btn-primary:hover { color: #fff; }

/* about */
.about { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 760px) { .about { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.portrait { width: 100%; max-width: 260px; aspect-ratio: 4 / 5; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); position: relative; overflow: hidden; }
.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portrait::after { content: ""; position: absolute; right: 16px; bottom: 16px; width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(45deg, var(--blue), var(--blue-2)); }
.about h2 { max-width: none; }
.about .role { color: var(--blue-2); font-family: var(--mono); font-size: 13px; letter-spacing: .06em; margin-top: 8px; }
.about .bio { color: var(--muted); max-width: 62ch; margin-top: 18px; font-size: 17px; display: flex; flex-direction: column; gap: 12px; }
.ph { color: var(--warn); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 28px; border-top: 1px solid var(--line); padding-top: 20px; }
@media (max-width: 760px) { .facts { grid-template-columns: minmax(0, 1fr); } }
.facts div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.facts dt { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font-size: 15px; }
@media (max-width: 640px) { .top nav .hide-sm { display: none; } }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 15px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: var(--body);
}
.btn-primary { background: linear-gradient(135deg, var(--blue), var(--blue-2)); color: #fff; }
.btn-primary:hover { background: linear-gradient(135deg, #2A70F4, #45C0F5); }
.btn-ghost { border-color: var(--line); color: var(--fg); background: transparent; }
.btn-ghost:hover { border-color: var(--muted); }
.top .btn { padding: 9px 16px; font-size: 14px; }

/* hero */
.hero { padding-block: 72px 56px; }
.hero .wordmark { width: min(720px, 100%); height: auto; display: block; color: var(--fg); }
.hero .tag { font-family: var(--body); font-weight: 300; letter-spacing: 0.32em; font-size: clamp(11px, 1.6vw, 15px); color: var(--muted); margin-top: 22px; }
.hero { padding-block: 120px 110px; position: relative; overflow: hidden; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero .hero-inner { position: relative; z-index: 1; }
.hero .pd { display: inline-block; width: .17em; height: .17em; border-radius: 50%; margin-left: .05em; background: linear-gradient(45deg, var(--blue), var(--blue-2)); vertical-align: baseline; }
.hero .lede { text-shadow: 0 0 18px var(--bg); }
.hero h1 { font-size: clamp(34px, 5.6vw, 68px); font-weight: 600; line-height: 1.08; letter-spacing: -0.025em; margin-top: 20px; max-width: 16ch; }
.hero h1 .dot { color: var(--blue-2); }
.hero .lede { color: var(--muted); font-size: clamp(16px, 1.6vw, 19px); max-width: 60ch; margin-top: 20px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .wordmark .adot { transform-box: fill-box; transform-origin: center; animation: pop 900ms 300ms cubic-bezier(.2,.9,.3,1.4) both; }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }

/* scroll story */
.flow { position: relative; height: 400vh; border-top: 1px solid var(--line); }
.flow .stage {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding-inline: 16px; overflow: hidden;
}
.flow svg.story { width: min(560px, 100%); height: auto; max-height: 70svh; overflow: visible; }
.flow .caps { position: relative; height: 92px; width: min(640px, 100%); text-align: center; }
.flow .cap {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 6px;
  font-size: clamp(20px, 2.6vw, 28px); font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; text-wrap: balance;
}
.flow .cap small { font-size: 15px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.flow .cap b { color: var(--blue-2); font-weight: 600; }
.flow .progress { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .12em; }
.story .src { font-family: var(--mono); font-size: 13px; fill: var(--muted); }
.story .flowline { fill: none; stroke-width: 3.5; stroke-linecap: round; }

/* sections */
section.block { padding-block: 96px; border-top: 1px solid var(--line); }
.block h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; max-width: 22ch; }
.block .intro { color: var(--muted); max-width: 62ch; margin-top: 14px; font-size: 17px; }
.block-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 40px; }

/* demo */
.demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 20px; align-items: start; }
@media (max-width: 860px) { .demo { grid-template-columns: minmax(0, 1fr); } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; min-width: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.panel-title { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.sample { font-family: var(--mono); font-size: 11px; color: var(--warn); border: 1px solid color-mix(in srgb, var(--warn) 45%, transparent); padding: 2px 8px; border-radius: 999px; }
.tabs { display: flex; gap: 6px; padding: 12px 16px 0; flex-wrap: wrap; }
.tab { font-family: var(--mono); font-size: 12px; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.tab[aria-selected="true"] { background: var(--surface-2); color: var(--fg); border-color: var(--blue); }
.tablebox { overflow: auto; max-height: 420px; padding: 12px 16px 16px; }
.tablebox thead th { position: sticky; top: -12px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 13px; font-variant-numeric: tabular-nums; }
th { text-align: left; font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .06em; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 7px 8px; border-bottom: 1px solid color-mix(in srgb, var(--line) 55%, transparent); white-space: nowrap; transition: background 300ms; }
td.num { text-align: right; }
tr.hit td { background: color-mix(in srgb, var(--blue) 26%, transparent); }
tr.hit td:first-child { box-shadow: inset 3px 0 0 var(--blue-2); }
.pill { font-family: var(--mono); font-size: 11px; padding: 1px 8px; border-radius: 999px; border: 1px solid currentColor; }
.pill.betalt { color: var(--ok); } .pill.aaben { color: var(--muted); } .pill.forfalden { color: var(--warn); }

.chat { display: flex; flex-direction: column; min-height: 520px; }
.msgs { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 18px 16px; overflow-y: auto; max-height: 560px; }
.msg { max-width: 92%; padding: 12px 14px; border-radius: 12px; font-size: 15px; line-height: 1.55; min-width: 0; }
.msg.user { align-self: flex-end; background: var(--surface-2); border: 1px solid var(--line); }
.msg.ai { align-self: flex-start; background: transparent; padding-left: 0; display: flex; gap: 12px; }
.msg.ai .who { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; font-size: 12px; font-weight: 600; color: var(--fg); }
.msg.ai .name { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 2px; }
.seg { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); }
.seg button { font-family: var(--body); font-size: 13px; font-weight: 500; color: var(--muted); background: transparent; border: 0; border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.seg button[aria-checked="true"] { background: var(--surface-2); color: var(--fg); box-shadow: inset 0 0 0 1px var(--blue); }
.live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-right: 6px; }
.compat { font-size: 14px; color: var(--muted); margin-top: 14px; }
.msg.ai .body { min-width: 0; }
.msg.ai ol, .msg.ai ul { margin: 6px 0 0; padding-left: 20px; }
.tool { align-self: stretch; border: 1px dashed var(--line); border-radius: 10px; padding: 10px 12px; font-family: var(--mono); font-size: 12px; color: var(--muted); min-width: 0; }
.tool .row { display: flex; align-items: center; gap: 8px; }
.tool pre { margin: 8px 0 0; white-space: pre-wrap; word-break: break-word; color: var(--fg); font-family: var(--mono); font-size: 12px; line-height: 1.5; }
.tool .done { color: var(--ok); }
.spin { width: 10px; height: 10px; border-radius: 50%; background: var(--blue-2); animation: blink 900ms infinite; }
@keyframes blink { 50% { opacity: .25; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 12px; }
.chip { font-family: var(--body); font-size: 13px; color: var(--fg); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; cursor: pointer; text-align: left; }
.chip:hover { border-color: var(--blue-2); }
.chip:disabled { opacity: .45; cursor: default; }
form.ask { display: flex; gap: 8px; padding: 12px 16px 16px; border-top: 1px solid var(--line); }
form.ask input { flex: 1; min-width: 0; background: var(--bg); border: 1px solid var(--line); color: var(--fg); border-radius: 10px; padding: 11px 12px; font-family: var(--body); font-size: 15px; }
form.ask input::placeholder { color: var(--muted); }
form.ask button { padding: 10px 16px; }

/* chat as a light AI-assistant app window, sitting inside the dark site */
.panel.chat {
  --app-bg: #FFFFFF; --app-fg: #1B2230; --app-muted: #667085; --app-line: #E4E7EC; --app-bubble: #F0F2F5; --app-soft: #F7F8FA;
  background: var(--app-bg); color: var(--app-fg); border: 1px solid var(--app-line); overflow: hidden;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .6);
}
.panel.chat .panel-head { border-bottom-color: var(--app-line); background: var(--app-soft); }
.panel.chat .panel-title { color: var(--app-muted); }
.panel.chat .seg { background: var(--app-bg); border-color: var(--app-line); }
.panel.chat .seg button { color: var(--app-muted); }
.panel.chat .seg button[aria-checked="true"] { background: var(--app-fg); color: var(--app-bg); box-shadow: none; }
.panel.chat .msgs { padding: 22px 20px; gap: 18px; }
.panel.chat .msg.user { background: var(--app-bubble); border: 0; border-radius: 18px; padding: 10px 16px; }
.panel.chat .msg.ai { padding: 0; max-width: 100%; }
.panel.chat .msg.ai .who { background: var(--app-fg); color: var(--app-bg); border: 0; }
.panel.chat .msg.ai .name { color: var(--app-fg); }
.panel.chat .msg.ai strong { color: var(--app-fg); }
.panel.chat details.tool { border: 1px solid var(--app-line); border-style: solid; border-radius: 12px; background: var(--app-soft); color: var(--app-muted); padding: 0; margin-left: 40px; align-self: stretch; }
.panel.chat details.tool summary { list-style: none; cursor: pointer; padding: 9px 12px; display: flex; align-items: center; gap: 8px; font-family: var(--body); font-size: 13px; }
.panel.chat details.tool summary::-webkit-details-marker { display: none; }
.panel.chat details.tool summary .chev { margin-left: auto; transition: transform 200ms; }
.panel.chat details.tool[open] summary .chev { transform: rotate(90deg); }
.panel.chat details.tool pre { margin: 0; padding: 10px 12px 12px; border-top: 1px solid var(--app-line); color: var(--app-fg); }
.panel.chat details.tool .conn { font-family: var(--mono); font-size: 12px; color: var(--app-fg); background: var(--app-bg); border: 1px solid var(--app-line); border-radius: 6px; padding: 1px 6px; }
.panel.chat .tool .done { color: #12805C; }
.panel.chat .chips { padding: 0 20px 12px; }
.panel.chat .chip { color: var(--app-fg); border-color: var(--app-line); background: var(--app-bg); }
.panel.chat .chip:hover { border-color: var(--app-muted); }
.panel.chat form.ask { border-top: 0; padding: 0 16px 16px; }
.panel.chat .composer { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--app-line); border-radius: 18px; padding: 10px 10px 10px 14px; background: var(--app-bg); box-shadow: 0 1px 3px rgba(16, 24, 40, .06); }
.panel.chat .composer:focus-within { border-color: var(--app-muted); }
.panel.chat form.ask input { border: 0; padding: 4px 0; background: transparent; color: var(--app-fg); outline: none; }
.panel.chat form.ask input::placeholder { color: var(--app-muted); }
.panel.chat .composer-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.panel.chat .connector { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--app-muted); border: 1px solid var(--app-line); border-radius: 999px; padding: 4px 10px; }
.panel.chat .send { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--app-fg); color: var(--app-bg); display: grid; place-items: center; cursor: pointer; padding: 0; }
.panel.chat .live { background: #12B76A; }

/* light sections: same tokens, re-pointed, so every component follows */
.light {
  --fg: #0F2138; --muted: #4B5768; --line: #DCE2EA; --surface: #FFFFFF; --surface-2: #EEF2F6; --bg: #F3F5F8;
  background: var(--bg); color: var(--fg);
}
.light .eyebrow { color: var(--blue); }

/* why section */
.hub { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px 20px; }
.hub-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.hub-count { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.hub-count b { color: var(--fg); font-weight: 500; }
.hub-count em { font-style: normal; color: var(--warn); }
.hub[data-mode="direct"] .n-hub, .hub[data-mode="hub"] .n-direct { display: none; }
.hub svg { display: block; width: min(640px, 100%); height: auto; margin: 22px auto 6px; overflow: visible; }
.hub svg text { font-family: var(--mono); fill: var(--muted); }
.hub .pill rect { fill: var(--surface-2); stroke: var(--line); }
.hub .pill text { font-size: 14px; fill: var(--fg); }
.hub .pill .st { transition: fill .5s ease; }
.hub .ln { fill: none; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .8s cubic-bezier(.4, 0, .2, 1); }
.hub .dash { fill: none; stroke: var(--warn); stroke-dasharray: 4 5; opacity: 0; transition: opacity .5s ease; }
.hub .x { opacity: 0; transition: opacity .4s ease; }
.hub .db { opacity: 0; transition: opacity .6s ease; }
.hub[data-mode="direct"] .direct .ln, .hub[data-mode="hub"] .via .ln { stroke-dashoffset: 0; }
.hub[data-mode="direct"] .dash, .hub[data-mode="direct"] .x { opacity: 1; transition-delay: .35s; }
.hub[data-mode="hub"] .db { opacity: 1; }
.hub[data-mode="hub"] .pill .st { fill: var(--blue-2); }
@media (max-width: 560px) {
  .hub { padding: 14px 12px 16px; }
  .hub svg { margin-top: 16px; }
  .hub .pill text { font-size: 17px; }
  .hub .db text { font-size: 15px; }
}
.hub-cap { text-align: center; color: var(--muted); font-size: 15px; max-width: 54ch; margin: 0 auto; min-height: 3em; }
.hub-cap b { color: var(--fg); font-weight: 600; }
.wins { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 28px; margin-top: 44px; }
@media (max-width: 960px) { .wins { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .wins { grid-template-columns: minmax(0, 1fr); } }
.win { display: flex; flex-direction: column; gap: 8px; min-width: 0; border-top: 2px solid var(--fg); padding-top: 14px; }
.win h3 { font-size: 17px; font-weight: 600; }
.win p { color: var(--muted); font-size: 15px; }

/* services */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 860px) { .services { grid-template-columns: minmax(0, 1fr); } }
.svc { padding: 26px 24px 28px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.svc svg { width: 44px; height: 44px; }
.svc h3 { font-size: 20px; font-weight: 600; }
.svc p { color: var(--muted); font-size: 15px; }
.svc .ex { font-family: var(--mono); font-size: 12px; color: var(--fg); border-top: 1px solid var(--line); padding-top: 12px; margin-top: auto; }

/* process */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.step { padding: 26px 24px 8px 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.step .n { font-family: var(--mono); font-size: 12px; color: var(--blue-2); letter-spacing: .1em; }
.step h3 { font-size: 22px; font-weight: 600; }
.step p { color: var(--muted); font-size: 15px; max-width: 34ch; }
.step .price { margin-top: auto; padding-top: 6px; font-family: var(--mono); font-size: 14px; color: var(--fg); }
.svc .svc-price { display: block; margin-top: 6px; color: var(--blue-2); }
.price-note { margin-top: 22px; color: var(--muted); font-size: 13px; max-width: 70ch; }

/* contact */
.contact { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.contact h2 { max-width: 20ch; }
.mailrow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.mail { font-family: var(--mono); font-size: clamp(18px, 2.4vw, 24px); color: var(--fg); user-select: all; }
.copied { font-family: var(--mono); font-size: 12px; color: var(--ok); }

footer { border-top: 1px solid var(--line); padding-block: 32px 48px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; color: var(--muted); font-size: 13px; }
footer img { width: 92px; height: auto; color: var(--fg); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero .wordmark .adot { animation: none; }
  .spin { animation: none; }
  .hub .ln, .hub .dash, .hub .x, .hub .db, .hub .pill .st { transition: none; }
}
