/* =========================================================
   Lumen — curated AI directory
   Palette: soft mint + soft peach on warm paper
   ========================================================= */

:root {
  --paper: #f7fbf6;
  --surface: #ffffff;

  --mint-50: #f1faf3;
  --mint-100: #e3f5e8;
  --mint-200: #c9ebd4;
  --mint-300: #a8ddb9;
  --mint-500: #5cb37d;
  --mint-600: #3f9c67;
  --mint-700: #2c7a4e;

  --peach-50: #fff8ee;
  --peach-100: #ffeeda;
  --peach-200: #ffdcba;
  --peach-300: #ffc999;
  --peach-500: #f3a45c;
  --peach-600: #d9822f;
  --peach-700: #b4661f;

  --ink: #12251a;
  --ink-soft: #33493c;
  --muted: #6b7f72;
  --line: rgba(18, 37, 26, 0.09);
  --line-strong: rgba(18, 37, 26, 0.16);
  --cream: #fdfbf5;

  --radius-sm: 14px;
  --radius: 22px;
  --radius-lg: 32px;

  --shadow-sm: 0 2px 6px rgba(18, 37, 26, 0.04);
  --shadow-md: 0 18px 40px -24px rgba(18, 37, 26, 0.3);
  --shadow-lg: 0 34px 70px -34px rgba(18, 37, 26, 0.35);

  --font-ui: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 78px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 12% -8%, rgba(201, 235, 212, 0.55), transparent 62%),
    radial-gradient(1000px 640px at 92% 4%, rgba(255, 220, 186, 0.5), transparent 60%),
    var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
h1, h2, h3, h4, p, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--peach-200); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--mint-600);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

