/* =============================================================================
   SELF-HOSTED FONTS — Inter (variable 300–700) + IBM Plex Mono (400/500)
   Served locally (no third-party requests; avoids Google Fonts GDPR exposure).
   ============================================================================ */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/plex-mono-400-latin-ext.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 Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/plex-mono-400-latin.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 Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/plex-mono-500-latin-ext.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 Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/plex-mono-500-latin.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: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/inter-300-700-latin-ext.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: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/inter-300-700-latin.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;
}

/* =============================================================================
   AGORAEX — marketing site stylesheet
   Restrained European institutional fintech. Single shared stylesheet.
   -----------------------------------------------------------------------------
   DESIGN TOKENS (stated up front, used everywhere)
   ============================================================================ */
:root {
  /* --- Color roles ----------------------------------------------------------
     Two-color brand (navy + tan) on warm paper. Tan is a RARE accent only. */
  --navy:        #34467A;   /* brand primary */
  --navy-600:    #2C3A67;   /* hover / pressed */
  --navy-700:    #243056;   /* deep */
  --ink:         #141A2E;   /* near-black navy — primary text on light */
  --muted:       #4D5775;   /* secondary text on light (AA on paper) */
  --faint:       #6F7790;   /* tertiary / captions */
  --tan:         #B89968;   /* accent — keylines, motif mid, never body text on light */
  --tan-700:     #9C7E50;   /* deeper tan for the rare hairline on light */

  --paper:       #FBFAF7;   /* page background — warm off-white, not flat white */
  --paper-2:     #F5F3ED;   /* alternating band */
  --surface:     #FFFFFF;   /* cards sit above paper */

  --navy-bg:     #0E1430;   /* deep navy for dark band + footer */
  --navy-bg-2:   #0B1027;   /* deepest */
  --on-dark:     #EDEFF6;   /* text on dark */
  --on-dark-mut: rgba(237,239,246,.64);
  --on-dark-fnt: rgba(237,239,246,.42);

  --line:        rgba(20,26,46,.10);   /* 1px hairline on light */
  --line-2:      rgba(20,26,46,.16);   /* stronger hairline */
  --line-dark:   rgba(237,239,246,.14);/* hairline on dark */

  /* --- Typography -----------------------------------------------------------*/
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* fluid modular scale */
  --text-xs:   0.75rem;     /* 12 — mono labels */
  --text-sm:   0.8125rem;   /* 13 */
  --text-smd:  0.9375rem;   /* 15 — nav, fine print */
  --text-base: 1.0625rem;   /* 17 — body */
  --text-lg:   1.1875rem;   /* 19 — lead */
  --text-xl:   clamp(1.25rem, 1.05rem + 0.9vw, 1.625rem);   /* 20→26 — h3 */
  --text-2xl:  clamp(1.7rem, 1.25rem + 2vw, 2.5rem);        /* 27→40 — h2 */
  --text-3xl:  clamp(2.1rem, 1.4rem + 3.1vw, 3.15rem);      /* 34→50 — page title */
  --display:   clamp(2.5rem, 1.3rem + 5.2vw, 4.25rem);     /* 40→68 — hero */

  --tracking-tight: -0.026em;
  --tracking-snug:  -0.014em;
  --tracking-wide:   0.085em;
  --tracking-wider:  0.16em;

  --leading-tight:   1.04;
  --leading-snug:    1.16;
  --leading-normal:  1.5;
  --leading-relaxed: 1.66;

  /* --- Spacing (4px base) ---------------------------------------------------*/
  --space-2xs: .25rem;  /* 4  */
  --space-xs:  .5rem;   /* 8  */
  --space-sm:  .75rem;  /* 12 */
  --space-md:  1rem;    /* 16 */
  --space-lg:  1.5rem;  /* 24 */
  --space-xl:  2rem;    /* 32 */
  --space-2xl: 3rem;    /* 48 */
  --space-3xl: 4rem;    /* 64 */
  --space-4xl: clamp(4rem, 2.5rem + 6vw, 7rem);   /* 64→112 — section rhythm */
  --space-5xl: clamp(5rem, 3rem + 8vw, 9rem);

  /* --- Radius ---------------------------------------------------------------*/
  --radius-sm: 7px;
  --radius-md: 11px;
  --radius-lg: 16px;
  --radius-xl: 22px;

  /* --- Shadow scale (soft, navy-tinted, layered) ----------------------------*/
  --shadow-xs: 0 1px 2px rgba(20,26,46,.05);
  --shadow-sm: 0 1px 2px rgba(20,26,46,.04), 0 4px 12px -6px rgba(20,26,46,.10);
  --shadow-md: 0 1px 2px rgba(20,26,46,.04), 0 14px 34px -16px rgba(20,26,46,.18);
  --shadow-lg: 0 2px 5px rgba(20,26,46,.05), 0 34px 66px -28px rgba(20,26,46,.26);

  /* --- Layout ---------------------------------------------------------------*/
  --maxw: 1160px;
  --maxw-prose: 65ch;
  --gutter: clamp(1.25rem, .9rem + 2.4vw, 2.75rem);

  /* --- Motion ---------------------------------------------------------------*/
  --ease:     cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --dur-fast: 140ms;
  --dur:      220ms;
  --dur-slow: 380ms;

  --z-nav: 100;
}

