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

:root {
  --bg: #0a0c0f;
  --bg2: #0f1217;
  --bg3: #151921;
  --border: rgba(255,255,255,0.07);
  --border2: rgba(255,255,255,0.13);
  --green: #00e5a0;
  --green2: #00b87c;
  --text: #e8eaf0;
  --muted: #6b7280;
  --muted2: #9ca3af;
  --accent: #3b82f6;
  --mono: 'JetBrains Mono', monospace;
  --sans: 'Space Grotesk', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* SCANLINES */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px);
  pointer-events: none;
  z-index: 9999;
}

/* NAV */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,12,15,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

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

.nav-logo span { color: var(--muted); }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted2);
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}

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

/* HERO */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 4rem 2rem;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.hero-content { max-width: 680px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--green);
  background: rgba(0,229,160,0.07);
  border: 1px solid rgba(0,229,160,0.2);
  padding: 6px 12px;
  border-radius: 4px;
  margin-bottom: 2rem;
  letter-spacing: 0.1em;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}

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

h1 {
  font-family: var(--mono);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: var(--text);
}

h1 .dim { color: var(--muted); font-weight: 300; }
h1 .accent { color: var(--green); }

.hero-sub {
  font-size: 17px;
  color: var(--muted2);
  max-width: 520px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

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

.btn {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: var(--green);
  color: #0a0c0f;
  font-weight: 700;
}

.btn-primary:hover { background: #00ffb3; transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--muted2);
  border-color: var(--border2);
}

.btn-outline:hover { color: var(--text); border-color: rgba(255,255,255,0.3); }

/* TERMINAL BLOCK */
.terminal {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: 320px;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 8px;
  overflow: hidden;
  display: none;
}

@media (min-width: 1100px) { .terminal { display: block; } }

.terminal-bar {
  background: var(--bg3);
  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-r { background: #ff5f57; }
.dot-y { background: #febc2e; }
.dot-g { background: #28c840; }

.terminal-body {
  padding: 1rem 1.2rem;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.8;
}

.t-prompt { color: var(--green); }
.t-cmd { color: var(--text); }
.t-out { color: var(--muted2); }
.t-cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--green);
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}

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

/* SECTIONS */
section {
  max-width: 900px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.section-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--green);
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

h2 {
  font-family: var(--mono);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3rem;
  letter-spacing: -0.01em;
}

h2 .dim { color: var(--muted); font-weight: 300; }

/* PROJECTS */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.project-card {
  background: var(--bg);
  padding: 1.75rem;
  cursor: pointer;
  transition: background 0.2s;
  position: relative;
  overflow: hidden;
}

.project-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transition: transform 0.25s;
  transform-origin: left;
}

.project-card:hover { background: var(--bg2); }
.project-card:hover::after { transform: scaleX(1); }

.project-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  padding: 3px 8px;
  border-radius: 3px;
}

.status-live { background: rgba(0,229,160,0.1); color: var(--green); border: 1px solid rgba(0,229,160,0.2); }
.status-wip { background: rgba(251,191,36,0.1); color: #fbbf24; border: 1px solid rgba(251,191,36,0.2); }
.status-soon { background: rgba(107,114,128,0.15); color: var(--muted2); border: 1px solid var(--border); }

.status-live::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }
.status-wip::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #fbbf24; animation: pulse 2s infinite; }

.project-title {
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.project-desc {
  font-size: 13px;
  color: var(--muted2);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  background: var(--bg3);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 3px;
  letter-spacing: 0.07em;
}

/* STACK */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.stack-item {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.4rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: border-color 0.2s, transform 0.2s;
}

.stack-item:hover { border-color: var(--border2); transform: translateY(-2px); }

.stack-icon {
  font-family: var(--mono);
  font-size: 22px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stack-icon img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.stack-icon svg {
  width: 44px;
  height: 44px;
}

.stack-name {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
}

.stack-type {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}

/* CONTACT */
.contact-box {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 600px) {
  .contact-box { grid-template-columns: 1fr; }
  .terminal { display: none; }
  .hero { min-height: 80vh; }
}

.contact-text h3 {
  font-family: var(--mono);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.contact-text p { color: var(--muted2); font-size: 14px; line-height: 1.7; }

.contact-links { display: flex; flex-direction: column; gap: 12px; }

.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted2);
  text-decoration: none;
  padding: 12px 16px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: all 0.2s;
  letter-spacing: 0.05em;
}

.contact-link:hover {
  color: var(--green);
  border-color: rgba(0,229,160,0.3);
  background: rgba(0,229,160,0.05);
}

/* DIVIDER */
.divider {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
  border-top: 1px solid var(--border);
}

/* FOOTER */
footer {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.05em;
  flex-wrap: wrap;
  gap: 8px;
}

/* PROJECT DETAIL */
.nav-back {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted2);
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 5px 14px;
  cursor: pointer;
  letter-spacing: 0.08em;
  transition: all 0.2s;
  line-height: 1;
  text-decoration: none;
}
.nav-back:hover { color: var(--green); border-color: rgba(0,229,160,0.35); }

.pd-wrap { max-width: 900px; margin: 0 auto; padding: 0 2rem; }

.pd-hero { padding: 4rem 0 3rem; }

.pd-hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.pd-category {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pd-title {
  font-family: var(--mono);
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.12;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.pd-subtitle {
  font-size: 16px;
  color: var(--muted2);
  max-width: 600px;
  line-height: 1.75;
  margin-bottom: 1.75rem;
}

.pd-tags { margin-bottom: 2rem; }

/* VIDEO */
.pd-video-wrap {
  margin: 2.5rem 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border2);
  background: var(--bg2);
  aspect-ratio: 16/9;
  position: relative;
}

.pd-video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  cursor: pointer;
  transition: background 0.2s;
}

.pd-video-placeholder:hover { background: rgba(255,255,255,0.02); }

.pd-play-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
  position: relative;
}

