/* ==========================================================================
   FinRegGraph AI — institutional site
   Plain CSS, no dependencies. Organized: tokens → base → layout → components.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --navy-900: #0a1a2f;
  --navy-800: #10233d;
  --navy-700: #1b3050;

  --text: #33475e;
  --muted: #5c6b80;

  --accent: #2f6bff;
  --accent-soft: #eaf0ff;

  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --line: #e4e9f0;

  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(10, 26, 47, 0.06);
  --shadow-md: 0 10px 30px -12px rgba(10, 26, 47, 0.18);

  --container: 1080px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem; /* keep anchored sections clear of the fixed header */
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  color: var(--navy-900);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 650;
}

h3 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1.1rem;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.narrow {
  max-width: 46rem;
}

.center {
  text-align: center;
}

.section {
  padding: 6rem 0;
}

.section-alt {
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
}

.eyebrow {
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.note {
  color: var(--muted);
  font-size: 0.9375rem;
  border-left: 2px solid var(--accent);
  padding-left: 1rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  background: var(--navy-900);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0 0 8px 8px;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 0;
}

/* ---------- Buttons ---------- */
.button {
  display: inline-block;
  background: var(--navy-900);
  color: #fff;
  font-weight: 600;
  padding: 0.7rem 1.4rem;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  transition: background 0.15s ease, transform 0.15s ease,
    box-shadow 0.15s ease;
}

.button:hover {
  background: var(--navy-700);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.button-large {
  padding: 0.9rem 1.9rem;
  font-size: 1.0625rem;
}

.button-small {
  padding: 0.5rem 1.05rem;
  font-size: 0.9375rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--navy-900);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand:hover {
  text-decoration: none;
}

.brand em {
  font-style: normal;
  color: var(--accent);
}

.brand-mark {
  width: 1.7rem;
  height: 1.7rem;
}

.site-nav {
  display: flex;
  gap: 1.75rem;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.site-nav a:hover {
  color: var(--navy-900);
  text-decoration: none;
}

/* ---------- Hero ---------- */
.hero {
  padding: 6.5rem 0 4rem;
  text-align: center;
  background:
    radial-gradient(60rem 28rem at 50% -8rem, var(--accent-soft), transparent 70%),
    var(--bg);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy-800);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.75rem;
}

.hero-badge .dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
}

.hero h1 .accent {
  color: var(--accent);
}

.hero-subtitle {
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 600;
  color: var(--navy-800);
  margin-bottom: 1.25rem;
}

.hero-text {
  max-width: 40rem;
  margin: 0 auto 2.25rem;
  font-size: 1.125rem;
  color: var(--muted);
}

.hero-actions {
  margin-bottom: 1rem;
}

.hero-legend {
  font-size: 0.875rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.hero-figure {
  margin: 3.5rem auto 0;
  max-width: 46rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, var(--bg-soft));
  box-shadow: var(--shadow-md);
  padding: 1rem;
}

.hero-figure svg {
  display: block;
  width: 100%;
  height: auto;
}

.hero-figure .node {
  fill: var(--navy-800);
}

.hero-figure .node-accent {
  fill: var(--accent);
}

.hero-figure .node-labels text {
  fill: var(--muted);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  text-anchor: middle;
  letter-spacing: 0.02em;
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    border-color 0.15s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #cfd9e6;
}

.card h3 {
  margin-bottom: 0.4rem;
}

.card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

.card-icon {
  width: 2.1rem;
  height: 2.1rem;
  margin-bottom: 1rem;
  color: var(--accent);
  fill: var(--accent);
}

.card-icon .stroke {
  fill: none;
  stroke: var(--navy-800);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-icon .thin {
  stroke-width: 1.2;
}

/* ---------- Closing CTA ---------- */
.cta {
  background:
    radial-gradient(48rem 22rem at 50% 120%, var(--accent-soft), transparent 70%),
    var(--bg);
}

.cta p {
  color: var(--muted);
  max-width: 34rem;
  margin: 0 auto 2rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: #b9c4d4;
}

.site-footer .brand {
  color: #fff;
}

.site-footer .brand em {
  color: #5b8cff;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2.5rem;
  padding-block: 3.5rem;
}

.footer-brand p {
  margin: 1rem 0 0;
  max-width: 20rem;
  font-size: 0.9375rem;
}

.footer-label {
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.footer-contact a {
  color: #dfe6f0;
}

.footer-contact a:hover {
  color: #fff;
}

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: 1.4rem;
}

.footer-legal p {
  margin: 0;
  font-size: 0.8125rem;
  color: #8494ab;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .site-nav {
    display: none; /* small screens: brand + CTA are enough */
  }
}

@media (max-width: 720px) {

  .section {
    padding: 4rem 0;
  }

  .hero {
    padding: 4.5rem 0 3rem;
  }

  .hero-figure {
    padding: 0.5rem;
  }

  .footer-inner {
    flex-direction: column;
    padding-block: 2.5rem;
  }
}
