/* ================================================================
   TAILS ABODE -- Shared Design System
   Used by all ecosystem + ICP pages
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg:       #050506;
  --surface:  #0a0a0c;
  --surface2: #111114;
  --border:   rgba(255,255,255,.06);
  --border-h: rgba(255,255,255,.12);
  --blue:     #3B82F6;
  --green:    #22C55E;
  --purple:   #8B5CF6;
  --amber:    #F59E0B;
  --text:     #f4f4f5;
  --text-2:   #71717a;
  --text-3:   #3f3f46;
  --fh:       'Syne', sans-serif;
  --fb:       'Inter', sans-serif;
  --ease:     cubic-bezier(.22,.61,.36,1);
}
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--fb);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9999; opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat; background-size: 200px;
}
a { color: inherit; text-decoration: none; }
::selection { background: rgba(59,130,246,.3); color: #fff; }

/* ── Layout ───────────────────────────────────── */
.w   { max-width: 1200px; margin: 0 auto; padding-inline: 2rem; }
.w-n { max-width: 860px;  margin: 0 auto; padding-inline: 2rem; }
.w-s { max-width: 640px;  margin: 0 auto; padding-inline: 2rem; }
.sec { padding-block: 8rem; position: relative; }
@media(max-width:768px) { .sec { padding-block: 5rem; } }

