:root {
  --ink: #0b1f3a;
  --ink-soft: #50627a;
  --brand: #f49a0b;
  --brand-deep: #c96800;
  --paper: #f4f7fb;
  --surface: #ffffff;
  --line: #dce5f1;
  --shadow: 0 18px 50px rgba(11, 31, 58, 0.1);
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--paper); }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 5%, rgba(244, 154, 11, 0.16), transparent 32rem),
    linear-gradient(180deg, #fff 0, var(--paper) 38rem);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  min-height: 100vh;
}

a { color: inherit; }

.site-header,
main,
footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  border-radius: 9px;
  text-decoration: none;
  overflow: hidden;
}

.brand img {
  display: block;
  width: 144px;
  height: 60px;
  object-fit: contain;
}

.sign-in {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,0.78);
  font-weight: 700;
  text-decoration: none;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.sign-in svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.sign-in:hover { border-color: #efb44e; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(11,31,58,.08); }

main { padding: 62px 0 52px; }

.intro { max-width: 760px; }

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand-deep);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(2.55rem, 6.5vw, 5rem);
  line-height: .98;
  letter-spacing: -.055em;
}

.lede {
  max-width: 640px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 48px;
}

.service-card {
  min-height: 188px;
  padding: 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 1px 0 rgba(11,31,58,.02);
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.service-card:hover,
.service-card:focus-visible {
  transform: translateY(-4px);
  border-color: #efb44e;
  box-shadow: var(--shadow);
  outline: none;
}

.service-card--primary {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(145deg, #0b1f3a, #233b59 72%, #8b4a00);
  box-shadow: 0 18px 42px rgba(11,31,58,.22);
}

.icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--brand-deep);
  background: #fff3dd;
}

.service-card--primary .icon { color: #fff; background: rgba(255,255,255,.13); }
.icon svg, .shield svg { width: 25px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

.card-copy { align-self: end; grid-column: 1 / 3; display: grid; gap: 5px; }
.card-copy strong { font-size: 1.22rem; line-height: 1.25; }
.card-copy span { color: var(--ink-soft); font-size: .94rem; }
.service-card--primary .card-copy span { color: rgba(255,255,255,.72); }

.arrow { font-size: 1.25rem; line-height: 1; color: #8495aa; }
.service-card--primary .arrow { color: rgba(255,255,255,.72); }

.access-note {
  margin-top: 28px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.72);
}

.access-note p { margin: 0; color: var(--ink-soft); }
.access-note strong { color: var(--ink); }
.shield { flex: 0 0 auto; width: 40px; height: 40px; display: grid; place-items: center; color: var(--brand-deep); }

footer {
  min-height: 92px;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: .9rem;
}

footer a { font-weight: 700; text-decoration: none; }
footer a:hover { color: var(--brand-deep); }

@media (max-width: 900px) {
  main { padding-top: 42px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .site-header, main, footer { width: min(100% - 28px, 1180px); }
  .site-header { min-height: 76px; }
  .sign-in { padding-inline: 13px; font-size: .9rem; }
  main { padding: 38px 0 40px; }
  h1 { font-size: clamp(2.5rem, 14vw, 4rem); }
  .service-grid { grid-template-columns: 1fr; margin-top: 36px; }
  .service-card { min-height: 164px; }
  .access-note { align-items: flex-start; }
  footer { align-items: flex-start; flex-direction: column; gap: 8px; }
}

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