/* ---------- Loader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  background: var(--paper);
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
body.loaded .loader { opacity: 0; visibility: hidden; }

.loader-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  animation: loaderPulse 1.6s ease-in-out infinite;
}
.loader-spark {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--peach-200);
  font-size: 18px;
}
.loader-word {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}
@keyframes loaderPulse {
  0%, 100% { opacity: 1; transform: translateY(0); }
  50% { opacity: 0.55; transform: translateY(-4px); }
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  z-index: 200;
  background: linear-gradient(90deg, var(--mint-500), var(--peach-400, #ffbf85));
  transition: width 0.08s linear;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
              background-color 0.35s var(--ease), color 0.35s var(--ease),
              border-color 0.35s var(--ease);
}
.btn svg {
  width: 16px; height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.35s var(--ease);
}
.btn:hover svg { transform: translate(2px, -2px); }

.btn-ink {
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 12px 26px -14px rgba(18, 37, 26, 0.65);
}
.btn-ink:hover {
  background: #1b3627;
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -16px rgba(18, 37, 26, 0.6), 0 0 0 6px rgba(255, 220, 186, 0.35);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--line-strong);
  color: var(--ink);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: #fff;
  border-color: var(--mint-300);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-ghost svg { transition: transform 0.35s var(--ease); }
.btn-ghost:hover svg { transform: translateY(3px); }

.btn-lg { padding: 16px 28px; font-size: 0.95rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 251, 246, 0.62);
  border-bottom: 1px solid transparent;
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease),
              box-shadow 0.4s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(250, 253, 249, 0.86);
  border-bottom-color: var(--line);
  box-shadow: 0 12px 30px -26px rgba(18, 37, 26, 0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 11px;
  background: var(--ink);
  color: var(--peach-200);
  font-size: 0.9rem;
  line-height: 1;
  transition: transform 0.5s var(--ease), background-color 0.4s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(90deg); background: var(--mint-700); }

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav > a:not(.btn) {
  position: relative;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 6px 0;
  transition: color 0.3s var(--ease);
}
.nav > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1.5px;
  background: linear-gradient(90deg, var(--mint-600), var(--peach-500));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav > a:not(.btn):hover { color: var(--ink); }
.nav > a:not(.btn):hover::after { transform: scaleX(1); }
.nav-cta { padding: 10px 18px; }

.menu-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: #fff;
  position: relative;
}
.menu-toggle span {
  position: absolute;
  left: 11px;
  width: 18px; height: 1.6px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), top 0.35s var(--ease), opacity 0.25s;
}
.menu-toggle span:nth-child(1) { top: 17px; }
.menu-toggle span:nth-child(2) { top: 24px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { top: 20px; transform: rotate(-45deg); }

/* ---------- Typographic helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mint-700);
}
.eyebrow-line {
  width: 26px; height: 1px;
  background: linear-gradient(90deg, var(--mint-500), var(--peach-500));
}

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 3.6vw, 3.05rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.section-lead {
  max-width: 54ch;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.section {
  position: relative;
  padding: clamp(72px, 9vw, 118px) 0;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.section-head-center {
  align-items: center;
  text-align: center;
}
.section-head-center .section-lead { margin-inline: auto; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(52px, 7vw, 96px) 0 clamp(56px, 7vw, 92px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(18, 37, 26, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(18, 37, 26, 0.045) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 15%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 15%, transparent 78%);
  pointer-events: none;
}

.blob {
  position: absolute;
  width: 460px; height: 460px;
  border-radius: 50%;
  filter: blur(78px);
  opacity: 0.5;
  pointer-events: none;
  animation: floatBlob 20s ease-in-out infinite alternate;
}
.blob-mint { top: -160px; left: -120px; background: var(--mint-200); }
.blob-peach {
  top: -40px; right: -180px;
  background: var(--peach-200);
  animation-delay: -8s;
  opacity: 0.55;
}
@keyframes floatBlob {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(38px, 26px, 0) scale(1.08); }
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  align-items: center;
  gap: clamp(40px, 6vw, 76px);
}

.hero-copy { display: flex; flex-direction: column; align-items: flex-start; }

.hero-eyebrow {
  padding: 7px 14px 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  color: var(--ink-soft);
  letter-spacing: 0.12em;
}
.pulse-dot {
  position: relative;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--mint-600);
}
.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--mint-500);
  animation: pulseRing 2.2s ease-out infinite;
}
@keyframes pulseRing {
  0% { transform: scale(0.6); opacity: 0.9; }
  70%, 100% { transform: scale(1.7); opacity: 0; }
}

.hero-title {
  margin-top: 22px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.65rem, 5.6vw, 4.45rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.hero-title em {
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(102deg, var(--mint-700) 8%, var(--mint-500) 34%, var(--peach-500) 78%, var(--peach-600) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.06em;
}

.hero-lead {
  margin-top: 22px;
  max-width: 49ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.2vw, 1.08rem);
  line-height: 1.75;
}

.hero-search {
  margin-top: 32px;
  width: 100%;
  max-width: 540px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 7px 7px 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  box-shadow: 0 14px 34px -26px rgba(18, 37, 26, 0.55);
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}
.hero-search:focus-within {
  border-color: var(--mint-300);
  box-shadow: 0 18px 40px -26px rgba(18, 37, 26, 0.5), 0 0 0 5px rgba(201, 235, 212, 0.45);
  transform: translateY(-1px);
}
.search-icon {
  flex: none;
  display: grid;
  place-items: center;
  color: var(--mint-700);
}
.search-icon svg {
  width: 18px; height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}
.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  font-size: 0.9rem;
  padding: 10px 2px;
}
.hero-search input::placeholder,
.toolbar-search input::placeholder { color: #93a49a; }
.hero-search input:focus { outline: none; }
.hero-search .btn { padding: 11px 18px; font-size: 0.8rem; }

.hero-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-stats {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(22px, 3.4vw, 44px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
  width: 100%;
  max-width: 540px;
}
.hero-stats > div { display: flex; flex-direction: column; gap: 2px; }
.hero-stats dt {
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.hero-stats dd {
  font-size: 0.74rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

/* ---------- Chat mock ---------- */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.chat-mock {
  position: relative;
  width: min(400px, 100%);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 26px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(18, 37, 26, 0.05);
  padding: 16px;
  backdrop-filter: blur(10px);
  transform: rotate(-1.4deg);
  animation: floatCard 8s ease-in-out infinite;
}
@keyframes floatCard {
  0%, 100% { transform: rotate(-1.4deg) translateY(0); }
  50% { transform: rotate(-0.6deg) translateY(-12px); }
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 4px 4px 14px;
  border-bottom: 1px solid var(--line);
}
.chat-avatar {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--mint-200), var(--mint-100));
  color: var(--mint-700);
  font-size: 0.95rem;
  border: 1px solid rgba(63, 156, 103, 0.18);
}
.chat-meta { display: flex; flex-direction: column; line-height: 1.3; margin-right: auto; }
.chat-meta strong { font-size: 0.84rem; }
.chat-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  color: var(--muted);
}
.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--mint-500);
  box-shadow: 0 0 0 3px rgba(92, 179, 125, 0.16);
}
.chat-dots { color: #b8c7bd; letter-spacing: 2px; font-size: 0.8rem; }

.chat-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 4px 14px;
}
.bubble {
  max-width: 84%;
  padding: 11px 14px;
  border-radius: 16px;
  font-size: 0.8rem;
  line-height: 1.55;
}
.bubble-user {
  align-self: flex-end;
  background: var(--ink);
  color: var(--cream);
  border-bottom-right-radius: 5px;
  box-shadow: 0 10px 20px -14px rgba(18, 37, 26, 0.7);
}
.bubble-short { font-size: 0.75rem; }
.bubble-ai {
  align-self: flex-start;
  background: var(--peach-50);
  border: 1px solid var(--peach-100);
  color: var(--ink-soft);
  border-bottom-left-radius: 5px;
}
.bubble-success {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--mint-50);
  border-color: var(--mint-200);
  color: var(--mint-700);
  font-size: 0.74rem;
  font-weight: 600;
}
.check {
  display: grid;
  place-items: center;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: var(--mint-600);
  color: #fff;
  font-size: 0.6rem;
}

