@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* ── Tokens ── */
:root {
  --bg:           #080A0D;
  --bg-2:         #0C0F14;
  --bg-3:         #111620;
  --surface:      rgba(255,255,255,0.03);
  --surface-2:    rgba(255,255,255,0.055);
  --surface-3:    rgba(255,255,255,0.08);

  --border:       rgba(255,255,255,0.07);
  --border-2:     rgba(255,255,255,0.12);
  --border-accent:rgba(242,169,59,0.35);

  --text:         #EDF0F5;
  --text-2:       #8A94A8;
  --text-3:       #4A5568;
  --text-faint:   #2D3748;

  --amber:        #F2A93B;
  --amber-dim:    rgba(242,169,59,0.15);
  --amber-glow:   rgba(242,169,59,0.08);
  --teal:         #4ECDC4;
  --teal-dim:     rgba(78,205,196,0.12);
  --red-soft:     #FF6B6B;
  --green-soft:   #51CF66;

  --font-display: 'Syne', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --radius:       12px;
  --radius-sm:    7px;
  --radius-lg:    20px;
  --max-width:    1120px;

  --ease-out:     cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out:  cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

/* ── Ambient Background ── */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  z-index: 0;
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
}
.bg-orb-1 {
  width: 600px; height: 600px;
  top: -200px; left: -150px;
  background: radial-gradient(circle, rgba(242,169,59,0.06) 0%, transparent 70%);
  animation: orb-drift 18s ease-in-out infinite alternate;
}
.bg-orb-2 {
  width: 500px; height: 500px;
  bottom: -100px; right: -100px;
  background: radial-gradient(circle, rgba(78,205,196,0.05) 0%, transparent 70%);
  animation: orb-drift 14s ease-in-out infinite alternate-reverse;
}
@keyframes orb-drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(40px, 30px) scale(1.08); }
}

/* ensure content is above bg layers */
header, main, footer { position: relative; z-index: 1; }

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(8,10,13,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-pulse {
  position: relative;
  width: 20px; height: 20px;
  flex-shrink: 0;
}
.brand-dot {
  position: absolute;
  inset: 50%; transform: translate(-50%, -50%);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--amber);
}
.brand-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--amber);
  opacity: 0.5;
  animation: ring-pulse 2.4s ease-out infinite;
}
@keyframes ring-pulse {
  0%   { transform: scale(0.5); opacity: 0.8; }
  100% { transform: scale(1.8); opacity: 0; }
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--text);
}
.brand-accent { color: var(--amber); }

.header-nav {
  display: flex;
  gap: 0;
}
.header-nav a {
  text-decoration: none;
  color: var(--text-2);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
  letter-spacing: 0.01em;
}
.header-nav a:hover { color: var(--text); background: var(--surface-2); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-2);
  border-radius: 2px;
  transition: background 0.15s;
}
.nav-toggle:hover span { background: var(--text); }

/* ── Header controls: language + translate ── */
.header-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 2px;
  gap: 2px;
}
.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  padding: 5px 11px;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.lang-btn:hover { color: var(--text-2); }
.lang-btn.active { background: var(--amber-dim); color: var(--amber); }

.translate-wrap { position: relative; }
.translate-btn {
  background: var(--surface);
  border: 1px solid var(--border-2);
  color: var(--text-2);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 15px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.translate-btn:hover { color: var(--text); border-color: var(--border-accent); background: var(--amber-glow); }

.google-translate-box {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px;
  z-index: 20;
  min-width: 180px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.google-translate-box.open { display: block; }

/* Google's translate widget markup is mostly locked down (iframe-based
   dropdown) — this just keeps its trigger from clashing with the dark
   theme rather than fully restyling it. */
.goog-te-gadget { font-family: var(--font-body) !important; color: var(--text-2) !important; }
.goog-te-gadget .goog-te-combo {
  background: var(--bg-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px;
}
body > .skiptranslate { display: none !important; }

/* ── Hero ── */
.hero {
  padding: 80px 0 60px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--amber);
  margin-bottom: 20px;
}
.eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 10px var(--amber);
  animation: blink 1.8s step-end infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--text);
}
.hero-title em {
  font-style: normal;
  color: var(--amber);
  position: relative;
}
.hero-title em::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: linear-gradient(90deg, var(--amber), transparent);
}

.hero-sub {
  font-size: 1.02rem;
  color: var(--text-2);
  max-width: 480px;
  margin-bottom: 28px;
  line-height: 1.7;
}
.hero-sub strong { color: var(--text); font-weight: 600; }

.hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.meta-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: var(--text-3);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 4px;
}
.meta-value {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-3);
}

