:root {
  color-scheme: light;
  --ink: #071b33;
  --ink-soft: #0c2744;
  --ink-muted: #8d8c8c;
  --ink-faint: #a8a7a7;
  --muted: var(--ink-muted);
  --line: #d5dee6;
  --line-strong: #b8c5d0;
  --panel: #ffffff;
  --canvas: #f3f6f8;
  --canvas-wash: #e8eef2;
  --brand: #1f9ad3;
  --brand-soft: #1a86b8;
  --brand-wash: rgba(31, 154, 211, 0.1);
  --danger: #c92427;
  --accent: var(--brand);
  --accent-soft: var(--brand-soft);
  --glow: rgba(31, 154, 211, 0.16);
  --shadow: 0 0.3px 0.9px rgba(7, 27, 51, 0.08), 0 1.6px 3.6px rgba(7, 27, 51, 0.06);
  --font-display: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --pad-x: clamp(1.25rem, 4vw, 1.5rem);
  --pad-y: clamp(1.25rem, 3vw, 1.5rem);
  --content: min(64rem, 100%);
  --radius: 0.25rem;
  --topbar-height: 3rem;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--canvas);
  background-image:
    radial-gradient(ellipse 90% 55% at 0% -10%, var(--glow), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(7, 27, 51, 0.06), transparent 50%),
    linear-gradient(rgba(7, 27, 51, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 27, 51, 0.03) 1px, transparent 1px);
  background-size: auto, auto, 32px 32px, 32px 32px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand);
  text-underline-offset: 0.18em;
}

a:hover { color: var(--brand-soft); }

.shell {
  width: var(--content);
  margin: 0 auto;
  padding:
    max(var(--pad-y), env(safe-area-inset-top))
    max(var(--pad-x), env(safe-area-inset-right))
    max(2.5rem, env(safe-area-inset-bottom))
    max(var(--pad-x), env(safe-area-inset-left));
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  width: 100%;
  min-height: var(--topbar-height);
  margin-bottom: clamp(1.5rem, 4vw, 2.25rem);
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  text-decoration: none;
  color: var(--ink);
}

.brand-logo {
  display: block;
  height: 1.85rem;
  width: auto;
  max-width: min(11rem, 55vw);
  object-fit: contain;
}

.brand-mark {
  display: block;
  flex: 0 0 auto;
  width: 1.75rem;
  height: 1.75rem;
  object-fit: contain;
  border-radius: var(--radius);
}

.brand-name {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.brand-security { color: var(--ink); }
.brand-tools { color: var(--brand); }

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.1rem;
  font-size: 0.875rem;
}

.nav a {
  color: var(--ink-muted);
  text-decoration: none;
  font-weight: 500;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius);
  border-left: 3px solid transparent;
  transition: color 0.12s ease, background 0.12s ease;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--brand);
  background: var(--brand-wash);
  border-left-color: var(--brand);
}

.main {
  flex: 1 1 auto;
  width: 100%;
  display: grid;
  gap: 1.25rem;
  align-content: start;
}

.hero {
  display: grid;
  gap: 0.85rem;
  width: 100%;
  max-width: 42rem;
  animation: fade-up 0.35s ease-out both;
}

.eyebrow {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand-soft);
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--ink);
  text-wrap: balance;
}

.lede {
  margin: 0;
  font-size: clamp(0.95rem, 2.2vw, 1.05rem);
  line-height: 1.65;
  color: var(--ink-muted);
}

.lede strong {
  color: var(--ink);
  font-weight: 600;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.55rem 1rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  text-align: center;
  transition: transform 0.12s ease, background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--brand);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--brand-soft);
  color: #ffffff;
}

.btn-ghost {
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.btn-ghost:hover {
  background: var(--canvas-wash);
  color: var(--brand-soft);
  border-color: var(--brand);
}

.surface {
  width: 100%;
  display: grid;
  gap: 1rem;
  animation: fade-up 0.35s ease-out 0.08s both;
}

.grid {
  display: grid;
  gap: 1rem;
  width: 100%;
  grid-template-columns: 1fr;
  align-items: stretch;
}

@media (min-width: 860px) {
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.panel {
  width: 100%;
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.1rem;
  box-shadow: var(--shadow);
}

.tile {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
  border-top: 3px solid transparent;
  transition: border-color 0.12s ease, background 0.12s ease;
}

.tile:hover {
  border-top-color: var(--brand);
  background: color-mix(in srgb, var(--panel) 92%, var(--brand) 8%);
}

.tile .kicker { margin-bottom: 0.4rem; }

.tile h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.tile p {
  margin: 0;
  margin-top: auto;
  padding-top: 0.35rem;
  color: var(--ink-muted);
  line-height: 1.55;
  font-size: 0.9rem;
}

.panel h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.panel p,
.prose p {
  margin: 0.7rem 0 0;
  color: var(--ink-muted);
  line-height: 1.65;
  font-size: 0.95rem;
}

.panel p:first-of-type,
.prose p:first-of-type { margin-top: 0; }

.panel strong,
.prose strong {
  color: var(--ink);
  font-weight: 600;
}

.kicker {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-soft);
}

.prose {
  width: 100%;
  max-width: 46rem;
  animation: fade-up 0.35s ease-out both;
}

.prose h1 {
  font-size: clamp(1.6rem, 4vw, 2.15rem);
  margin-bottom: 0.55rem;
}

.prose h2 {
  margin: 1.75rem 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--ink);
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.prose h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

.prose ul {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
  color: var(--ink-muted);
  line-height: 1.65;
}

.prose li + li { margin-top: 0.4rem; }

.meta {
  margin: 0 0 1.15rem;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.footer {
  width: 100%;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  justify-content: space-between;
  color: var(--ink-muted);
  font-size: 0.85rem;
}

.footer-copy {
  min-width: 0;
  overflow-wrap: anywhere;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
}

.footer a {
  color: var(--ink-muted);
  text-decoration: none;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius);
}

.footer a:hover { color: var(--brand); }

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 859px) {
  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .nav { justify-content: flex-start; }

  .nav a {
    border-left: none;
    border-bottom: 2px solid transparent;
  }

  .nav a:hover,
  .nav a[aria-current="page"] {
    border-bottom-color: var(--brand);
  }

  .actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .btn { width: 100%; }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

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