/* ──────────────────────────────────────────────────────────────────────
   LEXOKU — shared styles
   White background · DM Sans · navy ink · sky accents
─────────────────────────────────────────────────────────────────────── */

:root {
  /* Core palette — app-native */
  --white:        #FFFFFF;
  --bg:           #FFFFFF;
  --surface:      #F8FAFB;
  --surface-2:    #F1F5F8;

  --ink:          #1B3A52;   /* primary navy — headings, buttons */
  --ink-deep:     #122838;
  --ink-body:     #4A5A68;   /* body copy */
  --ink-muted:    #8A9099;   /* captions, hints */

  --sky:          #89C4E1;   /* accent — bank tiles, highlights */
  --sky-deep:     #6AADCF;   /* decorative sky — backgrounds, gradients, hover, focus ring */
  --sky-contrast: #3B7798;   /* sky for text on white and section-alt — passes WCAG AA (4.7:1+) */
  --sky-soft:     #DCECF5;
  --sky-wash:     #EAF4FA;   /* used only for light highlights, not bg */

  --ink-muted-strong: #6B7280; /* muted text that passes WCAG AA on white (4.9:1) */

  --line:         #E5E7EB;
  --line-strong:  #CBD5E1;

  --success:      #2F7D4B;
  --warn:         #D97706;
  --danger:       #DC2626;

  /* Typography */
  --font:         'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', 'SF Mono', ui-monospace, monospace;

  /* Rhythm */
  --max-w:        1200px;
  --gutter:       clamp(1rem, 4vw, 2rem);
  --radius-sm:    6px;
  --radius:       10px;
  --radius-lg:    16px;
  --radius-xl:    20px;

  /* Motion */
  --ease:         cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadow — minimal, used only functionally */
  --shadow-sm:    0 1px 2px rgba(27,58,82,0.04);
  --shadow:       0 4px 12px -4px rgba(27,58,82,0.10);
  --shadow-lg:    0 20px 40px -20px rgba(27,58,82,0.20);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ──────────────────────────────────────────────────────────────────────
   NAV
─────────────────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--white) 88%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 17px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: block;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin-left: 24px;
}
@media (min-width: 721px) {
  .nav-links { gap: 28px; margin-left: 32px; }
}
.nav-links a:not(.nav-cta) {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-body);
  transition: color 0.2s var(--ease);
}
.nav-links a:not(.nav-cta):hover,
.nav-links a:not(.nav-cta)[aria-current="page"] { color: var(--ink); }

.nav-cta {
  background: var(--ink);
  color: var(--white);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.nav-cta:hover { background: var(--ink-deep); color: var(--white); transform: translateY(-1px); }

@media (max-width: 720px) {
  .nav-links li.nav-desktop-only { display: none; }
}

/* ──────────────────────────────────────────────────────────────────────
   BUTTONS
─────────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--ink);
  color: var(--white);
}
.btn-primary:hover { background: var(--ink-deep); transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(27,58,82,0.4); }
.btn-ghost {
  color: var(--ink);
  border-color: var(--line-strong);
  background: var(--white);
}
.btn-ghost:hover { background: var(--surface); border-color: var(--ink); }
.btn svg { width: 16px; height: 16px; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; }

/* ──────────────────────────────────────────────────────────────────────
   EYEBROW / META
─────────────────────────────────────────────────────────────────────── */
.eyebrow {
  font-size: 11px;
  font-weight: 500;
  color: var(--sky-contrast);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ──────────────────────────────────────────────────────────────────────
   FOOTER
─────────────────────────────────────────────────────────────────────── */
.foot {
  border-top: 1px solid var(--line);
  margin-top: clamp(4rem, 10vw, 6rem);
  padding: 3rem 0 2rem;
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 700px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
.foot-brand p {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-body);
  max-width: 22rem;
  line-height: 1.55;
}
.foot h3,
.foot h4 {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-muted-strong);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.foot ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.foot a {
  font-size: 14px;
  color: var(--ink);
  transition: color 0.2s var(--ease);
}
.foot a:hover { color: var(--sky-deep); }
.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-muted-strong);
  flex-wrap: wrap;
  gap: 10px;
}

/* ──────────────────────────────────────────────────────────────────────
   REVEAL
─────────────────────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }

/* Focus */
:focus-visible {
  outline: 2px solid var(--sky-deep);
  outline-offset: 3px;
  border-radius: 4px;
}
::selection { background: var(--sky-soft); color: var(--ink); }
