/* ==========================================================================
   SUMN — Design Tokens & Foundation
   ========================================================================== */

@font-face {
  font-family: 'Inter';
  src: local('Inter');
}

:root {
  /* Brand palette — exact per brand sheet */
  --primary-blue: #1A5C96;
  --signal-blue: #3E8FC9;
  --slate-grey: #5A6770;
  --chalk-white: #F4F6F7;

  /* Supporting values derived from palette (not new brand colors, just tints/shades for UI states) */
  --ink: #14181B;
  --primary-blue-dim: #134870;
  --signal-blue-soft: rgba(62, 143, 201, 0.12);
  --signal-blue-soft-strong: rgba(62, 143, 201, 0.22);
  --slate-soft: rgba(90, 103, 112, 0.14);
  --hairline: rgba(20, 24, 27, 0.1);
  --hairline-on-dark: rgba(244, 246, 247, 0.16);

  /* Type scale — deliberate, not a default 1.2 ratio. Tighter at body, big jumps at display. */
  --fs-2xl: clamp(3rem, 2.2rem + 3.2vw, 5.25rem);
  --fs-xl: clamp(2.1rem, 1.7rem + 1.6vw, 3.25rem);
  --fs-lg: clamp(1.5rem, 1.3rem + 0.8vw, 2rem);
  --fs-md: clamp(1.15rem, 1.05rem + 0.3vw, 1.375rem);
  --fs-base: 1.0625rem;
  --fs-sm: 0.9375rem;
  --fs-xs: 0.8125rem;

  --lh-tight: 1.05;
  --lh-snug: 1.25;
  --lh-normal: 1.6;

  /* Spacing scale */
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2rem;
  --sp-5: 3rem;
  --sp-6: 4.5rem;
  --sp-7: 6.5rem;
  --sp-8: 9rem;

  --container-w: 1180px;
  --radius: 3px;
}

/* ==========================================================================
   Reset
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--chalk-white);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 300;
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }

a {
  color: inherit;
  text-decoration: none;
}

ul { margin: 0; padding: 0; list-style: none; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Visible keyboard focus — accessibility floor */
:focus-visible {
  outline: 2px solid var(--primary-blue);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: var(--lh-tight);
  color: var(--ink);
}

h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); font-weight: 600; }
h4 { font-size: var(--fs-md); font-weight: 600; }

p { margin: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-blue);
}

.eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal-blue);
  flex-shrink: 0;
}

.lede {
  font-size: var(--fs-md);
  font-weight: 300;
  line-height: var(--lh-snug);
  color: var(--slate-grey);
  max-width: 38ch;
}

.italic-statement {
  font-style: italic;
  font-weight: 300;
  color: var(--slate-grey);
}

/* ==========================================================================
   Layout primitives
   ========================================================================== */

.wrap {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding-left: var(--sp-4);
  padding-right: var(--sp-4);
}

@media (max-width: 640px) {
  .wrap { padding-left: var(--sp-3); padding-right: var(--sp-3); }
}

.section {
  padding-top: var(--sp-7);
  padding-bottom: var(--sp-7);
}

@media (max-width: 720px) {
  .section { padding-top: var(--sp-6); padding-bottom: var(--sp-6); }
}

.section--tight { padding-top: var(--sp-5); padding-bottom: var(--sp-5); }

.hairline {
  border: none;
  border-top: 1px solid var(--hairline);
  margin: 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5);
}

@media (max-width: 800px) {
  .grid-2 { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.8rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  border-radius: var(--radius);
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--primary-blue);
  color: var(--chalk-white);
}
.btn--primary:hover { background: var(--primary-blue-dim); transform: translateY(-1px); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--hairline);
}
.btn--ghost:hover { border-color: var(--slate-grey); transform: translateY(-1px); }

.btn--on-dark {
  background: var(--chalk-white);
  color: var(--primary-blue);
}
.btn--on-dark:hover { background: var(--signal-blue); color: var(--chalk-white); transform: translateY(-1px); }

.btn-arrow {
  transition: transform 0.18s ease;
}
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ==========================================================================
   Header / Nav
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 246, 247, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}

.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.brand svg { width: 30px; height: 30px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}

.nav-links a {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--slate-grey);
  position: relative;
  padding: 0.3rem 0;
}

.nav-links a:hover { color: var(--ink); }

.nav-links a.is-active { color: var(--ink); }
.nav-links a.is-active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--signal-blue);
}

.nav-cta { display: flex; align-items: center; gap: var(--sp-3); }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after { display: none; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--ink);
  color: var(--chalk-white);
  padding: var(--sp-6) 0 var(--sp-4);
}

.site-footer .brand { color: var(--chalk-white); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--sp-5);
  padding-bottom: var(--sp-5);
}

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-4); }
}

.footer-grid p {
  color: rgba(244, 246, 247, 0.6);
  font-size: var(--fs-sm);
  max-width: 32ch;
  margin-top: var(--sp-2);
}

.footer-col h4 {
  color: rgba(244, 246, 247, 0.45);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: var(--sp-2);
}

.footer-col a, .footer-col p {
  display: block;
  color: rgba(244, 246, 247, 0.85);
  font-size: var(--fs-sm);
  padding: 0.3rem 0;
}
.footer-col a:hover { color: var(--signal-blue); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--hairline-on-dark);
  font-size: var(--fs-xs);
  color: rgba(244, 246, 247, 0.4);
}

@media (max-width: 640px) {
  .footer-bottom { flex-direction: column; gap: var(--sp-2); text-align: center; }
}

/* ==========================================================================
   Logo mark (used in header, footer, hero ambient signature)
   ========================================================================== */

.mark-ring { stroke: var(--primary-blue); }
.mark-ring--light { stroke: var(--signal-blue); }
.mark-dot { fill: var(--signal-blue); }
