/* ============================================================
   ABBI DIGITAL: Design tokens + base + nav + footer
   ============================================================ */

:root {
  /* Brand palette */
  --blue: #5344FA;
  --warm-white: #F3F0EE;
  --black: #181517;
  --green: #61CE36;
  --purple: #36228C;
  --light-blue: #159DFF;

  /* Tones derived from palette (warm/cool, low chroma) */
  --warm-white-2: #ECE8E4;
  --warm-white-3: #E4DFD9;
  --ink-60: rgba(24, 21, 23, 0.60);
  --ink-45: rgba(24, 21, 23, 0.45);
  --ink-12: rgba(24, 21, 23, 0.12);
  --ink-08: rgba(24, 21, 23, 0.08);
  --paper-on-dark: rgba(243, 240, 238, 0.62);
  --paper-on-dark-40: rgba(243, 240, 238, 0.40);
  --line-on-dark: rgba(243, 240, 238, 0.12);
  --blue-12: rgba(83, 68, 250, 0.12);
  --blue-20: rgba(83, 68, 250, 0.20);

  --gradient-blue-purple: linear-gradient(135deg, #5344FA 0%, #36228C 100%);
  --gradient-lightblue-blue: linear-gradient(135deg, #159DFF 0%, #5344FA 100%);

  /* Radii: tightened toward a crisper, more geometric feel (Twenty-leaning)
     while keeping pills round so the brand stays warmer than full-square. */
  --radius-xs: 5px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 999px;

  /* Layout */
  --container-max: 1200px;
  --section-y: 128px;
  --gutter: clamp(20px, 5vw, 64px);

  /* Type */
  --font-display: "Space Grotesk", "Arial Black", sans-serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

  /* Shadows: Twenty-leaning: soft, neutral, low-spread. Structure comes from
     hairline borders, not colored glows. */
  --shadow-sm: 0 1px 2px rgba(24,21,23,0.04), 0 1px 3px rgba(24,21,23,0.06);
  --shadow-md: 0 2px 4px rgba(24,21,23,0.04), 0 8px 24px -12px rgba(24,21,23,0.14);
  --shadow-lg: 0 4px 8px rgba(24,21,23,0.05), 0 24px 48px -24px rgba(24,21,23,0.20);
  --ring: 0 0 0 1px var(--ink-08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--warm-white);
  color: var(--black);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }

/* ---- Shared layout ---- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section { position: relative; }

.section-pad { padding-block: clamp(80px, 12vw, 128px); }

/* Mono eyebrow label */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--blue);
  transform: rotate(45deg);
}
.eyebrow.on-dark { color: var(--light-blue); }
.eyebrow.on-dark::before { background: var(--light-blue); }

/* Emphasis spans */
.hl-blue { color: var(--blue); }
.hl-purple { color: var(--purple); }
.dot-green {
  display: inline-block;
  width: 0.34em; height: 0.34em;
  border-radius: 50%;
  background: var(--green);
  margin-left: 0.12em;
  vertical-align: 0.18em;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  padding: 15px 26px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease),
    box-shadow 0.22s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: var(--blue);
  color: var(--warm-white);
  box-shadow: 0 1px 2px rgba(83,68,250,0.24), 0 1px 0 rgba(255,255,255,0.12) inset;
}
.btn-primary:hover {
  background: #4636e8;
  box-shadow: 0 2px 8px -2px rgba(83,68,250,0.34), 0 1px 0 rgba(255,255,255,0.16) inset;
  transform: translateY(-1px);
}
.btn-secondary {
  background: transparent;
  color: var(--black);
  border-color: var(--ink-12);
}
.btn-secondary:hover { border-color: var(--black); transform: translateY(-1px); }
.btn-secondary.on-dark { color: var(--warm-white); border-color: var(--line-on-dark); }
.btn-secondary.on-dark:hover { border-color: rgba(243,240,238,0.5); }
.btn-green {
  background: var(--green);
  color: var(--black);
  box-shadow: 0 1px 2px rgba(97,206,54,0.24);
}
.btn-green:hover { transform: translateY(-1px); box-shadow: 0 2px 8px -2px rgba(97,206,54,0.34); }
.btn-ghost-arrow {
  background: transparent;
  padding: 6px 0;
  color: var(--blue);
  font-weight: 600;
}
.btn-ghost-arrow svg { transition: transform 0.2s var(--ease); }
.btn-ghost-arrow:hover svg { transform: translateX(4px); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 80;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), backdrop-filter 0.3s;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}
.nav.scrolled {
  background: rgba(243, 240, 238, 0.78);
  backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 1px 0 var(--ink-08);
}
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 34px; width: auto; display: block; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-60);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  transition: color 0.18s, background 0.18s;
}
.nav-links a:hover { color: var(--black); background: var(--ink-08); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-cta .btn { padding: 11px 20px; font-size: 15px; }
.nav-burger { display: none; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta .btn-secondary { display: none; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--black);
  color: var(--warm-white);
  padding-block: 88px 40px;
  position: relative;
  overflow: hidden;
}
.footer-glow {
  position: absolute;
  width: 900px; height: 600px;
  left: 50%; bottom: -340px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(83,68,250,0.42), transparent 62%);
  pointer-events: none;
  filter: blur(20px);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  position: relative;
}
.footer-brand img { height: 56px; margin-bottom: 22px; }
.footer-brand p { color: var(--paper-on-dark); font-size: 15px; max-width: 30ch; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-on-dark-40);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col a {
  color: var(--paper-on-dark);
  font-size: 15px;
  transition: color 0.18s, transform 0.18s;
  display: inline-block;
}
.footer-col a:hover { color: var(--warm-white); transform: translateX(3px); }
.footer-line {
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--line-on-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  position: relative;
}
.footer-tagline {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 22ch;
}
.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  font-size: 13px;
  color: var(--paper-on-dark-40);
}
.footer-legal a { color: var(--paper-on-dark-40); }
.footer-legal a:hover { color: var(--paper-on-dark); }
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-line { flex-direction: column; align-items: flex-start; }
  .footer-legal { align-items: flex-start; }
}

/* ============================================================
   REVEAL SYSTEM (IntersectionObserver toggles .is-in)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }

.reveal-scale {
  opacity: 0;
  transform: scale(0.96) translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal-scale.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-scale { opacity: 1 !important; transform: none !important; transition: none !important; }
}
