/* ─────────────────────────────────────────
   CANARY — Theme CSS
   Dark editorial, amber sentinel accent
   ───────────────────────────────────────── */

/* Fonts */
:root {
  --font-head: 'Syne', sans-serif;
  --font-body: 'Manrope', sans-serif;

  /* Palette */
  --bg:        #07090C;
  --surface:   #0E1318;
  --card:      #141A24;
  --card-alt:  #111722;
  --border:    rgba(255,255,255,0.07);
  --border-hi: rgba(255,255,255,0.13);

  --amber:     #F5A623;
  --amber-dim: rgba(245,166,35,0.12);
  --amber-glow:rgba(245,166,35,0.06);

  --white:     #FFFFFF;
  --off-white: rgba(255,255,255,0.65);
  --dim:       rgba(255,255,255,0.38);
  --faint:     rgba(255,255,255,0.15);
}

/* ── Base ── */
* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--card) var(--bg);
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--card); border-radius: 3px; }

::selection { background: rgba(245,166,35,0.25); color: var(--white); }

body {
  background: var(--bg);
  color: var(--off-white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--white);
}

p { color: var(--off-white); }

.section-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 24px;
}

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(7,9,12,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.navbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 18px;
  color: var(--white);
  letter-spacing: -0.02em;
}

.navbar-tagline {
  font-size: 12px;
  color: var(--dim);
  letter-spacing: 0.04em;
}

/* ── Hero ── */
.hero {
  padding: 140px 40px 100px;
  max-width: 1280px;
  margin: 0 auto;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  min-height: 480px;
}

.hero-left { display: flex; flex-direction: column; gap: 0; }

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 28px;
}

.hero-headline {
  font-size: clamp(42px, 5.5vw, 74px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.04em;
  color: var(--white);
  margin-bottom: 28px;
}

.hero-sub {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
  max-width: 480px;
}

.hero-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
}

.hero-canary-glyph {
  width: 220px;
  height: 220px;
  position: relative;
}

.hero-canary-glyph svg {
  width: 100%;
  height: 100%;
  animation: pulse-canary 4s ease-in-out infinite;
}

@keyframes pulse-canary {
  0%, 100% { filter: drop-shadow(0 0 18px rgba(245,166,35,0.25)); }
  50% { filter: drop-shadow(0 0 40px rgba(245,166,35,0.5)); }
}

.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  background: var(--card);
}

.hero-stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 18px 24px;
}

.hero-stat-value {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  color: var(--amber);
  letter-spacing: -0.03em;
  min-width: 80px;
}

.hero-stat-label {
  font-size: 13px;
  color: var(--dim);
  text-align: right;
}

.hero-stat-divider {
  height: 1px;
  background: var(--border);
}

.hero-scroll-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 72px;
  font-size: 12px;
  color: var(--dim);
  letter-spacing: 0.05em;
}

/* ── Problem ── */
.problem {
  padding: 100px 40px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.problem-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.problem-header { margin-bottom: 60px; }

.problem-headline {
  font-size: clamp(30px, 3.5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 780px;
}

.problem-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.problem-desc {
  font-size: 18px;
  line-height: 1.75;
  color: rgba(255,255,255,0.5);
  max-width: 440px;
}

.problem-stats { display: flex; flex-direction: column; gap: 40px; }

.problem-stat {
  border-left: 2px solid var(--amber);
  padding-left: 24px;
}

.problem-stat-num {
  display: block;
  font-family: var(--font-head);
  font-size: 48px;
  font-weight: 800;
  color: var(--amber);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 12px;
}

.problem-stat-desc {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255,255,255,0.48);
}

/* ── Loop ── */
.loop {
  padding: 100px 40px;
  border-top: 1px solid var(--border);
}

.loop-inner { max-width: 1280px; margin: 0 auto; }

.loop-header { margin-bottom: 72px; }

.loop-headline {
  font-size: clamp(30px, 3.5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 640px;
}

.loop-steps {
  display: grid;
  grid-template-columns: 1fr 48px 1fr 48px 1fr 48px 1fr;
  gap: 0;
  align-items: start;
}

.loop-step { padding: 0; }

.loop-step-num {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.loop-step-title {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.loop-step-desc {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255,255,255,0.48);
}

.loop-step-connector {
  width: 1px;
  height: 80px;
  background: var(--border);
  margin: 40px auto 0;
  align-self: start;
}

/* ── Manifesto ── */
.manifesto {
  padding: 100px 40px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.manifesto-inner { max-width: 1280px; margin: 0 auto; }

.manifesto-quote { max-width: 800px; }

.manifesto-mark {
  font-family: var(--font-head);
  font-size: 120px;
  font-weight: 800;
  color: var(--amber);
  opacity: 0.2;
  line-height: 0.5;
  margin-bottom: 32px;
  display: block;
}

blockquote {
  font-family: var(--font-head);
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.025em;
  color: var(--white);
  margin-bottom: 32px;
}

.manifesto-body {
  font-size: 17px;
  line-height: 1.75;
  color: rgba(255,255,255,0.5);
  max-width: 640px;
}

.manifesto-divider {
  width: 64px;
  height: 1px;
  background: var(--amber);
  opacity: 0.4;
  margin: 64px 0;
}

.manifesto-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.manifesto-value {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.manifesto-value-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--amber-dim);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.manifesto-value-title {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.manifesto-value-desc {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.45);
}

/* ── Closing ── */
.closing {
  padding: 120px 40px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.closing-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.closing-glyph {
  width: 100px;
  height: 100px;
  margin-bottom: 48px;
}

.closing-glyph svg {
  animation: pulse-canary 4s ease-in-out infinite;
}

.closing-headline {
  font-size: clamp(32px, 4vw, 58px);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
  color: var(--white);
}

.closing-sub {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
  max-width: 580px;
  margin-bottom: 48px;
}

.closing-tagline {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  opacity: 0.7;
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.footer-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 15px;
  color: var(--white);
}

.footer-desc {
  font-size: 13px;
  color: var(--dim);
}

.footer-meta {
  font-size: 12px;
  color: var(--dim);
  letter-spacing: 0.04em;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .hero-right { display: none; }
  .problem-body { grid-template-columns: 1fr; gap: 48px; }
  .manifesto-values { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero { padding: 120px 24px 72px; }
  .hero-headline { font-size: 38px; }
  .problem, .loop, .manifesto, .closing { padding: 72px 24px; }
  .navbar-inner { padding: 0 24px; }
  .navbar-tagline { display: none; }
  .loop-steps { grid-template-columns: 1fr; gap: 48px; }
  .loop-step-connector { display: none; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
}

@media (max-width: 480px) {
  .hero { padding: 100px 20px 60px; }
  .hero-headline { font-size: 32px; }
  .problem, .loop, .manifesto, .closing { padding: 56px 20px; }
  .problem-stat-num { font-size: 36px; }
}