/* ==========================================================================
   CoreNode — Kurumsal Tasarım Sistemi
   Static site design system. Tokens → base → layout → components → utilities
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Surfaces — deep ink navy instead of pure black */
  --ink-950: #04070d;
  --ink-900: #070b14;
  --ink-850: #0a101d;
  --ink-800: #0d1524;
  --ink-750: #111b2e;
  --ink-700: #16233b;
  --ink-600: #1d2c48;

  /* Paper (light sections) */
  --paper: #f4f6fa;
  --paper-2: #ffffff;
  --paper-3: #e9edf4;

  /* Brand */
  --brand-300: #67e8f9;
  --brand-400: #22d3ee;
  --brand-500: #06b6d4;
  --brand-600: #0891b2;
  --brand-glow: rgba(34, 211, 238, 0.16);
  --brand-line: rgba(34, 211, 238, 0.28);

  /* Neutrals */
  --text: #e9eef7;
  --text-muted: #9aa7bd;
  --text-dim: #6c7a91;
  --text-ink: #0b1220;
  --text-ink-muted: #4d5a70;

  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --line-ink: rgba(11, 18, 32, 0.1);
  --line-ink-2: rgba(11, 18, 32, 0.16);

  /* Type */
  --font-display: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Space */
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 9vw, 8rem);
  --max: 1200px;
  --max-wide: 1360px;
  --max-text: 68ch;

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* Elevation */
  --sh-1: 0 1px 2px rgba(0, 0, 0, 0.3);
  --sh-2: 0 8px 24px -8px rgba(0, 0, 0, 0.5);
  --sh-3: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
  --sh-brand: 0 12px 40px -12px rgba(6, 182, 212, 0.45);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 160ms;
  --t-med: 300ms;
  --t-slow: 640ms;

  --header-h: 76px;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  background: var(--ink-900);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  font-feature-settings: "cv02", "cv03", "cv04";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.022em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
p + p { margin-top: 1em; }

a { color: inherit; text-decoration: none; }

ul, ol { margin: 0; padding: 0; list-style: none; }

button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--brand-500); color: #04121a; }

:focus-visible {
  outline: 2px solid var(--brand-400);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  padding: 0.7rem 1.15rem;
  background: var(--brand-400);
  color: #04121a;
  font-weight: 600;
  border-radius: var(--r-md);
  transition: top var(--t-fast) var(--ease);
}
.skip-link:focus { top: 1rem; }

/* Screen-reader-only text (form labels, context) */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--wide { max-width: var(--max-wide); }

.section { position: relative; padding-block: var(--section-y); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--line-top { border-top: 1px solid var(--line); }
.section--paper {
  background: var(--paper);
  color: var(--text-ink);
}
.section--paper .lead,
.section--paper .muted { color: var(--text-ink-muted); }
.section--paper .eyebrow { color: var(--brand-600); }
.section--paper .eyebrow::before { background: var(--brand-500); }
.section--paper .card {
  background: var(--paper-2);
  border-color: var(--line-ink);
  box-shadow: 0 1px 2px rgba(11, 18, 32, 0.04);
}
.section--paper .card:hover { border-color: var(--line-ink-2); box-shadow: var(--sh-2); }
.section--paper .card h2,
.section--paper .card h3,
.section--paper .card h4 { color: var(--text-ink); }
.section--paper .card p { color: var(--text-ink-muted); }
.section--paper .card__num { color: var(--text-ink-muted); opacity: 0.65; }
.section--paper .card__link { color: var(--brand-600); }
.section--paper .card__link:hover { color: var(--brand-500); }
.section--paper .card__icon { background: rgba(6, 182, 212, 0.1); color: var(--brand-600); }
.section--paper .rule { background: var(--line-ink); }

/* A dark card placed on a light band keeps its own palette */
.section--paper .subscribe { color: var(--text); }
.section--paper .subscribe h2 { color: var(--text); }
.section--paper .subscribe .lead { color: #b6c2d4; }
.section--paper .subscribe .eyebrow { color: var(--brand-400); }
.section--paper .subscribe .eyebrow::before { background: var(--brand-500); }
.section--paper .subscribe .form-note { color: var(--text-dim); }

.stack-sm > * + * { margin-top: 0.75rem; }
.stack > * + * { margin-top: 1.5rem; }
.stack-lg > * + * { margin-top: 2.5rem; }

/* --------------------------------------------------------------------------
   4. Typography
   -------------------------------------------------------------------------- */
.display {
  font-size: clamp(2.4rem, 5.6vw, 4.25rem);
  letter-spacing: -0.035em;
  font-weight: 600;
}
.h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); letter-spacing: -0.03em; }
.h2 { font-size: clamp(1.65rem, 3.2vw, 2.5rem); letter-spacing: -0.026em; }
.h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); letter-spacing: -0.018em; }
.h4 { font-size: 1rem; letter-spacing: -0.01em; }