/* =============================================================================
   RESET / BASE
   ============================================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "liga" 1, "calt" 1, "cv05" 1, "cv11" 1;
  text-rendering: optimizeLegibility;
  position: relative;
  min-height: 100%;
}

/* very subtle paper tooth + a faint cool glow top-right — depth, not flat white */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .032;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

::selection { background: rgba(52,70,122,.16); color: var(--ink); }

/* keyboard focus — clearly visible, navy ring (high contrast on paper) */
:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
  border-radius: 4px;
}
.on-dark :focus-visible, .footer :focus-visible { outline-color: var(--tan); }

.skip-link {
  position: absolute; left: var(--gutter); top: -64px;
  background: var(--ink); color: #fff; padding: .7em 1.1em;
  border-radius: var(--radius-sm); font-size: var(--text-smd); font-weight: 540;
  z-index: 1000; transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: var(--space-sm); }

/* =============================================================================
   LAYOUT PRIMITIVES
   ============================================================================ */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 1;
}
.section { padding-block: var(--space-4xl); position: relative; z-index: 1; }
.section--tight { padding-block: var(--space-3xl); }
.section--snug-top { padding-top: clamp(3rem, 2rem + 2.4vw, 4.25rem); }
/* pillar bar sits just beneath the hero — pulled up to feel like one composition */
.pillars-section { padding-block: 0; margin-top: clamp(.5rem, 0rem + 1.4vw, 1.5rem); }
.band-paper-2 { background: var(--paper-2); }
.hairline-top { border-top: 1px solid var(--line); }

/* eyebrow / kicker — mono microlabel with the rare tan keyline */
.eyebrow {
  display: inline-flex; align-items: center; gap: .65em;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px; background: var(--tan-700);
  display: inline-block;
}
.on-dark .eyebrow { color: var(--on-dark-mut); }
.on-dark .eyebrow::before { background: var(--tan); }

/* section heading block */
.section-head { max-width: 56ch; }
.section-head .eyebrow { margin-bottom: var(--space-md); }

h1, h2, h3 { font-weight: 600; color: var(--ink); }
.h-display {
  font-size: var(--display);
  line-height: 1.03;
  letter-spacing: -0.03em;
  font-weight: 540;
}
.h-2xl { font-size: var(--text-2xl); line-height: var(--leading-snug); letter-spacing: -0.021em; font-weight: 560; }
.h-xl  { font-size: var(--text-xl);  line-height: 1.25; letter-spacing: var(--tracking-snug); font-weight: 580; }
.page-title {
  font-size: var(--text-3xl); line-height: 1.06;
  letter-spacing: -0.028em; font-weight: 540;
}

