/* DREBAR Tech website. Copyright (c) 2026 DREBAR. All rights reserved. */
@font-face { font-family: "League Spartan"; src: url("../fonts/LeagueSpartan-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "League Spartan"; src: url("../fonts/LeagueSpartan-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "League Spartan"; src: url("../fonts/LeagueSpartan-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #0b1015;
  --bg-2: #0f161d;
  --panel: #121a23;
  --panel-2: #172230;
  --line: #243242;
  --text: #e8eef4;
  --soft: #a9b7c6;
  --muted: #7d8da0;
  --accent: #1fc8c2;
  --accent-2: #6aa0e8;
  --amber: #fbbf24;
  --ok: #34d399;
  --warn: #fbbf24;
  --info: #60a5fa;
  --off: #8a97a6;
  --radius: 16px;
  --max: 1160px;
  --font: "League Spartan", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 18px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-weight: 700; line-height: 1.12; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #05222a; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Header */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.top-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.mark { width: 30px; height: 30px; color: var(--accent); }
.mark.mini { width: 18px; height: 18px; display: inline-block; vertical-align: -3px; }
.wordmark { font-family: "League Spartan", system-ui, sans-serif; font-weight: 700; font-size: 34px; line-height: 1; letter-spacing: -.01em; color: var(--text); text-transform: lowercase; }
.wordmark-lg { font-size: 40px; }
.bd { font-weight: 700; } /* every DREBAR name is League Spartan Bold */
.nav { display: flex; gap: 26px; margin-left: 20px; }
.nav a { text-decoration: none; color: var(--soft); font-size: 17px; }
.nav a:hover { color: var(--text); }
.top-tools { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang button { font: inherit; font-size: 14px; font-weight: 600; letter-spacing: .06em; color: var(--soft); background: none; border: 0; padding: 4px 12px; border-radius: 999px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--accent); color: #05222a; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; font: inherit; font-weight: 600; font-size: 17px; text-decoration: none; cursor: pointer; border: 1px solid transparent; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #05222a; padding: 13px 24px; border-radius: 999px; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 28px -8px rgba(31, 200, 194, .55); }
.btn:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--panel); box-shadow: none; border-color: var(--accent); }
.btn-small { font-size: 15px; padding: 9px 18px; }
.btn[hidden] { display: none; }

/* Sections */
.section { padding: 104px 0; }
.section.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head h2, .who h2, .cta h2 { font-size: clamp(32px, 4.4vw, 48px); }
.eyebrow { color: var(--accent); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: 14px; margin-bottom: 14px; }
.sub { color: var(--soft); font-size: 20px; margin-top: 18px; max-width: 640px; }
.nb { white-space: nowrap; }
.grad { background: linear-gradient(120deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 84px 0 96px; background: radial-gradient(900px 500px at 78% 10%, rgba(31, 200, 194, .13), transparent 60%), radial-gradient(700px 400px at 5% 90%, rgba(106, 160, 232, .07), transparent 60%); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; opacity: .28; mask-image: radial-gradient(ellipse at 70% 30%, #000, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000, transparent 70%); }
.hero-in { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(42px, 6.4vw, 78px); margin-bottom: 24px; }
.lead { color: var(--soft); font-size: clamp(19px, 2vw, 22px); max-width: 580px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-cta.center { justify-content: center; }
.proof { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 38px; }
.proof li { font-size: 15px; color: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; background: color-mix(in srgb, var(--panel) 70%, transparent); }
.proof li::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); margin-right: 9px; vertical-align: 1px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px 32px; transition: transform .2s, border-color .2s; }
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.ico { width: 46px; height: 46px; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 20px; }
.card h3 { font-size: 24px; margin-bottom: 10px; }
.card p { color: var(--soft); font-size: 17.5px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.steps li { position: relative; padding: 30px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 50px; right: -21px; width: 22px; height: 2px; background: var(--accent); opacity: .6; }
.num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #05222a; font-weight: 700; font-size: 22px; margin-bottom: 18px; }
.steps h3 { font-size: 26px; margin-bottom: 8px; }
.steps p { color: var(--soft); }

/* Core, audience, CTA */
.core-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--panel); }
.core-card h3 { font-size: 28px; color: var(--accent); margin-bottom: 8px; letter-spacing: .02em; }
.core-card p { color: var(--soft); }
.who { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.ticks { display: grid; gap: 14px; }
.ticks li { position: relative; padding: 18px 20px 18px 56px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.ticks li::before { content: ""; position: absolute; left: 20px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.500l4 4 8-9' fill='none' stroke='%2305222a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.cta { background: radial-gradient(700px 320px at 50% 0%, rgba(31, 200, 194, .14), transparent 70%), var(--bg-2); border-top: 1px solid var(--line); text-align: center; }
.cta .sub { margin-inline: auto; }
.fine { color: var(--muted); font-size: 15px; margin-top: 22px; }
.foot { border-top: 1px solid var(--line); padding: 36px 0; color: var(--muted); font-size: 15px; }
.foot-in { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; justify-content: space-between; }
.foot .brand { color: var(--text); }

/* Reveal on scroll (only when JavaScript is on) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 1020px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .c-body { grid-template-columns: 1fr; }
  .c-list { border-right: 0; border-bottom: 1px solid var(--line); }
  .c-detail { border-left: 0; border-top: 1px solid var(--line); }
  #c-units { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
  .c-map, #c-canvas { min-height: 380px; }
}
@media (max-width: 820px) {
  .nav { display: none; }
  .hero-in, .core, .who { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 300px; margin-inline: auto; }
  .steps { grid-template-columns: 1fr; }
  .steps li:not(:last-child)::after { display: none; }
  .section { padding: 72px 0; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .cards { grid-template-columns: 1fr; }
  .top-tools .btn { display: none; }
  .c-actions { margin-left: 0; }
  .c-legend { position: static; margin: 8px 12px; border-radius: 12px; }
  .c-note { position: static; display: block; margin: 8px 12px 0; background: none; padding: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .s1, .s2, .s3, .s4, .node-halo { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}

/* ------------------------------------------------------------------ illustrations (drawn for this site) */
.il { display: block; width: 100%; height: auto; overflow: visible; --a: #1fc8c2; --b: #6aa0e8; }
.il .st, .sprite .st { fill: none; stroke: var(--a, #1fc8c2); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.il .fl, .sprite .fl { fill: #13202c; }
.il .fa, .sprite .fa { fill: var(--a, #1fc8c2); stroke: none; }
.il .fb, .sprite .fb { fill: var(--b, #6aa0e8); stroke: none; }
.il .mod, .sprite .mod { fill: var(--a, #1fc8c2); stroke: none; }
.il .dim, .sprite .dim { stroke: #3a5670; }
.il .shadow { fill: rgba(0, 0, 0, .38); }
.il .link { fill: none; stroke: var(--b); stroke-width: 2.4; stroke-dasharray: 3 7; stroke-linecap: round; animation: flow 1.8s linear infinite; }
.il .route { stroke: var(--a); stroke-dasharray: 2 9; opacity: .75; animation: flow 2.4s linear infinite; }
.il .tube { fill: none; stroke: rgba(31, 200, 194, .16); stroke-width: 24; stroke-linecap: round; }
.il .arc { fill: none; stroke: var(--a); stroke-width: 3; stroke-linecap: round; opacity: .85; animation: fade 2.4s ease-in-out infinite; }
.il .arc:nth-of-type(2) { animation-delay: .5s; }
.il .pulse { fill: none; stroke: var(--a); stroke-opacity: .5; stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: ring 2.8s ease-out infinite; }
.il .pulse.p2 { animation-delay: 1.4s; }
.il .blocked .x { stroke: #f87171; stroke-width: 2.4; }
.il .plug { fill: none; stroke: var(--a); stroke-width: 4; stroke-linecap: round; }
.il .chip { animation: floaty 5s ease-in-out infinite; }
.il .chip.c2 { animation-delay: -2.5s; }
@keyframes flow { to { stroke-dashoffset: -20; } }
@keyframes fade { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes ring { 0% { transform: scale(.7); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

.hero-art .il { max-width: 560px; margin-inline: auto; }
.card-il { margin: -4px 0 20px; padding: 6px 4px 0; border-radius: 12px; background: radial-gradient(circle at 50% 60%, rgba(31, 200, 194, .09), transparent 70%); height: 168px; }
.step-il { max-width: 260px; margin: 0 auto 16px; height: 150px; }
.steps li { text-align: left; }
.core-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.core-card { text-align: left; }
.core-il { height: 190px; margin-bottom: 16px; }
.cta-il { max-width: 520px; margin: 0 auto 26px; }

/* The story: the laboratory's timeline */
.timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); gap: 18px; margin-top: 6px; }
.tl { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--panel), var(--bg-2)); padding: 20px 20px 24px; }
.tl-il { height: 84px; margin-bottom: 12px; }
.yr { display: inline-block; font-weight: 700; font-size: 15px; letter-spacing: .06em; color: #05222a; background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-radius: 999px; padding: 2px 14px; margin-bottom: 10px; }
.tl h3 { font-size: 21px; margin-bottom: 6px; }
.tl p { color: var(--soft); font-size: 16.5px; }
.story-end { margin-top: 48px; text-align: center; }
.story-end p { max-width: 720px; margin: 0 auto 22px; font-size: clamp(19px, 2vw, 23px); color: var(--text); }

@media (max-width: 820px) { .core-cards { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .il .link, .il .route, .il .arc, .il .pulse, .il .chip { animation: none; }
}

.who .ticks { margin-top: 28px; }

/* The preview section is wider than the text sections, so the dashboard has room for its three-column pages. */
#preview > .wrap { width: min(1400px, 100% - 40px); }

/* The trademark sign, above the top-right of the "drebar" wordmark (header, footer and the dashboard preview's top bar) */
.wordmark, .dash .ag-brand-word { position: relative; display: inline-block; }
.wordmark::after, .dash .ag-brand-word::after { content: "TM"; position: absolute; top: -.42em; right: -.2em; font-size: .3em; font-weight: 700; letter-spacing: .08em; line-height: 1; color: var(--accent, #1fc8c2); }
.dash .ag-brand-word::after { color: #1fc8c2; }
.top-in .wordmark { margin-top: 6px; }
.wordmark::after, .dash .ag-brand-word::after { text-transform: uppercase; font-size: .32em; }
