/* ================================================================
   Instances — Dark-only, redesigned
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ── Design Tokens (Dark only) ─────────────────────────────── */
:root {
  --primary:              #d0bcff;
  --primary-dim:          #a78bfa;
  --on-primary:           #381e72;
  --primary-container:    #4f378b;
  --on-primary-container: #eaddff;

  --secondary:            #ccc2dc;
  --secondary-container:  #4a4458;
  --on-secondary-container:#e8def8;

  --bg:          #0f0d13;
  --surface:     #141218;
  --surface-1:   color-mix(in srgb, var(--primary) 5%,  var(--surface));
  --surface-2:   color-mix(in srgb, var(--primary) 8%,  var(--surface));
  --surface-3:   color-mix(in srgb, var(--primary) 11%, var(--surface));
  --on-surface:  #e6e1e5;
  --on-surface-v:#cac4d0;
  --outline:     #938f99;
  --outline-v:   #49454f;

  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  --shadow-1: 0 1px 2px rgba(0,0,0,.35), 0 1px 4px rgba(0,0,0,.2);
  --shadow-2: 0 2px 6px rgba(0,0,0,.35), 0 1px 4px rgba(0,0,0,.2);
  --shadow-3: 0 4px 12px rgba(0,0,0,.4), 0 2px 4px rgba(0,0,0,.3);

  --ease-std:   cubic-bezier(0.2, 0, 0, 1);
  --ease-decel: cubic-bezier(0.05, 0.7, 0.1, 1);
  --ease-emph:  cubic-bezier(0.2, 0, 0, 1);

  --nav-h: 64px;
  --max-w: 1200px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--on-surface);
  min-height: 100svh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img, svg { display: block; }
ul, ol { list-style: none; }

/* ── Container ─────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ================================================================
   RIPPLE
   ================================================================ */
.ripple {
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}

/* State layer on hover/focus/active */
.ripple::before {
  content: '';
  position: absolute;
  inset: 0;
  background: currentColor;
  opacity: 0;
  border-radius: inherit;
  pointer-events: none;
  transition: opacity 200ms var(--ease-std);
  z-index: 0;
}
.ripple:hover::before   { opacity: 0.08; }
.ripple:focus-visible::before { opacity: 0.12; }
.ripple:active::before  { opacity: 0.14; }

/* Children above ripple */
.ripple > *:not(.ripple__wave) {
  position: relative;
  z-index: 1;
}

/* Ink wave (JS injected) */
.ripple__wave {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: currentColor;
  opacity: 0.15;
  animation: ripple-anim 550ms var(--ease-decel) forwards;
  pointer-events: none;
  z-index: 0;
}
@keyframes ripple-anim {
  to { transform: scale(2.8); opacity: 0; }
}

/* Gradient text utility */
.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, #80deea 60%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ================================================================
   NAVBAR
   ================================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--outline-v) 50%, transparent);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  transition: box-shadow 250ms var(--ease-std), background 250ms var(--ease-std);
}
.navbar.scrolled {
  box-shadow: var(--shadow-2);
  background: color-mix(in srgb, var(--surface-2) 92%, transparent);
}

.navbar__inner {
  display: flex;
  align-items: center;
  height: var(--nav-h);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
  gap: 1rem;
}

.navbar__brand-link {
  display: flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}
.navbar__brand-text {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

/* Desktop nav links - pushed to right */
.navbar__nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.navbar__link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--on-surface-v);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  letter-spacing: 0;
  transition: color 200ms var(--ease-std);
  white-space: nowrap;
}
.navbar__link:hover { color: var(--on-surface); }
.navbar__link.active {
  background: var(--secondary-container);
  color: var(--on-secondary-container);
}


/* Hamburger — hidden on desktop */
.hamburger {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: var(--radius-full);
  color: var(--on-surface-v);
  flex-shrink: 0;
}
.hamburger:hover { color: var(--on-surface); }
.hamburger .mdi { font-size: 22px; }