.lead {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--muted);
  max-width: var(--maxw-prose);
}
.prose { color: var(--muted); max-width: var(--maxw-prose); }
.prose p + p { margin-top: var(--space-md); }

/* =============================================================================
   BUTTONS
   ============================================================================ */
.btn {
  --_bg: var(--navy); --_fg: #fff; --_bd: var(--navy);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-sans);
  font-size: var(--text-smd);
  font-weight: 560;
  letter-spacing: -0.006em;
  line-height: 1;
  padding: .82em 1.25em;
  border-radius: var(--radius-sm);
  border: 1px solid var(--_bd);
  background: var(--_bg);
  color: var(--_fg);
  cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
              transform var(--dur-fast) var(--ease), box-shadow var(--dur) var(--ease);
  box-shadow: var(--shadow-xs);
  white-space: nowrap;
}
.btn:hover { background: var(--navy-600); border-color: var(--navy-600); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0); }
.btn .arr { transition: transform var(--dur) var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

.btn--ghost {
  --_bg: transparent; --_fg: var(--ink); --_bd: var(--line-2);
  box-shadow: none;
}
.btn--ghost:hover {
  --_bg: rgba(52,70,122,.05); --_bd: rgba(52,70,122,.4);
  background: rgba(52,70,122,.05); border-color: rgba(52,70,122,.4);
}
.btn--on-dark { --_bg: #fff; --_fg: var(--ink); --_bd: #fff; }
.btn--on-dark:hover { background: #fff; border-color:#fff; opacity:.92; }
.btn--ghost-dark {
  --_bg: transparent; --_fg: var(--on-dark); --_bd: var(--line-dark); box-shadow:none;
}
.btn--ghost-dark:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.32); }

.btn--lg { padding: .95em 1.5em; font-size: var(--text-base); }

/* text link with understated tan-on-hover underline */
.link {
  display: inline-flex; align-items: center; gap: .4em;
  font-weight: 540; color: var(--navy);
  background-image: linear-gradient(var(--tan-700), var(--tan-700));
  background-size: 0% 1.5px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size var(--dur) var(--ease), color var(--dur) var(--ease);
  padding-bottom: 1px;
}
.link:hover { background-size: 100% 1.5px; }
.link .arr { transition: transform var(--dur) var(--ease); }
.link:hover .arr { transform: translateX(3px); }

/* =============================================================================
   NAV
   ============================================================================ */
.nav {
  position: sticky; top: 0; z-index: var(--z-nav);
  background: rgba(251,250,247,.72);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.nav[data-scrolled="true"] {
  border-bottom-color: var(--line);
  background: rgba(251,250,247,.86);
  box-shadow: 0 1px 0 rgba(20,26,46,.02), 0 8px 24px -22px rgba(20,26,46,.5);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: var(--space-lg);
}
.nav__brand { display: inline-flex; align-items: center; }
.nav__logo { height: 26px; width: auto; color: var(--navy); }
.nav__links { display: flex; align-items: center; gap: var(--space-xs); }
.nav__link {
  font-size: var(--text-smd); font-weight: 500; color: var(--muted);
  padding: .5em .8em; border-radius: var(--radius-sm);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav__link:hover { color: var(--ink); background: rgba(52,70,122,.05); }
.nav__link[aria-current="page"] { color: var(--ink); font-weight: 560; }
.nav__cta { margin-left: var(--space-xs); }

.nav__toggle {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line-2);
  border-radius: var(--radius-sm); background: var(--surface); cursor: pointer;
  align-items: center; justify-content: center; color: var(--ink);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.nav__toggle:hover { background: var(--paper-2); }
.nav__toggle svg { width: 20px; height: 20px; }
.nav__toggle .icon-close { display: none; }
.nav__toggle[aria-expanded="true"] .icon-open { display: none; }
.nav__toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 800px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--paper);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: var(--space-sm) var(--gutter) var(--space-lg);
    box-shadow: var(--shadow-md);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
  }
  .nav__links[data-open="true"] { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__link { padding: .8em .6em; font-size: var(--text-base); border-radius: var(--radius-sm); }
  .nav__cta { margin: var(--space-xs) 0 0; }
  .nav__cta .btn { width: 100%; }
}

/* =============================================================================
   HERO
   ============================================================================ */
.hero { position: relative; overflow: clip; }
.hero::after { /* soft cool glow behind the motif, top-right */
  content: ""; position: absolute; z-index: 0; top: -18%; right: -10%;
  width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(closest-side, rgba(52,70,122,.10), rgba(52,70,122,0) 70%);
  pointer-events: none;
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0,1.04fr) minmax(0,1.06fr);
  gap: clamp(2rem, 1rem + 4vw, 4.25rem);
  align-items: center;
  padding-block: clamp(3.25rem, 2rem + 5vw, 5.75rem) clamp(3rem, 1.5rem + 5vw, 5.25rem);
}
.hero__inner > * { min-width: 0; }
.hero__copy { max-width: 36rem; }
.hero__eyebrow { margin-bottom: var(--space-lg); }
.hero h1 { margin-bottom: var(--space-lg); }
.hero .lead { margin-bottom: var(--space-xl); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); align-items: center; }
.hero__status {
  margin-top: var(--space-xl);
  display: flex; align-items: center; gap: .7em; max-width: 100%;
  font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.055em; text-transform: uppercase; color: var(--faint);
}
.hero__status-txt { min-width: 0; }
@media (max-width: 560px) {
  .hero__status { align-items: flex-start; }
  .hero__status .status-dot { margin-top: .35em; }
}
.status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--tan); box-shadow: 0 0 0 4px rgba(184,153,104,.16);
  position: relative; flex: none;
}
.status-dot::after {
  content:""; position:absolute; inset:0; border-radius:50%;
  background: var(--tan); animation: pulse 3.4s var(--ease-out) infinite;
}
@keyframes pulse { 0%{ transform:scale(1); opacity:.55 } 70%,100%{ transform:scale(2.6); opacity:0 } }

