/* Agentek coming-soon page. Brand tokens follow the apex page
   (src/components/apex/apex-page.module.css): logo blue #2459c4, cool
   neutral surfaces and navy ink, with a blue/navy dark theme. */

@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/assets/fonts/manrope-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/assets/fonts/manrope-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/assets/fonts/manrope-cyrillic-wght-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 100 700; font-display: swap; src: url(/assets/fonts/ibm-plex-sans-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 100 700; font-display: swap; src: url(/assets/fonts/ibm-plex-sans-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 100 700; font-display: swap; src: url(/assets/fonts/ibm-plex-sans-cyrillic-wght-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  color-scheme: light;
  --canvas: #f7f9fc;
  --surface: #ffffff;
  --ink: #17243b;
  --muted: #4f5f78;
  --line: #dce3ef;
  --line-strong: #8796af;
  --accent: #2459c4;
  --accent-soft: #e8effc;
  --land: #ffffff;
  --land-line: #b3c3df;
  --land-shadow: rgba(24, 60, 119, .16);
  --edge: #2459c4;
  --town: #2459c4;
  --label: #23365a;
  --glow: rgba(36, 89, 196, .12);
  --shadow: 0 14px 32px -10px rgba(24, 60, 119, .30);
  --display: "Manrope", "Segoe UI", system-ui, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
}

/* Dark: chosen explicitly, or following the system when no choice is kept. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #0c1322;
  --surface: #131d31;
  --ink: #e6ecf5;
  --muted: #a9b8cf;
  --line: #243350;
  --line-strong: #7f92b2;
  --accent: #8cb5ff;
  --accent-soft: #1a2a48;
  --land: #111c33;
  --land-line: #34507f;
  --land-shadow: rgba(0, 0, 0, .55);
  --edge: #8cb5ff;
  --town: #b6cfff;
  --label: #cfdbee;
  --glow: rgba(64, 118, 232, .26);
  --shadow: 0 14px 32px -10px rgba(0, 0, 0, .7);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --canvas: #0c1322;
    --surface: #131d31;
    --ink: #e6ecf5;
    --muted: #a9b8cf;
    --line: #243350;
    --line-strong: #7f92b2;
    --accent: #8cb5ff;
    --accent-soft: #1a2a48;
    --land: #111c33;
    --land-line: #34507f;
    --land-shadow: rgba(0, 0, 0, .55);
    --edge: #8cb5ff;
    --town: #b6cfff;
    --label: #cfdbee;
    --glow: rgba(64, 118, 232, .26);
    --shadow: 0 14px 32px -10px rgba(0, 0, 0, .7);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-color: var(--line-strong) var(--canvas); }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--canvas);
  color: var(--ink);
  font: 400 1rem/1.6 var(--body);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--accent);
}
main { flex: 1 0 auto; }
::selection { background: color-mix(in srgb, var(--accent) 26%, transparent); color: var(--ink); }
a { color: inherit; text-underline-offset: .24em; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.wrap { width: min(100% - 2 * var(--gutter), 1200px); margin-inline: auto; }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Header: brand on the left, theme and language icons on the right, one row at every width. */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 80px; }
.brand { display: inline-flex; align-items: center; gap: .5em; min-height: 44px; color: var(--ink); text-decoration: none; font: 760 26px/1 var(--display); letter-spacing: -.055em; white-space: nowrap; }
.brand-mark { width: 1.28em; height: 1.28em; flex: none; color: var(--accent); }
.brand-mark-core, .record-mark circle:last-child { fill: var(--ink); }
.controls { display: flex; align-items: center; gap: 8px; flex: none; }
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: color .16s ease, border-color .16s ease, background-color .16s ease;
}
.icon-btn:hover, .icon-btn[aria-expanded="true"] { color: var(--accent); border-color: var(--line-strong); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.icon-btn svg { width: 19px; height: 19px; }
.theme .g { display: none; }
.theme[data-state="system"] .g-system, .theme[data-state="light"] .g-light, .theme[data-state="dark"] .g-dark { display: block; }

.lang { position: relative; }
.lang-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  right: 0;
  width: min(15rem, calc(100vw - 2 * var(--gutter)));
  padding: 6px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.lang-menu[hidden] { display: none; }
.lang-title { display: block; padding: 8px 12px 6px; color: var(--muted); font-size: 13px; font-weight: 500; }
.lang-menu a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 9px; color: var(--ink); font-weight: 500; text-decoration: none; }
.lang-menu a:hover { background: var(--accent-soft); }
.lang-menu a:focus-visible { outline-offset: -3px; }
.lang-menu a[aria-current] { color: var(--accent); font-weight: 600; }
.lang-menu .check { width: 16px; height: 16px; visibility: hidden; }
.lang-menu a[aria-current] .check { visibility: visible; }

