/* ============ Tessera Liquidity — base ============ */
:root {
  --bg: #060a16;
  --bg-2: #0a1122;
  --surface: rgba(18, 27, 52, 0.55);
  --surface-solid: #0e1630;
  --line: rgba(140, 160, 220, 0.12);
  --line-2: rgba(140, 160, 220, 0.22);
  --text: #eaf0ff;
  --muted: #8d99bb;
  --dim: #5d6a8e;
  --amber: #f5b544;
  --amber-2: #f2862e;
  --amber-soft: rgba(245, 181, 68, 0.12);
  --blue: #6f9bff;
  --green: #52d6a0;
  --red: #ff6b7a;
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1240px;
  --font: "Geist", "Inter", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --serif: "Instrument Serif", Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--amber); color: #120c02; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
.amber { color: var(--amber); }
.grad {
  background: linear-gradient(100deg, #ffd98c 0%, var(--amber) 40%, var(--amber-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* background atmosphere */
.atmo { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.atmo::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 600px at 78% -8%, rgba(245, 150, 50, 0.16), transparent 60%),
    radial-gradient(900px 700px at 8% 18%, rgba(70, 105, 230, 0.18), transparent 60%),
    radial-gradient(1000px 800px at 50% 120%, rgba(40, 70, 170, 0.2), transparent 60%);
}
.atmo::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 20%, transparent 75%);
  opacity: 0.35;
}

/* ============ primitives ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 46px; padding: 0 22px; border-radius: 999px;
  font-weight: 500; font-size: 15px; letter-spacing: -0.005em;
  border: 1px solid transparent; white-space: nowrap;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s, border-color 0.3s;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary {
  background: linear-gradient(180deg, #ffc964, var(--amber) 55%, #e89a2c);
  color: #1a1004;
  box-shadow: 0 0 0 1px rgba(255, 210, 120, 0.4) inset, 0 10px 30px -8px rgba(245, 160, 50, 0.55);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255, 220, 140, 0.6) inset, 0 16px 40px -8px rgba(245, 160, 50, 0.7); }
.btn-ghost { background: rgba(255, 255, 255, 0.03); border-color: var(--line-2); backdrop-filter: blur(10px); }
.btn-ghost:hover { border-color: rgba(245, 181, 68, 0.5); background: var(--amber-soft); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 12px var(--amber); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 14px; border-radius: 999px;
  background: transparent; border: 1px solid var(--line-2); color: var(--muted);
  font-size: 13px; transition: all 0.25s;
}
.chip span { font-family: var(--mono); font-size: 11px; color: var(--dim); }
.chip:hover { color: var(--text); border-color: rgba(245, 181, 68, 0.4); }
.chip.is-active { background: var(--amber-soft); border-color: rgba(245, 181, 68, 0.55); color: var(--amber); }
.chip.is-active span { color: var(--amber); }

.card {
  background: linear-gradient(180deg, rgba(24, 35, 68, 0.6), rgba(12, 19, 40, 0.6));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
}

/* CA pill */
.ca {
  display: inline-flex; align-items: center; gap: 12px; max-width: 100%;
  padding: 6px 8px 6px 6px; border-radius: 999px;
  background: rgba(10, 16, 34, 0.7); border: 1px solid var(--line-2);
  font-family: var(--mono); font-size: 13px; color: var(--muted);
  cursor: pointer; transition: border-color 0.25s;
}
.ca:hover { border-color: rgba(245, 181, 68, 0.45); }
.ca b { background: var(--amber); color: #1a1004; border-radius: 999px; padding: 3px 10px; font-size: 11px; letter-spacing: 0.08em; }
.ca [data-ca-value] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ca .ca-copy { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.05); flex: none; }
.ca .ca-copy svg { width: 14px; height: 14px; }
.ca.is-pending { cursor: default; }
.ca.is-pending .ca-copy { display: none; }
.ca.is-copied [data-ca-value] { color: var(--green); }