/* gradient accent on a single word of the headline */
.accent-grad {
  background: linear-gradient(92deg, var(--navy) 0%, #4a5d96 60%, var(--tan) 130%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* --- Order-book / depth motif panel --- */
.motif {
  position: relative;
  background:
    radial-gradient(120% 90% at 80% 0%, rgba(52,70,122,.05), rgba(52,70,122,0) 60%),
    linear-gradient(180deg, #fff, #fdfcfa);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(.95rem, .6rem + 1vw, 1.35rem);
  overflow: hidden;
}
.motif::before { /* inner hairline ring for depth */
  content:""; position:absolute; inset:0; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.6), inset 0 1px 0 rgba(255,255,255,.9);
  pointer-events:none;
}
.motif__chart { width: 100%; height: auto; display: block; }
.motif svg text { font-family: var(--font-mono); }

@media (max-width: 880px) {
  .hero__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero__copy { max-width: 40rem; }
  .motif { order: 2; }
}

/* --- Interior page hero (lean, text-led) --- */
.page-hero { position: relative; overflow: clip; }
.page-hero::after {
  content: ""; position: absolute; z-index: 0; top: -30%; right: -8%;
  width: 52vw; height: 52vw; max-width: 640px; max-height: 640px;
  background: radial-gradient(closest-side, rgba(52,70,122,.09), rgba(52,70,122,0) 70%);
  pointer-events: none;
}
.page-hero__inner {
  position: relative; z-index: 1;
  padding-block: clamp(2.75rem, 1.75rem + 4vw, 5rem) clamp(1.5rem, 1rem + 2vw, 2.75rem);
  max-width: 52rem;
}
.page-hero .eyebrow { margin-bottom: var(--space-lg); }
.page-hero .page-title { margin-bottom: var(--space-lg); }
.page-hero__lead { margin-bottom: var(--space-xl); max-width: 60ch; }

/* =============================================================================
   PILLAR ROW (mono label + line)
   ============================================================================ */
.pillars {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius-md);
  background: var(--surface); box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.pillar { padding: var(--space-xl) var(--space-lg); border-left: 1px solid var(--line); }
.pillar:first-child { border-left: 0; }
.pillar__label {
  font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 500;
  letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--tan-700);
  margin-bottom: var(--space-sm);
}
.pillar__text { font-size: var(--text-smd); color: var(--muted); line-height: 1.5; }
@media (max-width: 860px) {
  .pillars { grid-template-columns: 1fr 1fr; }
  .pillar:nth-child(3) { border-left: 0; }
  .pillar:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-left: 0; border-top: 1px solid var(--line); }
  .pillar:first-child { border-top: 0; }
}