.lead {
  font-size: clamp(1.02rem, 1.35vw, 1.2rem);
  line-height: 1.62;
  color: var(--text-muted);
  max-width: var(--max-text);
}
.muted { color: var(--text-muted); }
.dim { color: var(--text-dim); }
.mono {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.measure { max-width: var(--max-text); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.text-brand { color: var(--brand-400); }
.text-gradient {
  background: linear-gradient(96deg, #ffffff 12%, var(--brand-300) 62%, var(--brand-500) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section--paper .text-gradient {
  background: linear-gradient(96deg, #0b1220 10%, var(--brand-600) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-400);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--brand-500);
}
.eyebrow__num { color: var(--text-dim); }

.section-head { max-width: 760px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .lead { margin-inline: auto; }
.section-head .lead { margin-top: 1rem; }

.rule { height: 1px; background: var(--line); border: 0; }

/* --------------------------------------------------------------------------
   5. Buttons & chips
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-bd: var(--line-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.78rem 1.4rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--t-fast) var(--ease),
              background var(--t-med) var(--ease),
              border-color var(--t-med) var(--ease),
              box-shadow var(--t-med) var(--ease),
              color var(--t-med) var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primary {
  --btn-bg: linear-gradient(135deg, var(--brand-400), var(--brand-600));
  --btn-fg: #04121a;
  --btn-bd: transparent;
  box-shadow: var(--sh-brand);
}
.btn--primary:hover { box-shadow: 0 16px 48px -12px rgba(6, 182, 212, 0.6); }

.btn--ghost { --btn-bd: var(--line-2); }
.btn--ghost:hover { --btn-bd: var(--brand-line); --btn-fg: var(--brand-300); }

.btn--solid { --btn-bg: var(--ink-750); --btn-fg: var(--text); --btn-bd: var(--line); }
.btn--solid:hover { --btn-bd: var(--brand-line); }

.btn--lg { padding: 1rem 1.9rem; font-size: 1rem; }
.btn--sm { padding: 0.5rem 1rem; font-size: 0.82rem; }
.btn--block { width: 100%; }

.section--paper .btn--ghost { --btn-bd: var(--line-ink-2); --btn-fg: var(--text-ink); }
.section--paper .btn--ghost:hover { --btn-fg: var(--brand-600); --btn-bd: var(--brand-500); }
.section--paper .btn--solid { --btn-bg: var(--ink-800); --btn-fg: #fff; --btn-bd: transparent; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.chip--brand {
  border-color: var(--brand-line);
  background: rgba(34, 211, 238, 0.08);
  color: var(--brand-300);
}
.section--paper .chip { border-color: var(--line-ink-2); background: #fff; color: var(--text-ink-muted); }
.section--paper .chip--brand { border-color: rgba(6, 182, 212, 0.35); background: rgba(6, 182, 212, 0.08); color: var(--brand-600); }

/* Filter tabs */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}
.filter {
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--t-med) var(--ease);
}
.filter:hover { color: var(--text); border-color: var(--line-2); }
.filter[aria-pressed="true"] {
  background: var(--brand-400);
  border-color: var(--brand-400);
  color: #04121a;
  font-weight: 600;
}
.section--paper .filter { border-color: var(--line-ink-2); color: var(--text-ink-muted); }
.section--paper .filter:hover { color: var(--text-ink); border-color: var(--line-ink); }
.section--paper .filter[aria-pressed="true"] { background: var(--ink-800); border-color: var(--ink-800); color: #fff; }

/* --------------------------------------------------------------------------
   6. Header & navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background var(--t-med) var(--ease),
              border-color var(--t-med) var(--ease),
              backdrop-filter var(--t-med) var(--ease);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(7, 11, 20, 0.9);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  opacity: 0;
  transition: opacity var(--t-med) var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header.is-scrolled::before { opacity: 1; }
.site-header > * { position: relative; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.brand { display: inline-flex; align-items: center; gap: 0.75rem; }
.brand img { width: 38px; height: 38px; object-fit: contain; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.brand__name span { color: var(--brand-400); }

.nav__menu { display: flex; align-items: center; gap: 0.35rem; }

.nav__link {
  position: relative;
  padding: 0.5rem 0.85rem;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  transition: color var(--t-med) var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.15rem;
  height: 1px;
  background: var(--brand-400);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-med) var(--ease-out);
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--text); }
.nav__link[aria-current="page"]::after { transform: scaleX(1); background: var(--brand-400); }

.nav__actions { display: flex; align-items: center; gap: 0.75rem; }

.nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}
.nav__toggle svg { width: 20px; height: 20px; }
.nav__toggle .icon-close { display: none; }
.nav__toggle[aria-expanded="true"] .icon-close { display: block; }
.nav__toggle[aria-expanded="true"] .icon-menu { display: none; }

.drawer {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 99;
  background:
    radial-gradient(70% 40% at 50% 0%, rgba(6, 182, 212, 0.12), transparent 70%),
    var(--ink-900);
  padding: 2rem var(--gutter) 3rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease-out), visibility var(--t-med);
}
.drawer.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.drawer__link {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text);
}
.drawer__link[aria-current="page"] { color: var(--brand-400); }
.drawer .btn { margin-top: 1.5rem; }

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: calc(var(--header-h) + clamp(4rem, 9vw, 7.5rem)) clamp(4rem, 8vw, 7rem);
  background: var(--ink-900);
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 55% at 78% 8%, rgba(6, 182, 212, 0.2), transparent 62%),
    radial-gradient(45% 45% at 8% 92%, rgba(29, 78, 216, 0.16), transparent 60%);
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(85% 65% at 50% 32%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(85% 65% at 50% 32%, #000 25%, transparent 78%);
}
.hero__net { position: absolute; right: -6%; top: 4%; width: 58%; opacity: 0.55; }
.hero__fade {
  position: absolute;
  inset: auto 0 0 0;
  height: 180px;
  background: linear-gradient(to bottom, transparent, var(--ink-900));
}

.hero__inner { position: relative; z-index: 2; }
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.42rem 0.95rem 0.42rem 0.5rem;
  border: 1px solid var(--brand-line);
  border-radius: var(--r-pill);
  background: rgba(6, 182, 212, 0.07);
  font-size: 0.8rem;
  color: var(--brand-300);
  margin-bottom: 1.75rem;
}
.hero__badge b {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.55rem;
  border-radius: var(--r-pill);
  background: var(--brand-400);
  color: #04121a;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  font-weight: 700;
}
.hero__title { max-width: 17ch; }
.hero__title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--brand-300), var(--brand-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead { margin-top: 1.5rem; max-width: 60ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2.25rem; }
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.hero__meta-item { display: flex; align-items: center; gap: 0.55rem; font-size: 0.85rem; color: var(--text-muted); }
.hero__meta-item svg { width: 16px; height: 16px; color: var(--brand-400); flex: none; }

/* Page hero (inner pages) */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: calc(var(--header-h) + clamp(3.5rem, 7vw, 6rem)) clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--line);
  background: var(--ink-850);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(55% 80% at 82% 0%, rgba(6, 182, 212, 0.16), transparent 60%);
}
.page-hero__inner { position: relative; z-index: 2; max-width: 820px; }
.page-hero .lead { margin-top: 1.25rem; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}
.breadcrumb a:hover { color: var(--brand-400); }
.breadcrumb span { opacity: 0.5; }

/* --------------------------------------------------------------------------
   8. Grids & cards
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: clamp(1rem, 1.6vw, 1.5rem); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: clamp(1.4rem, 2vw, 1.9rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  transition: border-color var(--t-med) var(--ease),
              transform var(--t-med) var(--ease-out),
              box-shadow var(--t-med) var(--ease),
              background var(--t-med) var(--ease);
}
.card:hover {
  border-color: var(--brand-line);
  transform: translateY(-3px);
  box-shadow: var(--sh-2);
}
.card h3 { color: var(--text); }
.card p { color: var(--text-muted); font-size: 0.95rem; }
.card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: var(--r-md);
  background: rgba(34, 211, 238, 0.1);
  color: var(--brand-400);
  flex: none;
}
.card__icon svg { width: 22px; height: 22px; }
.card__num {
  position: absolute;
  top: 1.35rem;
  right: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--text-dim);
}
.card--feature {
  background: linear-gradient(160deg, rgba(34, 211, 238, 0.09), rgba(255, 255, 255, 0.02) 55%);
  border-color: var(--brand-line);
}
.card__link {
  margin-top: auto;
  padding-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-400);
}
.card__link svg { width: 15px; height: 15px; transition: transform var(--t-med) var(--ease-out); }
.card:hover .card__link svg { transform: translateX(4px); }

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}
.stat {
  padding: clamp(1.4rem, 2.4vw, 2.1rem);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.stat:last-child { border-right: 0; }
.stat__value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--brand-400);
}
.stat__value sup { font-size: 0.5em; vertical-align: super; }
.stat__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.section--paper .stats { border-color: var(--line-ink); background: #fff; }
.section--paper .stat { border-right-color: var(--line-ink); }
.section--paper .stat__value { color: var(--brand-600); }
.section--paper .stat__label { color: var(--text-ink-muted); }

/* Feature list (icon + text rows) */
.feat-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.feat {
  display: flex;
  gap: 1.1rem;
  padding: clamp(1.2rem, 2vw, 1.6rem);
  background: var(--ink-900);
  transition: background var(--t-med) var(--ease);
}
.feat:hover { background: var(--ink-800); }
.feat__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: var(--r-sm);
  border: 1px solid var(--brand-line);
  background: rgba(34, 211, 238, 0.07);
  color: var(--brand-400);
}
.feat__icon svg { width: 18px; height: 18px; }
.feat h3 { font-size: 1.02rem; margin-bottom: 0.3rem; }
.feat p { font-size: 0.92rem; color: var(--text-muted); }
.section--paper .feat-list { background: var(--line-ink); border-color: var(--line-ink); }
.section--paper .feat { background: var(--paper); }
.section--paper .feat:hover { background: #fff; }
.section--paper .feat p { color: var(--text-ink-muted); }

/* Checklist */
.check-list { display: grid; gap: 0.85rem; }
.check-list li { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.96rem; }
.check-list svg { width: 19px; height: 19px; flex: none; margin-top: 3px; color: var(--brand-400); }
.section--paper .check-list svg { color: var(--brand-600); }

/* --------------------------------------------------------------------------
   9. Partners
   -------------------------------------------------------------------------- */
/* Separated tiles rather than a fixed grid, so the wall stays balanced
   whatever the partner count is. */
.partner-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}
.partner {
  flex: 1 1 172px;
  max-width: 220px;
  display: grid;
  place-items: center;
  min-height: 116px;
  padding: 1.5rem 1.25rem;
  background: #fff;
  border: 1px solid var(--line-ink);
  border-radius: var(--r-md);
  transition: border-color var(--t-med) var(--ease),
              transform var(--t-med) var(--ease-out),
              box-shadow var(--t-med) var(--ease);
}
.partner:hover {
  border-color: rgba(6, 182, 212, 0.42);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -16px rgba(11, 18, 32, 0.45);
}
/* Linked tile — the one partner that has a public explorer. */
.partner--link { position: relative; }
.partner--link::after {
  content: "↗";
  position: absolute;
  top: 0.55rem;
  right: 0.7rem;
  font-size: 0.85rem;
  line-height: 1;
  color: var(--text-dim);
  transition: color var(--t-med) var(--ease);
}
.partner--link:hover::after { color: var(--brand-600); }
.partner--link:focus-visible { outline: 2px solid var(--brand-400); outline-offset: 2px; }
.partner img {
  max-width: 82%;
  max-height: 64px;
  object-fit: contain;
  filter: grayscale(0.85);
  opacity: 0.62;
  transition: filter var(--t-med) var(--ease), opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease-out);
}
.partner:hover img { filter: grayscale(0); opacity: 1; transform: scale(1.04); }

