/* Linc — lincorg.co.uk revamp v2
   Refined infrastructure aesthetic: generous whitespace, precise borders,
   restrained green accent, 8px rhythm. */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700&family=Inter+Tight:opsz,wght@10..32,300;10..32,400;10..32,450;10..32,500;10..32,600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --green: #22C55E;
  --green-strong: #16A34A;
  --green-deep: #0B7A3E;
  --green-ink: #052E16;

  --bg: #FAFBF9;
  --bg-2: #FFFFFF;
  --bg-3: #F2F5F1;
  --ink: #101828;
  --ink-2: #475467;
  --mute: #667085;
  --line: #E4E7E0;
  --line-2: #EEF1EC;
  --card: #FFFFFF;
  --nav-bg: rgba(250,251,249,0.8);
  --shadow-card: 0 1px 2px rgba(16,24,40,0.04), 0 1px 3px rgba(16,24,40,0.06);
  --shadow-lift: 0 4px 8px -2px rgba(16,24,40,0.06), 0 12px 24px -8px rgba(16,24,40,0.10);
  --canvas-line: 22,163,74;
  --canvas-alpha: 0.16;
}

html[data-theme="dark"] {
  --bg: #0A0F0C;
  --bg-2: #0E1511;
  --bg-3: #121A15;
  --ink: #F4F7F2;
  --ink-2: #A9B4AB;
  --mute: #77827A;
  --line: #1E2921;
  --line-2: #17211A;
  --card: #0F1712;
  --nav-bg: rgba(10,15,12,0.8);
  --shadow-card: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-lift: 0 12px 32px -12px rgba(0,0,0,0.6);
  --canvas-line: 34,197,94;
  --canvas-alpha: 0.13;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter Tight', system-ui, sans-serif;
  font-weight: 400;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  transition: background 0.35s ease, color 0.35s ease;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: rgba(34,197,94,0.25); }

h1, h2, h3, h4 { font-family: 'Sora', sans-serif; font-weight: 600; letter-spacing: -0.025em; }
.mono { font-family: 'JetBrains Mono', monospace; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 40px; }

/* ── Nav ──────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  background: var(--nav-bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.35s ease;
}
nav.scrolled { border-bottom-color: var(--line); }
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 40px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 450;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--ink); background: var(--bg-3); }
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-cta {
  font-family: 'Inter Tight', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #fff !important;
  background: var(--ink);
  padding: 9px 18px !important;
  border-radius: 10px;
  text-decoration: none;
  transition: opacity 0.15s;
}
html[data-theme="dark"] .nav-cta { color: var(--green-ink) !important; background: var(--green); }
.nav-cta:hover { opacity: 0.85; background: var(--ink) !important; }
html[data-theme="dark"] .nav-cta:hover { background: var(--green) !important; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { display: block; }
.brand-name {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.03em;
  color: var(--ink);
}

/* theme toggle — minimal icon button */
.theme-toggle {
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
  padding: 0;
}
.theme-toggle:hover { background: var(--bg-3); color: var(--ink); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 200px 0 0;
  overflow: hidden;
}
#net-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.9;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 18%, black 74%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 18%, black 74%, transparent 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 0 40px;
}
.hero .kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink-2);
  border: 1px solid var(--line);
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  background: var(--bg-2);
  box-shadow: var(--shadow-card);
  margin-bottom: 40px;
}
.hero .kicker .pill {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-deep);
  background: rgba(34,197,94,0.12);
  padding: 3px 8px;
  border-radius: 999px;
}
html[data-theme="dark"] .hero .kicker .pill { color: var(--green); }

