:root {
  --navy: #37517e;
  --navy-deep: #243656;
  --ink: #37517e;
  --text: #444444;
  --muted: #5c6b7f;
  --accent: #47b2e4;
  --accent-strong: #147eaf;
  --paper: #f3f5fa;
  --white: #ffffff;
  --line: #e3e8f0;
  --shadow: 0 10px 30px rgba(55, 81, 126, 0.1);
  --header: 74px;
  --container: 1140px;
  --display: "Jost", "Segoe UI", sans-serif;
  --body: "Open Sans", "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.7;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--accent-strong); text-decoration: none; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 {
  margin: 0 0 0.4em;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.2;
}

p { margin: 0 0 1em; }

button, input, select, textarea { font: inherit; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -40px;
  background: var(--white);
  color: var(--navy);
  padding: 8px 12px;
  z-index: 20;
}
.skip-link:focus { top: 12px; }

.container { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  height: var(--header);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 18px rgba(36, 54, 86, 0.08);
  backdrop-filter: blur(10px);
}

.header-inner {
  height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-family: var(--display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.site-header.is-scrolled .logo { color: var(--navy); }
.logo-mark { width: 34px; height: 34px; flex: 0 0 auto; }

.nav-links { display: flex; align-items: center; gap: 8px 22px; }
.nav-links a {
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--display);
  font-size: 16px;
  font-weight: 500;
}
.site-header.is-scrolled .nav-links a { color: var(--navy); }
.site-header .nav-links a.btn,
.site-header.is-scrolled .nav-links a.btn { color: #fff; }
.nav-links a:hover { color: var(--accent); }
.nav-links a.btn:hover { color: #fff; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  padding: 8px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}
.site-header.is-scrolled .nav-toggle span { background: var(--navy); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 50px;
  padding: 12px 28px;
  border: 2px solid transparent;
  background: var(--accent-strong);
  color: var(--white);
  font-family: var(--display);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn:hover { background: #0f6d98; color: var(--white); }
.btn-nav { padding: 10px 22px; margin-left: 8px; }
.btn-light {
  background: var(--white);
  color: var(--navy);
}
.btn-light:hover { background: var(--paper); color: var(--navy); }
.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--white);
}
.btn-ghost:hover { background: var(--white); color: var(--navy); border-color: var(--white); }

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 130px 0 80px;
  color: var(--white);
  background:
    radial-gradient(circle at 85% 15%, rgba(71, 178, 228, 0.35), transparent 28%),
    radial-gradient(circle at 10% 90%, rgba(71, 178, 228, 0.16), transparent 26%),
    linear-gradient(160deg, #243656 0%, #37517e 48%, #3f6298 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 14px;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.hero-lead { font-size: 18px; color: rgba(255, 255, 255, 0.86); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.hero-art { position: relative; min-height: 420px; padding: 64px 8px 20px; }
.hero-panel {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.97);
  color: var(--text);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(16, 32, 58, 0.28);
  padding: 22px;
}
.hero-panel-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--navy);
  font-family: var(--display);
  font-weight: 600;
}
.hero-panel-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d5dbe6;
}
.hero-panel-top span:first-child { background: #ff6b6b; }
.hero-panel-top span:nth-child(2) { background: #ffd166; }
.hero-panel-top span:nth-child(3) { background: #47d16c; }
.hero-panel-top strong { margin-left: 6px; }
.hero-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.hero-metrics div {
  background: var(--paper);
  border-radius: 12px;
  padding: 14px 12px;
}
.hero-metrics small { display: block; color: var(--muted); font-size: 12px; }
.hero-metrics b { color: var(--navy); font-family: var(--display); font-size: 18px; }
.hero-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.hero-list li {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}
.hero-list i {
  display: block;
  height: 8px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--navy));
}
.float-card {
  position: absolute;
  background: var(--white);
  color: var(--navy);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
}
.float-card small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; }
.float-card-a { left: -8px; bottom: -6px; animation: floaty 5s ease-in-out infinite; }
.float-card-b { right: 18px; top: 0; animation: floaty 6s ease-in-out infinite reverse; }
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  background: #1faf62;
  margin-right: 6px;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.platform-strip { background: var(--white); padding: 28px 0; border-bottom: 1px solid var(--line); }
.platform-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--navy);
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 14px;
  opacity: 0.78;
}

.section { padding: 88px 0; }
.section-paper { background: var(--paper); }
.section-title { text-align: center; margin-bottom: 48px; }
.section-title h2 { font-size: 34px; }
.section-title h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin: 12px auto 0;
  background: var(--accent);
  border-radius: 99px;
}
.section-title p { max-width: 680px; margin: 14px auto 0; color: var(--muted); }