.hero-trend {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-3);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-trend.trend-up   { color: var(--green-soft); }
.hero-trend.trend-down { color: var(--red-soft); }
.hero-trend:empty { display: none; }

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  background: var(--amber);
  color: #0a0a0a;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  transition: background 0.15s, transform 0.1s, box-shadow 0.2s;
  box-shadow: 0 0 20px rgba(242,169,59,0.25);
  letter-spacing: 0.01em;
}
.btn-primary:hover {
  background: #e09520;
  box-shadow: 0 0 30px rgba(242,169,59,0.4);
  transform: translateY(-1px);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  background: var(--surface);
  color: var(--text-2);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-2);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.btn-ghost:hover { color: var(--text); border-color: var(--border-accent); background: var(--amber-glow); }

/* ── Signal Display (hero right) ── */
.signal-display {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(242,169,59,0.05), 0 32px 64px rgba(0,0,0,0.4);
}

.signal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.signal-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: var(--text-3);
}
.signal-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: var(--green-soft);
}
.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green-soft);
  box-shadow: 0 0 8px var(--green-soft);
  animation: blink 2s ease-in-out infinite;
}

.waveform {
  width: 100%;
  height: 140px;
  display: block;
  padding: 8px 0;
}
.wave-bg {
  fill: none;
  stroke: rgba(242,169,59,0.12);
  stroke-width: 1.5;
}
.wave-main {
  fill: none;
  stroke: url(#waveGrad);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  animation: draw-wave 2.8s var(--ease-out) forwards;
}
@keyframes draw-wave { to { stroke-dashoffset: 0; } }

.pulse-dot {
  fill: var(--teal);
  animation: pulse-beat 2.6s ease-in-out infinite;
}
@keyframes pulse-beat {
  0%, 100% { opacity: 0.5; r: 4; }
  50% { opacity: 1; r: 6; }
}

.signal-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
}
.signal-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 20px;
  border-right: 1px solid var(--border);
}
.signal-stat:last-child { border-right: none; }
.ss-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: var(--text-3);
}
.ss-val {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--amber);
}

/* ── Sections ── */
.section {
  padding: 72px 0;
  border-top: 1px solid var(--border);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 36px;
  gap: 20px;
  flex-wrap: wrap;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--text-3);
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: -0.01em;
  color: var(--text);
}

.section-desc {
  color: var(--text-2);
  font-size: 0.9rem;
  max-width: 380px;
  text-align: right;
}

/* ── Digest Cards ── */
.digest-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.card-skeleton {
  height: 200px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  animation: shimmer 1.6s ease-in-out infinite;
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%);
  background-size: 200% 100%;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease-out), box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}
.card:hover {
  border-color: var(--border-2);
  background: var(--surface-2);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.card-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.tag-live    { background: var(--amber-dim); color: var(--amber); border: 1px solid rgba(242,169,59,0.2); }
.tag-quiet   { background: rgba(255,255,255,0.04); color: var(--text-3); border: 1px solid var(--border); }
.tag-social  { background: var(--teal-dim); color: var(--teal); border: 1px solid rgba(78,205,196,0.2); }
.tag-live::before { content: '●'; font-size: 0.5rem; color: var(--amber); animation: blink 1.5s step-end infinite; }

.card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.card p {
  color: var(--text-2);
  font-size: 0.9rem;
  margin-bottom: 4px;
  line-height: 1.6;
}

.mini-list {
  list-style: none;
  margin: 14px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mini-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mini-list li::before {
  content: '→';
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  flex-shrink: 0;
}
.mini-list code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text);
  background: var(--bg-3);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.post-list {
  list-style: none;
  margin: 14px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.post-list li {
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.post-list li:first-child { border-top: none; padding-top: 0; }
.post-list a {
  text-decoration: none;
  font-size: 0.9rem;
  display: block;
  color: var(--text-2);
  margin-bottom: 4px;
  transition: color 0.15s;
}
.post-list a:hover { color: var(--amber); }
.post-date {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-3);
}

.repo-list {
  list-style: none;
  margin: 14px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.repo-list li {
  border-top: 1px solid var(--border);
  padding-top: 10px;
}
.repo-list li:first-child { border-top: none; padding-top: 0; }
.repo-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.repo-list a {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-decoration: none;
  color: var(--text-2);
  transition: color 0.15s;
}
.repo-list a:hover { color: var(--teal); }
.repo-pushed {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-3);
  flex-shrink: 0;
}
.repo-desc {
  margin: 5px 0 0;
  font-size: 0.8rem;
  color: var(--text-3);
  line-height: 1.5;
  font-style: italic;
}
.repo-message {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.55;
}
.repo-message-empty {
  color: var(--text-3);
  font-style: italic;
}
.repo-type {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--amber);
  white-space: nowrap;
}
.repo-scope {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-3);
}

