/* ── DESIGN SYSTEM — OPu IT ──────────────────────────── */
:root {
  --bg:           #f8fafc;
  --surface:      #ffffff;
  --accent:       #1e40af;
  --accent-mid:   #2563eb;
  --accent-light: #eff6ff;
  --accent-glow:  rgba(37, 99, 235, 0.18);
  --text:         #0f172a;
  --muted:        #64748b;
  --border:       #e2e8f0;
  --shadow-sm:    0 1px 4px rgba(15,23,42,0.06), 0 1px 2px rgba(15,23,42,0.03);
  --shadow:       0 4px 20px rgba(15,23,42,0.09), 0 2px 6px rgba(15,23,42,0.04);
  --shadow-lg:    0 12px 40px rgba(15,23,42,0.13), 0 4px 12px rgba(15,23,42,0.06);
  --radius:       16px;
  --radius-sm:    10px;
  --font-head:    'Outfit', sans-serif;
  --font-body:    'DM Sans', sans-serif;
}

/* ── RESET & BASE ────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
p { color: var(--muted); line-height: 1.75; margin-bottom: 16px; }
p:last-child { margin-bottom: 0; }
ul { color: var(--muted); line-height: 1.85; padding-left: 20px; margin: 0 0 24px; }
h1, h2, h3 { font-family: var(--font-head); color: var(--text); line-height: 1.2; }
h1 { font-size: 2rem; font-weight: 800; margin-bottom: 12px; }
h2 { font-size: 1.2rem; font-weight: 700; margin: 0 0 12px; }
h3 { font-size: 0.95rem; font-weight: 700; margin: 0 0 6px; }
a { color: var(--accent-mid); }

/* ── ACCESSIBILITY ───────────────────────────────────── */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent-mid);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── SCROLL ANIMATIONS ───────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.fade-up.visible { opacity: 1; transform: none; }

/* ── HEADER ──────────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 40px;
  background: rgba(248, 250, 252, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.logo {
  font-family: var(--font-head);
  font-size: 21px;
  font-weight: 800;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -0.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.logo img {
  height: 30px;
  width: auto;
}
nav { /* no links */ }

/* ── DOT GRID MIXIN ──────────────────────────────────── */
.dot-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, #cbd5e1 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.55;
  pointer-events: none;
}

/* ── HERO (INDEX) ────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 20px 80px;
  text-align: center;
  background: var(--surface);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, #cbd5e1 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.5;
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  width: 700px;
  height: 700px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(37,99,235,0.22) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  animation: glow-pulse 6s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}
.hero-content { position: relative; z-index: 1; }
.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--accent-mid);
  background: var(--accent-light);
  border: 1px solid rgba(37,99,235,0.15);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.12;
  max-width: 680px;
  margin: 0 auto 18px;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent-mid);
}
.hero-sub {
  max-width: 500px;
  margin: 0 auto 36px;
  font-size: 17px;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  background: var(--accent);
  color: white;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.2s, transform 0.18s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(30,64,175,0.35);
}
.btn-primary:hover {
  background: var(--accent-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(30,64,175,0.42);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, transform 0.18s;
}
.btn-secondary:hover {
  border-color: var(--accent-mid);
  color: var(--accent-mid);
  background: var(--accent-light);
  transform: translateY(-2px);
}

/* ── SERVICES ────────────────────────────────────────── */
.services {
  padding: 72px 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.section-header { text-align: center; margin-bottom: 40px; }
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.section-sub { font-size: 16px; }

/* ── GRID / CARDS ────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(252px, 1fr));
  gap: 16px;
  align-items: stretch;
}
.card {
  background: var(--surface);
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: box-shadow 0.22s, transform 0.22s, border-color 0.22s;
}
.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  border-color: rgba(37,99,235,0.25);
}
.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: var(--accent-light);
  flex-shrink: 0;
}
.card h3 { font-size: 14px; font-weight: 700; margin-bottom: 5px; }
.card p { font-size: 13px; line-height: 1.6; margin: 0; }
a.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  border-radius: var(--radius);
  transition: transform 0.22s;
}
a.card-link .card { height: 100%; box-sizing: border-box; }
a.card-link:hover .card {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  border-color: rgba(37,99,235,0.25);
}
.card-arrow { margin-top: 10px; font-size: 12px; font-weight: 700; color: var(--accent-mid); letter-spacing: 0.3px; }

/* ── CTA SECTION ─────────────────────────────────────── */
.cta-section { text-align: center; margin-top: 48px; }

/* ── CONTACT FORM ────────────────────────────────────── */
form.contact {
  display: flex;
  flex-direction: column;
  gap: 11px;
  max-width: none;
  margin: 0;
  padding: 0;
  background: none;
  box-shadow: none;
  border-radius: 0;
}
form.contact input, form.contact textarea {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  font-size: 14px;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}
form.contact input:focus, form.contact textarea:focus {
  border-color: var(--accent-mid);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
form.contact textarea { resize: vertical; font-family: var(--font-body); }
form.contact button {
  padding: 13px 20px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: white;
  border: none;
  font-weight: 600;
  font-size: 15px;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(30,64,175,0.32);
  width: 100%;
}
form.contact button:hover {
  background: var(--accent-mid);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(30,64,175,0.38);
}

/* ── SUBPAGE LAYOUT ──────────────────────────────────── */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 60px 24px 52px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, #cbd5e1 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.5;
  pointer-events: none;
}
.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
}
.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.lead {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.75;
  max-width: 580px;
}

