/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0e0e0e;
  --surface: #171717;
  --surface-2: #1f1f1f;
  --border: #2a2a2a;
  --fg: #f0ebe3;
  --fg-2: #a09890;
  --accent: #FF4F5E;
  --accent-dim: rgba(255, 79, 94, 0.12);
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== NAV ===== */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 3rem;
  border-bottom: 1px solid var(--border);
}
.nav-brand {
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--fg);
}
.nav-tagline {
  font-size: 0.75rem;
  color: var(--fg-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ===== HERO ===== */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 5rem 3rem 4rem;
  min-height: 90vh;
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(255,79,94,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(255,79,94,0.04) 0%, transparent 60%),
    var(--bg);
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.hero-headline {
  font-family: var(--serif);
  font-size: clamp(3rem, 5.5vw, 5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin-bottom: 1.75rem;
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--fg-2);
  max-width: 44ch;
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 2.5rem;
}
.hero-ctas {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--sans);
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s;
  letter-spacing: 0.01em;
}
.btn-primary:hover {
  background: #e63e4c;
  transform: translateY(-1px);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.875rem 1.25rem;
  background: transparent;
  color: var(--fg-2);
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--sans);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: all 0.2s;
}
.btn-secondary:hover {
  border-color: var(--fg-2);
  color: var(--fg);
}

/* ===== CANVAS MOCKUP ===== */
.canvas-mockup {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.mockup-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-2);
  text-align: center;
}
.mockup-body {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.body-outline {
  position: absolute;
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 90%;
  border: 1.5px dashed rgba(240,235,227,0.15);
  border-radius: 100px 100px 60px 60px;
}
.sticker {
  position: absolute;
  border-radius: 3px;
  background: var(--accent);
  opacity: 0.85;
}
.sticker-1 {
  width: 30%; height: 6%;
  top: 18%; left: 35%;
  transform: rotate(-8deg);
  background: rgba(255,79,94,0.5);
  border: 1px solid var(--accent);
}
.sticker-2 {
  width: 12%; height: 12%;
  top: 30%; right: 22%;
  border-radius: 50%;
  background: rgba(255,79,94,0.25);
  border: 1px solid rgba(255,79,94,0.6);
}
.sticker-3 {
  width: 20%; height: 4%;
  top: 52%; left: 25%;
  transform: rotate(12deg);
  background: rgba(255,79,94,0.4);
  border: 1px solid var(--accent);
}
.placement-line {
  position: absolute;
  border-top: 1px dashed rgba(255,79,94,0.3);
}
.placement-1 { width: 40%; top: 22%; left: 30%; }
.placement-2 { width: 25%; top: 54%; left: 28%; }

.mockup-tags {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.tag {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(255,79,94,0.3);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
}

/* ===== FRAME SECTION ===== */
.frame-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 5rem 3rem;
}
.frame-content { max-width: 1100px; margin: 0 auto; }
.frame-header { text-align: center; margin-bottom: 4rem; }
.section-label {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1rem;
}
.frame-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--fg);
}
.frame-grid {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 3.5rem;
}
.frame-step {
  flex: 1;
  padding: 2rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
}
.step-number {
  font-family: var(--serif);
  font-size: 3rem;
  font-style: italic;
  color: var(--accent-dim);
  line-height: 1;
  margin-bottom: 1.25rem;
}
.step-icon {
  color: var(--accent);
  margin-bottom: 1rem;
}
.step-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--fg);
}
.step-desc {
  font-size: 0.875rem;
  color: var(--fg-2);
  line-height: 1.65;
}
.frame-connector {
  width: 48px;
  min-width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.frame-connector::after {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  background: var(--border);
}
.frame-stats {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
}
.stat { text-align: center; }
.stat-value {
  display: block;
  font-family: var(--serif);
  font-size: 2.25rem;
  font-style: italic;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--fg-2);
  text-transform: uppercase;
}
.stat-divider {
  width: 1px;
  height: 3rem;
  background: var(--border);
}