/* ── Ecosystem List ── */
.ecosystem-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ecosystem-list li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 20px;
  align-items: start;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  transition: background 0.15s;
}
.ecosystem-list li:first-child { border-top: none; }
.ecosystem-list li:hover { }

.eco-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--teal);
  background: var(--teal-dim);
  padding: 5px 10px;
  border-radius: 100px;
  text-align: center;
  border: 1px solid rgba(78,205,196,0.15);
  width: fit-content;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 130px;
}

.eco-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.eco-body a {
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--text-2);
  line-height: 1.5;
  transition: color 0.15s;
}
.eco-body a:hover { color: var(--text); }
.eco-date {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-3);
}

.list-placeholder { color: var(--text-3); font-size: 0.9rem; padding: 16px 0; }

/* ── Explainer ── */
.explainer-section { background: var(--bg-2); }

.explainer-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.explainer-text-col { display: flex; flex-direction: column; gap: 16px; }
.explainer-text { color: var(--text-2); font-size: 1rem; line-height: 1.75; }

.explainer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.etag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--text-3);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 4px;
}

.code-compare-col { }
.code-compare {
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.code-block {
  flex: 1;
  background: var(--bg-3);
  padding: 20px;
}
.code-block-accent {
  background: rgba(78,205,196,0.04);
  border-left: 1px solid rgba(78,205,196,0.2);
}

.code-header {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 16px;
}
.code-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.code-dot.red    { background: #FF6058; }
.code-dot.yellow { background: #FEBC2E; }
.code-dot.green  { background: #28C840; }
.code-filename {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-3);
  margin-left: 6px;
  letter-spacing: 0.04em;
}

.code-block pre { margin: 0 0 14px; overflow-x: auto; }
.code-block code {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text);
}
.tok-kw  { color: var(--teal); }
.tok-pub { color: var(--text-3); }
.tok-priv { color: var(--teal); font-weight: 700; }

.code-note-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
}
.code-note-icon { font-size: 0.85rem; }
.code-note { font-size: 0.78rem; color: var(--text-3); }
.code-block-accent .code-note { color: rgba(78,205,196,0.6); }

.code-arrow-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 8px;
  background: var(--bg);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
.code-arrow { color: var(--text-3); }
.code-arrow-label {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  color: var(--amber);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

/* ── Archive ── */
.archive-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}
.archive-list li {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}
.archive-list li:first-child { border-top: none; }
.archive-week {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--amber);
  padding-top: 2px;
}
.archive-summary { color: var(--text-2); line-height: 1.6; }

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 60px;
  background: var(--bg-2);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-left { display: flex; flex-direction: column; gap: 10px; max-width: 400px; }
.footer-brand { pointer-events: none; }
.footer-disclaimer { font-size: 0.82rem; color: var(--text-3); line-height: 1.6; }
.footer-credit { font-size: 0.78rem; color: var(--text-faint); }

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}
.footer-links a {
  text-decoration: none;
  font-size: 0.85rem;
  color: var(--text-3);
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--amber); }

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  .wave-main, .brand-ring, .bg-orb-1, .bg-orb-2 { animation: none; }
  .wave-main { stroke-dashoffset: 0; }
  .brand-ring { opacity: 0.3; }
  .card { transition: none; }
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .digest-grid { grid-template-columns: 1fr; }
  .explainer-grid { grid-template-columns: 1fr; gap: 32px; }
  .section-desc { text-align: left; }
}

@media (max-width: 700px) {
  .header-nav { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: rgba(8,10,13,0.98); border-bottom: 1px solid var(--border); padding: 16px 28px; gap: 4px; }
  .header-nav.nav-open { display: flex; }
  .nav-toggle { display: flex; }
  .site-header { position: relative; }
  .header-controls { gap: 8px; }
  .translate-btn { padding: 6px 10px; font-size: 0.75rem; }
  .lang-btn { padding: 5px 9px; }

  .hero { padding: 48px 0 40px; }
  .hero-title { font-size: 2.4rem; }

  .section { padding: 48px 0; }
  .section-header { flex-direction: column; align-items: flex-start; }

  .ecosystem-list li { grid-template-columns: 1fr; }
  .eco-tag { max-width: none; }

  .code-compare { flex-direction: column; }
  .code-arrow-wrap { flex-direction: row; padding: 10px 16px; writing-mode: horizontal-tb; border: none; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .code-arrow-label { writing-mode: horizontal-tb; transform: none; }
  .code-block-accent { border-left: none; border-top: 1px solid rgba(78,205,196,0.2); }

  .archive-list li { grid-template-columns: 1fr; gap: 4px; }
  .footer-inner { flex-direction: column; }
  .footer-links { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
  .hero-cta { flex-direction: column; }
  .btn-primary, .btn-ghost { text-align: center; justify-content: center; }
}
