/* ============================================================
   EUHUB.CO — shared design tokens + components
   Used by all three variants. Each variant scopes its hero
   under .v1, .v2, .v3 to avoid collisions.
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: 'Geist', system-ui, -apple-system, sans-serif;
  font-feature-settings: 'ss01', 'cv11';
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }

/* ---------- Tokens — DARK (default) ---------- */
:root {
  --bg: #0a0e1a;
  --bg-2: #0f1424;
  --bg-3: #161c30;
  --fg: #f4f1ea;
  --fg-2: #c9c4b8;
  --muted: #8a8b95;
  --muted-2: #5a5d6e;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --card: rgba(255, 255, 255, 0.025);
  --card-hover: rgba(255, 255, 255, 0.045);

  --gold: #f5b544;
  --gold-2: #ffd27d;
  --gold-glow: rgba(245, 181, 68, 0.35);
  --gold-soft: rgba(245, 181, 68, 0.08);

  --eu: #4a7fd6;
  --eu-2: #7aa4ee;
  --eu-soft: rgba(74, 127, 214, 0.10);
  --eu-glow: rgba(74, 127, 214, 0.4);

  --grid-line: rgba(255, 255, 255, 0.04);
  --map-land: rgba(255, 255, 255, 0.06);
  --map-stroke: rgba(255, 255, 255, 0.12);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px -8px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 60px -12px rgba(0, 0, 0, 0.6);

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;

  --font-display: 'Geist', system-ui, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, monospace;

  --container: 1280px;
}

/* ---------- Tokens — LIGHT ---------- */
:root.light {
  --bg: #faf7f2;
  --bg-2: #f3efe6;
  --bg-3: #eae4d6;
  --fg: #14171f;
  --fg-2: #2d3140;
  --muted: #6c6e7a;
  --muted-2: #9b9da8;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.16);
  --card: rgba(255, 255, 255, 0.6);
  --card-hover: rgba(255, 255, 255, 0.95);

  --gold: #d99220;
  --gold-2: #f5b544;
  --gold-glow: rgba(217, 146, 32, 0.25);
  --gold-soft: rgba(245, 181, 68, 0.14);

  --eu: #2456c0;
  --eu-2: #4a7fd6;
  --eu-soft: rgba(36, 86, 192, 0.08);
  --eu-glow: rgba(36, 86, 192, 0.3);

  --grid-line: rgba(0, 0, 0, 0.04);
  --map-land: rgba(0, 0, 0, 0.05);
  --map-stroke: rgba(0, 0, 0, 0.12);

  --shadow-sm: 0 1px 2px rgba(20, 23, 31, 0.06);
  --shadow-md: 0 8px 24px -8px rgba(20, 23, 31, 0.12);
  --shadow-lg: 0 24px 60px -12px rgba(20, 23, 31, 0.18);
}

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow .num { color: var(--gold); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-weight: 500;
}
.h-display {
  font-size: clamp(48px, 7vw, 96px);
  letter-spacing: -0.035em;
  line-height: 0.95;
  font-weight: 500;
}
.h-section {
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--fg-2);
  max-width: 56ch;
}
.body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}
.mono { font-family: var(--font-mono); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 56px);
}
.section {
  padding-block: clamp(72px, 10vw, 140px);
  position: relative;
}
.section-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 64px;
  max-width: 720px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  background: color-mix(in oklab, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--border);
}
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.04em;
  font-size: 18px;
  color: var(--fg);
}
.logo .star {
  color: var(--gold);
  font-size: 22px;
  line-height: 0;
  display: inline-block;
  transform: translateY(1px);
}
.nav-links {
  display: none;
  gap: 36px;
}
.nav-links a {
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--fg); }
.header-actions { display: flex; gap: 10px; align-items: center; }
.lang-switch {
  display: flex;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
}
.lang-switch button {
  border: 0;
  background: transparent;
  padding: 5px 11px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  border-radius: 999px;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  transition: all 0.2s;
}
.lang-switch button.active {
  background: var(--gold);
  color: #1a1410;
}
.theme-btn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--fg-2);
  display: grid;
  place-items: center;
  transition: all 0.2s;
}
.theme-btn:hover { color: var(--gold); border-color: var(--gold-glow); }
.cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold);
  color: #1a1410;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  border: 0;
  transition: all 0.2s;
}
.cta-pill:hover { background: var(--gold-2); transform: translateY(-1px); }
@media (min-width: 880px) {
  .nav-links { display: flex; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 999px;
  border: 0;
  transition: all 0.2s;
  font-family: inherit;
}
.btn-primary {
  background: var(--gold);
  color: #1a1410;
}
.btn-primary:hover {
  background: var(--gold-2);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -10px var(--gold-glow);
}
.btn-ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { background: var(--card); border-color: var(--gold); color: var(--gold); }
.btn-eu {
  background: var(--eu);
  color: #fff;
}
.btn-eu:hover {
  background: var(--eu-2);
  box-shadow: 0 12px 28px -10px var(--eu-glow);
  transform: translateY(-1px);
}

/* ---------- Cards ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.card:hover {
  background: var(--card-hover);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.card-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 28px;
}
.card h3 {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
  line-height: 1.25;
}
.card p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
}
.card-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--gold-soft);
  color: var(--gold);
  display: grid;
  place-items: center;
  margin-bottom: 22px;
}
.card-icon svg { width: 20px; height: 20px; stroke-width: 1.5; }

/* ---------- Grid helpers ---------- */
.grid-2 { display: grid; gap: 20px; grid-template-columns: 1fr; }
.grid-3 { display: grid; gap: 20px; grid-template-columns: 1fr; }
.grid-4 { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Partners strip ---------- */
.partners {
  border-block: 1px solid var(--border);
  padding-block: 36px;
  background: var(--bg-2);
  overflow: hidden;
}
.partners .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  margin-bottom: 24px;
}
.partners-track {
  display: flex;
  gap: 64px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0.7;
}
.partner-mark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--fg-2);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.partner-mark .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--gold);
  display: inline-block;
}
.partner-mark.b .dot { background: var(--eu); }
.partner-mark.italic { font-style: italic; }