/* ============ nav ============ */
.nav {
  position: fixed; top: 14px; left: 0; right: 0; z-index: 50;
  transition: top 0.3s var(--ease);
}
.nav-inner {
  display: flex; align-items: center; gap: 24px;
  height: 62px; padding: 0 10px 0 16px; border-radius: 999px;
  background: rgba(8, 13, 28, 0.55); border: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(140%);
  transition: background 0.3s, border-color 0.3s;
}
.nav.is-scrolled .nav-inner { background: rgba(8, 13, 28, 0.85); border-color: var(--line-2); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.02em; font-size: 17px; }
.brand img { width: 36px; height: 36px; margin: -3px -2px -3px -4px; }
.brand small { font-family: var(--mono); font-weight: 400; font-size: 10px; letter-spacing: 0.14em; color: var(--dim); text-transform: uppercase; display: block; margin-top: -2px; }
.nav-links { display: flex; gap: 4px; margin: 0 auto; }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--muted); transition: color 0.2s, background 0.2s; }
.nav-links a:hover, .nav-links a.is-active { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--muted); transition: all 0.2s; background: transparent; }
.icon-btn:hover { color: var(--text); border-color: rgba(245, 181, 68, 0.45); }
.icon-btn svg { width: 15px; height: 15px; }
.burger { display: none; }

/* ============ hero ============ */
.hero { position: relative; padding: 150px 0 60px; min-height: 100vh; display: flex; align-items: center; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.hero h1 {
  font-size: clamp(44px, 6.4vw, 92px); line-height: 0.98; letter-spacing: -0.045em; font-weight: 600;
  margin: 26px 0 24px;
}
.hero h1 .serif { font-size: 1.08em; letter-spacing: -0.02em; }
.hero-lead { font-size: 19px; color: var(--muted); max-width: 520px; margin: 0 0 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 44px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 36px; padding-top: 28px; border-top: 1px solid var(--line); max-width: 560px; }
.hero-meta div { display: flex; flex-direction: column; gap: 2px; }
.hero-meta strong { font-size: 30px; font-weight: 500; letter-spacing: -0.03em; }
.hero-meta span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }

.hero-visual { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 580px; justify-self: end; }
.hero-visual canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hv-label {
  position: absolute; display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 12px;
  background: rgba(10, 16, 34, 0.8); border: 1px solid var(--line-2); backdrop-filter: blur(10px);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase;
  animation: float 6s ease-in-out infinite;
}
.hv-label i { width: 8px; height: 8px; border-radius: 3px; background: var(--c, var(--amber)); }
.hv-label:nth-of-type(2) { animation-delay: -2s; }
.hv-label:nth-of-type(3) { animation-delay: -4s; }
@keyframes float { 50% { transform: translateY(-8px); } }
.hv-hub {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  text-align: center; pointer-events: none;
}
.hv-hub b { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; color: var(--amber); }

.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 64px; }
.quick a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 20px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: rgba(12, 19, 40, 0.5);
  transition: border-color 0.25s, transform 0.3s var(--ease), background 0.25s;
}
.quick a:hover { border-color: rgba(245, 181, 68, 0.45); transform: translateY(-2px); background: rgba(20, 28, 55, 0.6); }
.quick small { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; color: var(--dim); text-transform: uppercase; }
.quick strong { font-weight: 500; }
.quick svg { width: 18px; height: 18px; color: var(--amber); flex: none; }

