/* ============ Design tokens ============ */
:root {
  --navy-950: #0b1526;
  --navy-900: #0e1a2e;
  --navy-800: #142440;
  --navy-700: #1b2f52;
  --navy-600: #24406e;
  --blue-500: #3b6fc4;
  --blue-400: #5b8fd6;
  --blue-300: #8fb8ec;
  --silver-100: #f4f7fb;
  --silver-200: #e4eaf3;
  --silver-400: #b9c6da;
  --ink: #16233f;
  --ink-soft: #4a5878;
  --white: #ffffff;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 2px 10px rgba(14, 26, 46, 0.08);
  --shadow-md: 0 12px 32px rgba(14, 26, 46, 0.12);
  --shadow-lg: 0 24px 64px rgba(14, 26, 46, 0.22);

  --container: 1160px;
  --font-sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

/* ============ Reset ============ */
* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; color: var(--navy-900); }
p { margin: 0 0 1em; color: var(--ink-soft); }

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

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

.placeholder {
  color: #b3542d;
  background: rgba(230, 140, 70, 0.12);
  padding: 0 4px;
  border-radius: 4px;
  font-style: italic;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue-400), var(--blue-500));
  color: #fff;
  box-shadow: 0 8px 20px rgba(59, 111, 196, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(59, 111, 196, 0.45); }
.btn-outline {
  background: transparent;
  border-color: var(--navy-700);
  color: var(--navy-800);
}
.btn-outline:hover { background: var(--navy-800); color: #fff; }
.btn-ghost {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.35);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255,255,255,0.18); }
.btn-lg { padding: 14px 30px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(11, 21, 38, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 40px; height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; color: #fff; }
.brand-text strong { font-size: 1.15rem; letter-spacing: 1px; }
.brand-text small { font-size: 0.6rem; letter-spacing: 3px; color: var(--blue-300); }

.main-nav ul { display: flex; gap: 30px; }
.main-nav a {
  color: var(--silver-200);
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
}
.main-nav a:hover { color: #fff; }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--blue-400);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}
.main-nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 16px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Hero ============ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 120px 0 90px;
  color: #fff;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(91, 143, 214, 0.35), transparent 60%),
    radial-gradient(700px 500px at 5% 110%, rgba(59, 111, 196, 0.25), transparent 60%),
    linear-gradient(160deg, var(--navy-950), var(--navy-800) 60%, var(--navy-700));
  z-index: -1;
}
.hero-inner { max-width: 780px; }
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue-300);
  margin-bottom: 18px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  margin-bottom: 20px;
}
.hero-sub {
  color: var(--silver-300, #cbd8ec);
  font-size: 1.08rem;
  max-width: 640px;
}
.hero-sub strong { color: #fff; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin: 30px 0 40px; }
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 0.85rem;
  color: var(--silver-400);
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
}
.hero-trust li { display: flex; align-items: center; gap: 8px; }
.hero-trust li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue-400);
}

/* ============ Sections ============ */
.section { padding: 96px 0; }
.section-alt { background: var(--silver-100); }
.section-dark {
  background: linear-gradient(160deg, var(--navy-950), var(--navy-800));
  color: #fff;
}
.section-dark h2, .section-dark .section-lead, .section-dark p { color: #fff; }
.section-tag {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--blue-500);
  margin-bottom: 12px;
}
.section-dark .section-tag { color: var(--blue-300); }
.section h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); max-width: 700px; }
.section-lead { max-width: 620px; font-size: 1.05rem; margin-bottom: 44px; }

/* ============ Grids & cards ============ */
.grid { display: grid; gap: 28px; margin-top: 20px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.value-card {
  background: #fff;
  border: 1px solid var(--silver-200);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.value-card h3 { font-size: 1.08rem; }
.value-card p { font-size: 0.92rem; margin-bottom: 0; }

.value-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, var(--blue-400), var(--navy-700));
  position: relative;
}
.value-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 22px; height: 22px;
  background: #fff;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}
.value-icon[data-icon="shield"]::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2l8 3v6c0 5-3.5 8.5-8 11-4.5-2.5-8-6-8-11V5z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2l8 3v6c0 5-3.5 8.5-8 11-4.5-2.5-8-6-8-11V5z'/%3E%3C/svg%3E");
}
.value-icon[data-icon="target"]::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Ccircle cx='12' cy='12' r='5' fill='black'/%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Ccircle cx='12' cy='12' r='5' fill='black'/%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3C/svg%3E");
}
.value-icon[data-icon="layers"]::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2 2 7l10 5 10-5zM2 12l10 5 10-5M2 17l10 5 10-5' stroke='white' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2 2 7l10 5 10-5zM2 12l10 5 10-5M2 17l10 5 10-5' stroke='white' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.value-icon[data-icon="users"]::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
}

