/* === Reset & Base === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0a0a0a;
  --bg-card: #111111;
  --bg-card-hover: #1a1a1a;
  --border: #222222;
  --border-hover: #333333;
  --text: #e5e5e5;
  --text-dim: #737373;
  --text-muted: #525252;
  --accent: #22c55e;
  --accent-dim: rgba(34, 197, 94, 0.15);
  --mono: 'JetBrains Mono', monospace;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
  scroll-behavior: smooth;
}

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

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

/* === Nav === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 100px;
  width: auto;
  filter: invert(1);
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  color: var(--text-dim);
}

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

.nav-cta {
  background: var(--accent);
  color: #000 !important;
  padding: 6px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  transition: opacity 0.2s;
}

.nav-cta:hover {
  opacity: 0.9;
}

/* === Hero === */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 140px 24px 80px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(34, 197, 94, 0.25);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 32px;
  font-family: var(--mono);
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

/* === Terminal === */
.hero-terminal {
  max-width: 640px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
  background: var(--bg-card);
}

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

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green { background: #28c840; }

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

.terminal-body {
  padding: 20px;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 2;
}

.terminal-line {
  white-space: nowrap;
}

.t-prompt {
  color: var(--accent);
  margin-right: 8px;
}

.t-cmd {
  color: var(--text);
  font-weight: 600;
}

.t-flag {
  color: var(--text-dim);
  margin-left: 4px;
}

.t-output {
  color: var(--text);
}

.t-bracket {
  color: var(--text-muted);
}

.t-star {
  color: var(--accent);
}

.t-dim {
  color: var(--text-muted);
  font-size: 12px;
}

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

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

/* === Services === */
.services {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px;
}

.services h2,
.about h2,
.stack h2,
.contact h2 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 8px;
}

.section-sub {
  text-align: center;
  color: var(--text-dim);
  font-size: 16px;
  margin-bottom: 48px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  transition: border-color 0.2s, background 0.2s;
}

.card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.card-icon {
  font-size: 24px;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.card p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* === About === */
.about {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-text p {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}

.stat-num {
  display: block;
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
}

/* === Stack === */
.stack {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px;
}

.stack-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.stack-item {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--text-dim);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 10px 20px;
  border-radius: 8px;
  transition: border-color 0.2s, color 0.2s;
}

.stack-item:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* === Contact === */
.contact {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px 120px;
  text-align: center;
}

.contact-info {
  margin-top: 32px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 18px;
  color: var(--accent);
  padding: 16px 32px;
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 12px;
  background: var(--accent-dim);
  transition: background 0.2s;
}

.contact-link:hover {
  background: rgba(34, 197, 94, 0.2);
}

.contact-icon {
  font-size: 20px;
}

/* === Footer === */
.footer {
  border-top: 1px solid var(--border);
  padding: 24px;
}

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

.footer-logo {
  display: flex;
  align-items: center;
}

.footer-logo-img {
  height: 28px;
  width: auto;
  filter: invert(1);
}

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

/* === Responsive === */
@media (max-width: 768px) {
  .cards {
    grid-template-columns: 1fr;
  }

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

  .nav-links a:not(.nav-cta) {
    display: none;
  }

  .hero-terminal {
    font-size: 12px;
  }

  .terminal-body {
    overflow-x: auto;
  }
}