/* =============================================================================
   FEATURE / STEPS GRID
   ============================================================================ */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
@media (max-width: 820px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  box-shadow: var(--shadow-xs);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.card__num {
  font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 500;
  letter-spacing: var(--tracking-wide); color: var(--tan-700);
  display: inline-block; margin-bottom: var(--space-md);
}
.card h3 { margin-bottom: var(--space-sm); }
.card__text { color: var(--muted); font-size: var(--text-smd); line-height: 1.6; }

/* icon chip used in feature cards */
.chip {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--paper);
  display: grid; place-items: center; color: var(--navy);
  margin-bottom: var(--space-lg);
}
.chip svg { width: 20px; height: 20px; }

/* =============================================================================
   FEATURE ROWS (Product) — alternating text / hairline list
   ============================================================================ */
.feature-list { border-top: 1px solid var(--line); }
.feature-row {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.15fr);
  gap: clamp(1.5rem, 1rem + 3vw, 4rem);
  padding-block: var(--space-3xl);
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.feature-row__index {
  font-family: var(--font-mono); font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide); color: var(--tan-700);
  margin-bottom: var(--space-sm);
}
.feature-row h3 { font-size: var(--text-xl); letter-spacing: var(--tracking-snug); }
.feature-row__body { color: var(--muted); }
.feature-row__body p + p { margin-top: var(--space-md); }
.feature-row__body ul { list-style: none; margin-top: var(--space-lg); display: grid; gap: var(--space-sm); }
.feature-row__body li { display: flex; gap: .7em; font-size: var(--text-smd); line-height: 1.55; }
.feature-row__body li::before {
  content: ""; flex: none; width: 6px; height: 6px; border-radius: 2px;
  background: var(--tan); margin-top: .62em;
}
@media (max-width: 820px) { .feature-row { grid-template-columns: 1fr; gap: var(--space-md); padding-block: var(--space-2xl); } }

/* =============================================================================
   SPEC TABLE (definition grid, mono keys)
   ============================================================================ */
.spec {
  border: 1px solid var(--line); border-radius: var(--radius-md);
  overflow: hidden; background: var(--surface); box-shadow: var(--shadow-sm);
}
.spec__row {
  display: grid; grid-template-columns: 13rem 1fr;
  border-top: 1px solid var(--line);
}
.spec__row:first-child { border-top: 0; }
.spec__key {
  font-family: var(--font-mono); font-size: var(--text-sm);
  letter-spacing: .02em; text-transform: uppercase; color: var(--faint);
  padding: var(--space-md) var(--space-lg);
  background: var(--paper);
  border-right: 1px solid var(--line);
}
.spec__val {
  padding: var(--space-md) var(--space-lg);
  font-size: var(--text-smd); color: var(--ink); line-height: 1.5;
}
.spec__val .muted { color: var(--muted); }
@media (max-width: 620px) {
  .spec__row { grid-template-columns: 1fr; }
  .spec__key { border-right: 0; border-bottom: 1px solid var(--line); }
}

/* =============================================================================
   ARCHITECTURE DIAGRAM (Product)
   ============================================================================ */