.typing {
  display: inline-flex;
  gap: 3px;
  margin-left: 6px;
  vertical-align: middle;
}
.typing i {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--peach-600);
  animation: typingBlink 1.3s infinite;
}
.typing i:nth-child(2) { animation-delay: 0.18s; }
.typing i:nth-child(3) { animation-delay: 0.36s; }
@keyframes typingBlink {
  0%, 60%, 100% { opacity: 0.25; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

.chat-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 9px 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 0.76rem;
  color: #9aa9a0;
}
.send {
  display: grid;
  place-items: center;
  width: 27px; height: 27px;
  border-radius: 50%;
  background: var(--mint-600);
  color: #fff;
  font-size: 0.72rem;
}

.float-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  backdrop-filter: blur(8px);
}
.badge-top {
  top: 26px; right: -14px;
  animation: badgeFloat 6s ease-in-out infinite;
}
.badge-bottom {
  bottom: 34px; left: -26px;
  animation: badgeFloat 7s ease-in-out infinite reverse;
}
.badge-spark { color: var(--peach-600); }
.badge-check {
  display: grid;
  place-items: center;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--mint-100);
  color: var(--mint-700);
  font-size: 0.58rem;
}
@keyframes badgeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* ---------- Marquee ---------- */
.marquee {
  position: relative;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, var(--mint-50), #fffaf2 55%, var(--peach-50));
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marqueeScroll 42s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  padding: 0 26px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  white-space: nowrap;
}
.marquee-track .sep { color: var(--peach-500); font-style: normal; font-size: 0.7rem; }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Models ---------- */
.models { background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.55) 22%, transparent); }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 0.79rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease),
              border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.chip:hover { border-color: var(--mint-300); background: var(--mint-50); transform: translateY(-1px); }
.chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
  box-shadow: 0 10px 20px -14px rgba(18, 37, 26, 0.7);
}
.chip svg {
  width: 13px; height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
}
.chip-count {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--peach-200);
  color: var(--peach-700);
  font-size: 0.66rem;
  font-weight: 800;
}
.chip.is-active .chip-count { background: rgba(255, 220, 186, 0.95); color: #7d4315; }

.toolbar-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: min(300px, 100%);
  padding: 4px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.toolbar-search:focus-within {
  border-color: var(--mint-300);
  box-shadow: 0 0 0 4px rgba(201, 235, 212, 0.4);
}
.toolbar-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  font-size: 0.84rem;
  padding: 8px 0;
}
.toolbar-search input:focus { outline: none; }