/* --------------------------------------------------------------------------
   10. Team
   -------------------------------------------------------------------------- */
.team-group { margin-bottom: clamp(2.5rem, 4vw, 3.5rem); }
.team-group__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.team-group__head h3 { font-size: 1.2rem; }
.team-group__head p { font-size: 0.9rem; color: var(--text-dim); }
.section--paper .team-group__head { border-bottom-color: var(--line-ink); }

.person {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color var(--t-med) var(--ease), transform var(--t-med) var(--ease-out);
}
.person:hover { border-color: var(--brand-line); transform: translateY(-3px); }
.person__photo {
  width: 96px;
  height: 96px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: var(--ink-750);
  flex: none;
}
.person__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* bias the crop upwards so portrait avatars keep their head in frame */
  object-position: center 32%;
  display: block;
  transition: transform var(--t-slow) var(--ease-out);
}
.person:hover .person__photo img { transform: scale(1.05); }
.person__name { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; }
.person__role {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-400);
}
.section--paper .person { background: #fff; border-color: var(--line-ink); }
.section--paper .person:hover { border-color: var(--brand-500); }
.section--paper .person__role { color: var(--brand-600); }

/* --------------------------------------------------------------------------
   11. Stake
   -------------------------------------------------------------------------- */
.chain {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: clamp(1.3rem, 2vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.025);
  transition: border-color var(--t-med) var(--ease), background var(--t-med) var(--ease);
}
.chain:hover { border-color: var(--brand-line); background: rgba(34, 211, 238, 0.035); }
.chain__logo {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: var(--r-md);
  background: #fff;
  border: 1px solid var(--line);
  padding: 0.55rem;
  flex: none;
}
.chain__logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.chain__name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; }
.chain__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.6rem; }
.chain__meta { display: flex; align-items: center; gap: 1.5rem; }
.chain__commission { text-align: right; }
.chain__commission b { display: block; font-family: var(--font-display); font-size: 1.3rem; color: var(--brand-400); }
.chain__commission span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.chain[hidden] { display: none; }

