/* ===========================
   DEVPULSE — THEME CSS
   =========================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800;1,9..40,400&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ---- TOKENS ---- */
:root {
  --bg:        #08090D;
  --surface:   #0F1117;
  --surface2:  #151823;
  --border:    rgba(255,255,255,0.07);
  --text:      #E8ECF4;
  --muted:     #6B7488;
  --accent:    #00E5C8;
  --amber:     #F5A623;
  --red:       #FF4F4F;
  --green:     #39D98A;
  --font-sans: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --radius:    10px;
  --radius-sm: 6px;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  background: rgba(8, 9, 13, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
}
.logo-text {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-tagline {
  font-size: 13px;
  color: var(--muted);
  font-family: var(--font-mono);
}

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(0,229,200,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(245,166,35,0.04) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  width: 100%;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,229,200,0.08);
  border: 1px solid rgba(0,229,200,0.2);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 12px;
  color: var(--accent);
  font-family: var(--font-mono);
  margin-bottom: 28px;
  width: fit-content;
}
.badge-dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.hero-headline {
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 24px;
  color: var(--text);
}
.hero-headline em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent), #00B8FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 460px;
  margin-bottom: 40px;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
}
.stat { }
.stat-num {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  font-family: var(--font-mono);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
  max-width: 120px;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ---- TERMINAL ---- */
.hero-visual {
  position: relative;
}
.terminal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05) inset;
}
.terminal-header {
  background: var(--surface2);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--border);
}
.t-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.t-red    { background: #FF5F57; }
.t-yellow { background: #FEBC2E; }
.t-green  { background: #28C840; }
.t-title {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  flex: 1;
  text-align: center;
}
.terminal-body {
  padding: 20px 24px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.8;
  min-height: 320px;
}
.t-line { color: var(--text); }
.t-time { color: var(--muted); }
.t-dim  { color: var(--muted); }
.t-accent { color: var(--accent); }
.t-success { color: var(--green); }
.t-pulse {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  margin-top: 12px;
  animation: pulse 1.5s infinite;
}
.pulse-badge {
  position: absolute;
  bottom: -16px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid rgba(0,229,200,0.2);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 12px;
  color: var(--accent);
  font-family: var(--font-mono);
}
.pulse-dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

/* ---- PROOF ---- */
.proof {
  padding: 80px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.proof-inner { max-width: 800px; margin: 0 auto; padding: 0 40px; text-align: center; }
.proof-quote blockquote {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
  font-style: italic;
  margin-bottom: 20px;
}
.proof-quote cite {
  font-size: 14px;
  color: var(--muted);
  font-style: normal;
  font-family: var(--font-mono);
}

/* ---- FEATURES ---- */
.features { padding: 100px 0; }
.features-inner { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-headline {
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 64px;
  max-width: 640px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.feature-card {
  background: var(--surface);
  padding: 36px 32px;
  transition: background 0.2s;
  position: relative;
}
.feature-card:hover { background: var(--surface2); }
.feature-icon {
  color: var(--accent);
  margin-bottom: 20px;
}
.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}
.feature-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 20px;
}
.feature-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  background: rgba(0,229,200,0.08);
  border: 1px solid rgba(0,229,200,0.15);
  border-radius: 100px;
  padding: 4px 10px;
}

/* ---- MANIFESTO ---- */
.manifesto {
  padding: 100px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.manifesto-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.manifesto-text .section-label { margin-bottom: 16px; }
.manifesto-text h2 {
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: 32px;
}
.manifesto-body p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 20px;
}
.manifesto-body p:last-child { margin-bottom: 0; }
.manifesto-stats {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-top: 60px;
}
.m-stat { }
.m-num {
  font-size: 64px;
  font-weight: 800;
  color: var(--text);
  font-family: var(--font-mono);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -2px;
}
.m-label {
  font-size: 14px;
  color: var(--muted);
  max-width: 200px;
  line-height: 1.5;
}

/* ---- CLOSER ---- */
.closer { padding: 120px 0; }
.closer-inner { max-width: 900px; margin: 0 auto; padding: 0 40px; text-align: center; }
.closer h2 {
  font-size: clamp(32px, 4.5vw, 58px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 24px;
}
.closer-inner > p {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto 60px;
}
.closer-vision {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.vision-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  max-width: 280px;
}
.vision-year {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.vision-item span:last-child {
  font-size: 15px;
  color: var(--text);
  line-height: 1.5;
}
.vision-arrow {
  font-size: 28px;
  color: var(--muted);
}

/* ---- FOOTER ---- */
.footer {
  border-top: 1px solid var(--border);
  padding: 60px 0;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.footer-name {
  font-size: 17px;
  font-weight: 700;
}
.footer-tagline {
  font-size: 14px;
  color: var(--muted);
}
.footer-copy {
  font-size: 12px;
  color: #444;
  font-family: var(--font-mono);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-visual { display: none; }
  .manifesto-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .manifesto-stats { padding-top: 0; flex-direction: row; flex-wrap: wrap; }
  .feature-grid { grid-template-columns: 1fr; }
  .closer-vision { flex-direction: column; gap: 20px; }
  .vision-arrow { transform: rotate(90deg); }
  .hero-stats { flex-wrap: wrap; }
}

@media (max-width: 600px) {
  .nav-inner { padding: 0 20px; }
  .hero-inner { padding: 0 20px; }
  .features-inner { padding: 0 20px; }
  .manifesto-inner { padding: 0 20px; }
  .closer-inner { padding: 0 20px; }
  .proof-inner { padding: 0 20px; }
  .footer-inner { padding: 0 20px; }
  .hero { padding: 100px 0 60px; }
  .features { padding: 60px 0; }
  .manifesto { padding: 60px 0; }
  .closer { padding: 80px 0; }
}