/* ==========================================================================
   VIREKA — design tokens + shared primitives
   Values extracted from the Figma file "KRIPSSSSSSSSSSI UYY" (WjyIHpFeJVrUmifbOWJTV8).
   ========================================================================== */

@import url('https://api.fontshare.com/v2/css?f[]=satoshi@300,400,500,700,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Exo:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Brand */
  --blue-500: #5677ed;   /* primary  */
  --blue-600: #165dd7;   /* deep     */
  --blue-400: #3f78ff;   /* bright   */
  --blue-cyan: #0c9ff4;
  --navy-900: #122d56;
  --navy-950: #081227;

  /* Neutrals */
  --ink: #16171b;
  --ink-2: #303139;
  --grey-600: #494b52;
  --grey-500: #8e8e93;
  --grey-400: #b1b4bd;
  --surface: #f2f4fa;
  --black: #06050b;
  --white: #ffffff;

  /* Type */
  --font-display: 'Satoshi', system-ui, -apple-system, sans-serif;
  --font-ui: 'Inter', system-ui, -apple-system, sans-serif;
  --font-alt: 'Exo', system-ui, sans-serif;

  /* Layout — Figma frame is 1512 wide with 120px gutters */
  --page: 1512px;
  --container: 1272px;
  --gutter: 120px;

  --radius-pill: 1000px;
  --radius-card: 24px;
  --radius-xl: 40px;
}

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-display);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  line-height: 22px;
  color: var(--blue-600);
  margin: 0;
}
.h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 4.8vw, 72px);
  line-height: 1.0;
  letter-spacing: -0.01em;
  margin: 0;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(30px, 3.2vw, 48px);
  line-height: 1.35;
  margin: 0;
}
.h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(24px, 2.1vw, 32px);
  line-height: 1.34;
  margin: 0;
}
.lede {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 18px;
  line-height: 24px;
  color: var(--grey-500);
  margin: 0;
}

/* Gradient display text used on dark sections (Figma: radial #fff -> #b1b4bd -> #494b52) */
.text-gradient {
  background: radial-gradient(120% 180% at 50% 0%, #ffffff 0%, #b1b4bd 55%, #494b52 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: var(--radius-pill);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 16px;
  line-height: 19px;
  padding: 16px 28px;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--blue-400); outline-offset: 3px; }

.btn--primary { background: var(--blue-600); color: var(--white); }
.btn--primary:hover { background: #1250b8; }

.btn--brand { background: var(--blue-500); color: var(--white); }
.btn--brand:hover { background: #4767db; }

.btn--light {
  background: var(--white);
  color: var(--navy-900);
  font-family: var(--font-display);
  font-weight: 500;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .35);
}
.btn--light:hover { box-shadow: 0 0 0 1px rgba(255, 255, 255, .6), 0 8px 24px rgba(86, 119, 237, .25); }

.btn--ghost { background: transparent; color: var(--white); }

/* ---------- Site nav ---------- */
.nav {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 20;
  padding-block: 24px;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  line-height: 41px;
  color: var(--white);
}
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand--dark { color: var(--ink); }

.nav__pill {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(12px);
}
.nav__link {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 18px;
  line-height: 22px;
  color: var(--white);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  transition: background-color .15s ease, color .15s ease;
}
.nav__link:hover { background: rgba(255, 255, 255, .12); }
.nav__link.is-active { background: var(--white); color: var(--ink); }

.nav__lang {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 18px;
  color: var(--white);
}
.flag { width: 22px; height: 22px; border-radius: 50%; flex: none; }

.nav__toggle { display: none; }

/* Sticky state. The Figma file has no scrolled-nav frame, so this inverts to suit
   the light sections that follow the hero. */
/* Inner pages have no dark hero, so their nav is solid from the start. */
.nav--solid {
  position: sticky;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(22, 23, 27, .08);
  padding-block: 12px;
}
.nav--solid .brand,
.nav--solid .nav__link,
.nav--solid .nav__lang { color: var(--ink); }
.nav--solid .nav__pill { background: rgba(22, 23, 27, .05); border-color: rgba(22, 23, 27, .08); }
.nav--solid .nav__link:hover { background: rgba(22, 23, 27, .07); }
.nav--solid .nav__link.is-active { background: var(--ink); color: var(--white); }
.nav--solid .nav__toggle { background: rgba(22,23,27,.06); border-color: rgba(22,23,27,.12); color: var(--ink); }

.nav.is-scrolled {
  position: fixed;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(22, 23, 27, .08);
  padding-block: 12px;
  animation: nav-drop .25s ease;
}
.nav.is-scrolled .brand { color: var(--ink); }
.nav.is-scrolled .brand__mark path:first-child { fill: #165dd7; }
.nav.is-scrolled .nav__pill {
  background: rgba(22, 23, 27, .05);
  border-color: rgba(22, 23, 27, .08);
}
.nav.is-scrolled .nav__link,
.nav.is-scrolled .nav__lang { color: var(--ink); }
.nav.is-scrolled .nav__link:hover { background: rgba(22, 23, 27, .07); }
.nav.is-scrolled .nav__link.is-active { background: var(--ink); color: var(--white); }
.nav.is-scrolled .nav__toggle { background: rgba(22,23,27,.06); border-color: rgba(22,23,27,.12); color: var(--ink); }
@keyframes nav-drop { from { transform: translateY(-100%); } to { transform: translateY(0); } }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: var(--white);
  border-radius: 48px 48px 0 0;
  margin-top: 0;
  padding: 64px 0 40px;
  position: relative;
  overflow: hidden;
}
.footer__watermark {
  position: absolute;
  right: -40px;
  top: 0;
  width: 640px;
  opacity: .05;
  pointer-events: none;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  position: relative;
}
.footer__about { max-width: 300px; }
.footer__about p {
  font-size: 16px;
  line-height: 22px;
  color: rgba(255, 255, 255, .85);
  margin: 20px 0 24px;
}
.footer__col h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  line-height: 43px;
  margin: 0 0 18px;
}
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.footer__col a { font-size: 16px; line-height: 22px; color: rgba(255, 255, 255, .9); }
.footer__col a:hover { color: var(--white); text-decoration: underline; }

.footer__socials { display: flex; gap: 16px; }
.footer__socials a { display: inline-flex; }
.footer__socials svg { width: 24px; height: 24px; fill: currentColor; }

.footer__bar {
  position: relative;
  margin-top: 56px;
  padding: 20px 24px;
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, .06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 16px;
}
.footer__bar span { display: inline-flex; align-items: center; gap: 10px; }

/* Divider between brand block and link columns (Figma: 1px light rule) */
.footer__rule {
  position: absolute;
  left: calc(33% - 20px);
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: rgba(255, 255, 255, .25);
}

/* ---------- Utilities ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

@media (max-width: 1080px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__rule { display: none; }
}
@media (max-width: 860px) {
  .nav__pill { display: none; }
  .nav__toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 12px;
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
    color: var(--white);
  }
  .brand { font-size: 24px; }
  .footer { border-radius: 32px 32px 0 0; }
  .footer__col h3 { font-size: 24px; line-height: 32px; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bar { flex-direction: column; align-items: flex-start; }
}