/* --------------------------------------------------------------------------
   12. Blog
   -------------------------------------------------------------------------- */
.post {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.post__cover {
  position: relative;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--ink-750), var(--ink-850));
  border-bottom: 1px solid var(--line);
}
.post__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
}
.post__tag {
  position: relative;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-400);
}
.post__body { display: flex; flex-direction: column; gap: 0.7rem; flex: 1; padding: 1.5rem; }
.post__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}
.post__meta i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; display: inline-block; }
.post__body h3 { font-size: 1.08rem; line-height: 1.32; }
.post__body p { font-size: 0.92rem; color: var(--text-muted); }
.post[hidden] { display: none; }

/* Newsletter */
.subscribe {
  display: grid;
  grid-template-columns: 1fr minmax(0, 460px);
  align-items: center;
  gap: 2.5rem;
  padding: clamp(1.75rem, 3vw, 2.75rem);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background:
    radial-gradient(70% 120% at 100% 0%, rgba(6, 182, 212, 0.14), transparent 60%),
    var(--ink-850);
}
.subscribe__form { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.subscribe__form input {
  flex: 1 1 220px;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.92rem;
}
.subscribe__form input::placeholder { color: var(--text-dim); }
.subscribe__form input:focus { outline: none; border-color: var(--brand-400); background: rgba(34, 211, 238, 0.05); }
.form-note { font-size: 0.8rem; color: var(--text-dim); margin-top: 0.75rem; }
.form-note.is-ok { color: var(--brand-400); }
.form-note.is-err { color: #fb7185; }

/* --------------------------------------------------------------------------
   13. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  border: 1px solid var(--brand-line);
  padding: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  background:
    radial-gradient(60% 130% at 50% 0%, rgba(6, 182, 212, 0.18), transparent 62%),
    var(--ink-850);
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(60% 70% at 50% 50%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(60% 70% at 50% 50%, #000, transparent 75%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band .check-list { max-width: 460px; margin-inline: auto; text-align: left; }
.cta-band .btn { margin-top: 2rem; }

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--ink-950);
  padding-block: clamp(3rem, 5vw, 4.5rem) 2rem;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}
.footer__brand .lead { margin-top: 1rem; font-size: 0.92rem; }
.footer__col h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1rem;
  font-weight: 500;
}
.footer__col li + li { margin-top: 0.55rem; }
.footer__col a { font-size: 0.9rem; color: var(--text-muted); transition: color var(--t-fast) var(--ease); }
.footer__col a:hover { color: var(--brand-400); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--text-dim);
}
.footer__social { display: flex; gap: 0.6rem; }
.footer__social a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--text-muted);
  transition: all var(--t-med) var(--ease);
}
.footer__social a:hover {
  color: var(--brand-300);
  border-color: var(--brand-line);
  background: rgba(34, 211, 238, 0.07);
  transform: translateY(-2px);
}
.footer__social svg { width: 17px; height: 17px; }

/* --------------------------------------------------------- Back to top */
.to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 90;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: rgba(13, 21, 36, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-muted);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--t-med) var(--ease),
              transform var(--t-med) var(--ease-out),
              visibility var(--t-med),
              color var(--t-med) var(--ease),
              border-color var(--t-med) var(--ease);
}
.to-top svg { width: 18px; height: 18px; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--brand-400); border-color: var(--brand-line); }