/* ── Typography ───────────────────────────────── */
.d1      { font-family: var(--fh); font-size: clamp(3rem,8vw,6rem); font-weight: 800; letter-spacing: -.04em; line-height: .92; }
.h2      { font-family: var(--fh); font-size: clamp(2rem,5vw,3.75rem); font-weight: 800; letter-spacing: -.03em; line-height: .98; }
.h3      { font-family: var(--fh); font-size: clamp(1.25rem,2.5vw,1.5rem); font-weight: 700; letter-spacing: -.015em; line-height: 1.15; }
.caption { font-size: .6875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
.body-lg { font-size: 1.125rem; color: var(--text-2); line-height: 1.7; max-width: 520px; }
.grad-1  { background: linear-gradient(135deg,#60A5FA,#A78BFA); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.grad-g  { background: linear-gradient(135deg,#86EFAC,#22C55E); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.grad-p  { background: linear-gradient(135deg,#C4B5FD,#8B5CF6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.grad-a  { background: linear-gradient(135deg,#FDE68A,#F59E0B); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ── Reveal ───────────────────────────────────── */
.rv { opacity: 0; transform: translateY(32px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rv.vis { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .1s; }
.rv-d2 { transition-delay: .2s; }
.rv-d3 { transition-delay: .3s; }
.rv-d4 { transition-delay: .4s; }

/* ── Buttons ──────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .75rem 1.5rem; border-radius: 100px; font-size: .875rem; font-weight: 600; font-family: var(--fb); border: none; cursor: pointer; transition: all .2s var(--ease); white-space: nowrap; }
.btn-w  { background: #fff; color: #000; }
.btn-w:hover { background: #e4e4e7; transform: translateY(-1px); }
.btn-o  { background: transparent; color: var(--text-2); border: 1px solid var(--border-h); }
.btn-o:hover { border-color: rgba(255,255,255,.25); color: var(--text); }
.btn-b  { background: var(--blue); color: #fff; }
.btn-b:hover { filter: brightness(1.15); transform: translateY(-1px); }
.btn-g  { background: var(--green); color: #fff; }
.btn-g:hover { filter: brightness(1.15); transform: translateY(-1px); }
.btn-p  { background: var(--purple); color: #fff; }
.btn-p:hover { filter: brightness(1.15); transform: translateY(-1px); }
.btn-a  { background: var(--amber); color: #000; }
.btn-a:hover { filter: brightness(1.15); transform: translateY(-1px); }

/* ── NAV ──────────────────────────────────────── */
.nav { position: fixed; top: 0; inset-inline: 0; z-index: 100; padding-block: 1rem; transition: all .35s var(--ease); }
.nav.sc { background: rgba(5,5,6,.85); backdrop-filter: blur(20px) saturate(1.4); border-bottom: 1px solid var(--border); }
.nav-in { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { font-family: var(--fh); font-weight: 800; font-size: 1rem; display: flex; align-items: center; gap: .5rem; letter-spacing: -.01em; }
.nav-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { font-size: .8125rem; color: var(--text-2); transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-r { display: flex; gap: .5rem; align-items: center; }
.burger { display: none; background: none; border: none; cursor: pointer; color: var(--text); padding: 4px; }
@media(max-width:820px) { .nav-links { display: none; } .burger { display: flex; } }

/* Drawer */
.drawer { position: fixed; inset: 0; z-index: 200; pointer-events: none; }
.drawer.open { pointer-events: all; }
.d-back { position: absolute; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s; }
.drawer.open .d-back { opacity: 1; }
.d-panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(300px,85vw); background: var(--surface2); padding: 5rem 1.5rem 2rem; display: flex; flex-direction: column; gap: 1.25rem; transform: translateX(100%); transition: transform .35s var(--ease); border-left: 1px solid var(--border); }
.drawer.open .d-panel { transform: none; }
.d-panel a { color: var(--text-2); font-size: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--border); }
.d-panel a:hover { color: var(--text); }
.d-close { position: absolute; top: 1.25rem; right: 1.25rem; background: none; border: none; cursor: pointer; color: var(--text-2); font-size: 1.2rem; }

/* ── ICP HERO ─────────────────────────────────── */
.icp-hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 6rem 0 4rem; position: relative; overflow: hidden; }
.icp-hero .glow { position: absolute; width: 800px; height: 800px; border-radius: 50%; filter: blur(140px); pointer-events: none; opacity: .1; }
.icp-hero .glow-1 { top: -30%; left: -10%; }
.icp-hero .glow-2 { bottom: -30%; right: -10%; opacity: .06; }
.back-link { display: inline-flex; align-items: center; gap: .375rem; font-size: .8125rem; color: var(--text-3); margin-bottom: 2rem; transition: color .2s; }
.back-link:hover { color: var(--text-2); }
.icp-tag { display: inline-flex; align-items: center; gap: .5rem; font-size: .6875rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); margin-bottom: 1.5rem; }
.icp-tag-dot { width: 6px; height: 6px; border-radius: 50%; }
.hero-sub { font-size: clamp(1rem,2vw,1.125rem); color: var(--text-2); max-width: 480px; line-height: 1.7; margin-bottom: 2.5rem; }
.hero-btns { display: flex; gap: .75rem; flex-wrap: wrap; }

/* ── PAIN GRID ────────────────────────────────── */
.pain-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border-radius: 16px; overflow: hidden; }
@media(max-width:640px) { .pain-grid { grid-template-columns: 1fr; } }
.pain-card { background: var(--surface); padding: 2rem 1.75rem; }
.pain-icon { font-size: 1.5rem; margin-bottom: .75rem; display: block; font-style: normal; }
.pain-card h3 { font-family: var(--fh); font-size: 1rem; font-weight: 700; margin-bottom: .375rem; }
.pain-card p { font-size: .8125rem; color: var(--text-2); line-height: 1.6; }

/* ── FEATURE LIST (numbered) ──────────────────── */
.feat-list { display: flex; flex-direction: column; gap: 0; }
.feat-item { display: flex; align-items: flex-start; gap: 1.25rem; padding: 1.25rem 0; border-bottom: 1px solid var(--border); }
.feat-item:first-child { border-top: 1px solid var(--border); }
.feat-n { font-family: var(--fh); font-size: .75rem; font-weight: 700; color: var(--text-3); min-width: 2rem; padding-top: .125rem; }
.feat-text h4 { font-size: .9375rem; font-weight: 600; margin-bottom: .25rem; }
.feat-text p { font-size: .8125rem; color: var(--text-2); line-height: 1.6; }

/* ── STATS ROW ────────────────────────────────── */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border-radius: 16px; overflow: hidden; }
@media(max-width:640px) { .stats-row { grid-template-columns: repeat(2, 1fr); } }
.stat-cell { background: var(--surface); padding: 2rem 1.5rem; text-align: center; }
.stat-num { font-family: var(--fh); font-weight: 800; font-size: clamp(2rem,4vw,3rem); line-height: 1; letter-spacing: -.03em; margin-bottom: .375rem; }
.stat-label { font-size: .8125rem; color: var(--text-2); }

/* ── SPLIT LAYOUT ─────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
@media(max-width:860px) { .split { grid-template-columns: 1fr; gap: 3rem; } }

/* ── QUOTE BLOCK ──────────────────────────────── */
.quote-block { font-family: var(--fh); font-size: clamp(1.5rem,4vw,2.5rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.1; text-align: center; max-width: 640px; margin: 0 auto 1.5rem; }

/* ── CTA SECTION ──────────────────────────────── */
.cta-sec { padding-block: 8rem; text-align: center; position: relative; overflow: hidden; }
.cta-glow { position: absolute; width: 600px; height: 600px; border-radius: 50%; filter: blur(120px); pointer-events: none; left: 50%; top: 50%; transform: translate(-50%,-50%); opacity: .06; }
.cta-sec > * { position: relative; z-index: 1; }
.cta-btns { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: center; margin-top: 2.5rem; }
.cta-note { margin-top: 1rem; font-size: .75rem; color: var(--text-3); }

/* ── FOOTER ───────────────────────────────────── */
.footer { border-top: 1px solid var(--border); padding-block: 4rem 2rem; }
.f-grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 3rem; margin-bottom: 3rem; }
@media(max-width:640px) { .f-grid { grid-template-columns: 1fr 1fr; } }
.f-brand-n { font-family: var(--fh); font-size: 1rem; font-weight: 800; margin-bottom: .5rem; }
.f-brand p { font-size: .8125rem; color: var(--text-2); max-width: 220px; line-height: 1.6; }
.f-col { display: flex; flex-direction: column; gap: .375rem; }
.f-col h4 { font-size: .625rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-bottom: .25rem; }
.f-col a { font-size: .8125rem; color: var(--text-2); transition: color .15s; }
.f-col a:hover { color: var(--text); }
.f-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 2rem; border-top: 1px solid var(--border); font-size: .75rem; color: var(--text-3); flex-wrap: wrap; gap: 1rem; }

