/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --bg-dark: #0e1b2c;
  --ink: #0e1b2c;
  --ink-soft: #42546b;
  --ink-muted: #6b7a8f;
  --brand: #1a5fb4;
  --brand-dark: #144a8d;
  --brand-light: #e8f0fb;
  --accent: #f4a52b;
  --accent-dark: #d88e18;
  --border: #dde4ec;
  --success: #2e8a57;
  --shadow-sm: 0 1px 3px rgba(14,27,44,0.08);
  --shadow-md: 0 6px 20px rgba(14,27,44,0.08);
  --shadow-lg: 0 20px 50px rgba(14,27,44,0.12);
  --radius: 10px;
  --radius-lg: 16px;
}

html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

img { max-width: 100%; display: block; }

h1, h2, h3, h4 { line-height: 1.2; color: var(--ink); font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }

p { color: var(--ink-soft); }

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

/* ===== Header / Nav ===== */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0;
}
.brand {
  display: flex; align-items: center; gap: 0.65rem;
  font-weight: 800; color: var(--ink); font-size: 1.1rem;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 36px; height: 36px; border-radius: 8px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
  display: grid; place-items: center; color: #fff; font-weight: 900;
}
.nav-links { display: flex; gap: 1.75rem; align-items: center; }
.nav-links a { color: var(--ink-soft); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--brand); }
.nav-cta {
  background: var(--brand); color: #fff !important;
  padding: 0.55rem 1.1rem; border-radius: var(--radius);
  font-weight: 600;
}
.nav-cta:hover { background: var(--brand-dark); color: #fff !important; }

.nav-toggle {
  display: none; background: none; border: 0;
  padding: 0.4rem; cursor: pointer; color: var(--ink);
}

/* ===== Buttons ===== */
.btn {
  display: inline-block; padding: 0.85rem 1.6rem;
  border-radius: var(--radius); font-weight: 600; font-size: 1rem;
  text-align: center; cursor: pointer; transition: all 0.18s ease;
  border: 1px solid transparent;
}
.btn-primary { background: var(--brand); color: #fff !important; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-accent { background: var(--accent); color: var(--ink) !important; }
.btn-accent:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; color: #fff !important; border-color: rgba(255,255,255,0.35); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); }
.btn-outline { background: transparent; color: var(--brand) !important; border-color: var(--brand); }
.btn-outline:hover { background: var(--brand-light); }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0e1b2c 0%, #153b6e 55%, #1a5fb4 100%);
  color: #fff;
  padding: 5.5rem 0 5rem;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1200px 500px at 90% -10%, rgba(244,165,43,0.18), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(26,95,180,0.3), transparent 60%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  padding: 0.4rem 0.9rem; border-radius: 999px;
  font-size: 0.85rem; letter-spacing: 0.02em; margin-bottom: 1.25rem;
}
.hero-badge .dot { width: 7px; height: 7px; background: var(--accent); border-radius: 50%; }
.hero h1 { color: #fff; margin-bottom: 1.25rem; max-width: 780px; }
.hero h1 .hl { color: var(--accent); }
.hero p.lead {
  color: rgba(255,255,255,0.86); font-size: 1.15rem; max-width: 640px;
  margin-bottom: 2rem;
}
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* ===== Sections ===== */
section { padding: 4.5rem 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.75rem; }
.eyebrow {
  display: inline-block; font-size: 0.78rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--brand); font-weight: 700;
  margin-bottom: 0.75rem;
}
.section-head h2 { margin-bottom: 0.75rem; }
.section-head p { font-size: 1.05rem; }

.bg-alt { background: var(--bg-alt); }

/* ===== Stats strip ===== */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.75rem; margin-top: -3.5rem; position: relative; z-index: 2;
  box-shadow: var(--shadow-lg);
}
.stat { text-align: center; }
.stat .num { font-size: 2rem; font-weight: 800; color: var(--brand); line-height: 1; }
.stat .label { color: var(--ink-muted); font-size: 0.88rem; margin-top: 0.35rem; }

/* ===== Vertical cards ===== */
.verticals {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.vcard {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 2rem 1.75rem; transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  display: flex; flex-direction: column;
}
.vcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--brand); }
.vcard .icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--brand-light); color: var(--brand);
  display: grid; place-items: center; margin-bottom: 1.1rem; font-size: 1.5rem;
}
.vcard h3 { margin-bottom: 0.5rem; }
.vcard p { margin-bottom: 1.25rem; font-size: 0.97rem; }
.vcard ul { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.vcard li {
  padding: 0.35rem 0 0.35rem 1.4rem; position: relative;
  color: var(--ink-soft); font-size: 0.93rem;
}
.vcard li::before {
  content: "✓"; position: absolute; left: 0; top: 0.35rem;
  color: var(--success); font-weight: 700;
}
.vcard .more { margin-top: auto; font-weight: 600; }
.vcard .more::after { content: " →"; transition: margin-left 0.18s; }
.vcard .more:hover::after { margin-left: 4px; }

/* ===== Feature grid (why us) ===== */
.features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
}
.feature { text-align: left; }
.feature .ficon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--brand-light); color: var(--brand);
  display: grid; place-items: center; margin-bottom: 0.9rem;
  font-size: 1.25rem; font-weight: 700;
}
.feature h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.feature p { font-size: 0.95rem; }

