:root {
  --bg: #f5f8fd;
  --paper: #ffffff;
  --ink: #10203c;
  --mute: #5c6b82;
  --line: #e4eaf3;
  --blue: #2563eb;
  --blue-d: #1b4fd1;
  --blue-s: #eef3ff;
  --shadow-sm: 0 1px 2px rgba(16,32,60,.06), 0 2px 8px rgba(16,32,60,.05);
  --shadow: 0 8px 24px rgba(16,32,60,.08);
  --shadow-lg: 0 18px 44px rgba(16,32,60,.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  color: var(--ink);
  font-family: "Outfit", system-ui, -apple-system, sans-serif;
  line-height: 1.65;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue-d); text-decoration: none; transition: color .18s; }
a:hover { color: var(--blue); }
.wrap { width: min(1140px, calc(100% - 40px)); margin: 0 auto; }

/* Header */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  position: sticky; top: 0; z-index: 50;
  width: 100vw; margin-left: calc(50% - 50vw);
  padding: 15px max(20px, calc((100vw - 1140px) / 2));
  background: rgba(255,255,255,.9);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.mark { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--ink); font-size: 18px; }
.mbox {
  width: 42px; height: 42px; border-radius: 11px;
  background: var(--blue); color: #fff;
  display: grid; place-items: center; font-weight: 800; letter-spacing: .04em; font-size: 19px;
  box-shadow: 0 6px 16px rgba(37,99,235,.32);
}
.mark small { display: block; font-weight: 500; color: var(--mute); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; }
.nav { display: flex; gap: 26px; font-size: 15px; font-weight: 500; }
.nav a { position: relative; color: var(--mute); padding: 4px 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -3px; height: 2px; width: 0;
  background: var(--blue); border-radius: 2px; transition: width .24s ease;
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { width: 100%; }

/* Buttons */
.cta {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--blue); color: #fff; font-weight: 600; font-size: 15px;
  padding: 12px 22px; border-radius: 10px; border: 0; cursor: pointer;
  box-shadow: 0 6px 16px rgba(37,99,235,.28); transition: transform .16s, box-shadow .2s, background .2s;
}
.cta:hover { background: var(--blue-d); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(37,99,235,.34); color: #fff; }
.cta:active { transform: translateY(0); }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px;
  padding: 72px 0 64px; align-items: center;
}
h1 {
  font-size: clamp(38px, 5vw, 58px); font-weight: 700; line-height: 1.08;
  letter-spacing: -.028em; color: var(--ink);
}
.lead { color: var(--mute); font-size: 19px; margin-top: 20px; max-width: 50ch; }

.hero-panel {
  background: linear-gradient(160deg, #ffffff 0%, #f2f7ff 100%);
  border: 1px solid var(--line);
  border-radius: 18px; padding: 30px;
  box-shadow: var(--shadow);
}
.hero-panel h3 { color: var(--ink); font-size: 18px; }
.hero-panel ol { margin-left: 18px; color: var(--mute); margin-top: 12px; }
.hero-panel li { margin: 11px 0; padding-left: 4px; }
.hero-panel li::marker { color: var(--blue); font-weight: 700; }

/* Metrics */
.metrics {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm);
}
.metric { padding: 26px 24px; border-right: 1px solid var(--line); transition: background .2s; }
.metric:last-child { border-right: 0; }
.metric:hover { background: var(--blue-s); }
.metric b { display: block; font-size: 30px; font-weight: 700; color: var(--blue); letter-spacing: -.01em; }
.metric span { font-size: 13.5px; color: var(--mute); }

/* Sections */
section { padding: 64px 0; }
h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 700; margin-bottom: 12px; letter-spacing: -.02em; color: var(--ink); }
h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; color: var(--ink); }
.sub { color: var(--mute); max-width: 66ch; margin-bottom: 28px; font-size: 17px; }

/* Service cards */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.svc {
  position: relative; background: var(--paper); padding: 26px 26px 26px 30px;
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .24s ease, border-color .24s ease;
}
.svc::before {
  content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 3px;
  background: var(--blue); border-radius: 0 3px 3px 0;
}
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #cfdcf5; }
.svc p { color: var(--mute); }

/* Article + FAQ */
.article { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.article p { color: #3d4c5c; margin-bottom: 14px; }
.article strong { color: var(--ink); }
.faq details {
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 18px; margin-bottom: 10px; box-shadow: var(--shadow-sm); transition: box-shadow .2s;
}
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "＋"; color: var(--blue); font-weight: 700; margin-right: 10px; }
.faq details[open] summary::before { content: "－"; }

/* Forms */
form { display: grid; gap: 14px; }
label { font-size: 13.5px; color: var(--mute); font-weight: 500; }
input, select, textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
  font: inherit; background: var(--paper); color: var(--ink);
  transition: border-color .18s, box-shadow .18s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,.14);
}
textarea { min-height: 130px; resize: vertical; }
button.cta { justify-self: start; font: inherit; }
.ok { display: none; color: var(--blue-d); font-weight: 600; }

/* Split + note panels */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.note {
  background: var(--blue-s); border: 1px solid #dbe6fb;
  border-radius: 16px; padding: 26px;
}
.note h3 { color: var(--blue-d); }

/* Footer */
footer {
  margin-top: 48px; border-top: 1px solid var(--line);
  padding: 44px 0 56px; font-size: 14px; color: var(--mute);
  background: var(--paper);
}
.foot { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 24px; }
.foot a { color: var(--mute); }
.foot a:hover { color: var(--blue); }
.legal { display: flex; gap: 16px; margin-top: 10px; flex-wrap: wrap; }

/* Subtle one-time entrance */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero > div:first-child, .hero-panel, .metrics { animation: fadeUp .6s ease both; }
.hero-panel { animation-delay: .08s; }
.metrics { animation-delay: .12s; }

@media (max-width: 820px) {
  .hero, .services, .article, .split, .foot, .metrics { grid-template-columns: 1fr; }
  .metric { border-right: 0; border-bottom: 1px solid var(--line); }
  .top { flex-wrap: wrap; gap: 12px; }
  .nav { order: 3; width: 100%; justify-content: space-between; gap: 8px; }
  .hero { padding: 44px 0 40px; }
}

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