/* ============ sections ============ */
section { position: relative; }
.sec { padding: 130px 0; }
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 64px; }
.sec-num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; color: var(--amber); text-transform: uppercase; display: flex; gap: 12px; align-items: center; margin-bottom: 20px; }
.sec-num::after { content: ""; height: 1px; width: 48px; background: linear-gradient(90deg, var(--amber), transparent); }
h2 { font-size: clamp(36px, 4.6vw, 64px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 600; margin: 0; }
h2 .serif { font-size: 1.08em; }
.sec-head p { color: var(--muted); font-size: 18px; margin: 0; max-width: 500px; justify-self: end; }

/* ecosystem */
.eco { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.eco-mosaic { position: sticky; top: 120px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.eco-mosaic span {
  aspect-ratio: 1; border-radius: 14px; border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(40, 56, 104, 0.45), rgba(14, 22, 46, 0.6));
  transition: background 0.6s var(--ease), border-color 0.6s, transform 0.6s var(--ease);
}
.eco-mosaic span.on { background: linear-gradient(160deg, #ffd27a, var(--amber-2)); border-color: transparent; transform: scale(0.94); box-shadow: 0 10px 40px -10px rgba(245, 150, 50, 0.6); }
.eco-mosaic span.half { background: linear-gradient(160deg, rgba(245, 181, 68, 0.28), rgba(245, 181, 68, 0.05)); border-color: rgba(245, 181, 68, 0.35); }
.eco-list { display: flex; flex-direction: column; }
.eco-item {
  display: grid; grid-template-columns: 64px 1fr; gap: 20px;
  padding: 30px 0; border-top: 1px solid var(--line);
  transition: padding 0.4s var(--ease);
}
.eco-item:last-child { border-bottom: 1px solid var(--line); }
.eco-item .n { font-family: var(--mono); font-size: 13px; color: var(--dim); padding-top: 6px; transition: color 0.3s; }
.eco-item h3 { margin: 0 0 8px; font-size: 24px; font-weight: 500; letter-spacing: -0.02em; }
.eco-item p { margin: 0; color: var(--muted); }
.eco-item:hover .n { color: var(--amber); }
.eco-item:hover { padding-left: 8px; }

/* markets */
.markets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.m-card {
  position: relative; padding: 28px 24px 24px; min-height: 420px;
  display: flex; flex-direction: column; overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.4s;
}
.m-card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 0.5s;
  background: radial-gradient(400px 260px at var(--mx, 50%) var(--my, 0%), rgba(245, 170, 60, 0.16), transparent 70%);
}
.m-card:hover { transform: translateY(-6px); border-color: rgba(245, 181, 68, 0.35); }
.m-card:hover::before { opacity: 1; }
.m-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 44px; position: relative; }
.m-top .num { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.m-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--amber-soft); border: 1px solid rgba(245, 181, 68, 0.3); color: var(--amber); }
.m-icon svg { width: 24px; height: 24px; }
.m-card .tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber); position: relative; }
.m-card h3 { font-size: 28px; font-weight: 500; letter-spacing: -0.03em; margin: 8px 0 14px; position: relative; }
.m-card p { color: var(--muted); margin: 0 0 24px; font-size: 15px; position: relative; }
.m-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 18px; border-top: 1px dashed var(--line-2); position: relative; }
.m-foot small { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; color: var(--dim); text-transform: uppercase; }
.m-foot a { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); transition: all 0.3s var(--ease); }
.m-foot a svg { width: 14px; height: 14px; }
.m-card:hover .m-foot a { background: var(--amber); color: #1a1004; border-color: var(--amber); transform: rotate(-45deg); }

/* routing */
.routing { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: center; }
.routing h2 { margin-bottom: 24px; }
.routing > div > p { color: var(--muted); font-size: 18px; margin: 0 0 32px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 14px; align-items: center; font-size: 15px; }
.checks li i { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: var(--amber-soft); color: var(--amber); flex: none; }
.checks li i svg { width: 12px; height: 12px; }

.plane { padding: 0; overflow: hidden; }
.plane-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.plane-head b { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; font-weight: 500; }
.plane-head span { font-family: var(--mono); font-size: 10.5px; color: var(--dim); letter-spacing: 0.1em; text-transform: uppercase; }
.plane-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.plane-stats div { padding: 16px 22px; border-right: 1px solid var(--line); }
.plane-stats div:last-child { border-right: 0; }
.plane-stats small { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; color: var(--dim); text-transform: uppercase; }
.plane-stats strong { font-weight: 500; font-size: 15px; }
.plane-body { display: grid; grid-template-columns: 1.25fr 1fr; }
.src-table { padding: 10px 12px; border-right: 1px solid var(--line); }
.src-row {
  display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center;
  padding: 11px 10px; border-radius: 10px; font-size: 14px;
  transition: background 0.4s, box-shadow 0.4s;
}
.src-row .id { font-family: var(--mono); font-size: 11px; color: var(--dim); }
.src-row small { display: block; font-family: var(--mono); font-size: 10px; color: var(--dim); letter-spacing: 0.08em; text-transform: uppercase; }
.src-row .ty { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.src-row.is-hit { background: var(--amber-soft); box-shadow: inset 0 0 0 1px rgba(245, 181, 68, 0.35); }
.src-row.is-hit .ty { border-color: var(--amber); color: var(--amber); }
.code { padding: 18px 20px; font-family: var(--mono); font-size: 12.5px; line-height: 1.9; color: var(--muted); }
.code .pills { display: flex; gap: 6px; margin-bottom: 14px; }
.code .pills span { font-size: 10px; letter-spacing: 0.1em; padding: 3px 9px; border-radius: 999px; background: rgba(111, 155, 255, 0.12); color: var(--blue); }
.code .fn { color: var(--amber); }
.code .ln { display: block; opacity: 0.25; transition: opacity 0.4s, transform 0.4s; transform: translateX(-4px); }
.code .ln.on { opacity: 1; transform: none; }
.code .ln.on::before { content: "✓ "; color: var(--green); }
.code .ln.cur::before { content: "› "; color: var(--amber); }

/* architecture */
.arch { display: grid; gap: 14px; max-width: 980px; margin: 0 auto; position: relative; }
.arch-row { display: grid; gap: 14px; }
.arch-row.three { grid-template-columns: repeat(3, 1fr); }
.arch-node {
  padding: 22px; border-radius: var(--radius); text-align: center;
  border: 1px solid var(--line-2); background: rgba(14, 22, 46, 0.7); backdrop-filter: blur(10px);
}
.arch-node small { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; color: var(--dim); text-transform: uppercase; margin-top: 4px; }
.arch-node strong { font-weight: 500; font-size: 17px; }
.arch-node.core { background: linear-gradient(135deg, rgba(245, 181, 68, 0.18), rgba(242, 134, 46, 0.06)); border-color: rgba(245, 181, 68, 0.5); padding: 28px; }
.arch-node.core strong { font-size: 22px; }
.arch-node.base { background: repeating-linear-gradient(135deg, rgba(111, 155, 255, 0.06) 0 10px, transparent 10px 20px), rgba(14, 22, 46, 0.7); }
.arch-link { height: 44px; position: relative; }
.arch-link::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--line-2); }
.arch-link::after {
  content: ""; position: absolute; left: calc(50% - 3px); top: 0; width: 7px; height: 7px; border-radius: 50%;
  background: var(--amber); box-shadow: 0 0 12px var(--amber); animation: drop 2.2s linear infinite;
}
.arch-link.fan::before { left: 16.6%; right: 16.6%; width: auto; top: 50%; bottom: auto; height: 1px; }
.arch-link.fan { background:
  linear-gradient(var(--line-2), var(--line-2)) 50% 0 / 1px 50% no-repeat,
  linear-gradient(var(--line-2), var(--line-2)) 16.6% 100% / 1px 50% no-repeat,
  linear-gradient(var(--line-2), var(--line-2)) 83.4% 100% / 1px 50% no-repeat,
  linear-gradient(var(--line-2), var(--line-2)) 50% 100% / 1px 50% no-repeat; }
