/* =====================================================================
   Throttle v2 — design system. One file the whole site links to.
   Naming: every class is prefixed `t-` so it never collides with old
   inline styles on pages we haven't redesigned yet.
   ===================================================================== */
:root {
  --bg: #0a0b0d;
  --bg-1: #0e1014;
  --bg-2: #14171c;
  --bg-3: #1a1f26;
  --line: #1c1f25;
  --line-2: #262a32;
  --txt: #f4f5f7;
  --txt-2: #a8acb4;
  --txt-3: #5a5e66;
  --acc: #7CF1FF;
  --acc-2: #4cd6e8;
  --acc-ink: #04161a;
  --gold: #ffd166;
  --good: #5dd39e;
  --warn: #ffb84d;
  --bad: #ff6b6b;
  --shadow: 0 12px 40px -16px rgba(0,0,0,.6);
  --shadow-acc: 0 0 0 4px color-mix(in srgb, var(--acc) 18%, transparent);
  --maxw: 1440px;
  --gutter: 24px;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--txt);
  font: 15px/1.6 'Inter', 'Inter Variable', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--acc); color: var(--acc-ink); }
a { color: var(--acc); text-decoration: none; transition: color .12s ease; }
a:hover { color: var(--acc-2); }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 6px; }
::-webkit-scrollbar-track { background: transparent; }

.t-wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */
.t-header {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 28px;
  padding: 14px var(--gutter);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.t-logo {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--txt); font-weight: 700; letter-spacing: -0.01em; font-size: 17px;
}
.t-logo svg { width: 24px; height: 24px; }
.t-nav { display: flex; gap: 28px; flex: 1; }
.t-nav a { color: var(--txt-2); font-weight: 500; font-size: 14px; }
.t-nav a:hover, .t-nav a.active { color: var(--txt); }
.t-actions { display: flex; align-items: center; gap: 10px; }

/* ---------- Buttons ---------- */
.t-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; border-radius: var(--radius-sm);
  padding: 10px 18px;
  font: inherit; font-weight: 600; font-size: 14px;
  background: var(--acc); color: var(--acc-ink);
  cursor: pointer; transition: background .12s ease, transform .12s ease, filter .12s ease;
  white-space: nowrap;
}
.t-btn:hover { background: var(--acc-2); color: var(--acc-ink); }
.t-btn:active { transform: translateY(1px); }
.t-btn--ghost { background: transparent; border: 1px solid var(--line-2); color: var(--txt); }
.t-btn--ghost:hover { background: var(--bg-3); color: var(--txt); }
.t-btn--gold { background: var(--gold); color: #1c1500; }
.t-btn--gold:hover { filter: brightness(1.05); color: #1c1500; }
.t-btn--lg { padding: 14px 24px; font-size: 15px; }
.t-btn--xl { padding: 16px 30px; font-size: 16px; border-radius: 12px; }

/* ---------- Hero ---------- */
.t-hero {
  padding: 120px var(--gutter) 80px;
  text-align: center;
  position: relative; overflow: hidden;
}
.t-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(900px 320px at 50% -10%, color-mix(in srgb, var(--acc) 14%, transparent), transparent 70%);
}
.t-hero > * { position: relative; z-index: 1; }
.t-hero h1 {
  font-size: clamp(40px, 7vw, 64px); line-height: 1.05; letter-spacing: -0.03em;
  margin: 16px 0 16px; font-weight: 700; color: var(--txt);
}
.t-hero h1 .muted { color: var(--txt-2); font-weight: 600; }
.t-hero p {
  color: var(--txt-2); font-size: 17px; line-height: 1.5;
  margin: 0 auto 36px; max-width: 60ch;
}

/* ---------- Search bar (centerpiece) ---------- */
.t-search-form {
  display: flex; align-items: center;
  max-width: 760px; margin: 0 auto;
  background: var(--bg-1); border: 1px solid var(--line-2);
  border-radius: 14px; padding: 6px;
  box-shadow: var(--shadow);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.t-search-form:focus-within {
  border-color: var(--acc-2);
  box-shadow: var(--shadow-acc), var(--shadow);
}
.t-search-form input {
  flex: 1; background: transparent; border: 0; outline: 0;
  padding: 14px 18px; color: var(--txt);
  font-size: 16px; letter-spacing: 0.04em;
  font-family: 'SF Mono', ui-monospace, Menlo, Consolas, monospace;
}
.t-search-form input::placeholder { color: var(--txt-3); letter-spacing: 0; font-family: inherit; }
.t-search-hint {
  margin-top: 14px; font-size: 11px; color: var(--txt-3);
  letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600;
}
/* Decode panel that appears below the search bar after submit */
.t-decode {
  max-width: 760px; margin: 18px auto 0;
  background: var(--bg-1); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
  text-align: left; display: none;
}
.t-decode.is-open { display: block; }
.t-decode .t-decode-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.t-decode .t-decode-kind { color: var(--acc); font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 700; }
.t-decode .t-decode-title { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; margin: 0; }
.t-decode .t-decode-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px 24px; margin-top: 14px; }
.t-decode .t-decode-grid dt { color: var(--txt-3); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 4px; }
.t-decode .t-decode-grid dd { margin: 0; color: var(--txt); font-size: 15px; font-weight: 600; }
.t-decode-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.t-decode-error { color: var(--bad); padding: 8px 0; }

/* ---------- Sections ---------- */
.t-section { padding: 80px var(--gutter); border-top: 1px solid var(--line); }
.t-section .t-eyebrow {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--txt-3); font-weight: 700; margin: 0 0 14px;
}
.t-section h2 {
  font-size: clamp(26px, 3.5vw, 36px); letter-spacing: -0.025em;
  font-weight: 700; margin: 0 0 8px; color: var(--txt);
}
.t-section .t-sub { color: var(--txt-2); margin: 0 0 36px; max-width: 60ch; font-size: 16px; }
.t-section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.t-section-head h2, .t-section-head .t-eyebrow { margin: 0; }
.t-section-head .t-sub { margin: 0; }
.t-section-link { color: var(--acc); font-size: 13px; font-weight: 600; }

