:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --text: #0f172a;
  --muted: #475569;
  --bg: #ffffff;
  --bg-alt: #f1f5f9;
  --dark: #0b1220;
  --radius: 12px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; }

.container { width: min(1100px, 90%); margin: 0 auto; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e2e8f0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-weight: 800; font-size: 1.4rem; color: var(--text); }
.logo span { color: var(--primary); }
.nav nav { display: flex; align-items: center; gap: 1.5rem; }
.nav nav a:not(.btn) { color: var(--muted); font-weight: 500; }
.nav nav a:not(.btn):hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--primary); color: #fff;
  padding: 0.8rem 1.4rem; border-radius: 8px;
  font-weight: 600; transition: background 0.2s;
}
.btn:hover { background: var(--primary-dark); }
.btn-small { padding: 0.5rem 1rem; }
.btn-ghost { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-ghost:hover { background: var(--primary); color: #fff; }

/* Hero */
.hero { padding: 7rem 0 6rem; background: linear-gradient(135deg, #eff6ff 0%, #ffffff 60%); }
.eyebrow { color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.85rem; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.15; margin: 1rem 0; max-width: 800px; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 650px; }
.actions { display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }

/* Sections */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }
.section h2 { font-size: 2rem; margin-bottom: 1rem; }
.section-lead { color: var(--muted); margin-bottom: 2rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: var(--radius);
  padding: 1.75rem; transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08); }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--muted); }

.tag {
  display: inline-block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  color: var(--primary); background: #dbeafe; padding: 0.2rem 0.6rem; border-radius: 999px; margin-bottom: 0.75rem;
}
.stack { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.stack li { font-size: 0.8rem; background: var(--bg-alt); padding: 0.2rem 0.6rem; border-radius: 6px; color: var(--muted); }

/* About */
.about { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; align-items: center; }
.about p { color: var(--muted); margin-bottom: 1rem; }
.stats { list-style: none; display: grid; gap: 1rem; }
.stats li { background: var(--bg-alt); border-radius: var(--radius); padding: 1.25rem; }
.stats strong { display: block; font-size: 1.4rem; color: var(--primary); }
.stats span { color: var(--muted); }

/* Capability chips */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2.5rem; max-width: 800px; }
.chips li { background: #fff; border: 1px solid #dbeafe; color: var(--primary-dark); padding: 0.35rem 0.85rem; border-radius: 999px; font-size: 0.9rem; font-weight: 500; }

/* Team */
.subhead { font-size: 1.4rem; margin-top: 3rem; }
.person { text-align: center; }
.avatar {
  width: 72px; height: 72px; margin: 0 auto 1rem; border-radius: 50%;
  background: var(--primary); color: #fff; font-weight: 700; font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
}
.role { color: var(--primary) !important; font-weight: 600; margin-bottom: 0.5rem; }
.person a { font-size: 0.85rem; word-break: break-all; }

/* Clients */
.clients { list-style: none; display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }
.clients li {
  flex: 1 1 180px; text-align: center; padding: 1.25rem; border-radius: var(--radius);
  background: var(--bg-alt); font-weight: 700; font-size: 1.2rem; color: var(--muted); letter-spacing: 0.02em;
}

/* Contact */
.section-dark { background: var(--dark); color: #e2e8f0; }
.section-dark h2 { color: #fff; }
.contact-lead { color: #94a3b8; margin-bottom: 2rem; }
.contact-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 3rem; align-items: start; }
.contact-form { display: grid; gap: 1rem; }
.contact-form label { display: grid; gap: 0.35rem; font-size: 0.9rem; color: #94a3b8; }
.contact-form input, .contact-form textarea {
  font: inherit; color: #fff; background: #111a2e; border: 1px solid #1e293b;
  border-radius: 8px; padding: 0.75rem;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--primary); border-color: transparent; }
.contact-form button { border: 0; cursor: pointer; font: inherit; font-weight: 600; justify-self: start; }
.form-sent { background: #064e3b; color: #a7f3d0; padding: 0.75rem 1rem; border-radius: 8px; }
.hidden { display: none; }
.contact-list { list-style: none; display: grid; gap: 1.25rem; }
.contact-list li { display: grid; gap: 0.15rem; }
.contact-list span { color: #64748b; font-size: 0.85rem; }
.contact-list a { color: #93c5fd; word-break: break-all; }

.footer { padding: 2rem 0; text-align: center; color: var(--muted); font-size: 0.9rem; }

@media (max-width: 720px) {
  .nav nav a:not(.btn) { display: none; }
  .about, .contact-grid { grid-template-columns: 1fr; }
  .hero { padding: 5rem 0 4rem; }
}