/* ===== LOOP SECTION ===== */
.loop-section {
  padding: 5rem 3rem;
  background: var(--bg);
}
.loop-content { max-width: 900px; margin: 0 auto; }
.loop-header { margin-bottom: 3rem; }
.loop-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--fg);
  margin-bottom: 1.25rem;
}
.loop-desc {
  font-size: 1rem;
  color: var(--fg-2);
  line-height: 1.7;
  max-width: 60ch;
}

/* Voting Widget */
.voting-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 3rem;
}
.widget-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.widget-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid rgba(255,79,94,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--accent);
}
.widget-name { font-size: 0.875rem; font-weight: 500; }
.widget-time { font-size: 0.75rem; color: var(--fg-2); margin-left: auto; }
.widget-question { padding: 1.5rem; }
.widget-prompt {
  font-size: 0.9rem;
  color: var(--fg-2);
  margin-bottom: 1rem;
}
.widget-options {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.vote-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--fg-2);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--sans);
  transition: all 0.2s;
}
.vote-btn:hover { border-color: var(--accent); color: var(--accent); }
.vote-yes:hover { background: rgba(255,79,94,0.1); }
.vote-no:hover { background: rgba(255,79,94,0.1); }
.vote-count {
  display: block;
  font-size: 0.75rem;
  color: var(--fg-2);
  margin-top: 0.75rem;
}
.vote-bar {
  display: flex;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  background: var(--surface-2);
  margin-bottom: 0.5rem;
}
.vote-yes-fill {
  width: 67%;
  background: var(--accent);
}
.vote-no-fill {
  width: 33%;
  background: rgba(255,79,94,0.35);
}
.widget-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: var(--accent-dim);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  cursor: pointer;
}

/* Loop Rules */
.loop-rules {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.rule {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}
.rule-num {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-style: italic;
  color: rgba(255,79,94,0.4);
  min-width: 2.5rem;
  line-height: 1.4;
}
.rule p {
  font-size: 0.9rem;
  color: var(--fg-2);
  line-height: 1.65;
  padding-top: 0.15rem;
}

/* ===== MANIFESTO ===== */
.manifesto-section {
  padding: 6rem 3rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.manifesto-content { max-width: 720px; margin: 0 auto; }
.manifesto-statement {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.3;
  color: var(--fg);
  margin-bottom: 2.5rem;
}
.manifesto-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.manifesto-body p {
  font-size: 0.95rem;
  color: var(--fg-2);
  line-height: 1.75;
}
.manifesto-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  background: var(--accent-dim);
  border: 1px solid rgba(255,79,94,0.25);
  border-radius: 4px;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.manifesto-cta-text {
  font-size: 0.95rem;
  color: var(--fg);
  font-weight: 500;
  max-width: 36ch;
  line-height: 1.5;
}
.manifesto-signature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.signature-dot { color: var(--accent); }

/* ===== FOOTER ===== */
.footer {
  padding: 2.5rem 3rem;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer-brand {
  font-family: var(--serif);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--fg);
}
.footer-tagline {
  font-size: 0.75rem;
  color: var(--fg-2);
  margin-bottom: 1rem;
}
.footer-copy {
  font-size: 0.7rem;
  color: rgba(240,235,227,0.25);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav { padding: 1rem 1.5rem; }
  .hero {
    grid-template-columns: 1fr;
    padding: 3rem 1.5rem 2rem;
    min-height: auto;
    gap: 2.5rem;
  }
  .hero-headline { font-size: 2.5rem; }
  .mockup-body { max-height: 340px; }
  .frame-section, .loop-section { padding: 3rem 1.5rem; }
  .frame-grid {
    flex-direction: column;
    gap: 1rem;
  }
  .frame-connector { display: none; }
  .frame-stats {
    flex-direction: column;
    gap: 1.5rem;
  }
  .stat-divider { width: 60px; height: 1px; }
  .widget-options { flex-direction: column; }
  .manifesto-section { padding: 4rem 1.5rem; }
  .footer { padding: 2rem 1.5rem; }
}