/* ---------- Category grid ---------- */
.t-cats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px;
}
.t-cat {
  display: flex; flex-direction: column; gap: 6px;
  background: var(--bg-1); border: 1px solid var(--line);
  border-radius: 12px; padding: 22px 20px;
  color: var(--txt); transition: border-color .15s ease, transform .15s ease;
}
.t-cat:hover { border-color: var(--line-2); transform: translateY(-2px); color: var(--txt); }
.t-cat .t-cat-name { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.t-cat .t-cat-sub { font-size: 12px; color: var(--txt-3); line-height: 1.5; }
.t-cat .t-cat-arrow { font-size: 12px; color: var(--acc); margin-top: auto; padding-top: 14px; font-weight: 600; }
.t-cat:hover .t-cat-arrow { color: var(--acc-2); }

/* ---------- Market data ---------- */
.t-market {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px;
}
.t-stat {
  background: var(--bg-1); border: 1px solid var(--line);
  border-radius: 12px; padding: 22px;
}
.t-stat .t-label { color: var(--txt-3); font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 8px; font-weight: 600; }
.t-stat .t-value { color: var(--txt); font-size: 28px; font-weight: 700; letter-spacing: -0.025em; }
.t-stat .t-delta { color: var(--good); font-size: 13px; margin-top: 4px; font-weight: 500; }
.t-stat .t-delta.down { color: var(--bad); }
.t-stat .t-meta { color: var(--txt-3); font-size: 12px; margin-top: 6px; }

/* ---------- Posts (blog teasers) ---------- */
.t-posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.t-post {
  display: flex; flex-direction: column;
  background: var(--bg-1); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden;
  transition: border-color .15s ease, transform .15s ease;
}
.t-post:hover { border-color: var(--line-2); transform: translateY(-2px); }
.t-post .t-post-thumb { aspect-ratio: 16/9; background: linear-gradient(135deg, color-mix(in srgb, var(--acc) 28%, var(--bg-2)), var(--bg-2)); position: relative; overflow: hidden; }
.t-post .t-post-thumb svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.65; }
.t-post .t-post-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.t-post .t-post-tag { color: var(--acc); font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 700; margin-bottom: 10px; }
.t-post h3 { color: var(--txt); margin: 0 0 8px; font-size: 17px; letter-spacing: -0.01em; line-height: 1.35; font-weight: 700; }
.t-post p { color: var(--txt-2); font-size: 14px; margin: 0 0 14px; flex: 1; line-height: 1.5; }
.t-post .t-post-meta { color: var(--txt-3); font-size: 12px; margin-top: auto; }

