:root {
  --c-bg: #ffffff;
  --c-bg-alt: #f5f8fb;
  --c-bg-dark: #0b2545;
  --c-ink: #0a1d36;
  --c-ink-soft: #4a5b73;
  --c-line: #e3e9f1;
  --c-brand: #0a4da2;
  --c-brand-dark: #063776;
  --c-brand-light: #3d8bd6;
  --c-accent: #13b38a;
  --c-accent-dark: #0b8b68;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(10, 29, 54, 0.06), 0 1px 3px rgba(10, 29, 54, 0.04);
  --shadow: 0 10px 30px -12px rgba(10, 29, 54, 0.18), 0 4px 10px -6px rgba(10, 29, 54, 0.08);
  --shadow-lg: 0 30px 60px -20px rgba(10, 29, 54, 0.25);
  --container: 1200px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--c-ink);
  background: var(--c-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "kern", "liga", "ss01";
}
img { max-width: 100%; display: block; }
a { color: var(--c-brand); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--c-brand-dark); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--c-ink);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.2rem, 4.5vw + .5rem, 3.8rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 2.5vw + .5rem, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--c-ink-soft); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }
.section-alt { background: var(--c-bg-alt); }
.section-dark { background: var(--c-bg-dark); color: #dfe9f7; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: #a9bddd; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-brand);
  padding: 6px 14px;
  background: rgba(10, 77, 162, 0.08);
  border-radius: 999px;
  margin-bottom: 20px;
}
.section-dark .eyebrow { color: #7cb7ff; background: rgba(124, 183, 255, 0.12); }

.lead { font-size: 1.15rem; color: var(--c-ink-soft); max-width: 62ch; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn-primary { background: var(--c-brand); color: #fff; box-shadow: 0 8px 24px -10px rgba(10, 77, 162, 0.55); }
.btn-primary:hover { background: var(--c-brand-dark); color: #fff; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--c-brand); border-color: var(--c-line); }
.btn-outline:hover { border-color: var(--c-brand); background: rgba(10, 77, 162, 0.05); }
.btn-dark { background: #fff; color: var(--c-ink); }
.btn-dark:hover { background: #e8f0fc; }
.btn-ghost { padding: 10px 0; color: var(--c-brand); font-weight: 600; }
.btn-ghost:hover { gap: 12px; }
.btn svg { width: 18px; height: 18px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--c-line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--c-ink);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--c-ink); }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text small { font-weight: 500; font-size: 0.72rem; color: var(--c-ink-soft); letter-spacing: 0.02em; }

.main-nav { display: flex; gap: 6px; }
.main-nav a {
  color: var(--c-ink);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
}
.main-nav a:hover { background: var(--c-bg-alt); }
.main-nav a.active { background: rgba(10, 77, 162, 0.08); color: var(--c-brand); }

.header-cta { display: flex; gap: 12px; align-items: center; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--c-ink); margin: 4px 0; border-radius: 2px; }

/* Hero */
.hero {
  position: relative;
  padding: clamp(64px, 10vw, 140px) 0 clamp(72px, 12vw, 160px);
  background:
    radial-gradient(ellipse at 80% 0%, rgba(10, 77, 162, 0.08), transparent 60%),
    radial-gradient(ellipse at 0% 100%, rgba(19, 179, 138, 0.07), transparent 55%),
    linear-gradient(180deg, #fbfdff 0%, #ffffff 100%);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero h1 {
  background: linear-gradient(120deg, var(--c-ink) 0%, var(--c-brand) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lead { font-size: 1.2rem; margin-bottom: 2rem; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual { position: relative; }
.hero-visual .mainshot {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 32px;
  background: linear-gradient(135deg, #eaf2ff 0%, #dbe9fc 100%);
  padding: 30px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual .mainshot img { max-height: 100%; object-fit: contain; filter: drop-shadow(0 30px 40px rgba(10,77,162,0.18)); }
.hero-badge {
  position: absolute;
  bottom: 24px;
  left: -20px;
  background: #fff;
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 12px;
  align-items: center;
}
.hero-badge .dot { width: 44px; height: 44px; border-radius: 50%; background: var(--c-accent); display: grid; place-items: center; color: #fff; font-weight: 700; }
.hero-badge strong { display: block; font-size: 0.95rem; color: var(--c-ink); }
.hero-badge span { font-size: 0.8rem; color: var(--c-ink-soft); }

/* Stats strip */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 40px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: -80px;
  position: relative;
  z-index: 2;
}
.stat { text-align: center; }
.stat strong { display: block; font-size: 2.4rem; color: var(--c-brand); font-weight: 800; letter-spacing: -0.02em; }
.stat span { font-size: 0.88rem; color: var(--c-ink-soft); }

/* Section header */
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }

/* Card grid */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card .icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(10, 77, 162, 0.1) 0%, rgba(19, 179, 138, 0.1) 100%);
  display: grid;
  place-items: center;
  color: var(--c-brand);
  margin-bottom: 20px;
}
.card .icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 10px; }
.card p { margin: 0; font-size: 0.95rem; }

/* Process steps */
.process { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; }
.step { position: relative; padding: 32px; background: #fff; border-radius: var(--radius); border: 1px solid var(--c-line); }
.step-num {
  position: absolute;
  top: -18px;
  left: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c-brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  box-shadow: 0 8px 18px -6px rgba(10, 77, 162, 0.5);
}
.step h3 { margin-top: 14px; }

/* Split feature */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split-visual { border-radius: var(--radius); overflow: hidden; background: var(--c-bg-alt); aspect-ratio: 4/5; display: grid; place-items: center; padding: 40px; }
.split-visual img { max-height: 100%; object-fit: contain; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--c-brand-dark) 0%, var(--c-brand) 60%, var(--c-accent) 140%);
  color: #fff;
  border-radius: var(--radius);
  padding: 56px clamp(32px, 5vw, 72px);
  display: grid;
  grid-template-columns: 1.2fr auto;
  gap: 32px;
  align-items: center;
}
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,0.8); margin: 0; max-width: 52ch; }

/* Footer */
.site-footer {
  background: var(--c-bg-dark);
  color: #a9bddd;
  padding: 72px 0 32px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand img { width: 64px; height: 64px; margin-bottom: 16px; padding: 8px; background: #fff; border-radius: 14px; object-fit: contain; }
.footer-brand p { max-width: 30ch; font-size: 0.92rem; }
.footer h4 { color: #fff; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 20px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 12px; font-size: 0.95rem; }
.footer a { color: #a9bddd; }
.footer a:hover { color: #fff; }
.social { display: flex; gap: 12px; margin-top: 20px; }
.social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: grid;
  place-items: center;
  transition: background .2s ease;
}
.social a:hover { background: var(--c-brand); }
.social svg { width: 16px; height: 16px; fill: currentColor; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 0.85rem;
  color: #6d83a6;
  flex-wrap: wrap;
  gap: 12px;
}

/* Page hero (inner pages) */
.page-hero {
  padding: clamp(80px, 10vw, 140px) 0 clamp(48px, 6vw, 80px);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(10, 77, 162, 0.1), transparent 60%),
    linear-gradient(180deg, #f6faff 0%, #ffffff 100%);
  text-align: center;
}
.page-hero .eyebrow { margin-bottom: 20px; }
.page-hero h1 { max-width: 20ch; margin: 0 auto 24px; }
.page-hero .lead { margin: 0 auto; }

/* Products */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.product {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.product-img { aspect-ratio: 4/3; overflow: hidden; background: var(--c-bg-alt); }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product:hover .product-img img { transform: scale(1.04); }
.product-body { padding: 20px; }
.product-body h3 { font-size: 1.02rem; margin-bottom: 4px; }
.product-body p { margin: 0; font-size: 0.85rem; color: var(--c-ink-soft); }

/* Downloads list */
.downloads { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.download {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid var(--c-line);
  transition: border-color .2s ease, transform .2s ease;
}
.download:hover { border-color: var(--c-brand); transform: translateX(2px); }
.download .doc {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(10, 77, 162, 0.08);
  color: var(--c-brand);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.download .doc svg { width: 22px; height: 22px; }
.download .meta { flex: 1; min-width: 0; }
.download .meta strong { display: block; color: var(--c-ink); font-size: 0.95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.download .meta span { font-size: 0.8rem; color: var(--c-ink-soft); }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; }
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}
.info-item { display: flex; gap: 16px; padding: 28px; background: var(--c-bg-alt); border-radius: var(--radius); }
.info-item .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #fff;
  color: var(--c-brand);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.info-item .icon svg { width: 22px; height: 22px; }
.info-item h3 { font-size: 0.95rem; margin-bottom: 4px; }
.info-item p { margin: 0; font-size: 0.95rem; color: var(--c-ink-soft); line-height: 1.5; }
.info-item a { color: var(--c-ink-soft); }
.info-item a:hover { color: var(--c-brand); }

.contact-form { background: #fff; padding: 40px; border-radius: var(--radius); border: 1px solid var(--c-line); }
.contact-form h2 { font-size: 1.5rem; margin-bottom: 8px; }
.contact-form p { margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; margin-bottom: 16px; }
.form-field label { font-size: 0.85rem; font-weight: 600; color: var(--c-ink); margin-bottom: 6px; }
.form-field input, .form-field textarea {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--c-line);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--c-ink);
  background: var(--c-bg-alt);
  transition: border-color .2s ease, background .2s ease;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--c-brand);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(10, 77, 162, 0.1);
}
.form-field textarea { resize: vertical; min-height: 130px; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.team-card { background: var(--c-bg-alt); border-radius: var(--radius); overflow: hidden; text-align: center; padding-bottom: 24px; }
.team-card .photo { aspect-ratio: 1/1; background: #fff; display: grid; place-items: center; padding: 24px; }
.team-card .photo img { max-height: 100%; object-fit: contain; }
.team-card h3 { font-size: 1.05rem; margin: 16px 0 4px; }
.team-card p { font-size: 0.85rem; margin: 0; }

/* Expertise numbered list (about page) */
.expertise-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.expertise-item { padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--c-line); }
.expertise-item .num { font-size: 0.8rem; font-weight: 700; color: var(--c-brand); letter-spacing: 0.1em; }
.expertise-item h3 { margin: 6px 0 10px; font-size: 1.15rem; }
.expertise-item p { margin: 0; font-size: 0.92rem; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .cta-band { grid-template-columns: 1fr; text-align: left; }
}
@media (max-width: 720px) {
  .main-nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 16px; border-bottom: 1px solid var(--c-line); gap: 0; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 16px; border-radius: 8px; }
  .nav-toggle { display: block; }
  .header-cta .btn-primary { display: none; }
  .stat-strip { margin-top: -40px; padding: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-bottom: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 28px; }
  .hero-badge { left: 16px; bottom: 16px; }
}