.results-line {
  margin: 20px 2px 22px;
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.results-line span:first-child { color: var(--ink); font-weight: 800; }
.results-note { color: #93a49a; }

.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 20px;
}

.model-card {
  position: relative;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease),
              border-color 0.45s var(--ease), opacity 0.3s ease;
  isolation: isolate;
}
.model-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%),
              rgba(255, 220, 186, 0.34), rgba(201, 235, 212, 0.2) 45%, transparent 72%);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  pointer-events: none;
}
.model-card:hover,
.model-card:focus-within {
  transform: translateY(-6px);
  border-color: var(--mint-300);
  box-shadow: 0 28px 54px -30px rgba(18, 37, 26, 0.4);
}
.model-card:hover::before,
.model-card:focus-within::before { opacity: 1; }

.model-card.is-hidden { display: none; }
.model-card.is-saved { border-color: rgba(255, 201, 153, 0.9); }

.model-link {
  display: block;
  padding: 22px 22px 20px;
  height: 100%;
}

.model-logo {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 16px;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.5s var(--ease);
}
.model-card:hover .model-logo { transform: rotate(-6deg) scale(1.04); }

.tone-mint {
  background: linear-gradient(145deg, #eaf8ee, #cdeed9);
  color: var(--mint-700);
  border: 1px solid rgba(63, 156, 103, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.tone-peach {
  background: linear-gradient(145deg, #fff4e7, #ffe0c2);
  color: var(--peach-700);
  border: 1px solid rgba(217, 130, 47, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.model-card h3 {
  margin-top: 16px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.32rem;
  letter-spacing: -0.02em;
  padding-right: 26px;
}
.model-card p {
  margin-top: 6px;
  font-size: 0.855rem;
  line-height: 1.62;
  color: var(--muted);
  min-height: 2.7em;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.tags li {
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--mint-50);
  border: 1px solid rgba(63, 156, 103, 0.13);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mint-700);
}
.model-card:nth-child(even) .tags li {
  background: var(--peach-50);
  border-color: rgba(217, 130, 47, 0.15);
  color: var(--peach-700);
}

.card-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}
.card-cta svg {
  width: 17px; height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  padding: 3px;
  box-sizing: content-box;
  border-radius: 50%;
  background: var(--mint-50);
  color: var(--mint-700);
  transition: transform 0.4s var(--ease), background-color 0.4s var(--ease), color 0.4s var(--ease);
}
.model-link:hover .card-cta svg {
  transform: translate(2px, -2px);
  background: var(--ink);
  color: var(--peach-200);
}

.save-btn {
  position: absolute;
  top: 18px; right: 18px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 10px;
  border: 1px solid transparent;
  color: #a9b8ae;
  transition: color 0.3s var(--ease), background-color 0.3s var(--ease),
              border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.save-btn svg {
  width: 16px; height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
  transition: fill 0.3s var(--ease);
}
.save-btn:hover {
  color: var(--peach-600);
  background: var(--peach-50);
  border-color: var(--peach-200);
  transform: scale(1.06);
}
.save-btn[aria-pressed="true"] {
  color: var(--peach-700);
  background: var(--peach-100);
  border-color: var(--peach-200);
}
.save-btn[aria-pressed="true"] svg { fill: var(--peach-300); }

/* Empty state */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  padding: 56px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.5);
}
.empty-state[hidden] { display: none; }
.empty-mark {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 16px;
  background: var(--peach-100);
  color: var(--peach-700);
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.empty-state h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
}
.empty-state p { color: var(--muted); font-size: 0.9rem; max-width: 42ch; }
.empty-state .btn { margin-top: 10px; }

/* ---------- Why ---------- */
.why {
  background:
    radial-gradient(700px 340px at 15% 20%, rgba(201, 235, 212, 0.3), transparent 70%),
    radial-gradient(700px 340px at 85% 80%, rgba(255, 220, 186, 0.32), transparent 70%);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.why-card {
  padding: 30px 26px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
}
.why-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}
.why-icon {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 14px;
  margin-bottom: 20px;
}
.why-icon svg {
  width: 21px; height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.why-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.why-card p {
  margin-top: 8px;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- How ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.6vw, 30px);
  counter-reset: step;
}
.step {
  position: relative;
  padding: 28px 26px 30px;
  border-top: 1px solid var(--line-strong);
  transition: border-color 0.4s var(--ease);
}
.step:hover { border-top-color: var(--mint-500); }
.step-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 300;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--mint-300);
  letter-spacing: -0.03em;
  margin-bottom: 18px;
  transition: -webkit-text-stroke-color 0.4s var(--ease), transform 0.5s var(--ease);
}
.step:hover .step-number { -webkit-text-stroke-color: var(--peach-500); transform: translateX(4px); }
.step h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
}
.step p { margin-top: 8px; font-size: 0.88rem; color: var(--muted); max-width: 32ch; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 860px; }