/* ---------- Pricing tiers ---------- */
.t-tiers {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px;
}
.t-tier {
  background: var(--bg-1); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
  display: flex; flex-direction: column; gap: 14px;
  position: relative; transition: border-color .15s ease, transform .15s ease;
}
.t-tier:hover { border-color: var(--line-2); }
.t-tier.is-featured { border-color: var(--acc); box-shadow: 0 0 0 1px var(--acc) inset; }
.t-tier.is-featured::before {
  content: "Best value"; position: absolute; top: -10px; left: 22px;
  background: var(--acc); color: var(--acc-ink);
  font-size: 10px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px;
}
.t-tier .t-tier-label { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--txt-3); font-weight: 700; }
.t-tier h3 { font-size: 22px; margin: 0; letter-spacing: -0.02em; font-weight: 700; }
.t-tier .t-tier-price { font-size: 38px; font-weight: 700; letter-spacing: -0.025em; line-height: 1; }
.t-tier .t-period { color: var(--txt-3); font-size: 14px; font-weight: 500; }
.t-tier .t-tier-desc { color: var(--txt-2); font-size: 13px; line-height: 1.5; }
.t-tier ul { list-style: none; padding: 0; margin: 8px 0 0; color: var(--txt-2); font-size: 13px; }
.t-tier ul li { padding: 6px 0; padding-left: 22px; position: relative; line-height: 1.5; }
.t-tier ul li::before { content: "✓"; position: absolute; left: 0; top: 6px; color: var(--acc); font-weight: 700; }

/* ---------- Footer ---------- */
.t-foot { border-top: 1px solid var(--line); padding: 64px var(--gutter) 40px; background: var(--bg); }
.t-foot-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 30px; max-width: var(--maxw); margin: 0 auto; }
.t-foot-col h4 { color: var(--txt-3); font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em; margin: 0 0 14px; font-weight: 700; }
.t-foot-col a { display: block; color: var(--txt-2); font-size: 14px; padding: 4px 0; }
.t-foot-col a:hover { color: var(--txt); }
.t-foot-col p { color: var(--txt-2); font-size: 14px; line-height: 1.5; margin: 0 0 12px; }
.t-foot-bottom { max-width: var(--maxw); margin: 36px auto 0; padding-top: 22px; border-top: 1px solid var(--line); color: var(--txt-3); font-size: 12px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ---------- Pills & misc ---------- */
.t-pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--bg-2); border: 1px solid var(--line-2);
  border-radius: 999px; padding: 5px 12px;
  font-size: 12px; color: var(--txt-2); font-weight: 500;
}
.t-pill .t-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); animation: pulse 1.6s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(93,211,158,.6); }
  70% { box-shadow: 0 0 0 6px rgba(93,211,158,0); }
  100% { box-shadow: 0 0 0 0 rgba(93,211,158,0); }
}

/* ---------- Animations ---------- */
.t-fade-in { opacity: 0; transform: translateY(8px); animation: tFade .55s cubic-bezier(.22,.61,.36,1) forwards; }
.t-fade-in[data-delay="1"] { animation-delay: .08s; }
.t-fade-in[data-delay="2"] { animation-delay: .16s; }
.t-fade-in[data-delay="3"] { animation-delay: .24s; }
.t-fade-in[data-delay="4"] { animation-delay: .32s; }
@keyframes tFade { to { opacity: 1; transform: none; } }

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
  .t-header { gap: 14px; padding: 12px 16px; }
  .t-nav { display: none; }
  .t-hero { padding: 60px var(--gutter) 40px; }
  .t-section { padding: 56px var(--gutter); }
  .t-search-form input { font-size: 15px; padding: 12px 14px; }
  .t-actions .t-btn:first-child { display: none; } /* hide ghost sign-in on small */
}

/* ---------- Article (for individual blog posts) ---------- */
.t-article { max-width: 720px; margin: 80px auto; padding: 0 var(--gutter); color: var(--txt); }
.t-article h1 { font-size: clamp(32px, 5vw, 48px); letter-spacing: -0.025em; line-height: 1.1; margin: 0 0 14px; font-weight: 700; }
.t-article p, .t-article li { color: var(--txt-2); font-size: 16px; line-height: 1.7; }
.t-article p { margin: 0 0 20px; }
.t-article h2 { font-size: 24px; letter-spacing: -0.015em; margin: 40px 0 14px; }
.t-article h3 { font-size: 18px; margin: 30px 0 10px; }
.t-article a { color: var(--acc); }
.t-article-meta { color: var(--txt-3); font-size: 13px; margin: 0 0 36px; display: flex; gap: 14px; }
