/* ─────────────────────────────────────────
   TAGFLOW — Theme CSS
   Dark editorial · Amber accent · Syne + DM Sans
   ───────────────────────────────────────── */

:root {
  --bg: #090910;
  --bg-2: #0e0e18;
  --fg: #ede8df;
  --fg-muted: #8a8478;
  --accent: #E8A428;
  --accent-dim: rgba(232, 164, 40, 0.12);
  --accent-glow: rgba(232, 164, 40, 0.06);
  --border: rgba(237, 232, 223, 0.08);
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Noise overlay */
.noise-overlay {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 999;
  opacity: 0.4;
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 2rem 6rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.constellation {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0; left: 0;
}

.constellation svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Amber glow bottom */
.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 40%;
  background: radial-gradient(ellipse, rgba(232, 164, 40, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.hero-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(232, 164, 40, 0.3);
  border-radius: 100px;
  background: var(--accent-dim);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 8vw, 6.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 2rem;
  background: linear-gradient(180deg, #ffffff 0%, #c8c4bc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--fg-muted);
  max-width: 580px;
  margin: 0 auto 3.5rem;
  line-height: 1.7;
  font-weight: 300;
  font-style: italic;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(12px);
  overflow: hidden;
  max-width: 540px;
  margin: 0 auto;
}

.stat {
  flex: 1;
  padding: 1.4rem 1rem;
  text-align: center;
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.2rem;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 400;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}

/* ── FEATURES ── */
.features {
  padding: 8rem 2rem;
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, rgba(232, 164, 40, 0.3));
}

.features-header {
  text-align: center;
  margin-bottom: 5rem;
}

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--fg);
  max-width: 500px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  max-width: 960px;
  margin: 0 auto;
}

.feature-card {
  background: var(--bg-2);
  padding: 3rem 2.5rem;
  position: relative;
  transition: background 0.3s ease;
}

.feature-card:hover {
  background: #111120;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.feature-card:hover::before {
  opacity: 0.4;
}

.feature-icon {
  margin-bottom: 1.5rem;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.8rem;
  letter-spacing: -0.01em;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.feature-meta {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.7;
}

/* ── MANIFESTO ── */
.manifesto {
  padding: 8rem 2rem;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%);
  position: relative;
}

.manifesto::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
}

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

.manifesto-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.manifesto-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 2.5rem;
  max-width: 620px;
}

.manifesto-body {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.manifesto-body p {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.8;
  font-weight: 300;
}

.manifesto-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.m-stat {
  padding: 2rem 1.5rem;
  border-right: 1px solid var(--border);
}

.m-stat:last-child {
  border-right: none;
}

.m-stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.6rem;
}

.m-stat-text {
  font-size: 0.78rem;
  color: var(--fg-muted);
  line-height: 1.5;
}

/* ── CLOSE ── */
.close-section {
  padding: 10rem 2rem;
  text-align: center;
  position: relative;
  background: radial-gradient(ellipse at center top, rgba(232, 164, 40, 0.06) 0%, transparent 60%), var(--bg);
}

.close-inner {
  max-width: 680px;
  margin: 0 auto;
}

.close-headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--fg);
  margin-bottom: 1.5rem;
}

.close-sub {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 3rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
  font-style: italic;
}

.close-tagline {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.6;
}

/* ── FOOTER ── */
.site-footer {
  padding: 3rem 2rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--fg);
}

.footer-sep {
  color: var(--accent);
  opacity: 0.5;
}

.footer-desc {
  font-size: 0.78rem;
  color: var(--fg-muted);
}

.footer-meta {
  font-size: 0.78rem;
  color: var(--fg-muted);
  opacity: 0.5;
  font-style: italic;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero { padding: 6rem 1.5rem 4rem; }
  .hero-stats { flex-direction: column; gap: 0; }
  .stat-divider { width: 80%; height: 1px; }
  .features { padding: 5rem 1.5rem; }
  .features-grid { grid-template-columns: 1fr; }
  .manifesto { padding: 5rem 1.5rem; }
  .manifesto-stats { grid-template-columns: 1fr; }
  .m-stat { border-right: none; border-bottom: 1px solid var(--border); }
  .m-stat:last-child { border-bottom: none; }
  .close-section { padding: 6rem 1.5rem; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 2.8rem; }
  .manifesto-headline { font-size: 1.8rem; }
  .close-headline { font-size: 2.2rem; }
  .m-stat-number { font-size: 2rem; }
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(232, 164, 40, 0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(232, 164, 40, 0.5); }