/* Offer cards */
.offer-card {
  background: #fff;
  border: 1px solid var(--silver-200);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.offer-featured {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-700));
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}
.offer-featured h3, .offer-featured p { color: #fff; }
.offer-badge {
  position: absolute;
  top: 20px; right: 20px;
  background: var(--blue-400);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
.offer-card h3 { font-size: 1.25rem; }
.check-list { flex: 1; margin: 20px 0 28px; }
.check-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  font-size: 0.93rem;
  color: inherit;
  opacity: 0.9;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  color: var(--blue-400);
  font-weight: 700;
}
.offer-featured .check-list li::before { color: var(--blue-300); }
.offer-card .btn { align-self: flex-start; }

/* ============ Process ============ */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 30px;
  position: relative;
}
.process::before {
  content: "";
  position: absolute;
  top: 26px; left: 8%; right: 8%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--silver-400) 0 8px, transparent 8px 16px);
  z-index: 0;
}
.process-step { position: relative; z-index: 1; }
.process-num {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-400), var(--navy-700));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.process-step h3 { font-size: 1.05rem; }
.process-step p { font-size: 0.9rem; }

/* ============ Sectors ============ */
.sector-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}
.sector-chip {
  background: #fff;
  border: 1px solid var(--silver-200);
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy-800);
  box-shadow: var(--shadow-sm);
}

/* ============ Stats ============ */
.stats {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  padding: 56px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat-num { font-size: 2.1rem; font-weight: 800; color: #fff; }
.stat-label { font-size: 0.85rem; color: var(--silver-400); }

/* ============ FAQ ============ */
.faq-list { margin-top: 30px; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  border: 1px solid var(--silver-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 24px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--navy-900);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-icon {
  flex-shrink: 0;
  width: 20px; height: 20px;
  position: relative;
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  background: var(--blue-500);
  border-radius: 2px;
  transition: transform 0.25s ease;
}
.faq-icon::before { width: 100%; height: 2px; top: 9px; left: 0; }
.faq-icon::after { width: 2px; height: 100%; top: 0; left: 9px; }
.faq-question[aria-expanded="true"] .faq-icon::after { transform: rotate(90deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-answer p { padding: 0 24px 20px; margin: 0; font-size: 0.95rem; }

/* ============ Contact ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: start;
}
.contact-intro h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.contact-info { margin-top: 34px; display: flex; flex-direction: column; gap: 20px; }
.contact-info li { display: flex; flex-direction: column; gap: 4px; font-size: 0.95rem; color: var(--silver-200); }
.contact-info strong { color: #fff; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--blue-300); }

.contact-form {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-lg);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 0.85rem; font-weight: 600; color: var(--navy-800); }
.form-field input, .form-field select, .form-field textarea {
  padding: 11px 14px;
  border: 1px solid var(--silver-200);
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--ink);
  background: var(--silver-100);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--blue-400);
  box-shadow: 0 0 0 3px rgba(59, 111, 196, 0.15);
  background: #fff;
}
.form-field.has-error input, .form-field.has-error textarea { border-color: #c0392b; }
.field-error { font-size: 0.78rem; color: #c0392b; min-height: 1em; }
.form-status { margin-top: 14px; font-size: 0.9rem; font-weight: 600; text-align: center; }
.form-status.success { color: #1d8a4b; }
.form-status.error { color: #c0392b; }

/* ============ Footer ============ */
.site-footer {
  background: var(--navy-950);
  color: var(--silver-400);
  padding: 70px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo { width: 40px; margin-bottom: 14px; }
.footer-brand p { font-size: 0.88rem; color: var(--silver-400); max-width: 260px; }
.footer-col h4 { color: #fff; font-size: 0.9rem; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.88rem; color: var(--silver-400); }
.footer-col a:hover { color: #fff; }
.footer-col li { font-size: 0.88rem; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 22px 0;
  font-size: 0.8rem;
}
.footer-bottom p { margin: 0; color: var(--silver-400); }
.footer-bottom .placeholder { background: transparent; color: #d98a5f; }

/* ============ Scroll to top ============ */
.scroll-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--navy-800);
  color: #fff;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
  z-index: 400;
}
.scroll-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.scroll-top:hover { background: var(--blue-500); }

/* ============ Reveal animation ============ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ============ Responsive ============ */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .process::before { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .main-nav {
    position: fixed;
    top: 76px; left: 0; right: 0;
    background: var(--navy-900);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .main-nav.open { max-height: 400px; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 10px 24px 20px; }
  .main-nav a { display: block; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-toggle { display: flex; }
  .header-actions .btn-primary { display: none; }
  .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 100px 0 70px; }
}
