/* DB Infrastructure – styles */
@font-face { font-family: "Inter"; src: url("/fonts/Inter-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/Inter-Medium.woff") format("woff"); font-weight: 500 600; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("/fonts/InterDisplay-Medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("/fonts/InterDisplay-SemiBold.woff") format("woff"); font-weight: 600 700; font-display: swap; }

:root {
  --bg: #050a12;
  --bg-2: #08101a;
  --surface: #0c1622;
  --surface-2: #11202e;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #e9ecef;
  --muted: #8f9aa7;
  --dim: #5e6975;
  --accent: #14cfe0;
  --accent-deep: #04568a;
  --grad: linear-gradient(90deg, #0aa6cf 0%, #22f0e4 100%);
  --accent-soft: #5eefe8;
  --accent-glow: rgba(20, 207, 224, .28);
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --r: 6px;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --display: "Inter Display", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--accent); color: #03121d; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }

/* Type */
.label { font: 500 12px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0 0 20px; display: flex; align-items: center; gap: 10px; }
.label::before { content: ""; width: 18px; height: 1px; background: currentColor; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.03em; margin: 0; }
h2 { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.04; max-width: 18ch; }
h3 { font-size: 22px; line-height: 1.2; letter-spacing: -.015em; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 56ch; margin: 24px 0 0; }
.accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Header */
.hdr { position: fixed; inset: 0 0 auto; z-index: 20; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.hdr.scrolled { background: rgba(5, 10, 18, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.hdr .wrap { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font: 600 16px var(--display); letter-spacing: -.01em; }
.brand img { height: 26px; width: auto; flex: none; }
.nav { display: flex; align-items: center; gap: 32px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--text); }
.lang { display: flex; font: 500 12px var(--mono); border: 1px solid var(--line-2); border-radius: 99px; overflow: hidden; }
.lang a, .lang span { padding: 5px 11px; text-decoration: none; color: var(--muted); }
.lang [aria-current] { background: var(--text); color: var(--bg); }
.nav .btn-sm { padding: 9px 16px; border-radius: 99px; background: var(--text); color: var(--bg); font-weight: 600; }
.nav .btn-sm:hover { background: var(--accent-soft); color: var(--bg); }
@media (max-width: 900px) { .nav .nav-link { display: none; } .nav { gap: 12px; } }
@media (max-width: 420px) { .nav .btn-sm { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 15px 24px; border-radius: 99px; font: 600 15px var(--sans); text-decoration: none; border: 1px solid transparent; transition: background .2s, border-color .2s, transform .2s var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn .arr { transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn-primary { background: var(--grad); color: #03121d; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: rgba(255,255,255,.03); }
.btn-ghost:hover { border-color: var(--text); }

/* Hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero picture, .hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; z-index: -3; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(90deg, rgba(5,10,18,.92) 0%, rgba(5,10,18,.65) 40%, rgba(5,10,18,.1) 75%),
              linear-gradient(0deg, var(--bg) 0%, rgba(5,10,18,0) 35%); }
.hero .flow { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.flow path { fill: none; stroke: var(--accent); stroke-width: 1.2; stroke-opacity: .5; stroke-dasharray: 2 14; animation: flow 6s linear infinite; }
.flow path:nth-child(2) { animation-duration: 9s; stroke-opacity: .3; }
.flow path:nth-child(3) { animation-duration: 7.5s; stroke-opacity: .35; }
.flow circle { fill: var(--accent); filter: drop-shadow(0 0 6px var(--accent)); animation: pulse 3s ease-in-out infinite; }
@keyframes flow { to { stroke-dashoffset: -160; } }
@keyframes pulse { 50% { opacity: .35; } }
.hero-inner { width: 100%; padding-top: 140px; padding-bottom: clamp(56px, 10vh, 112px); }
.hero h1 { font-size: clamp(42px, 7vw, 92px); line-height: .98; letter-spacing: -.045em; max-width: 13ch; }
.hero .lead { color: #b5bec8; margin-top: 28px; max-width: 44ch; }
.hero .lead strong { color: var(--text); font-weight: 500; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.scroll-cue { position: absolute; right: var(--gutter); bottom: 40px; font: 500 11px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); writing-mode: vertical-rl; display: flex; align-items: center; gap: 12px; }
.scroll-cue::after { content: ""; width: 1px; height: 48px; background: linear-gradient(var(--muted), transparent); }
@media (max-width: 700px) {
  .hero picture img { object-position: 50% 30%; }
  .hero::before { background: linear-gradient(0deg, var(--bg) 0%, rgba(5,10,18,.78) 45%, rgba(5,10,18,.2) 100%); }
  .scroll-cue { display: none; }
}

/* Facts strip */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); }
.facts .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 32px 24px 32px 0; }
.fact + .fact { padding-left: 24px; border-left: 1px solid var(--line); }
.fact b { display: block; font: 600 clamp(24px, 2.6vw, 34px)/1.1 var(--display); letter-spacing: -.03em; }
.fact span { color: var(--muted); font-size: 14px; }
@media (max-width: 760px) { .facts .wrap { grid-template-columns: 1fr 1fr; } .fact:nth-child(3) { padding-left: 0; border-left: 0; } .fact:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* Sections */
section.sec { padding: clamp(88px, 12vw, 160px) 0; position: relative; }
.sec-alt { background: var(--bg-2); }
.head { margin-bottom: clamp(48px, 6vw, 80px); }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.media { position: relative; border-radius: var(--r); overflow: hidden; background: var(--surface); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media .tag { position: absolute; left: 12px; bottom: 12px; font: 500 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.75); background: rgba(5,10,18,.6); backdrop-filter: blur(6px); padding: 4px 8px; border-radius: 3px; }
.split .media { aspect-ratio: 4 / 5; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split .media { aspect-ratio: 4 / 3; } }

.compare { margin-top: 40px; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.compare > div { background: var(--surface); padding: 24px 28px; }
.compare h3 { font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 14px; }
.compare ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.compare li { display: flex; gap: 12px; color: var(--muted); font-size: 16px; }
.compare li::before { content: "–"; font-family: var(--mono); color: var(--dim); }
.compare .has li { color: var(--text); }
.compare .has li::before { content: "+"; color: var(--accent); }
.compare .has h3 { color: var(--accent); }

/* Band */
.band { position: relative; min-height: 70vh; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--bg) 0%, rgba(5,10,18,.2) 30%, rgba(5,10,18,.25) 70%, var(--bg-2) 100%); }
.band .wrap { width: 100%; }
.band blockquote { margin: 0; font: 600 clamp(30px, 5vw, 64px)/1.05 var(--display); letter-spacing: -.035em; max-width: 20ch; text-shadow: 0 2px 30px rgba(0,0,0,.5); }
.band cite { display: block; margin-top: 20px; font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; font-style: normal; color: #c3cbd3; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; list-style: none; margin: 0; padding: 0; }
.steps::before { content: ""; position: absolute; top: 19px; left: 20px; right: 20px; height: 1px; background: linear-gradient(90deg, var(--accent-deep), var(--accent) 35%, var(--line-2) 75%); }
.step { position: relative; padding-top: 64px; }
.step .dot { position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--bg-2); display: grid; place-items: center; font: 500 13px var(--mono); color: var(--accent); }
.step:first-child .dot { border-color: var(--accent); box-shadow: 0 0 0 6px rgba(20,207,224,.12); }
.step p { color: var(--muted); margin: 12px 0 0; max-width: 34ch; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .steps::before { top: 20px; bottom: 20px; left: 19px; right: auto; width: 1px; height: auto; background: linear-gradient(180deg, var(--accent), var(--line-2)); }
  .step { padding: 0 0 0 64px; }
}

/* Tech cards */
.tech { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; margin-top: clamp(64px, 8vw, 112px); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: border-color .3s, transform .4s var(--ease); }
.card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.card .media { border-radius: 0; aspect-ratio: 16 / 10; }
.card .media img { transition: transform 1.2s var(--ease); }
.card:hover .media img { transform: scale(1.04); }
.card-body { padding: 24px 24px 28px; }
.card-body .k { font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.card.core .k { color: var(--accent); }
.card-body h3 { margin: 8px 0 8px; }
.card-body p { margin: 0; color: var(--muted); font-size: 15px; }
.card.core { border-color: rgba(20,207,224,.35); }
@media (max-width: 900px) { .tech { grid-template-columns: 1fr; } }

/* Partners */
.partners { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.partner { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; scroll-margin-top: 90px; }
.partner .media { border-radius: 0; aspect-ratio: 16 / 9; }
.partner .body { padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; flex: 1; }
.partner h3 { font-size: clamp(26px, 2.6vw, 32px); letter-spacing: -.025em; margin-bottom: 24px; }
.partner ul { list-style: none; padding: 0; margin: 0 0 32px; flex: 1; }
.partner li { padding: 16px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.partner li strong { display: block; color: var(--text); font-weight: 500; font-size: 16px; margin-bottom: 2px; }
.partner .btn { align-self: flex-start; }
@media (max-width: 900px) { .partners { grid-template-columns: 1fr; } }

/* Status */
.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 80px 1fr auto; gap: 24px; align-items: baseline; padding: 28px 0; border-bottom: 1px solid var(--line); }
.timeline .n { font: 500 13px var(--mono); color: var(--dim); }
.timeline p { margin: 6px 0 0; color: var(--muted); max-width: 60ch; }
.pill { font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.pill.on { border-color: rgba(20,207,224,.5); color: var(--accent-soft); }
.pill.on::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: pulse 2s ease-in-out infinite; }
.note { margin-top: 28px; font-size: 14px; color: var(--dim); max-width: 70ch; }
@media (max-width: 640px) { .timeline li { grid-template-columns: 40px 1fr; } .timeline .pill { grid-column: 2; justify-self: start; } }

/* Team */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.person { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; max-width: 380px; }
.person .media { border-radius: 0; aspect-ratio: 1; }
.person .media img { filter: saturate(.85) contrast(1.02); }
.person .body { padding: 20px 24px 24px; }
.person p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.person a { display: inline-block; margin-top: 12px; font-size: 14px; color: var(--accent-soft); text-decoration: none; }
.person a:hover { text-decoration: underline; }

/* CTA */
.cta { position: relative; overflow: hidden; border-top: 1px solid var(--line); }
.cta::before { content: ""; position: absolute; width: 900px; height: 900px; right: -300px; top: -300px; background: radial-gradient(circle, var(--accent-glow), transparent 60%); filter: blur(20px); opacity: .5; pointer-events: none; }
.cta .wrap { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: end; }
.cta h2 { max-width: 16ch; }
.mail { display: inline-block; font: 600 clamp(20px, 2.4vw, 28px) var(--display); letter-spacing: -.02em; text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: 4px; word-break: break-all; }
.mail:hover { color: var(--accent-soft); }
.cta small { display: block; margin-top: 14px; color: var(--muted); font-size: 14px; }
@media (max-width: 860px) { .cta .wrap { grid-template-columns: 1fr; } }

/* Footer */
.ftr { border-top: 1px solid var(--line); padding: 40px 0; color: var(--dim); font-size: 13px; }
.ftr .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
.ftr a { color: var(--muted); }

/* Reveal on scroll (only when JS can run) */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .rv { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  .rv.in { opacity: 1; transform: none; }
  .rv-d1 { transition-delay: .1s; } .rv-d2 { transition-delay: .2s; } .rv-d3 { transition-delay: .3s; }
  .hero .hero-inner > * { animation: rise 1.1s var(--ease) both; }
  .hero .hero-inner > *:nth-child(2) { animation-delay: .1s; }
  .hero .hero-inner > *:nth-child(3) { animation-delay: .22s; }
  .hero .hero-inner > *:nth-child(4) { animation-delay: .34s; }
  .hero picture img { animation: zoom 14s ease-out both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }
@keyframes zoom { from { transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .flow path, .flow circle, .pill.on::before { animation: none; } html { scroll-behavior: auto; } }

/* Prose pages */
.prose { max-width: 720px; margin: 0 auto; padding: 120px var(--gutter) 96px; }
.prose h1 { font-size: clamp(36px, 5vw, 48px); line-height: 1.05; margin-bottom: 24px; }
.prose h2 { font-size: 22px; margin-top: 40px; letter-spacing: -.01em; max-width: none; }
.prose p { color: #c3cbd3; }
.prose a { color: var(--accent-soft); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }

/* Lean partner cards + footer logo */
.partner p.desc { color: var(--muted); margin: 0 0 32px; flex: 1; max-width: 46ch; }
.ftr .logo { height: 64px; width: auto; opacity: .9; }
.ftr .wrap { align-items: center; }
.split .media { aspect-ratio: 4 / 4.4; }

/* Application */
.apply { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.apply-steps { margin-top: 40px; }
.apply-steps li { grid-template-columns: 48px 1fr; }
.apply-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(24px, 3vw, 40px); display: grid; gap: 24px; }
.apply-form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 16px; }
.apply-form fieldset + fieldset { padding-top: 24px; border-top: 1px solid var(--line); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fld { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.fld.full { grid-column: 1 / -1; }
.req { color: var(--accent); }
.fld input, .fld select, .fld textarea, .copy-text { font: 400 16px/1.4 var(--sans); color: var(--text); background: var(--bg); border: 1px solid var(--line-2); border-radius: 4px; padding: 12px 14px; width: 100%; transition: border-color .2s, box-shadow .2s; }
.fld select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(20,207,224,.15); }
.apply-form.tried :invalid { border-color: #e2685d; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.consent a { color: var(--accent-soft); }
.apply-form .btn { justify-self: start; border: 0; cursor: pointer; }
.form-note { border-top: 1px solid var(--line); padding-top: 20px; display: grid; gap: 12px; font-size: 15px; color: var(--muted); }
.form-note p { margin: 0; }
.form-note p:first-child { color: var(--text); }
.form-note a { color: var(--accent-soft); }
.copy-text { font: 400 13px/1.5 var(--mono); color: var(--muted); resize: vertical; }
@media (max-width: 900px) { .apply { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }
.form-note[hidden] { display: none; }