/* ===== Process (timeline) ===== */
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem;
  counter-reset: step;
}
.step {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; position: relative;
}
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -14px; left: 1.25rem;
  background: var(--accent); color: var(--ink);
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800;
  box-shadow: var(--shadow-sm);
}
.step h3 { font-size: 1.02rem; margin: 0.5rem 0 0.4rem; }
.step p { font-size: 0.92rem; }

/* ===== CTA band ===== */
.cta-band {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 100%);
  color: #fff; border-radius: var(--radius-lg);
  padding: 3rem 2.5rem; display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap; box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; max-width: 640px; }
.cta-band p { color: rgba(255,255,255,0.85); margin-top: 0.5rem; max-width: 640px; }

/* ===== Contact form ===== */
.contact-wrap {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: start;
}
.contact-info dl { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; row-gap: 0.6rem; margin-top: 1.25rem; }
.contact-info dt { font-weight: 700; color: var(--ink); }
.contact-info dd { color: var(--ink-soft); }
.form {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.75rem; box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 1rem; }
.field label {
  display: block; font-weight: 600; font-size: 0.9rem;
  color: var(--ink); margin-bottom: 0.35rem;
}
.field input, .field select, .field textarea {
  width: 100%; padding: 0.7rem 0.85rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  font: inherit; color: var(--ink); background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(26,95,180,0.15);
}
.field textarea { resize: vertical; min-height: 110px; }
.form-status { margin-top: 0.75rem; font-size: 0.9rem; min-height: 1.2rem; }
.form-status.ok { color: var(--success); }
.form-status.err { color: #b0253a; }

/* ===== Page hero (sub pages) ===== */
.page-hero {
  background: linear-gradient(135deg, #0e1b2c 0%, #153b6e 100%);
  color: #fff; padding: 4.5rem 0 3.5rem;
}
.page-hero .eyebrow { color: var(--accent); }
.page-hero h1 { color: #fff; max-width: 780px; margin-bottom: 0.75rem; }
.page-hero p { color: rgba(255,255,255,0.85); max-width: 700px; font-size: 1.1rem; }
.breadcrumb {
  font-size: 0.88rem; color: rgba(255,255,255,0.7);
  margin-bottom: 1rem;
}
.breadcrumb a { color: rgba(255,255,255,0.9); }
.breadcrumb a:hover { color: #fff; }

/* ===== Catalog grid (sub pages) ===== */
.catalog {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.cat-item {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; transition: border-color 0.18s, box-shadow 0.18s;
}
.cat-item:hover { border-color: var(--brand); box-shadow: var(--shadow-md); }
.cat-item h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.cat-item p { font-size: 0.93rem; }
.cat-item .tag {
  display: inline-block; font-size: 0.75rem; font-weight: 700;
  color: var(--brand); background: var(--brand-light);
  padding: 0.2rem 0.55rem; border-radius: 4px;
  letter-spacing: 0.03em; text-transform: uppercase;
  margin-bottom: 0.6rem;
}

/* ===== Two-column split ===== */
.split {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center;
}
.split .media {
  background: linear-gradient(135deg, var(--brand-light) 0%, #fff 100%);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3; display: grid; place-items: center;
  color: var(--brand); font-weight: 700;
  box-shadow: var(--shadow-md);
}

/* ===== Footer ===== */
.site-footer {
  background: #0e1b2c; color: rgba(255,255,255,0.75);
  padding: 3rem 0 2rem; margin-top: 4rem;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem;
  padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 0.75rem; }
.site-footer a { color: rgba(255,255,255,0.75); display: block; padding: 0.2rem 0; font-size: 0.92rem; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; margin-bottom: 0.75rem; }
.site-footer .copy {
  padding-top: 1.5rem; font-size: 0.85rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}

/* ===== Section reference codes (dev-facing labels) ===== */
section, .site-footer, .site-header { position: relative; }
.section-code {
  position: absolute;
  top: 0.55rem; right: 0.7rem;
  background: rgba(14,27,44,0.88); color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.68rem; font-weight: 700;
  padding: 0.2rem 0.5rem; border-radius: 4px;
  letter-spacing: 0.06em;
  z-index: 5;
  pointer-events: none; user-select: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.12);
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .verticals, .features, .catalog { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .contact-wrap, .split { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  section { padding: 3rem 0; }
  .hero { padding: 3.75rem 0 3rem; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links.open {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: #fff; padding: 1rem;
    border-bottom: 1px solid var(--border); gap: 0.5rem;
  }
  .verticals, .features, .catalog { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; margin-top: -2rem; padding: 1.25rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 2rem 1.5rem; }
}