.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }
.about-card {
  background: linear-gradient(180deg, #37517e, #2b446e);
  color: var(--white);
  border-radius: 16px;
  min-height: 360px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: var(--shadow);
}
.about-card strong { font-family: var(--display); font-size: 28px; display: block; margin-bottom: 8px; }
.about-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }
.about-steps span {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px;
  font-size: 13px;
}
.checks { list-style: none; margin: 18px 0 0; padding: 0; }
.checks li { position: relative; padding-left: 30px; margin: 0 0 10px; }
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='white' d='M6.2 11.2 2.9 7.9l1.2-1.2 2.1 2.1 5-5 1.2 1.2z'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.why-panel { background: var(--navy); color: var(--white); border-radius: 12px; padding: 12px 28px 8px; }
.why-panel h3, .why-panel summary { color: var(--white); }
.why-panel details { border-bottom: 1px solid rgba(255, 255, 255, 0.16); padding: 14px 0; }
.why-panel details:last-child { border-bottom: 0; }
.why-panel summary {
  cursor: pointer;
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.why-panel summary::-webkit-details-marker { display: none; }
.why-panel summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; }
.why-panel details[open] summary::after { content: "–"; }
.why-panel details p { color: rgba(255, 255, 255, 0.82); margin: 10px 0 4px; }
.why-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-content: center;
}
.why-side article {
  background: var(--white);
  border-radius: 12px;
  padding: 22px 18px;
  box-shadow: var(--shadow);
}
.why-side h3 { font-size: 18px; margin-bottom: 6px; }
.why-side p { margin: 0; color: var(--muted); font-size: 14px; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card, .work-card, .info-card {
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(55, 81, 126, 0.04);
}
.service-card {
  text-align: center;
  padding: 36px 24px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.icon-bubble {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(71, 178, 228, 0.12);
  color: var(--accent-strong);
  transition: background 0.2s ease, color 0.2s ease;
}
.service-card:hover .icon-bubble { background: var(--accent-strong); color: var(--white); }
.icon-bubble svg { width: 32px; height: 32px; }
.service-card h3 { font-size: 20px; }
.service-card p { margin: 0; color: var(--muted); font-size: 15px; }

.cta {
  background:
    radial-gradient(circle at 90% 50%, rgba(71, 178, 228, 0.35), transparent 24%),
    var(--navy);
  color: var(--white);
  padding: 70px 0;
}
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.cta h2 { color: var(--white); font-size: 32px; margin-bottom: 8px; }
.cta p { margin: 0; color: rgba(255, 255, 255, 0.84); max-width: 640px; }

.work-card { overflow: hidden; display: flex; flex-direction: column; min-height: 100%; }
.work-visual { height: 148px; padding: 22px; color: var(--white); display: flex; align-items: flex-end; }
.work-visual span {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 99px;
  padding: 4px 10px;
}
.work-qlc { background: linear-gradient(135deg, #243656, #47b2e4); }
.work-rater { background: linear-gradient(135deg, #1d4e89, #49c5b6); }
.work-tms { background: linear-gradient(135deg, #3d2f73, #e0a15b); }
.work-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.work-body p { color: var(--muted); margin: 0; }
.work-body .text-link { margin-top: auto; font-family: var(--display); font-weight: 600; }

.faq { max-width: 860px; margin: 0 auto; }
.faq details {
  background: var(--white);
  border-radius: 10px;
  padding: 6px 20px;
  margin-bottom: 12px;
  box-shadow: 0 0 0 1px var(--line);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-weight: 600;
  color: var(--navy);
  font-size: 18px;
  padding: 14px 0;
}
.faq summary::-webkit-details-marker { display: none; }
.faq details p { color: var(--muted); margin-top: 0; }

.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 28px; }
.info-card { padding: 28px; box-shadow: var(--shadow); }
.info-card h3 { font-size: 22px; }
.info-card a { font-weight: 700; }
.contact-form {
  background: var(--white);
  border-radius: 10px;
  padding: 28px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.contact-form label { display: grid; gap: 6px; font-size: 14px; color: var(--navy); font-weight: 600; }
.contact-form .wide { grid-column: 1 / -1; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid #d5dce6;
  border-radius: 6px;
  padding: 12px 12px;
  color: var(--text);
  background: #fff;
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(71, 178, 228, 0.45);
  border-color: var(--accent);
}
.form-status {
  grid-column: 1 / -1;
  margin: 0;
  background: #e8f7ee;
  color: #146c43;
  border-radius: 8px;
  padding: 12px 14px;
}

.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, 0.78); padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; padding-bottom: 36px; }
.site-footer h2, .site-footer h3 { color: var(--white); }
.site-footer a { color: rgba(255, 255, 255, 0.86); }
.site-footer a:hover { color: var(--accent); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 8px; }
.legal {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 14px;
}

.inner-page { padding: calc(var(--header) + 56px) 0 88px; }
.inner-page h1 { font-size: 40px; }
.narrow { max-width: 760px; }

.empty-state { text-align: center; padding: 40px 0 10px; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 991px) {
  .logo { font-size: 22px; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(var(--header) + 8px);
    left: 20px;
    right: 20px;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    border-radius: 14px;
    padding: 16px;
    box-shadow: var(--shadow);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a, .site-header.is-scrolled .nav-links a { color: var(--navy); }
  .nav-links a.btn,
  .site-header.is-scrolled .nav-links a.btn { color: #fff; }
  .btn-nav { margin: 8px 0 0; }
  .hero-grid, .split, .why-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .card-grid, .why-side { grid-template-columns: 1fr 1fr; }
  .hero { min-height: auto; }
  .hero-art { min-height: 0; }
  .float-card-a { left: 8px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 680px) {
  .container { width: 100%; padding-left: 20px; padding-right: 20px; }
  .hero { overflow: visible; }
  .hero h1 { font-size: 34px; }
  .card-grid, .why-side, .hero-metrics, .contact-form, .about-steps { grid-template-columns: 1fr; }
  .contact-form .wide { grid-column: auto; }
  .float-card { position: static; margin-top: 12px; animation: none; }
  .hero-art { display: grid; gap: 12px; }
  .section { padding: 64px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