.pd-play-btn::after {
  content: '';
  width: 0; height: 0;
  border-style: solid;
  border-width: 11px 0 11px 22px;
  border-color: transparent transparent transparent var(--green);
  margin-left: 5px;
  transition: border-color 0.25s;
}

.pd-video-placeholder:hover .pd-play-btn {
  background: var(--green);
  box-shadow: 0 0 28px rgba(0,229,160,0.3);
}

.pd-video-placeholder:hover .pd-play-btn::after {
  border-color: transparent transparent transparent #0a0c0f;
}

.pd-play-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pd-video-wrap iframe {
  width: 100%; height: 100%;
  border: none; display: block;
  position: absolute; inset: 0;
}

/* SECTIONS */
.pd-section { padding: 3rem 0; border-top: 1px solid var(--border); }

.pd-section-h {
  font-family: var(--mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 0.5rem 0 2rem;
  letter-spacing: -0.01em;
}
.pd-section-h .dim { color: var(--muted); font-weight: 300; }

/* OVERVIEW */
.pd-overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

.pd-overview-col h3 {
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin: 0.6rem 0 0.6rem;
}
.pd-overview-col p { font-size: 14px; color: var(--muted2); line-height: 1.75; }

/* ARCH DIAGRAM */
.arch-intro {
  font-size: 14px;
  color: var(--muted2);
  line-height: 1.7;
  margin-bottom: 1.75rem;
  max-width: 620px;
}

.arch-diagram {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.arch-workflow {
  background: var(--bg2);
  padding: 1.25rem 1.5rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.arch-workflow:last-child { border-bottom: none; }

.arch-workflow-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 1.1rem;
}

.arch-workflow-label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--green);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.arch-workflow-label::before {
  content: '';
  display: inline-block;
  width: 14px; height: 1px;
  background: var(--green);
}

.arch-workflow-title {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.arch-workflow-interval {
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1px 7px;
  letter-spacing: 0.05em;
}

.arch-flow {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.arch-node {
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 6px;
  padding: 10px 14px;
  min-width: 88px;
  text-align: center;
  flex-shrink: 0;
}
.arch-node-blue   { border-color: rgba(59,130,246,0.35);  background: rgba(59,130,246,0.06);  }
.arch-node-green  { border-color: rgba(0,229,160,0.3);    background: rgba(0,229,160,0.05);   }
.arch-node-amber  { border-color: rgba(251,191,36,0.3);   background: rgba(251,191,36,0.05);  }
.arch-node-purple { border-color: rgba(167,139,250,0.3);  background: rgba(167,139,250,0.05); }

.arch-node-icon  { font-size: 15px; margin-bottom: 5px; line-height: 1; }
.arch-node-name  { font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--text); white-space: nowrap; }
.arch-node-sub   { font-family: var(--mono); font-size: 9px; color: var(--muted); margin-top: 3px; white-space: nowrap; }
.arch-arrow      { color: var(--muted); font-size: 13px; flex-shrink: 0; padding: 0 2px; }

.arch-parallel-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
  align-items: center;
}

.arch-parallel-label {
  font-family: var(--mono);
  font-size: 8px;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
}

.arch-node-sm {
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 5px;
  padding: 6px 12px;
  text-align: center;
  flex-shrink: 0;
  min-width: 90px;
}
.arch-node-sm .arch-node-name { font-size: 10px; }
.arch-node-sm .arch-node-sub  { font-size: 9px; }

.arch-bridge {
  background: var(--bg);
  padding: 8px 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: center;
}

.arch-bridge-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.55;
}

.arch-bridge-line {
  width: 40px; height: 1px;
  background: var(--border2);
}

.arch-bridge-label {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* STEPS */
.steps-list { margin-top: 1.5rem; }

.step-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}
.step-item:last-child { border-bottom: none; }

.step-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--green);
  padding-top: 1px;
  letter-spacing: 0.05em;
}

.step-title {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.step-desc { font-size: 13px; color: var(--muted2); line-height: 1.65; }

.step-chip {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--green);
  background: rgba(0,229,160,0.07);
  border: 1px solid rgba(0,229,160,0.18);
  padding: 1px 8px;
  border-radius: 3px;
  margin-top: 6px;
}

/* FEATURES */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 1.5rem;
}

.feature-card {
  background: var(--bg);
  padding: 1.5rem;
  transition: background 0.2s;
}
.feature-card:hover { background: var(--bg2); }

.feature-icon  { font-size: 18px; margin-bottom: 0.75rem; line-height: 1; }
.feature-title { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--text); margin-bottom: 0.5rem; }
.feature-desc  { font-size: 13px; color: var(--muted2); line-height: 1.65; }

/* CTA */
.pd-cta-inner {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  margin-top: 1.5rem;
}

.pd-cta-inner h3 {
  font-family: var(--mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.pd-cta-inner p { font-size: 14px; color: var(--muted2); line-height: 1.7; }

.pd-cta-actions { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }

@media (max-width: 640px) {
  .pd-overview-grid { grid-template-columns: 1fr; }
  .pd-cta-inner { grid-template-columns: 1fr; }
  .arch-flow { flex-wrap: wrap; }
}