.hero h1 {
  font-size: clamp(44px, 6vw, 76px);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.035em;
}
.hero h1 .grad {
  background: linear-gradient(100deg, var(--green) 0%, var(--green-deep) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lede {
  margin: 28px auto 0;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 560px;
}
.hero-cta { margin-top: 44px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 26px;
  border-radius: 12px;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 500;
  font-size: 15.5px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
  box-shadow: var(--shadow-card);
}
html[data-theme="dark"] .btn-primary { background: var(--green); color: var(--green-ink); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.btn-ghost {
  background: var(--bg-2);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.btn-ghost:hover { border-color: var(--mute); transform: translateY(-1px); }

/* hero metrics — bordered strip */
.ticker {
  position: relative;
  z-index: 1;
  margin-top: 120px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}
.ticker-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.tick-item {
  padding: 36px 32px;
  border-left: 1px solid var(--line);
}
.tick-item:first-child { border-left: none; padding-left: 0; }
.tick-item .tick-num {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 32px;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.tick-item .tick-label {
  font-size: 13.5px;
  color: var(--mute);
  margin-top: 8px;
  line-height: 1.45;
}

/* ── Sections ─────────────────────────────────────────── */
section { padding: 128px 0; }
.section-head { max-width: 640px; margin-bottom: 72px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 550;
  color: var(--green-deep);
  margin-bottom: 20px;
}
html[data-theme="dark"] .section-head .tag { color: var(--green); }
.section-head .tag::before {
  content: '';
  width: 20px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
}
.section-head h2 {
  font-size: clamp(30px, 3.6vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.section-head p {
  margin-top: 20px;
  font-size: 17.5px;
  line-height: 1.65;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  border-color: var(--mute);
}
.card .card-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin-bottom: 40px;
  display: block;
}
html[data-theme="dark"] .card .card-label { color: var(--green); }
.card h3 { font-size: 19px; margin-bottom: 12px; letter-spacing: -0.02em; }
.card p { font-size: 15px; line-height: 1.65; color: var(--ink-2); }
.card .metric {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line-2);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.card .metric::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

/* alt band */
.band {
  background: var(--bg-3);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* platform diagram */
.platform-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 80px;
  align-items: center;
}
.diagram-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow-card);
}
#flow-canvas { width: 100%; height: 440px; display: block; }

.feature-list { display: flex; flex-direction: column; }
.feature-row {
  display: flex;
  gap: 20px;
  padding: 22px 20px;
  cursor: pointer;
  border-left: 2px solid var(--line);
  transition: border-color 0.2s, background 0.2s;
}
.feature-row:hover { background: var(--bg-2); }
.feature-row.active { border-left-color: var(--green); }
.feature-row .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--mute);
  padding-top: 4px;
  flex-shrink: 0;
  transition: color 0.2s;
}
.feature-row.active .num { color: var(--green-deep); }
html[data-theme="dark"] .feature-row.active .num { color: var(--green); }
.feature-row h4 { font-size: 16.5px; letter-spacing: -0.015em; }
.feature-row p { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); margin-top: 6px; }

/* stats */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
}
.stat-card .big {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat-card .lbl { margin-top: 14px; font-size: 14px; line-height: 1.55; color: var(--ink-2); }

/* team — role cards, no names */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.team-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow-card);
}
.team-card .role-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 550;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--green-deep);
  background: rgba(34,197,94,0.10);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}
html[data-theme="dark"] .team-card .role-badge { color: var(--green); }
.team-card h3 { font-size: 18px; margin-bottom: 10px; letter-spacing: -0.02em; }
.team-card p { font-size: 14.5px; line-height: 1.65; color: var(--ink-2); }

/* CTA */
.cta-band { text-align: center; padding: 152px 0; }
.cta-band h2 {
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.cta-band p {
  margin: 22px auto 0;
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 480px;
}

footer {
  border-top: 1px solid var(--line);
  padding: 56px 0;
  font-size: 14px;
  color: var(--mute);
}
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
footer a { color: var(--ink-2); text-decoration: none; font-weight: 450; transition: color 0.15s; }
footer a:hover { color: var(--ink); }

/* reveal on scroll — staggered */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.75s cubic-bezier(.2,.6,.2,1), transform 0.75s cubic-bezier(.2,.6,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 900px) {
  .wrap, .nav-inner, .ticker-inner, .footer-inner { padding-left: 24px; padding-right: 24px; }
  .card-grid, .team-grid { grid-template-columns: 1fr; }
  .stats-grid, .ticker-inner { grid-template-columns: repeat(2, 1fr); }
  .tick-item { padding: 24px 20px; }
  .tick-item:nth-child(odd) { border-left: none; padding-left: 0; }
  .platform-grid { grid-template-columns: 1fr; gap: 48px; }
  .nav-links { display: none; }
  section { padding: 88px 0; }
  .hero { padding-top: 148px; }
  .ticker { margin-top: 80px; }
}