main {
  max-width: 820px;
  margin: 52px auto;
  padding: 0 24px;
}
main h2 { font-size: 1.1rem; margin: 32px 0 12px; }

/* ── REFERENCE BLOCK ─────────────────────────────────── */
.ref-block {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-top: 36px;
}
.ref-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-mid);
  margin: 0 0 10px;
  display: block;
}
.ref-block h3 { font-size: 16px; color: var(--text); margin-bottom: 8px; }
.ref-block p { font-size: 14px; margin-bottom: 12px; }
.ref-link { color: var(--accent-mid); font-weight: 600; text-decoration: none; font-size: 14px; }
.ref-link:hover { text-decoration: underline; }

/* ── CTA BLOCK ───────────────────────────────────────── */
.cta {
  margin-top: 36px;
  padding: 36px 32px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-mid) 100%);
  border-radius: var(--radius);
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; }
.cta h2 { color: white; font-size: 1.3rem; margin-bottom: 8px; }
.cta p { color: rgba(255,255,255,0.82); margin-bottom: 20px; font-size: 15px; }
.cta a {
  display: inline-block;
  padding: 12px 28px;
  background: white;
  color: var(--accent);
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
  font-size: 15px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.cta a:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.18); }

/* ── BACK LINK ───────────────────────────────────────── */
a.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 40px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}
a.back:hover { color: var(--accent-mid); }

/* ── FOOTER ──────────────────────────────────────────── */
footer {
  text-align: center;
  padding: 28px 20px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--border);
  margin-top: 0;
  background: var(--surface);
}

/* ── CONTACT PAGE ────────────────────────────────────── */
.contact-hero {
  position: relative;
  overflow: hidden;
  padding: 64px 24px 56px;
  text-align: center;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.contact-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, #cbd5e1 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.5;
  pointer-events: none;
}
.contact-hero-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(37,99,235,0.12) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}
.contact-hero h1 {
  position: relative;
  z-index: 1;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: -1px;
  margin-bottom: 10px;
}
.contact-hero p { position: relative; z-index: 1; font-size: 16px; }
.contact-layout {
  max-width: 820px;
  margin: 44px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 20px;
  align-items: start;
}
.contact-info-card, .contact-form-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.contact-info-card h2, .contact-form-card h2 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
  margin: 0 0 22px;
}
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 16px;
}
.contact-detail:last-child { margin-bottom: 0; }
.contact-detail-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.contact-detail-text { line-height: 1.4; }
.contact-detail-text strong {
  display: block;
  font-size: 10px;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 3px;
}
.contact-detail-text a, .contact-detail-text span {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.contact-detail-text a:hover { color: var(--accent-mid); }

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 640px) {
  header { padding: 14px 20px; }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-hero { padding: 48px 20px 40px; }
}
@media (max-width: 560px) {
  .hero { padding: 64px 20px 56px; }
  .hero h1 { letter-spacing: -0.8px; }
  .services { padding: 52px 16px; }
  .page-hero { padding: 44px 20px 36px; }
  main { margin: 36px auto; padding: 0 16px; }
}
