/* ============================================
   Nocca Landing Page — Dark Terminal Aesthetic
   ============================================ */

:root {
  --bg: #09090E;
  --bg-elevated: #0d0d16;
  --bg-card: #111119;
  --border: #1e2a3a;
  --border-accent: #00E5CC;
  --cyan: #00E5CC;
  --cyan-dim: #00a898;
  --cyan-glow: rgba(0, 229, 204, 0.12);
  --green: #00C896;
  --amber: #FFB224;
  --text-primary: #E8EEF5;
  --text-secondary: #7A8FA6;
  --text-muted: #4A5D70;
  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

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

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

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

/* ---- HEADER ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(9, 9, 14, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-head);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ---- HERO ---- */
.hero {
  padding-top: 120px;
  padding-bottom: 80px;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-label {
  font-size: 0.7rem;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--cyan);
}

.hero-headline {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-lede {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 480px;
}

/* Terminal window */
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.terminal-window {
  background: #0A0A11;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0, 229, 204, 0.05), 0 20px 60px rgba(0,0,0,0.5);
}

.terminal-bar {
  background: var(--bg-elevated);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red { background: #FF5F56; }
.dot-yellow { background: #FFBD2E; }
.dot-green { background: #27C93F; }

.terminal-title {
  font-size: 0.68rem;
  font-family: var(--font-head);
  color: var(--text-muted);
  margin-left: 8px;
  letter-spacing: 0.02em;
}

.terminal-body {
  padding: 14px 16px;
  font-family: 'Space Grotesk', monospace;
  font-size: 0.72rem;
  line-height: 1.8;
  min-height: 200px;
}

.log-line {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.log-ok { color: #6E8FA6; }
.log-warn { color: var(--amber); }
.log-info { color: var(--cyan-dim); }

.ts {
  color: var(--text-muted);
  min-width: 60px;
  flex-shrink: 0;
}

.tag {
  color: var(--cyan);
  min-width: 68px;
  flex-shrink: 0;
  font-weight: 600;
}

.cursor-line {
  margin-top: 4px;
}

.cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--cyan);
  animation: blink 1.2s step-end infinite;
  vertical-align: middle;
}

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

.terminal-stats {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--border);
}

.stat {
  flex: 1;
  padding: 12px 16px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat:last-child { border-right: none; }

.stat-val {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cyan);
}

.stat-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Node network SVG */
.node-network {
  background: #0A0A11;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 40px rgba(0, 229, 204, 0.04);
}

.node-network svg {
  width: 100%;
  max-width: 340px;
}

.hero-rule {
  max-width: 1200px;
  margin: 80px auto 0;
  padding: 0 2rem;
  border-top: 1px solid var(--border);
}

/* ---- MANIFESTO ---- */
.manifesto {
  padding: 80px 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0,229,204,0.03) 50%, transparent 100%);
}

.manifesto-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 3rem;
}

.manifesto-label {
  font-size: 0.7rem;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-top: 4px;
}

.manifesto-statement {
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

.manifesto-detail {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 640px;
  margin-bottom: 1.25rem;
}

/* ---- FEATURES ---- */
.features {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.features-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.features-header {
  margin-bottom: 4rem;
}

.section-label {
  font-size: 0.7rem;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--cyan);
}

.section-headline {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.feature-item {
  background: var(--bg-card);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: background 0.2s;
}

.feature-item:hover {
  background: #14141f;
}

.feature-icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

.feature-title {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.feature-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
}

/* ---- ARCHITECTURE ---- */
.architecture {
  padding: 80px 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.arch-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.arch-headline {
  margin-bottom: 3.5rem;
}

.arch-diagram {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.arch-layer {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.arch-layer-tag {
  background: var(--cyan-glow);
  border-bottom: 1px solid var(--border);
  padding: 8px 16px;
  font-family: var(--font-head);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-top: 2px solid var(--cyan);
}

.arch-layer-content {
  padding: 1.25rem;
}

.arch-layer-content p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.arch-arrow {
  display: flex;
  align-items: center;
  padding-top: 3.5rem;
  flex-shrink: 0;
  opacity: 0.5;
}

.arch-note {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--cyan);
}

.arch-note p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ---- CLOSING ---- */
.closing {
  padding: 80px 0;
}

.closing-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.closing-rule {
  margin-bottom: 4rem;
}

.closing-content {
  max-width: 720px;
}

.closing-headline {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
}

.closing-sub {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 3rem;
}

.closing-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 3rem;
}

.spec-item {
  background: var(--bg-elevated);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.spec-label {
  font-size: 0.65rem;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.spec-val {
  font-size: 0.82rem;
  font-family: var(--font-head);
  color: var(--text-primary);
  font-weight: 500;
}

.closing-statement {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  font-style: italic;
}

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

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.footer-wordmark {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

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

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

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .manifesto-inner {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .arch-diagram {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .arch-arrow {
    display: none;
  }

  .closing-specs {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 100px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-item {
    padding: 1.5rem;
  }

  .hero-visual {
    order: -1;
  }

  .node-network {
    display: none;
  }
}