:root {
  --bg: #ffffff;
  --bg-alt: #f6f8fa;
  --fg: #14181d;
  --muted: #5b6573;
  --accent: #1f4e79;
  --accent-light: #2c6cad;
  --rule: #e3e8ee;
  --card-bg: #ffffff;
  --mono: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  --maxw: 1080px;
}

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

html { scroll-behavior: smooth; }

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* HEADER / NAV */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.brand:hover { text-decoration: none; }
.nav-links { display: flex; gap: 1.75rem; align-items: center; }
.nav-links a { color: var(--muted); font-size: 0.95rem; font-weight: 500; }
.nav-links a:hover { color: var(--fg); text-decoration: none; }
.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 0.5rem 1rem;
  border-radius: 6px;
}
.nav-cta:hover { background: var(--accent-light); }

/* HERO */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 6rem 1.5rem 4rem;
  text-align: center;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
}
.hero-sub {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 680px;
  margin: 0 auto 2.5rem;
}
.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 7px;
  font-weight: 600;
  font-size: 1rem;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-light); }
.btn-secondary { background: transparent; color: var(--accent); border: 1px solid var(--rule); }
.btn-secondary:hover { border-color: var(--accent); }

/* CREDIBILITY BAR */
.cred-bar {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  text-align: center;
}
.cred-item { display: flex; flex-direction: column; gap: 0.25rem; }
.cred-num { font-size: 1.5rem; font-weight: 700; color: var(--accent); letter-spacing: -0.01em; }
.cred-label { font-size: 0.85rem; color: var(--muted); }

/* SECTIONS */
.section { max-width: var(--maxw); margin: 0 auto; padding: 5rem 1.5rem; }
.section-alt { max-width: none; background: var(--bg-alt); }
.section-alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section-head { margin-bottom: 3rem; max-width: 680px; }
.section-head h2 { font-size: 2rem; letter-spacing: -0.02em; margin-bottom: 0.75rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

/* SERVICE CARDS */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.card {
  background: var(--card-bg);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 2rem;
}
.card-full { grid-column: 1 / -1; }
.card h3 { font-size: 1.3rem; margin-bottom: 0.75rem; letter-spacing: -0.01em; }
.card p { color: var(--muted); margin-bottom: 1rem; }
.card p:last-child { margin-bottom: 0; }
.card-when { font-size: 0.95rem; }
.card-when strong { color: var(--fg); }

/* ABOUT */
.about-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 3rem; }
.about-body p { margin-bottom: 1.25rem; font-size: 1.05rem; }
.about-creds { background: var(--card-bg); border: 1px solid var(--rule); border-radius: 10px; padding: 1.75rem; }
.about-creds h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent); margin-bottom: 0.5rem; margin-top: 1.5rem; }
.about-creds h4:first-child { margin-top: 0; }
.about-creds ul { list-style: none; }
.about-creds li { font-size: 0.92rem; color: var(--muted); padding: 0.15rem 0; }

/* CASE CARD */
.case-card {
  display: block;
  background: var(--card-bg);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 2.5rem;
  transition: border-color 0.15s, transform 0.15s;
}
.case-card:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-2px); }
.case-tag { font-family: var(--mono); font-size: 0.8rem; color: var(--accent); }
.case-card h3 { font-size: 1.5rem; margin: 0.75rem 0; color: var(--fg); letter-spacing: -0.01em; }
.case-card p { color: var(--muted); margin-bottom: 1rem; }
.case-read { font-weight: 600; color: var(--accent); }

/* PROCESS */
.process { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: step; }
.process li { background: var(--card-bg); border: 1px solid var(--rule); border-radius: 10px; padding: 1.75rem; }
.step-n { font-family: var(--mono); font-size: 0.9rem; color: var(--accent); }
.process h4 { font-size: 1.15rem; margin: 0.5rem 0; }
.process p { color: var(--muted); font-size: 0.95rem; }

/* CONTACT */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.contact-item {
  background: var(--card-bg);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.contact-item:hover { border-color: var(--accent); text-decoration: none; }
.contact-label { font-family: var(--mono); font-size: 0.8rem; color: var(--accent); }
.contact-value { font-size: 1.05rem; color: var(--fg); font-weight: 500; }

/* FOOTER */
.site-footer { border-top: 1px solid var(--rule); background: var(--bg-alt); }
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-brand { font-weight: 700; display: block; }
.footer-meta { color: var(--muted); font-size: 0.9rem; }

/* CASE STUDY PAGE */
.case-page article h2 { font-size: 1.5rem; margin: 2.5rem 0 0.75rem; letter-spacing: -0.01em; }
.case-page article p { color: var(--fg); margin-bottom: 1.1rem; font-size: 1.05rem; }
.case-page article ul { margin: 0 0 1.5rem 1.25rem; }
.case-page article li { color: var(--muted); margin-bottom: 0.6rem; font-size: 1.02rem; }
.case-page article li strong { color: var(--fg); }
.snapshot { background: var(--bg-alt); border: 1px solid var(--rule); border-radius: 10px; padding: 1.5rem; margin-bottom: 2.5rem; }
.snap-row { display: flex; justify-content: space-between; gap: 1.5rem; padding: 0.4rem 0; border-bottom: 1px solid var(--rule); font-size: 0.95rem; }
.snap-row:last-child { border-bottom: none; }
.snap-row span:first-child { color: var(--accent); font-family: var(--mono); font-size: 0.82rem; white-space: nowrap; }
.snap-row span:last-child { color: var(--fg); text-align: right; }
.techlist { font-family: var(--mono); font-size: 0.9rem; color: var(--muted); line-height: 1.9; }
.case-closer { margin-top: 3rem; padding: 2.5rem; background: var(--bg-alt); border: 1px solid var(--rule); border-radius: 10px; }
.case-closer h3 { font-size: 1.4rem; margin-bottom: 0.75rem; letter-spacing: -0.01em; }
.case-closer p { color: var(--muted) !important; margin-bottom: 1.5rem; }

/* RESPONSIVE */
@media (max-width: 800px) {
  .nav-links { gap: 1rem; font-size: 0.9rem; }
  .nav-links a:not(.nav-cta) { display: none; }
  .cred-bar { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1rem; }
  .cards { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .process { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero { padding: 4rem 1.5rem 3rem; }
}
@media (max-width: 480px) {
  .process { grid-template-columns: 1fr; }
}
