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

:root {
  --bg:          #0a0c10;
  --bg-card:     #111418;
  --bg-card-hover: #161b22;
  --border:      #21262d;
  --accent:      #3b82f6;
  --accent-dim:  #1d4ed8;
  --text:        #e6edf3;
  --text-muted:  #7d8590;
  --text-sub:    #9198a1;
  --green:       #3fb950;
  --purple:      #a371f7;
  --mono:        'JetBrains Mono', 'Courier New', monospace;
  --sans:        'Inter', system-ui, sans-serif;
  --radius:      10px;
  --max-w:       1120px;
}

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; }

/* ── Layout ───────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1.4rem;
  border-radius: 6px;
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, opacity .15s;
  border: 1px solid transparent;
  white-space: nowrap;
}

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

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

.btn-ghost {
  background: transparent;
  color: var(--text-sub);
}
.btn-ghost:hover { color: var(--text); }

/* ── Header / Nav ─────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 12, 16, .85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-weight: 600;
  font-size: 1rem;
}

.brand-mark {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none;
}

.nav-links a {
  padding: .4rem .75rem;
  font-size: .9rem;
  color: var(--text-muted);
  border-radius: 6px;
  transition: color .15s;
}
.nav-links a:hover { color: var(--text); }
.nav-links .btn { margin-left: .5rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .25rem;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  padding: 7rem 0 5rem;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-eyebrow {
  margin-bottom: 1.25rem;
}

.mono {
  font-family: var(--mono);
  font-size: .85rem;
  color: var(--green);
  background: rgba(63, 185, 80, .08);
  border: 1px solid rgba(63, 185, 80, .2);
  padding: .3rem .7rem;
  border-radius: 4px;
  display: inline-block;
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-sub);
  max-width: 480px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}

/* Code block graphic */
.hero-graphic {
  display: flex;
  justify-content: center;
}

.code-block {
  font-family: var(--mono);
  font-size: .85rem;
  line-height: 1.75;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  width: 100%;
  max-width: 380px;
  white-space: pre;
  overflow-x: auto;
}

.code-comment { color: var(--text-muted); }
.code-keyword { color: var(--purple); }
.code-var     { color: var(--accent); }
.code-string  { color: var(--green); }

/* ── Services ─────────────────────────────────────────── */
.services {
  padding: 5rem 0;
  border-top: 1px solid var(--border);
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-eyebrow {
  font-family: var(--mono);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent);
  margin-bottom: .75rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1rem;
  color: var(--text-sub);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color .2s, background .2s, transform .2s;
}
.service-card:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.service-icon {
  width: 40px;
  height: 40px;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.service-icon svg { width: 100%; height: 100%; }

.service-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: .6rem;
}

.service-card p {
  font-size: .9rem;
  color: var(--text-sub);
  line-height: 1.65;
}

/* ── About ────────────────────────────────────────────── */
.about {
  padding: 5rem 0;
  border-top: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-content .section-eyebrow { text-align: left; }

.about-content h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 1.25rem;
  line-height: 1.25;
}

.about-content p {
  color: var(--text-sub);
  font-size: .97rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

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

.stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.stat-label {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
}

.stat-desc {
  font-size: .82rem;
  color: var(--text-muted);
}

/* ── Contact ──────────────────────────────────────────── */
.contact {
  padding: 5rem 0;
  border-top: 1px solid var(--border);
}

.contact-inner {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-inner h2 {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 1rem;
}

.contact-inner p {
  color: var(--text-sub);
  font-size: .97rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--accent);
  border: 1px solid var(--border);
  padding: .9rem 1.75rem;
  border-radius: 8px;
  background: var(--bg-card);
  transition: border-color .2s, background .2s;
}
.contact-email:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
}
.contact-email svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

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

.footer p {
  font-size: .83rem;
  color: var(--text-muted);
  text-align: center;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 768px) {
  .hero { padding: 4rem 0 3rem; }

  .hero .container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-graphic { order: -1; }

  .code-block { max-width: 100%; font-size: .78rem; }

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

  .nav-links {
    display: none;
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.5rem;
    gap: .25rem;
  }

  .nav-links.open { display: flex; }
  .nav-links .btn { margin-left: 0; }

  .nav-toggle { display: flex; }

  .nav { position: relative; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .about-stats { grid-template-columns: 1fr; }
}