/* ── PROCESS STEPS ────────────────────────────── */
.steps { display: flex; flex-direction: column; gap: 0; counter-reset: step; }
.step { display: grid; grid-template-columns: 60px 1fr; gap: 0; }
@media(max-width:600px) { .step { grid-template-columns: 40px 1fr; } }
.step-line { display: flex; flex-direction: column; align-items: center; }
.step-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; margin-top: 1.25rem; }
.step-stem { flex: 1; width: 1px; background: var(--border); min-height: 1.5rem; }
.step-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1.25rem 1.5rem; margin-bottom: 1px; }
.step-card h4 { font-size: .9375rem; font-weight: 700; margin-bottom: .25rem; }
.step-card p { font-size: .8125rem; color: var(--text-2); line-height: 1.6; }

/* ── COMPARISON TABLE ─────────────────────────── */
.cmp-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.cmp-table th { font-size: .625rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); text-align: left; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); }
.cmp-table td { font-size: .8125rem; padding: .875rem 1.25rem; border-bottom: 1px solid var(--border); color: var(--text-2); }
.cmp-table tr:last-child td { border-bottom: none; }
.cmp-table .hi { color: var(--text); font-weight: 600; }
.cmp-yes { color: var(--green); font-weight: 700; }
.cmp-no  { color: var(--text-3); }

/* ── TESTIMONIAL ──────────────────────────────── */
.testi { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 2rem 2.5rem; }
.testi p { font-size: 1rem; font-style: italic; color: var(--text-2); line-height: 1.7; margin-bottom: 1rem; }
.testi-author { font-size: .8125rem; font-weight: 600; color: var(--text); }
.testi-role { font-size: .75rem; color: var(--text-3); }

/* ── "HOW" SECTION (icon + title + desc) ──────── */
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border-radius: 16px; overflow: hidden; }
@media(max-width:640px) { .how-grid { grid-template-columns: 1fr; } }
.how-card { background: var(--surface); padding: 2.5rem 2rem; text-align: center; }
.how-num { font-family: var(--fh); font-size: 3rem; font-weight: 800; line-height: 1; margin-bottom: .75rem; }
.how-card h3 { font-family: var(--fh); font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.how-card p { font-size: .8125rem; color: var(--text-2); line-height: 1.6; }