/* ── Mobile dropdown menu (slides down from navbar) ─────────── */
.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: color-mix(in srgb, var(--surface-2) 96%, transparent);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid color-mix(in srgb, var(--outline-v) 60%, transparent);
  box-shadow: 0 8px 24px rgba(0,0,0,.45);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  pointer-events: none;
  transition:
    max-height 350ms var(--ease-decel),
    opacity 250ms var(--ease-std);
}
.mobile-menu.open {
  max-height: 200px;
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 1rem 1rem;
  gap: 2px;
}

.mobile-menu__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 500;
  color: var(--on-surface-v);
  transition: color 150ms;
}
.mobile-menu__item:hover  { color: var(--on-surface); }
.mobile-menu__item.active {
  background: var(--secondary-container);
  color: var(--on-secondary-container);
}
.mobile-menu__item .mdi { font-size: 20px; }

/* ================================================================
   HERO
   ================================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 5rem) 1.5rem 5rem;
  text-align: center;
  overflow: hidden;
}

/* Blobs */
.hero-blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}
.blob-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(103,80,164,.48) 0%, transparent 70%);
  top: -200px; left: -200px;
  animation: blob1 20s ease-in-out infinite;
}
.blob-2 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,200,210,.32) 0%, transparent 70%);
  top: 30%; right: -150px;
  animation: blob2 25s ease-in-out infinite;
}
.blob-3 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(125,65,97,.38) 0%, transparent 70%);
  bottom: -100px; left: 30%;
  animation: blob3 18s ease-in-out infinite;
}
@keyframes blob1 { 0%,100%{transform:translate(0,0) scale(1)} 33%{transform:translate(80px,60px) scale(1.06)} 66%{transform:translate(-40px,30px) scale(0.94)} }
@keyframes blob2 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(-70px,-80px) scale(1.1)} }
@keyframes blob3 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(50px,-40px)} }

.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(208,188,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(208,188,255,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 75% 80% at 50% 40%, black 10%, transparent 80%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  animation: hero-in 500ms var(--ease-decel) both;
}
@keyframes hero-in {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px 0 8px;
  background: var(--surface-2);
  border: 1px solid var(--outline-v);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--on-surface-v);
}
.hero-chip__icon {
  font-size: 18px;
  color: var(--primary);
}

.hero__title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2.4rem, 6vw, 3.5rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.hero__body {
  color: var(--on-surface-v);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 24px;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: none;
  transition:
    box-shadow 200ms var(--ease-std),
    transform 150ms var(--ease-std);
}
.btn .mdi { font-size: 18px; }

.btn--filled {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: var(--shadow-1);
}
.btn--filled:hover { box-shadow: var(--shadow-2); transform: translateY(-1px); }
.btn--filled:active { box-shadow: var(--shadow-1); transform: translateY(0); }

.btn--tonal {
  background: var(--secondary-container);
  color: var(--on-secondary-container);
}
.btn--tonal:hover { box-shadow: var(--shadow-1); transform: translateY(-1px); }
.btn--tonal:active { transform: translateY(0); }

/* ── Stats ───────────────────────────────────────────────────── */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: var(--surface-2);
  border: 1px solid var(--outline-v);
  border-radius: var(--radius-xl);
  padding: 1.125rem 2.5rem;
  backdrop-filter: blur(12px);
}
.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.stat-card__num {
  font-size: 1.75rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), #80deea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.stat-card__label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--on-surface-v);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.stat-divider {
  width: 1px;
  height: 32px;
  background: var(--outline-v);
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--on-surface-v);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: scroll-float 2.4s ease-in-out infinite;
}
.scroll-cue__mouse {
  width: 20px; height: 32px;
  border: 2px solid currentColor;
  border-radius: 10px;
  display: flex; justify-content: center;
  padding-top: 5px;
  opacity: 0.5;
}
.scroll-cue__dot {
  width: 3px; height: 7px;
  background: currentColor;
  border-radius: 2px;
  animation: scroll-dot 1.8s ease-in-out infinite;
}
@keyframes scroll-float {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(7px); }
}
@keyframes scroll-dot {
  0%,100% { opacity: 1; transform: translateY(0); }
  80%     { opacity: 0; transform: translateY(8px); }
}

