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

:root {
  --bg: #0B0F1A;
  --surface: #111827;
  --border: #1F2937;
  --amber: #F5A623;
  --amber-dim: rgba(245, 166, 35, 0.15);
  --green: #10B981;
  --text: #F9FAFB;
  --text-muted: #9CA3AF;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  --font-display: 'Syne', system-ui, sans-serif;
}

html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* NAV */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 4rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: -0.03em;
}

.nav-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--green);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* HERO */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  padding: 7rem 4rem 6rem;
  align-items: center;
  min-height: 85vh;
  border-bottom: 1px solid var(--border);
}

.hero-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--amber);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: inline-block;
  border: 1px solid var(--amber-dim);
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 42ch;
}

/* TERMINAL FRAME */
.terminal-frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(245,166,35,0.05);
}

.terminal-bar {
  background: #1a1f2e;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 1px solid var(--border);
}

.term-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot-red { background: #FF5F57; }
.dot-yellow { background: #FEBC2E; }
.dot-green { background: #28C840; }

.term-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 0.75rem;
}

.terminal-body {
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.8;
}

.term-line { margin-bottom: 0.5rem; }
.term-prompt { color: var(--amber); margin-right: 0.5rem; font-weight: 700; }
.term-cmd { color: var(--text); }
.term-done { color: var(--green); font-weight: 600; }
.term-cursor { color: var(--amber); animation: blink 1s step-end infinite; }

@keyframes blink {
  50% { opacity: 0; }
}

.term-output {
  background: rgba(245,166,35,0.04);
  border: 1px solid rgba(245,166,35,0.1);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  margin: 0.75rem 0;
}

.term-status {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.term-status.active {
  color: var(--amber);
}

.term-log {
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: 6px;
  padding: 0.6rem 0.9rem;
  margin: 0.75rem 0;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.75rem;
}

.log-time { color: var(--text-muted); }
.log-action { color: var(--green); font-weight: 700; font-size: 0.7rem; letter-spacing: 0.05em; }
.log-target { color: var(--text); }

/* HERO META */
.hero-meta {
  display: flex;
  gap: 0;
  margin-top: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

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

.meta-num {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 0.35rem;
}

.meta-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.meta-divider {
  width: 1px;
  background: var(--border);
}

/* HOW SECTION */
.how {
  padding: 7rem 4rem;
  border-bottom: 1px solid var(--border);
}

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

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 42ch;
  margin: 0 auto;
  line-height: 1.7;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.how-step {
  padding: 2rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  position: relative;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--amber);
  font-weight: 700;
  margin-bottom: 1rem;
  display: inline-block;
  border: 1px solid var(--amber-dim);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.step-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* FEATURES */
.features {
  padding: 7rem 4rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 7rem;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.feature-row.reverse {
  direction: rtl;
}

.feature-row.reverse > * {
  direction: ltr;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.feature-desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.feature-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* CONNECTOR FLOW */
.connector-flow {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 100%;
}

.conn-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text-muted);
}

.conn-item.active {
  border-color: var(--amber);
  color: var(--amber);
  background: var(--amber-dim);
}

.conn-icon {
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}

.conn-arrow svg path {
  stroke: var(--amber);
}

/* TASK LIST */
.task-list {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.task-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  background: var(--bg);
  color: var(--text-muted);
}

.task-item.done { color: var(--text-muted); }
.task-item.current { color: var(--amber); border: 1px solid var(--amber-dim); background: var(--amber-dim); }
.task-item.pending { opacity: 0.5; }

.task-check { color: var(--green); font-weight: 700; }
.task-spinner { color: var(--amber); animation: spin 2s linear infinite; }
.task-pending { color: var(--text-muted); }

@keyframes spin { to { transform: rotate(360deg); } }

.task-name { flex: 1; }
.task-time { font-size: 0.7rem; color: var(--text-muted); }

/* REPORT BLOCK */
.report-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
}

.report-header {
  background: rgba(245,166,35,0.1);
  border-bottom: 1px solid rgba(245,166,35,0.2);
  padding: 0.75rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--amber);
  font-weight: 600;
}

.report-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.report-row:last-child { border-bottom: none; }

.rep-icon {
  color: var(--green);
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.4;
}

.report-footer {
  background: var(--bg);
  padding: 0.75rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* DAILY SECTION */
.daily {
  padding: 7rem 4rem;
  border-bottom: 1px solid var(--border);
}

.daily-inner {
  display: flex;
  align-items: center;
  gap: 5rem;
}

.stat-big {
  font-family: var(--font-mono);
  font-size: 5rem;
  font-weight: 700;
  color: var(--amber);
  line-height: 1;
  letter-spacing: -0.04em;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 0.75rem;
}

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

.daily-headline {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.daily-sub {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 48ch;
}

/* MANIFESTO */
.manifesto {
  padding: 9rem 4rem;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.manifesto-inner {
  max-width: 60rem;
  margin: 0 auto;
}

.manifesto-text {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--text) 0%, #6B7280 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.manifesto-sub {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

/* FOOTER */
.footer {
  padding: 4rem;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 0.75rem;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.footer-link {
  color: var(--text-muted);
  font-size: 0.875rem;
  cursor: pointer;
  transition: color 0.2s;
}

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

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

/* RESPONSIVE */
@media (max-width: 900px) {
  .nav { padding: 1rem 1.5rem; }
  .hero { grid-template-columns: 1fr; padding: 4rem 1.5rem; gap: 3rem; }
  .hero-left { order: 1; }
  .hero-right { order: 2; }
  .how { padding: 5rem 1.5rem; }
  .how-grid { grid-template-columns: 1fr 1fr; }
  .features { padding: 5rem 1.5rem; gap: 4rem; }
  .feature-row, .feature-row.reverse { grid-template-columns: 1fr; direction: ltr; gap: 2rem; }
  .daily { padding: 5rem 1.5rem; }
  .daily-inner { flex-direction: column; gap: 2rem; }
  .manifesto { padding: 6rem 1.5rem; }
  .footer { padding: 3rem 1.5rem; }
}

@media (max-width: 600px) {
  .how-grid { grid-template-columns: 1fr; }
  .hero-meta { flex-direction: column; }
  .meta-divider { width: auto; height: 1px; }
  .connector-flow { flex-wrap: wrap; justify-content: center; }
}