.diagram {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 100% at 50% -10%, rgba(52,70,122,.04), rgba(52,70,122,0) 60%),
    var(--surface);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.25rem,.8rem+2vw,2.5rem);
}
.diagram svg { width: 100%; height: auto; }
.diagram svg text { font-family: var(--font-sans); }
.diagram svg .mono { font-family: var(--font-mono); }
.diagram__scroll { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; }
.diagram__scroll::-webkit-scrollbar { height: 6px; }
.diagram__scroll::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 99px; }
.diagram__scroll::-webkit-scrollbar-track { background: transparent; }
.diagram__hint { display: none; }
@media (max-width: 760px) {
  .diagram__scroll { scrollbar-width: thin; }
  .diagram__scroll svg { min-width: 660px; }
  .diagram__hint {
    display: inline-flex; align-items: center; gap: .55em;
    margin-top: var(--space-md);
    font-family: var(--font-mono); font-size: var(--text-xs);
    letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--faint);
  }
}

/* =============================================================================
   DARK CTA BAND
   ============================================================================ */
.cta-band {
  position: relative; overflow: hidden;
  background:
    radial-gradient(90% 140% at 85% -20%, rgba(184,153,104,.16), rgba(184,153,104,0) 55%),
    linear-gradient(180deg, var(--navy-bg), var(--navy-bg-2));
  color: var(--on-dark);
  border-top: 1px solid rgba(184,153,104,.28);
}
.cta-band::before { /* grain on dark too */
  content:""; position:absolute; inset:0; pointer-events:none; opacity:.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.cta-band__inner {
  position: relative; z-index:1;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-2xl); flex-wrap: wrap;
}
.cta-band h2 { color: #fff; font-size: var(--text-2xl); letter-spacing: var(--tracking-snug); max-width: 22ch; }
.cta-band p { color: var(--on-dark-mut); margin-top: var(--space-sm); max-width: 46ch; font-size: var(--text-smd); }

/* =============================================================================
   FORM (Contact)
   ============================================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(2rem,1rem+4vw,5rem); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: var(--space-2xl); } }

.contact-aside dl { display: grid; gap: var(--space-xl); margin-top: var(--space-xl); }
.contact-aside dt {
  font-family: var(--font-mono); font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--tan-700);
  margin-bottom: var(--space-2xs);
}
.contact-aside dd { color: var(--ink); font-size: var(--text-smd); }
.contact-aside dd a { color: var(--navy); }
.contact-note {
  display: flex; gap: .65em; margin-top: var(--space-xl);
  padding-top: var(--space-lg); border-top: 1px solid var(--line);
  font-size: var(--text-sm); line-height: 1.6; color: var(--faint); max-width: 44ch;
}
.contact-note .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--tan); flex: none; margin-top: .5em; }

.form-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(1.5rem,1rem+2vw,2.5rem);
  box-shadow: var(--shadow-md);
}
.field { margin-bottom: var(--space-lg); }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
@media (max-width: 520px) { .field--row { grid-template-columns: 1fr; } }
.label {
  display: block; font-size: var(--text-sm); font-weight: 560; color: var(--ink);
  margin-bottom: var(--space-xs); letter-spacing: -0.003em;
}
.label .opt { color: var(--faint); font-weight: 440; }
.input, .textarea, .select {
  width: 100%; font: inherit; font-size: var(--text-smd); color: var(--ink);
  background: var(--paper); border: 1px solid var(--line-2);
  border-radius: var(--radius-sm); padding: .8em .9em;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:hover, .textarea:hover, .select:hover { border-color: rgba(52,70,122,.34); }
.input:focus, .textarea:focus, .select:focus {
  outline: none; border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(52,70,122,.14); background: #fff;
}
.textarea { resize: vertical; min-height: 7.5rem; line-height: 1.55; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M3 5l4 4 4-4' fill='none' stroke='%234D5775' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9em center; padding-right: 2.4em;
}
.form-actions { display: flex; align-items: center; gap: var(--space-md); flex-wrap: wrap; margin-top: var(--space-xl); }
.form-note { font-size: var(--text-sm); color: var(--faint); }
.form-status { font-size: var(--text-sm); color: var(--navy); font-weight: 540; }
.form-note[data-kind="ok"] { color: var(--navy); font-weight: 540; }
.form-note[data-kind="error"] { color: #9A3434; }
/* honeypot — off-screen for people, present for bots */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* =============================================================================
   FOOTER (dark)
   ============================================================================ */
.footer {
  position: relative;
  background: linear-gradient(180deg, var(--navy-bg), var(--navy-bg-2));
  color: var(--on-dark);
  padding-block: var(--space-4xl) var(--space-2xl);
  border-top: 1px solid var(--line-dark);
}
.footer__top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-2xl);
  padding-bottom: var(--space-3xl);
  border-bottom: 1px solid var(--line-dark);
}
.footer__logo { height: 30px; width: auto; color: var(--on-dark); margin-bottom: var(--space-lg); }
.footer__tag { color: var(--on-dark-mut); font-size: var(--text-smd); max-width: 34ch; line-height: 1.55; }
.footer__col h4 {
  font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 500;
  letter-spacing: var(--tracking-wide); text-transform: uppercase;
  color: var(--on-dark-fnt); margin-bottom: var(--space-md);
}
.footer__col ul { list-style: none; display: grid; gap: var(--space-sm); }
.footer__col a {
  color: var(--on-dark-mut); font-size: var(--text-smd);
  transition: color var(--dur) var(--ease);
}
.footer__col a:hover { color: #fff; }
.footer__bottom {
  padding-top: var(--space-xl);
  display: flex; justify-content: space-between; gap: var(--space-lg); flex-wrap: wrap;
  align-items: flex-start;
}
.footer__legal { max-width: 78ch; }
.disclaimer {
  font-size: var(--text-sm); line-height: 1.62; color: var(--on-dark-mut);
}
.status-line {
  display: inline-flex; align-items: center; gap: .6em; margin-top: var(--space-md);
  font-family: var(--font-mono); font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--on-dark-mut);
}
.status-line .dot { width:6px;height:6px;border-radius:50%;background:var(--tan); flex:none; }
.footer__copy { font-size: var(--text-sm); color: var(--on-dark-fnt); white-space: nowrap; }

