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

:root {
  --white:   #ffffff;
  --bg:      #f0f1f3;
  --bg2:     #e8eaed;
  --border:  #e0e2e6;
  --text:    #111111;
  --muted:   #6b6b6b;
  --blue:    #6b9fdc;
  --blue-h:  #5a8fcb;
  --radius:  16px;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; background: var(--white); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 32px; }
a { text-decoration: none; color: inherit; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn-dark {
  padding: 10px 22px; background: #111; color: #fff;
  border-radius: 10px; font-size: .875rem; font-weight: 600;
  transition: background .18s; display: inline-block;
}
.btn-dark:hover { background: #2a2a2a; }

.btn-blue {
  padding: 13px 30px; background: var(--blue); color: #fff;
  border-radius: 10px; font-size: 1rem; font-weight: 600;
  display: inline-block; transition: background .18s, transform .15s;
}
.btn-blue:hover { background: var(--blue-h); transform: translateY(-1px); }

.btn-ghost {
  padding: 13px 30px; background: transparent; color: var(--text);
  border-radius: 10px; font-size: 1rem; font-weight: 600;
  display: inline-block; border: 1.5px solid var(--border);
  transition: border-color .18s, background .18s;
}
.btn-ghost:hover { border-color: #aaa; background: var(--bg); }

/* ── Header ───────────────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header .container { display: flex; align-items: center; height: 66px; gap: 40px; }

.logo {
  font-size: 1.05rem; font-weight: 900; letter-spacing: .3px; color: #111;
  white-space: nowrap;
}

.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { font-size: .875rem; color: var(--muted); font-weight: 500; transition: color .15s; }
.nav a:hover { color: #111; }

/* ── Eyebrow ──────────────────────────────────────────────── */
.eyebrow {
  font-size: .7rem; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--muted); margin-bottom: 16px;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero { padding: 88px 0 96px; background: var(--white); }

.hero h1 {
  font-size: 4rem; font-weight: 900; line-height: 1.1;
  letter-spacing: -1.5px; color: #111;
  margin-bottom: 24px; max-width: 640px;
}

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

.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── Services ─────────────────────────────────────────────── */
.services { padding: 80px 0 96px; background: var(--bg); }

.section-title {
  font-size: 2rem; font-weight: 800; color: #111;
  letter-spacing: -.5px; margin-bottom: 48px;
}

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

.scard {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.scard:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,.08); }

.scard-img {
  background: var(--bg); height: 164px;
  display: flex; align-items: center; justify-content: center;
}
.scard-img svg { width: 96px; height: 96px; }

.scard h3 {
  font-size: 1rem; font-weight: 700; color: #111;
  padding: 20px 24px 8px; letter-spacing: -.1px;
}
.scard p {
  font-size: .85rem; color: var(--muted);
  padding: 0 24px 24px; line-height: 1.65;
}

/* ── About ────────────────────────────────────────────────── */
.about { padding: 88px 0; background: var(--white); }

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

.about-text h2 {
  font-size: 2.2rem; font-weight: 800; color: #111;
  letter-spacing: -.5px; line-height: 1.25; margin-bottom: 24px;
}
.about-text p { font-size: .95rem; color: var(--muted); line-height: 1.75; margin-bottom: 14px; }

.stats-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }

.stat-item {
  background: var(--bg); padding: 28px 24px;
}
.stat-item:nth-child(1) { border-radius: var(--radius) 0 0 0; }
.stat-item:nth-child(2) { border-radius: 0 var(--radius) 0 0; }
.stat-item:nth-child(3) { border-radius: 0 0 0 var(--radius); }
.stat-item:nth-child(4) { border-radius: 0 0 var(--radius) 0; }

.stat-num { font-size: 2.2rem; font-weight: 800; color: #111; letter-spacing: -1px; line-height: 1; margin-bottom: 6px; }
.stat-lbl { font-size: .8rem; color: var(--muted); }

/* ── Stack ────────────────────────────────────────────────── */
.stack { padding: 80px 0 96px; background: var(--bg); }

.stack-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 0; }

.stack-group {
  background: var(--white); border-radius: var(--radius); padding: 28px 24px;
}

.stack-label { font-size: .75rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }

.stack-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.stack-tags span {
  font-size: .8rem; font-weight: 500; color: #111;
  background: var(--bg); border-radius: 6px; padding: 5px 11px;
}

/* ── Footer ───────────────────────────────────────────────── */
.footer { padding: 36px 0; border-top: 1px solid var(--border); background: var(--white); }
.footer .container { display: flex; align-items: center; justify-content: space-between; }

.footer-logo { font-size: .9rem; font-weight: 900; letter-spacing: .3px; color: #111; }
.footer-copy { font-size: .8rem; color: var(--muted); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero h1 { font-size: 3rem; }
  .stack-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero { padding: 60px 0 72px; }
  .hero h1 { font-size: 2.4rem; letter-spacing: -.8px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .nav { display: none; }
}

@media (max-width: 540px) {
  .container { padding: 0 20px; }
  .hero h1 { font-size: 2rem; }
  .services-grid { grid-template-columns: 1fr; }
  .stack-grid { grid-template-columns: 1fr; }
  .stats-col { grid-template-columns: 1fr; }
  .stat-item { border-radius: 0 !important; }
  .stat-item:first-child { border-radius: var(--radius) var(--radius) 0 0 !important; }
  .stat-item:last-child  { border-radius: 0 0 var(--radius) var(--radius) !important; }
  .hero-btns { flex-direction: column; }
  .footer .container { flex-direction: column; gap: 10px; }
}