@keyframes drop { from { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } to { transform: translateY(37px); opacity: 0; } }

/* contracts */
.k-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 24px; margin-bottom: 18px; }
.k-bar h3 { margin: 0; font-size: 18px; font-weight: 500; display: flex; align-items: center; gap: 12px; }
.k-bar h3 em { font-style: normal; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; padding: 4px 10px; border-radius: 999px; background: rgba(111, 155, 255, 0.12); color: var(--blue); }
.k-bar p { margin: 4px 0 0; font-size: 13px; color: var(--dim); font-family: var(--mono); }
.k-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.k-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.k-card {
  display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: rgba(12, 19, 40, 0.55);
  animation: kin 0.5s var(--ease) both; animation-delay: calc(var(--i) * 18ms);
  transition: border-color 0.25s;
}
.k-card:hover { border-color: var(--line-2); }
@keyframes kin { from { opacity: 0; transform: translateY(8px); } }
.k-group { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.k-name { font-weight: 500; }
.k-addr { font-family: var(--mono); font-size: 12.5px; color: var(--amber); }
.k-addr.is-pending { color: var(--dim); display: inline-flex; align-items: center; gap: 8px; }
.k-addr.is-pending::before { content: ""; width: 6px; height: 6px; border-radius: 50%; border: 1px solid var(--dim); }

/* CTA */
.cta { padding: 90px 40px; text-align: center; position: relative; overflow: hidden; border-radius: 32px; }
.cta::before {
  content: ""; position: absolute; inset: -1px; z-index: -1;
  background: radial-gradient(600px 300px at 50% 0%, rgba(245, 160, 50, 0.3), transparent 70%), linear-gradient(180deg, #121c3c, #0a1026);
}
.cta h2 { max-width: 800px; margin: 20px auto 20px; }
.cta p { color: var(--muted); font-size: 18px; max-width: 560px; margin: 0 auto 36px; }
.cta .hero-cta { justify-content: center; margin: 0; }
.cta-tiles { position: absolute; inset: 0; z-index: -1; opacity: 0.5; pointer-events: none;
  background-image: linear-gradient(rgba(245,181,68,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(245,181,68,.08) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(ellipse at 50% 100%, #000, transparent 70%); }

/* footer */
footer { padding: 80px 0 40px; border-top: 1px solid var(--line); margin-top: 130px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; margin-bottom: 60px; }
.foot-grid p { color: var(--dim); font-size: 14px; max-width: 420px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: flex-end; align-content: start; }
.foot-links a { color: var(--muted); font-size: 15px; }
.foot-links a:hover { color: var(--amber); }
.foot-word { font-size: clamp(64px, 15vw, 220px); font-weight: 600; letter-spacing: -0.06em; line-height: 0.8; margin: 0 0 40px;
  background: linear-gradient(180deg, rgba(234, 240, 255, 0.14), rgba(234, 240, 255, 0)); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-family: var(--mono); font-size: 11.5px; color: var(--dim); letter-spacing: 0.04em; }

/* reveal */
.rv { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ============ responsive ============ */
@media (max-width: 1080px) {
  .markets { grid-template-columns: repeat(2, 1fr); }
  .m-card { min-height: 360px; }
  .routing { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
}
@media (max-width: 900px) {
  .hero { min-height: 0; padding-top: 130px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { justify-self: center; max-width: 460px; order: -1; margin-bottom: -20px; }
  .sec-head { grid-template-columns: 1fr; gap: 20px; }
  .sec-head p { justify-self: start; }
  .eco { grid-template-columns: 1fr; }
  .eco-mosaic { position: relative; top: 0; max-width: 420px; }
  .quick { grid-template-columns: 1fr; }
  .plane-body { grid-template-columns: 1fr; }
  .src-table { border-right: 0; border-bottom: 1px solid var(--line); }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-links { justify-content: flex-start; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .sec { padding: 90px 0; }
  .markets { grid-template-columns: 1fr; }
  .m-card { min-height: 0; }
  .m-top { margin-bottom: 28px; }
  .plane-stats { grid-template-columns: repeat(2, 1fr); }
  .plane-stats div:nth-child(2) { border-right: 0; }
  .plane-stats div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .arch-row.three { grid-template-columns: 1fr; }
  .arch-link.fan { display: none; }
  .nav-inner { height: 56px; }
  .brand small { display: none; }
  .nav .x-link { display: none; }
  .cta { padding: 64px 22px; border-radius: 24px; }
  .hero-lead { font-size: 17px; }
  .hero-meta { gap: 24px; }
}