.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  text-align: left;
  font-size: 1rem;
  font-weight: 650;
  color: var(--ink);
  transition: color 0.3s var(--ease);
}
.faq-question:hover { color: var(--mint-700); }

.faq-plus {
  position: relative;
  flex: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: #fff;
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.4s var(--ease);
}
.faq-plus::before,
.faq-plus::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 10px; height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform 0.4s var(--ease), background-color 0.3s;
}
.faq-plus::after { transform: translate(-50%, -50%) rotate(90deg); }

.faq-question[aria-expanded="true"] .faq-plus {
  background: var(--mint-100);
  border-color: var(--mint-300);
  transform: rotate(135deg);
}
.faq-question[aria-expanded="true"] .faq-plus::before,
.faq-question[aria-expanded="true"] .faq-plus::after { background: var(--mint-700); }

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease);
}
.faq-answer > div { overflow: hidden; }
.faq-answer p {
  padding: 0 48px 24px 4px;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--muted);
}
.faq-item.is-open .faq-answer { grid-template-rows: 1fr; }

/* ---------- CTA ---------- */
.cta-section { padding: 0 0 clamp(72px, 9vw, 110px); }
.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(44px, 6.4vw, 76px) clamp(24px, 5vw, 64px);
  border-radius: var(--radius-lg);
  background: linear-gradient(125deg, #eaf8ee 0%, #f7fbf4 42%, #fff3e5 100%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 40px 80px -60px rgba(18, 37, 26, 0.6), inset 0 1px 0 #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.cta-band h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}
.cta-band h2 em {
  font-style: italic;
  color: var(--mint-700);
}
.cta-band > p:not(.eyebrow) {
  max-width: 46ch;
  color: var(--muted);
  font-size: 0.98rem;
}
.cta-band .btn { margin-top: 12px; }

.cta-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  pointer-events: none;
}
.orb-one {
  width: 300px; height: 300px;
  background: rgba(201, 235, 212, 0.7);
  top: -140px; left: -80px;
}
.orb-two {
  width: 280px; height: 280px;
  background: rgba(255, 220, 186, 0.7);
  bottom: -150px; right: -70px;
}
.cta-band > *:not(.cta-orb) { position: relative; z-index: 1; }

/* ---------- Footer ---------- */
.site-footer {
  background: #0e211a;
  color: #c8dbcd;
  padding: clamp(52px, 6vw, 76px) 0 26px;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(560px 260px at 85% 0%, rgba(255, 201, 153, 0.12), transparent 70%),
              radial-gradient(500px 260px at 8% 100%, rgba(92, 179, 125, 0.14), transparent 70%);
  pointer-events: none;
}
.site-footer .container { position: relative; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.4fr;
  gap: clamp(28px, 4vw, 54px);
  padding-bottom: 46px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.brand-light { color: var(--cream); }
.brand-light .brand-mark { background: var(--cream); color: var(--ink); }
.brand-light:hover .brand-mark { background: var(--peach-200); }

.footer-brand p {
  margin-top: 16px;
  max-width: 34ch;
  font-size: 0.86rem;
  line-height: 1.75;
  color: rgba(200, 219, 205, 0.72);
}
.footer-badge {
  display: inline-block;
  margin-top: 20px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(200, 219, 205, 0.8);
}

.footer-col { display: flex; flex-direction: column; gap: 11px; }
.footer-col h4 {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--peach-200);
  margin-bottom: 3px;
}
.footer-col a {
  font-size: 0.86rem;
  color: rgba(200, 219, 205, 0.78);
  width: fit-content;
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}
.footer-col a:hover { color: var(--cream); transform: translateX(3px); }

