:root {
  --bg: #0A0A0F;
  --surface: #12121A;
  --surface2: #1A1A26;
  --fg: #FAFAFA;
  --fg-muted: #8888AA;
  --fg-dim: #555566;
  --accent: #FF6B35;
  --accent-dim: rgba(255, 107, 53, 0.12);
  --border: rgba(255, 255, 255, 0.07);
  --radius: 10px;
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* NAV */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.nav-tagline {
  font-size: 12px;
  color: var(--fg-muted);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* HERO */
.hero {
  padding: 80px 24px 60px;
  text-align: center;
}
.hero-inner { max-width: 760px; margin: 0 auto; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 28px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 107, 53, 0.3);
  border-radius: 100px;
  background: var(--accent-dim);
}
.badge-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-headline {
  font-family: var(--font-head);
  font-size: clamp(36px, 5.5vw, 60px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
  color: var(--fg);
}

.hero-sub {
  font-size: 17px;
  color: var(--fg-muted);
  max-width: 600px;
  margin: 0 auto 44px;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 32px;
  max-width: 480px;
  margin: 0 auto;
}
.stat { text-align: center; padding: 0 20px; }
.stat-value {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
}
.stat-label {
  font-size: 11px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}
.stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
}

/* CONSOLE */
.console { padding: 20px 24px 60px; }
.console-label {
  text-align: center;
  font-size: 11px;
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.console-window {
  max-width: 680px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.console-header {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #FF5F57; }
.dot.yellow { background: #FFBD2E; }
.dot.green { background: #28C840; }
.console-title {
  margin-left: 8px;
  font-size: 12px;
  color: var(--fg-dim);
  font-family: 'Courier New', monospace;
}
.console-body {
  padding: 20px 24px 24px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.9;
}
.console-line {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: nowrap;
}
.prompt { color: var(--accent); font-weight: bold; }
.colon { color: var(--fg-dim); }
.path { color: #8888FF; }
.dollar { color: var(--fg-muted); margin: 0 6px; }
.cmd { color: var(--fg); font-weight: bold; }
.console-output {
  margin: 12px 0;
  padding-left: 0;
}
.output-row {
  color: var(--fg-muted);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.output-row.ok { color: #28C840; }
.output-row.highlight {
  color: var(--fg);
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.tag {
  background: var(--accent);
  color: #0A0A0F;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}
.bottom-line { margin-top: 8px; }
.cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--accent);
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* SECTION HEADERS */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-label {
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: 12px;
}
.section-header h2 {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--fg);
}
.section-desc {
  color: var(--fg-muted);
  max-width: 540px;
  margin: 14px auto 0;
  font-size: 16px;
  line-height: 1.6;
}

/* CHANNELS */
.channels {
  padding: 80px 24px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.channel-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.channel-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.2s;
}
.channel-card:hover { border-color: rgba(255, 107, 53, 0.3); }
.channel-icon {
  width: 40px; height: 40px;
  background: var(--accent-dim);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.channel-icon svg { width: 20px; height: 20px; stroke: var(--accent); }
.channel-card h3 {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--fg);
}
.channel-card p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* DEPARTMENTS */
.departments {
  padding: 80px 24px;
}
.dept-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.dept-item {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--bg);
  align-items: flex-start;
}
.dept-icon {
  width: 36px; height: 36px;
  flex-shrink: 0;
  background: var(--surface);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dept-icon svg { width: 18px; height: 18px; stroke: var(--fg-muted); }
.dept-item h4 {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--fg);
}
.dept-item p {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.55;
}

/* HOW */
.how {
  padding: 80px 24px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.how-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.how-text .section-label { text-align: left; }
.how-text h2 {
  font-family: var(--font-head);
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  color: var(--fg);
}
.how-text p {
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 12px;
}
.how-specs {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.spec {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.spec-val {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  min-width: 80px;
  padding-top: 1px;
}
.spec-desc {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.5;
}

/* LOOP DIAGRAM */
.loop-diagram {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.loop-node {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.loop-node.accent { border-color: rgba(255, 107, 53, 0.4); background: var(--accent-dim); }
.node-label { font-size: 11px; color: var(--fg-dim); text-transform: uppercase; letter-spacing: 0.06em; }
.node-val { font-family: var(--font-head); font-size: 15px; font-weight: 700; color: var(--fg); }
.loop-arrow {
  text-align: center;
  font-size: 18px;
  color: var(--fg-dim);
  padding: 2px 0;
}

/* CLOSING */
.closing {
  padding: 100px 24px;
  text-align: center;
}
.closing-inner { max-width: 640px; margin: 0 auto; }
.closing-badge {
  display: inline-block;
  font-size: 11px;
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 100px;
}
.closing h2 {
  font-family: var(--font-head);
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--fg);
}
.closing p {
  color: var(--fg-muted);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 32px;
}
.closing-tag {
  font-family: var(--font-head);
  font-size: 13px;
  color: var(--fg-dim);
  border-top: 1px solid var(--border);
  padding-top: 24px;
  letter-spacing: 0.02em;
}

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 12px;
}
.footer-copy {
  font-size: 13px;
  color: var(--fg-dim);
  max-width: 420px;
  margin: 0 auto 20px;
}
.footer-divider { width: 40px; height: 1px; background: var(--border); margin: 0 auto 16px; }
.footer-meta { font-size: 12px; color: var(--fg-dim); }

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero { padding: 60px 20px 40px; }
  .hero-stats { padding: 16px 20px; flex-direction: column; gap: 12px; }
  .stat-divider { width: 40px; height: 1px; }
  .dept-grid { grid-template-columns: 1fr; }
  .how-inner { grid-template-columns: 1fr; gap: 40px; }
  .how-visual { order: -1; }
  .channel-grid { grid-template-columns: 1fr; }
  .sections { padding: 60px 20px; }
}