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

:root {
  --bg: #070B11;
  --bg-2: #0D1520;
  --amber: #F5A623;
  --amber-dim: rgba(245, 166, 35, 0.15);
  --amber-glow: rgba(245, 166, 35, 0.08);
  --text: #E8E6E1;
  --text-muted: #6B7A8D;
  --text-dim: #3D4F63;
  --border: rgba(245, 166, 35, 0.12);
  --font-display: 'Syne', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* === NAVIGATION === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  background: linear-gradient(to bottom, var(--bg) 60%, transparent);
}

.nav-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
}

.nav-tagline {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--text);
}

.nav-cta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 18px;
  border: 1px solid var(--amber);
  color: var(--amber);
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-cta:hover {
  background: var(--amber);
  color: var(--bg);
}

/* === MANIFESTO === */
.manifesto {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 48px 80px;
  position: relative;
}

.manifesto::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse 60% 50% at 70% 50%, var(--amber-glow) 0%, transparent 70%);
  pointer-events: none;
}

.manifesto-inner {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  position: relative;
}

/* === SIGNAL FIELD (Abstract visual) === */
.signal-field {
  position: relative;
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.signal-node {
  position: absolute;
  border-radius: 50%;
  background: var(--amber);
  opacity: 0.6;
  animation: float 6s ease-in-out infinite;
}

.signal-node--1 { width: 8px; height: 8px; top: 20%; left: 15%; animation-delay: 0s; }
.signal-node--2 { width: 5px; height: 5px; top: 35%; right: 20%; animation-delay: 1s; opacity: 0.4; }
.signal-node--3 { width: 12px; height: 12px; bottom: 30%; left: 25%; animation-delay: 2s; }
.signal-node--4 { width: 6px; height: 6px; bottom: 20%; right: 15%; animation-delay: 0.5s; opacity: 0.5; }

.signal-line {
  position: absolute;
  background: linear-gradient(to right, var(--amber), transparent);
  height: 1px;
  opacity: 0.2;
  transform-origin: left center;
}

.signal-line--1 { width: 80px; top: 25%; left: 22%; transform: rotate(35deg); }
.signal-line--2 { width: 60px; bottom: 28%; right: 18%; transform: rotate(-20deg); transform-origin: right center; opacity: 0.15; }
.signal-line--3 { width: 100px; top: 45%; left: 10%; transform: rotate(5deg); opacity: 0.1; }

.envelope-icon {
  position: relative;
  z-index: 2;
  animation: pulse-glow 4s ease-in-out infinite;
}

.pulse-ring {
  position: absolute;
  width: 100px;
  height: 100px;
  border: 1px solid var(--amber);
  border-radius: 50%;
  opacity: 0.2;
  animation: ring-expand 4s ease-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

@keyframes ring-expand {
  0% { transform: scale(0.5); opacity: 0.3; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* === MANIFESTO CONTENT === */
.manifesto-content {
  max-width: 680px;
}

.manifesto-headline {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 28px;
}

.manifesto-sub {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 520px;
}

/* === SIGNUP FORM === */
.signup-form {
  margin-top: 36px;
  max-width: 480px;
}

.signup-input-wrap {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-2);
  transition: border-color 0.2s ease;
}

.signup-input-wrap:focus-within {
  border-color: var(--amber);
}

.signup-input {
  flex: 1;
  padding: 14px 18px;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text);
  min-width: 0;
}

.signup-input::placeholder {
  color: var(--text-dim);
}

.signup-btn {
  padding: 14px 28px;
  background: var(--amber);
  border: none;
  color: var(--bg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.signup-btn:hover {
  background: #e6981a;
}

.signup-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.signup-msg {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  margin-top: 12px;
  min-height: 1.4em;
  line-height: 1.4;
}

.signup-msg--success {
  color: #4ade80;
}

.signup-msg--error {
  color: #f87171;
}

.signup-confirmed {
  margin-top: 36px;
  max-width: 480px;
}

.signup-confirmed-msg {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: #4ade80;
  line-height: 1.5;
}

/* === SHARED SECTION STYLES === */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
}

.section-heading {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 56px;
  max-width: 560px;
}

/* === CORE LOOP === */
.core-loop {
  padding: 100px 48px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.loop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  max-width: 1200px;
  margin: 0 auto;
}

.loop-item {
  padding: 40px 32px;
  background: var(--bg);
  border: 1px solid var(--border);
  position: relative;
  transition: border-color 0.3s ease;
}

.loop-item:hover {
  border-color: rgba(245, 166, 35, 0.4);
}

.loop-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.loop-item:hover::before {
  transform: scaleX(1);
}

.loop-icon {
  margin-bottom: 20px;
  opacity: 0.9;
}

.loop-item h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.loop-item p {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* === HOW IT WORKS === */
.how-it-works {
  padding: 100px 48px;
}

.steps {
  display: flex;
  align-items: flex-start;
  max-width: 900px;
  margin: 0 auto;
  gap: 0;
}

.step {
  flex: 1;
  padding: 0 40px 0 0;
}

.step:first-child {
  padding-left: 0;
}

.step-number {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--amber);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.step-content h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.step-content p {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.step-connector {
  width: 40px;
  height: 1px;
  background: var(--border);
  flex-shrink: 0;
  align-self: 60px;
  margin: 0 16px;
}

/* === CASE STUDY === */
.case-study {
  padding: 100px 48px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.case-study-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.case-study-headline {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--amber);
  line-height: 1.2;
  margin-bottom: 40px;
}

.case-study-para {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 24px;
}

.case-study-para:last-child {
  margin-bottom: 0;
}

/* === VISION === */
.vision {
  padding: 100px 48px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}

.vision-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.vision-statement {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  font-style: normal;
  margin-bottom: 28px;
}

.vision-sub {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 64px;
}

.vision-metrics {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.metric {
  text-align: center;
  padding: 0 48px;
}

.metric-value {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--amber);
  line-height: 1;
  margin-bottom: 8px;
}

.metric-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.metric-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
}

/* === PRICING === */
.pricing {
  padding: 100px 48px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  max-width: 1200px;
  margin: 0 auto;
}

.pricing-card {
  padding: 48px 40px;
  background: var(--bg);
  border: 1px solid var(--border);
  position: relative;
  transition: border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  border-color: rgba(245, 166, 35, 0.4);
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.pricing-card:hover::before {
  transform: scaleX(1);
}

.pricing-card--featured::before {
  transform: scaleX(1);
}

.pricing-tier {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
}

.pricing-price {
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 32px;
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 400;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-left: 4px;
}

.pricing-features {
  list-style: none;
  flex: 1;
  margin-bottom: 40px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.check-icon {
  flex-shrink: 0;
}

.pricing-cta {
  display: block;
  width: 100%;
  padding: 14px 28px;
  background: var(--amber);
  color: var(--bg);
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s ease;
}

.pricing-cta:hover {
  background: #e6981a;
}

/* === FOOTER === */
.footer {
  padding: 64px 48px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-brand {
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 12px;
}

.footer-tagline {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.footer-link {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
}

.footer-link:hover {
  color: var(--text);
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .nav { padding: 16px 24px; }
  .manifesto { padding: 100px 24px 60px; }
  .manifesto-inner { grid-template-columns: 1fr; gap: 40px; }
  .signal-field { margin: 0 auto; }
  .loop-grid { grid-template-columns: 1fr 1fr; gap: 2px; }
  .steps { flex-direction: column; gap: 32px; }
  .step-connector { display: none; }
  .step { padding: 0; }
  .core-loop, .how-it-works, .vision, .case-study { padding: 64px 24px; }
  .vision-metrics { flex-direction: column; gap: 32px; }
  .metric-divider { display: none; }
  .metric { padding: 0; }
}

@media (max-width: 600px) {
  .loop-grid { grid-template-columns: 1fr; }
  .manifesto-headline { font-size: 2.4rem; }
  .signup-input-wrap { flex-direction: column; }
  .signup-btn { padding: 14px 18px; }
  .nav-links { gap: 16px; }
  .nav-cta { padding: 8px 12px; }
}