/* --------------------------------------------------------------------------
   15. Reveal animation
   -------------------------------------------------------------------------- */
/* The hidden state is applied only when JS is running, so a script failure
   can never leave a section permanently invisible. */
.reveal {
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   16. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .section--paper .stat:nth-child(-n + 2) { border-bottom-color: var(--line-ink); }
}

@media (max-width: 900px) {
  .nav__menu, .nav__actions .btn { display: none; }
  .nav__toggle { display: flex; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .subscribe { grid-template-columns: 1fr; }
  .hero__net { opacity: 0.28; width: 90%; right: -25%; }
}

@media (max-width: 640px) {
  :root { --header-h: 66px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stat { border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .section--paper .stat { border-bottom-color: var(--line-ink); }
  .partner { flex: 1 1 130px; max-width: 100%; min-height: 96px; padding: 1.1rem 0.9rem; }
  .partner img { max-width: 74%; max-height: 44px; }
  .footer__top { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .chain { grid-template-columns: auto 1fr; }
  .chain__meta { grid-column: 1 / -1; justify-content: space-between; }
  .hero__meta { gap: 0.6rem 1.25rem; }
  .hero__cta .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   17. Print
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .drawer, .site-footer, .hero__bg { display: none !important; }
  body { background: #fff; color: #000; }
}