/* ---------- Process timeline ---------- */
.process {
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .process { grid-template-columns: repeat(4, 1fr); }
}
.process-step {
  position: relative;
  padding: 32px 28px;
  border: 1px solid var(--border);
  background: var(--card);
}
.process-step:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: var(--bg);
  display: grid;
  place-items: center;
  color: var(--gold);
  font-family: var(--font-mono);
  z-index: 2;
}
@media (max-width: 899px) {
  .process-step:not(:last-child)::after { display: none; }
}
.process-step .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  display: block;
}
.process-step h3 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 8px;
}
.process-step p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(2, 1fr);
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (min-width: 800px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
}
.stat {
  background: var(--bg);
  padding: 36px 28px;
  text-align: left;
}
.stat .v {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--fg);
  line-height: 1;
  margin-bottom: 12px;
}
.stat .v .accent { color: var(--gold); }
.stat .l {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
}
.team-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.3s;
}
.team-card:hover { background: var(--card-hover); border-color: var(--gold-glow); }
.team-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--gold-soft), var(--eu-soft));
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.team-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-photo .ph-initial {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 500;
  color: var(--fg);
  opacity: 0.85;
  letter-spacing: -0.04em;
}
.team-photo .ph-tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: color-mix(in oklab, var(--bg) 70%, transparent);
  padding: 4px 8px;
  border-radius: 4px;
  backdrop-filter: blur(8px);
}
.team-card h3 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 4px;
}
.team-card .role {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 18px;
}
.team-card .connect {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--gold);
  font-weight: 500;
}

/* ---------- CTA / contact ---------- */
.cta-wrap {
  display: grid;
  gap: 56px;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 900px) {
  .cta-wrap { grid-template-columns: 1.1fr 1fr; gap: 80px; }
}
.cta-form {
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.cta-form .field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.cta-form label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.cta-form input,
.cta-form textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--fg);
  font-family: inherit;
  font-size: 14.5px;
  transition: border-color 0.2s;
}
.cta-form input:focus,
.cta-form textarea:focus {
  outline: 0;
  border-color: var(--gold);
}
.cta-form textarea { min-height: 120px; resize: vertical; }
.cta-direct {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}
.cta-direct a { color: var(--gold); font-weight: 500; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding-block: 64px 32px;
  background: var(--bg-2);
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
  margin-bottom: 48px;
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.footer-tag {
  font-size: 14px;
  color: var(--muted);
  max-width: 36ch;
  margin-top: 14px;
  line-height: 1.5;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
  font-weight: 500;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--fg-2); }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--muted);
}
.footer-bottom .links { display: flex; gap: 24px; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Subtle grid background utility ---------- */
.grid-bg {
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
}