/* ================================================================
   SECTIONS
   ================================================================ */
.section {
  padding: 5rem 0;
}
.section--alt {
  background: var(--surface-1);
}

.section__header {
  text-align: center;
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.section__h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--on-surface);
}

.section__sub {
  font-size: 0.9375rem;
  color: var(--on-surface-v);
  max-width: 520px;
  line-height: 1.6;
}

/* ================================================================
   FILTER CHIPS
   ================================================================ */
.chip-set {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 2rem;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0;
  cursor: pointer;
  border: 1px solid var(--outline);
  background: transparent;
  color: var(--on-surface-v);
  transition:
    background 200ms var(--ease-std),
    color 200ms var(--ease-std),
    border-color 200ms var(--ease-std),
    box-shadow 200ms var(--ease-std);
}
.filter-chip:hover {
  background: color-mix(in srgb, var(--on-surface-v) 8%, transparent);
}
.filter-chip.active {
  background: var(--secondary-container);
  color: var(--on-secondary-container);
  border-color: transparent;
}
.filter-chip__icon { font-size: 17px; }

/* ================================================================
   CARDS GRID
   ================================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 14px;
}

/* Individual card */
.card {
  position: relative;
  background: var(--surface-1);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-1);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.375rem 1.5rem;
  outline: none;
  border: 1px solid color-mix(in srgb, var(--outline-v) 40%, transparent);
  color: var(--on-surface);
  transition:
    box-shadow 250ms var(--ease-std),
    transform 250ms var(--ease-std),
    border-color 250ms;
  animation: card-in 400ms var(--ease-decel) both;
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Stagger animations */
.card:nth-child(1)  { animation-delay: 0.04s }
.card:nth-child(2)  { animation-delay: 0.08s }
.card:nth-child(3)  { animation-delay: 0.12s }
.card:nth-child(4)  { animation-delay: 0.16s }
.card:nth-child(5)  { animation-delay: 0.20s }
.card:nth-child(6)  { animation-delay: 0.24s }
.card:nth-child(7)  { animation-delay: 0.28s }
.card:nth-child(8)  { animation-delay: 0.32s }
.card:nth-child(9)  { animation-delay: 0.36s }
.card:nth-child(10) { animation-delay: 0.40s }
.card:nth-child(11) { animation-delay: 0.44s }
.card:nth-child(12) { animation-delay: 0.48s }

.card:hover {
  box-shadow: var(--shadow-3);
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--primary) 25%, transparent);
}
.card:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

/* Card icon */
.card__icon-container {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-lg);
  background: var(--c-icon-bg, rgba(208,188,255,.15));
  color: var(--c-icon, var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 250ms var(--ease-emph);
}
.card:hover .card__icon-container {
  transform: scale(1.08) rotate(-5deg);
}

.card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.card__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--on-surface);
  letter-spacing: -0.01em;
}
.card__desc {
  font-size: 0.8125rem;
  color: var(--on-surface-v);
  line-height: 1.5;
}
.card__footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: wrap;
}