@media (max-width: 820px) {
  .footer__top { grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
}

/* =============================================================================
   MICRO / UTIL
   ============================================================================ */
.measure-narrow { max-width: 52ch; }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mt-3xl { margin-top: var(--space-3xl); }
.center { text-align: center; margin-inline: auto; }
.stack-sm > * + * { margin-top: var(--space-sm); }

/* =============================================================================
   LONG-FORM LEGAL / PRIVACY PROSE
   ============================================================================ */
.legal-prose { max-width: 72ch; margin-top: var(--space-2xl); color: var(--muted); }
.legal-prose a { color: var(--navy); }
.legal-prose p { line-height: var(--leading-relaxed); }
.legal-prose p + p { margin-top: var(--space-md); }
.legal-lede { font-size: var(--text-lg); color: var(--ink); }
.legal-prose h3 {
  color: var(--ink); font-size: var(--text-lg); font-weight: 600;
  letter-spacing: -0.012em; margin-top: var(--space-2xl); margin-bottom: var(--space-2xs);
}
.legal-list { list-style: none; margin-top: var(--space-md); display: grid; gap: var(--space-xs); }
.legal-list li { position: relative; padding-left: 1.4em; line-height: 1.55; }
.legal-list li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 6px; height: 6px; border-radius: 2px; background: var(--tan);
}
.legal-updated {
  margin-top: var(--space-2xl); padding-top: var(--space-lg);
  border-top: 1px solid var(--line); font-size: var(--text-sm); color: var(--faint);
}

/* entrance animation — single, restrained, staggered reveal on load */
[data-reveal] {
  opacity: 0; transform: translateY(14px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .status-dot::after { animation: none; }
  .btn, .card, .link, .nav { transition: none; }
  * { scroll-behavior: auto; }
}

/* Inter — Cyrillic subsets (Bulgarian / future bilingual content) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/inter-300-700-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/inter-300-700-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