.footer-news p {
  font-size: 0.84rem;
  line-height: 1.65;
  color: rgba(200, 219, 205, 0.7);
}
.news-form {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 5px 5px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.news-form:focus-within {
  border-color: rgba(201, 235, 212, 0.55);
  background: rgba(255, 255, 255, 0.08);
}
.news-form input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  padding: 8px 0;
  font-size: 0.82rem;
  color: var(--cream);
}
.news-form input::placeholder { color: rgba(200, 219, 205, 0.45); }
.news-form input:focus { outline: none; }
.news-form button {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--mint-200);
  color: #0e211a;
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.news-form button:hover { background: var(--peach-200); transform: translateX(2px); }
.news-form button svg {
  width: 16px; height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.news-note { font-size: 0.68rem; color: rgba(200, 219, 205, 0.5); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  font-size: 0.72rem;
  color: rgba(200, 219, 205, 0.55);
}
.footer-links { display: flex; align-items: center; gap: 12px; }
.footer-links a { transition: color 0.3s var(--ease); }
.footer-links a:hover { color: var(--cream); }
.footer-links span { color: var(--peach-500); font-size: 0.55rem; }

/* ---------- To top / toast ---------- */
.to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 16px 30px -16px rgba(18, 37, 26, 0.7);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.4s var(--ease), visibility 0.4s, transform 0.4s var(--ease), background-color 0.3s;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--mint-700); }
.to-top svg {
  width: 18px; height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 300;
  transform: translate(-50%, 18px);
  padding: 11px 20px;
  border-radius: 999px;
  background: rgba(18, 37, 26, 0.95);
  color: var(--cream);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
  max-width: calc(100% - 32px);
  text-align: center;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  will-change: opacity, transform;
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}
.hero-title.reveal { transition-delay: 0.06s; }
.hero-lead.reveal { transition-delay: 0.14s; }
.hero-search.reveal { transition-delay: 0.22s; }
.hero-actions.reveal { transition-delay: 0.28s; }
.hero-stats.reveal { transition-delay: 0.34s; }
.hero-visual.reveal { transition-delay: 0.18s; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 54px; }
  .hero-copy { align-items: flex-start; }
  .hero-visual { justify-content: flex-start; padding-left: 12px; }
  .chat-mock { width: min(420px, 100%); }
  .badge-bottom { left: -18px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  :root { --header-h: 70px; }

  .menu-toggle { display: block; }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 12px; right: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px;
    border-radius: 20px;
    background: rgba(253, 253, 250, 0.97);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
  }
  .nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .nav > a:not(.btn) {
    padding: 12px 12px;
    border-radius: 12px;
    font-size: 0.95rem;
  }
  .nav > a:not(.btn):hover { background: var(--mint-50); }
  .nav > a:not(.btn)::after { display: none; }
  .nav-cta { margin-top: 8px; padding: 13px 18px; }

  .why-grid, .steps { grid-template-columns: 1fr; }
  .why-card { padding: 26px 24px; }
  .step { border-top: 1px solid var(--line); }
  .step-number { margin-bottom: 12px; }

  .toolbar { flex-direction: column; align-items: stretch; }
  .toolbar-search { width: 100%; }
  .results-line .results-note { display: none; }
}

@media (max-width: 620px) {
  .container { width: calc(100% - 32px); }

  .hero-eyebrow { font-size: 0.62rem; letter-spacing: 0.1em; }
  .hero-title { font-size: clamp(2.25rem, 10vw, 3rem); }
  .hero-search {
    flex-wrap: wrap;
    padding: 10px;
    border-radius: 22px;
    gap: 6px;
  }
  .hero-search .search-icon { margin-left: 6px; }
  .hero-search input { padding: 6px 2px; }
  .hero-search .btn { width: 100%; border-radius: 14px; padding: 12px; }
  .hero-actions .btn { width: 100%; }
  .hero-stats { gap: 20px 28px; margin-top: 34px; padding-top: 22px; }

  .chat-mock { transform: none; animation: none; }
  .float-badge { display: none; }

  .model-grid { grid-template-columns: 1fr; }
  .model-card p { min-height: 0; }

  .faq-question { font-size: 0.94rem; padding: 18px 2px; }
  .faq-answer p { padding-right: 12px; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { justify-content: center; text-align: center; }
  .to-top { right: 16px; bottom: 16px; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
