:root {
  --indigo: #4338CA;
  --indigo-600: #4f46e5;
  --indigo-400: #6366F1;
  --indigo-100: #e0e7ff;
  --indigo-50: #eef2ff;
  --ink: #0f172a;
  --ink-700: #1e293b;
  --slate: #475569;
  --slate-400: #94a3b8;
  --line: #e5e9f0;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.12);
  --maxw: 1120px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--indigo-600); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 1000;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; }
.brand:hover { text-decoration: none; }

.nav { display: flex; align-items: center; }
.nav-menu { list-style: none; display: flex; align-items: center; gap: 32px; }
.nav-menu a { color: var(--ink-700); font-weight: 500; font-size: 15.5px; }
.nav-menu a:hover { color: var(--indigo); text-decoration: none; }
.nav-cta {
  background: var(--ink); color: #fff !important; padding: 9px 18px; border-radius: 10px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--indigo); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0;
  cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 24px; border-radius: 12px; font-weight: 600; font-size: 16px;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease; cursor: pointer;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--indigo); color: #fff; box-shadow: 0 8px 20px rgba(67, 56, 202, 0.25); }
.btn-primary:hover { background: #3730a3; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--indigo); color: var(--indigo); }
.btn-lg { padding: 16px 32px; font-size: 18px; }

.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--indigo); margin-bottom: 14px;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--indigo-50) 0%, #ffffff 100%);
  padding: 84px 0 72px;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero-copy h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1.1; font-weight: 800;
  letter-spacing: -1px; margin-bottom: 20px;
}
.lead { font-size: 19px; color: var(--slate); max-width: 560px; }
.hero-actions { display: flex; gap: 14px; margin: 32px 0 36px; flex-wrap: wrap; }
.hero-trust { list-style: none; display: flex; gap: 32px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 24px; }
.hero-trust li { display: flex; flex-direction: column; }
.hero-trust strong { color: var(--ink); font-size: 16px; }
.hero-trust span { color: var(--slate-400); font-size: 14px; }
.hero-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; letter-spacing: -0.6px; line-height: 1.15; }
.section-head p { color: var(--slate); margin-top: 16px; font-size: 18px; }
.section-head em { color: var(--ink-700); font-style: italic; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--indigo-100); }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center;
  justify-content: center; font-size: 22px; font-weight: 700;
  background: var(--indigo-50); color: var(--indigo); margin-bottom: 20px;
}
.card h3 { font-size: 19px; margin-bottom: 10px; letter-spacing: -0.3px; }
.card p { color: var(--slate); font-size: 16px; }

/* ---------- Projects ---------- */
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.project {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .2s ease, box-shadow .2s ease;
}
.project:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.project img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.project figcaption { padding: 22px 24px 26px; }
.project h3 { font-size: 19px; margin-bottom: 6px; letter-spacing: -0.3px; }
.project p { color: var(--slate); font-size: 15.5px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 280px 1fr; gap: 56px; align-items: center; }
.about-media {
  display: flex; align-items: center; justify-content: center; padding: 48px;
  background: var(--indigo-50); border-radius: var(--radius); aspect-ratio: 1;
}
.about-copy h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -0.6px; margin-bottom: 18px; }
.about-copy p { color: var(--slate); margin-bottom: 16px; }
.about-points { list-style: none; margin-top: 24px; display: grid; gap: 12px; }
.about-points li { position: relative; padding-left: 30px; color: var(--ink-700); font-weight: 500; }
.about-points li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: #fff; background: var(--indigo);
  width: 20px; height: 20px; border-radius: 50%; font-size: 12px; display: flex;
  align-items: center; justify-content: center; margin-top: 3px;
}

/* ---------- Steps ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.steps li {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px;
}
.step-num { font-size: 36px; font-weight: 800; color: var(--indigo-100); display: block; margin-bottom: 8px; }
.steps h3 { font-size: 18px; margin-bottom: 8px; }
.steps p { color: var(--slate); font-size: 15.5px; }

/* ---------- Contact ---------- */
.contact-card {
  background: linear-gradient(135deg, var(--ink) 0%, #1e1b4b 100%);
  border-radius: 24px; padding: 64px 48px; text-align: center; color: #fff;
}
.contact-card .eyebrow { color: var(--indigo-400); }
.contact-copy h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; letter-spacing: -0.6px; margin-bottom: 14px; }
.contact-copy p { color: #cbd5e1; max-width: 520px; margin: 0 auto 28px; font-size: 18px; }
.contact-card .btn-primary { background: #fff; color: var(--ink); }
.contact-card .btn-primary:hover { background: var(--indigo-100); }
.contact-meta { margin-top: 24px !important; font-size: 14px !important; color: var(--slate-400) !important; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 56px 0 28px; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand { max-width: 320px; }
.footer-brand p { color: var(--slate); font-size: 15px; margin-top: 14px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.footer-nav a { color: var(--ink-700); font-weight: 500; font-size: 15px; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 24px; }
.footer-bottom p { color: var(--slate-400); font-size: 14px; }

/* ---------- Legal pages ---------- */
.legal { padding: 64px 0 88px; }
.legal .container { max-width: 800px; }
.legal h1 { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.6px; margin-bottom: 28px; }
.legal h2 { font-size: 1.3rem; margin: 36px 0 12px; }
.legal p { color: var(--slate); margin-bottom: 14px; }
.legal a { word-break: break-word; }
.back-link { display: inline-block; margin-bottom: 24px; font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-media { order: -1; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-media { max-width: 220px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column;
    background: #fff; border-bottom: 1px solid var(--line); padding: 16px 24px 24px;
    gap: 4px; align-items: stretch; max-height: 0; overflow: hidden; transition: max-height .3s ease;
    box-shadow: var(--shadow);
  }
  .nav-menu li { width: 100%; }
  .nav-menu a { display: block; padding: 12px 0; }
  .nav-cta { text-align: center; margin-top: 8px; }
  .nav.open .nav-menu { max-height: 360px; }
  .nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .section { padding: 60px 0; }
  .hero { padding: 56px 0 48px; }
  .cards, .projects, .steps { grid-template-columns: 1fr; }
  .contact-card { padding: 44px 24px; }
  .hero-trust { gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; transition: none !important; }
}
