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

:root {
  --bg: #080808;
  --bg-2: #0f0f0f;
  --bg-3: #141414;
  --border: #1e1e1e;
  --border-bright: #2a2a2a;
  --text: #e8e8e8;
  --text-dim: #666;
  --text-muted: #999;
  --accent: #00ff88;
  --accent-dim: rgba(0, 255, 136, 0.12);
  --accent-glow: rgba(0, 255, 136, 0.25);
  --font-mono: 'Share Tech Mono', 'Space Mono', monospace;
}

html { height: 100%; width: 100%; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* ─── NAV ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(8,8,8,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

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

.nav-logo {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0.05em;
}

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

.nav-links a {
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

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

.nav-github {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--border-bright);
  border-radius: 4px;
  font-size: 13px;
  color: var(--text-dim) !important;
  transition: border-color 0.2s, color 0.2s !important;
}

.nav-github:hover {
  border-color: var(--accent) !important;
  color: var(--accent) !important;
}

/* ─── HERO ─── */
.hero {
  padding: 140px 40px 100px;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  min-height: 100vh;
}

.hero-label {
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.12em;
  margin-bottom: 28px;
}

.hero-headline {
  font-family: 'Orbitron', var(--font-mono);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 28px;
}

.hero-accent {
  color: var(--accent);
}

.hero-sub {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 40px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: transparent;
  color: var(--accent);
}

.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  border-color: var(--border-bright);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 12px;
}

/* ─── TERMINAL ─── */
.hero-terminal {
  background: var(--bg-2);
  border: 1px solid var(--border-bright);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(0,255,136,0.06), 0 24px 60px rgba(0,0,0,0.6);
}

.terminal-bar {
  background: var(--bg-3);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot.red    { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green  { background: #27c93f; }

.terminal-title {
  font-size: 12px;
  color: var(--text-dim);
  margin-left: auto;
  margin-right: auto;
}

.terminal-body {
  padding: 20px 24px 24px;
  font-size: 13px;
  line-height: 1.9;
}

.terminal-line { display: flex; gap: 16px; }

.t-dim     { color: #333; user-select: none; min-width: 18px; text-align: right; }
.t-kw      { color: #c084fc; }
.t-type    { color: #38bdf8; }
.t-fn      { color: #34d399; }
.t-num     { color: #fb923c; }
.t-comment { color: #4b5563; font-style: italic; }

.terminal-cursor .cursor-block {
  color: var(--accent);
  animation: blink 1s step-end infinite;
}

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

/* ─── TICKER ─── */
.ticker-wrap {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  overflow: hidden;
  padding: 14px 0;
}

.ticker-track {
  display: inline-flex;
  gap: 20px;
  white-space: nowrap;
  animation: ticker 30s linear infinite;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

.ticker-sep { color: #2a2a2a; }

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── SECTION SHARED ─── */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.section-label {
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.12em;
  margin-bottom: 48px;
}

/* ─── PILLARS ─── */
.pillars {
  padding: 100px 0;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.pillar-card {
  background: var(--bg);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: background 0.25s;
  cursor: pointer;
}

.pillar-card:hover {
  background: var(--bg-2);
}

.pillar-card:hover .pillar-icon {
  color: var(--accent);
}

.pillar-card:hover .pillar-arrow {
  color: var(--accent);
  transform: translateX(4px);
}

.pillar-icon {
  font-size: 24px;
  color: var(--text-dim);
  transition: color 0.25s;
  line-height: 1;
}

.pillar-card h3 {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
  text-transform: uppercase;
}

.pillar-card p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.7;
  flex: 1;
}

.pillar-arrow {
  font-size: 18px;
  color: var(--border-bright);
  transition: color 0.25s, transform 0.25s;
}

/* ─── BLOG ─── */
.blog {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.blog-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
}

.blog-header .section-label { margin-bottom: 0; }

.view-all {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  transition: color 0.2s;
}
.view-all:hover { color: var(--accent); }

.blog-featured {
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 48px;
  border-radius: 4px;
  transition: border-color 0.25s;
  position: relative;
  overflow: hidden;
}

.blog-featured::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0.6;
}

.blog-featured:hover {
  border-color: var(--border-bright);
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.blog-date {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}

.blog-tag {
  font-size: 11px;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(0,255,136,0.2);
  padding: 3px 10px;
  border-radius: 2px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-title {
  font-family: 'Orbitron', var(--font-mono);
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.blog-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 640px;
  margin-bottom: 32px;
}

.blog-footer {
  display: flex;
  align-items: center;
  gap: 24px;
}

.blog-read {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}

/* ─── NEWSLETTER ─── */
.newsletter {
  padding: 100px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}

.newsletter-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.newsletter-label {
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.12em;
  margin-bottom: 20px;
}

.newsletter-headline {
  font-family: 'Orbitron', var(--font-mono);
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  line-height: 1.2;
  max-width: 560px;
  margin-bottom: 36px;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.newsletter-input {
  background: var(--bg);
  border: 1px solid var(--border-bright);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 12px 20px;
  border-radius: 4px;
  outline: none;
  width: 300px;
  transition: border-color 0.2s;
}

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

.newsletter-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

/* ─── FOOTER ─── */
.footer {
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 120px 24px 80px;
    gap: 48px;
  }

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

  .section-inner { padding: 0 24px; }

  .blog-featured { padding: 32px; }
  .blog-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .blog-header .section-label { margin-bottom: 0; }

  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 580px) {
  .pillars-grid { grid-template-columns: 1fr; }

  .nav-inner { padding: 0 20px; }

  .newsletter-input { width: 100%; }
  .newsletter-form { flex-direction: column; }

  .hero-ctas { flex-direction: column; }
  .btn { justify-content: center; }
}

/* ─── SCAN LINE EFFECT ─── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 2px,
    rgba(0,0,0,0.03) 2px,
    rgba(0,0,0,0.03) 4px
  );
  pointer-events: none;
  z-index: 9999;
}