/* Badges */
.badge {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.04em;
}
.badge--social    { background: rgba(103,80,164,.22);  color: #d0bcff; }
.badge--search    { background: rgba(41,182,246,.2);   color: #81d4fa; }
.badge--media     { background: rgba(239,83,80,.18);   color: #ef9a9a; }
.badge--tools     { background: rgba(38,166,154,.18);  color: #80cbc4; }
.badge--knowledge { background: rgba(255,183,77,.18);  color: #ffcc80; }
.badge--coding    { background: rgba(174,213,129,.18); color: #aed581; }

/* Instance links inside card */
.card__instances {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 10px;
  border-top: 1px solid color-mix(in srgb, var(--outline-v) 50%, transparent);
  padding-top: 10px;
}
.instance-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--primary);
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  transition: color 150ms, background 150ms;
}
.instance-link:hover {
  color: #fff;
  background: color-mix(in srgb, var(--primary) 12%, transparent);
}
.instance-link .mdi {
  font-size: 14px;
  opacity: 0.7;
}

/* ── Empty state ───────────────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 4rem 2rem;
  text-align: center;
  color: var(--on-surface-v);
}
.empty-state__icon { font-size: 56px; opacity: 0.35; }
.empty-title { font-size: 1.125rem; font-weight: 600; color: var(--on-surface); }
.empty-sub   { font-size: 0.875rem; color: var(--on-surface-v); }

/* ================================================================
   ABOUT SECTION
   ================================================================ */
.about-hero {
  text-align: center;
  margin-bottom: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.about-hero__title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.about-hero__body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--on-surface-v);
  max-width: 680px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.about-card {
  background: var(--surface-2);
  border-radius: var(--radius-xl);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  box-shadow: var(--shadow-1);
  position: relative;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--outline-v) 40%, transparent);
  transition:
    box-shadow 250ms var(--ease-std),
    transform 250ms var(--ease-std);
}
.about-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #80deea);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms var(--ease-decel);
}
.about-card:hover {
  box-shadow: var(--shadow-3);
  transform: translateY(-3px);
}
.about-card:hover::before { transform: scaleX(1); }

.about-card__icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: var(--c-icon-bg, rgba(208,188,255,.15));
  color: var(--c-icon, var(--primary));
  display: flex; align-items: center; justify-content: center;
}
.about-card__icon .mdi { font-size: 26px; }
.about-card__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--on-surface);
}
.about-card__body {
  font-size: 0.875rem;
  color: var(--on-surface-v);
  line-height: 1.6;
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  background: var(--surface-2);
  border-top: 1px solid var(--outline-v);
  padding: 2rem 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer__copy {
  font-size: 0.875rem;
  color: var(--on-surface-v);
}
.footer__links-nav {
  display: flex;
  gap: 4px;
}
.footer__link {
  font-size: 0.875rem;
  color: var(--on-surface-v);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: color 150ms;
}
.footer__link:hover { color: var(--primary); }
.footer__contact {
  font-size: 0.875rem;
  color: var(--on-surface-v);
}
.footer__contact-link {
  color: var(--primary);
  padding: 2px 4px;
  border-radius: 4px;
}
.footer__contact-link:hover { color: #fff; }

/* ================================================================
   FAB
   ================================================================ */
.fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 150;
  width: 56px; height: 56px;
  border-radius: var(--radius-lg);
  background: var(--primary-container);
  color: var(--on-primary-container);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-3);
  border: none;
  cursor: pointer;
  transition:
    box-shadow 200ms var(--ease-std),
    transform 250ms var(--ease-emph),
    opacity 250ms var(--ease-std);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8) translateY(12px);
}
.fab.visible {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1) translateY(0);
}
.fab:hover { box-shadow: 0 6px 16px rgba(0,0,0,.5); transform: scale(1.05) translateY(0); }
.fab .mdi { font-size: 24px; }

/* ================================================================
   SCROLL REVEAL
   ================================================================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 450ms var(--ease-decel),
    transform 450ms var(--ease-decel);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 860px) {
  .navbar__nav     { display: none; }
  .hamburger       { display: flex; margin-left: auto; }
  .navbar__brand-text { font-size: 1.25rem; }
  .cards-grid  { grid-template-columns: 1fr; }
  .about-grid  { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero-stats { gap: 1rem; padding: 1rem 1.5rem; }
  .hero-actions { flex-direction: column; width: 100%; }
  .btn { width: 100%; justify-content: center; }
  .footer__inner { flex-direction: column; text-align: center; align-items: center; }
}

@media (max-width: 420px) {
  .hero-stats { flex-direction: column; }
  .stat-divider { width: 40px; height: 1px; }
}

/* ================================================================
   SCROLLBAR
   ================================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb {
  background: var(--outline-v);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--primary-container); }

/* ================================================================
   SELECTION
   ================================================================ */
::selection {
  background: color-mix(in srgb, var(--primary) 25%, transparent);
  color: var(--on-surface);
}

/* ================================================================
   FOCUS INDICATOR
   ================================================================ */
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}