/* Hero: the announcement on the left, the network map of Estonia on the right. */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  padding-block: clamp(16px, 4vh, 48px) clamp(40px, 8vh, 88px);
}
h1 {
  margin: 0;
  font: 720 clamp(3rem, 1.4rem + 5.2vw, 5.75rem)/1 var(--display);
  letter-spacing: -.038em;
  text-wrap: balance;
}
.lead { margin: 26px 0 0; max-width: 34ch; color: var(--muted); font-size: clamp(1.125rem, 1rem + .4vw, 1.3rem); line-height: 1.55; text-wrap: pretty; }
.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 30px 0 0;
  padding: 8px 15px 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 15px;
  font-weight: 500;
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.owner { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.owner svg { width: 20px; height: 20px; flex: none; margin-top: 1px; color: var(--accent); }
.owner strong { display: block; color: var(--ink); font-weight: 600; }
.owner-code { display: block; font-variant-numeric: tabular-nums; }

.map-wrap { position: relative; isolation: isolate; margin: 0; }
.map-wrap::before { content: ""; position: absolute; z-index: -1; inset: -12% 0 -12% -8%; background: radial-gradient(closest-side, var(--glow), transparent); pointer-events: none; }
.map { display: block; width: 100%; height: auto; overflow: visible; }
.land { fill: var(--land); stroke: var(--land-line); stroke-width: 1.6; stroke-linejoin: round; filter: drop-shadow(0 22px 28px var(--land-shadow)); }
.edge { fill: none; stroke: var(--edge); stroke-width: 2.2; stroke-linecap: round; opacity: .72; }
.town { fill: var(--town); stroke: var(--land); stroke-width: 3.5; }
.hub-halo { fill: var(--accent); opacity: .14; }
.hub-ring { fill: var(--land); stroke: var(--accent); stroke-width: 3.5; }
.hub-core { fill: var(--accent); }
.pulse { fill: var(--accent); opacity: 0; }
.label { fill: var(--label); font: 600 23px var(--body); letter-spacing: .01em; paint-order: stroke; stroke: var(--land); stroke-width: 7px; stroke-linejoin: round; }

/* The one moment of motion: the network draws out from Tallinn, then carries light. */
@media (prefers-reduced-motion: no-preference) {
  .edge { animation: draw 1.3s cubic-bezier(.16, 1, .3, 1) both; }
  .town { animation: arrive .7s cubic-bezier(.16, 1, .3, 1) both; transform-box: fill-box; transform-origin: center; }
  .hub { animation: arrive .8s cubic-bezier(.16, 1, .3, 1) both; transform-box: fill-box; transform-origin: center; }
  .edge.d1 { animation-delay: .2s; } .town.d1 { animation-delay: .75s; }
  .edge.d2 { animation-delay: .55s; } .town.d2 { animation-delay: 1.1s; }
  .edge.d3 { animation-delay: .9s; } .town.d3 { animation-delay: 1.45s; }
  .edge.d4 { animation-delay: 1.25s; } .town.d4 { animation-delay: 1.8s; }
  .edge.d5 { animation-delay: 1.6s; } .town.d5 { animation-delay: 2.15s; }
  .edge.d6 { animation-delay: 1.95s; } .town.d6 { animation-delay: 2.5s; }
}
@media (prefers-reduced-motion: reduce) { .pulses { display: none; } }
@keyframes draw { from { stroke-dasharray: 1; stroke-dashoffset: 1; } to { stroke-dasharray: 1; stroke-dashoffset: 0; } }
@keyframes arrive { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }

/* What is coming, and the record of who owns the brand. */
.details {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
  gap: clamp(32px, 5vw, 72px);
  padding-block: clamp(40px, 7vw, 88px);
  border-top: 1px solid var(--line);
}
h2 { margin: 0; font: 700 clamp(1.45rem, 1.15rem + .9vw, 1.85rem)/1.2 var(--display); letter-spacing: -.03em; text-wrap: balance; }
.sides { display: grid; gap: 26px; margin: 28px 0 0; }
.sides dt { font-weight: 600; font-size: 1.0625rem; }
.sides dd { max-width: 44ch; margin: 6px 0 0; color: var(--muted); }

.record { padding: clamp(24px, 3.2vw, 40px); border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.record-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.record-mark { width: 40px; height: 40px; flex: none; color: var(--accent); }
.record > p { max-width: 58ch; margin: 12px 0 0; color: var(--muted); }
.rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 36px; margin: 26px 0 0; }
.rows div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 13px 0; border-top: 1px solid var(--line); }
.rows dt { color: var(--muted); font-size: 14px; }
.rows dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.verify { display: inline-block; margin-top: 12px; padding-block: 10px; color: var(--accent); font-weight: 600; text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.verify:hover { text-decoration-color: currentColor; }
.verify svg { display: inline-block; width: 16px; height: 16px; margin-left: 7px; vertical-align: -2px; }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 40px; padding-block: 28px 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot p { margin: 0; }
.rights { color: var(--ink); font-weight: 500; }
.legal { max-width: 64ch; }

.missing { padding-block: clamp(48px, 12vh, 140px); }
.back { display: inline-flex; align-items: center; min-height: 48px; margin-top: 28px; padding: 0 20px; border-radius: 10px; background: var(--accent); color: var(--canvas); font-weight: 600; text-decoration: none; }
.back:hover { background: color-mix(in srgb, var(--accent) 88%, var(--ink)); }

@media (max-width: 960px) {
  .hero, .details { grid-template-columns: minmax(0, 1fr); }
  .hero { gap: 8px; }
  .lead { max-width: 40ch; }
  .map-wrap { max-width: 640px; }
}
@media (max-width: 600px) {
  .top { min-height: 68px; }
  /* The headline names Agentek, so the phone header keeps only the mark. */
  .brand-name { display: none; }
  .brand { font-size: 30px; }
  .label { font-size: 36px; stroke-width: 9px; }
  .rows { grid-template-columns: minmax(0, 1fr); }
}
