/* ============================================================
   Recall Labs — Bold & Vibrant
   ============================================================ */

:root {
  --bg: #060b18;
  --bg-soft: #0b1426;
  --surface: rgba(255, 255, 255, 0.035);
  --border: rgba(255, 255, 255, 0.09);
  --text: #eef3fb;
  --muted: #93a4c4;
  --brand: #3b82f6;
  --brand-2: #1e6bff;
  --brand-3: #22d3ee;
  --radius: 22px;
  --maxw: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .nav__brand, .stat__num, .btn {
  font-family: "Space Grotesk", system-ui, sans-serif;
  letter-spacing: -0.02em;
}

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

.grad-text {
  background: linear-gradient(100deg, var(--brand-2), var(--brand) 45%, var(--brand-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Animated background ---------- */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: radial-gradient(1200px 800px at 70% -10%, #0d1d3d 0%, var(--bg) 60%);
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  animation: float 18s ease-in-out infinite;
}
.blob-1 { width: 540px; height: 540px; background: #2f6bff; top: -120px; left: -100px; }
.blob-2 { width: 460px; height: 460px; background: #0e7ae0; top: 30%; right: -120px; animation-delay: -6s; }
.blob-3 { width: 420px; height: 420px; background: #22d3ee; bottom: -140px; left: 25%; animation-delay: -11s; }
.grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 75%);
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.08); }
  66% { transform: translate(-30px, 25px) scale(0.95); }
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px 24px;
  transition: padding 0.3s var(--ease);
}
.nav.scrolled {
  padding: 12px 24px;
}
.nav.scrolled::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(7, 7, 15, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  z-index: -1;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
}
.nav__logo {
  color: var(--brand);
  font-size: 1.1rem;
  letter-spacing: -3px;
}
.nav__brand-accent { color: var(--brand); }
.nav__links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 0.95rem;
  font-weight: 500;
}
.nav__links a { color: var(--muted); transition: color 0.2s; }
.nav__links a:hover { color: var(--text); }
.nav__cta {
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg) !important;
  font-weight: 600;
}
.nav__cta:hover { background: var(--brand); color: #fff !important; }
.nav__menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav__menu-btn span {
  width: 24px; height: 2px; background: var(--text); border-radius: 2px;
  transition: 0.3s var(--ease);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
  border: 1px solid transparent;
}
.btn span { transition: transform 0.25s var(--ease); }
.btn--primary {
  background: linear-gradient(100deg, var(--brand-2), var(--brand));
  color: #fff;
  box-shadow: 0 10px 40px -10px rgba(59, 130, 246, 0.7);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 18px 50px -12px rgba(30, 107, 255, 0.7); }
.btn--primary:hover span { transform: translateX(4px); }
.btn--ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}
.btn--ghost:hover { background: rgba(255,255,255,0.08); transform: translateY(-3px); }
.btn--lg { padding: 18px 34px; font-size: 1.1rem; }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(50px, 9vw, 110px) 24px 40px;
  text-align: center;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 28px;
}
.hero__badge .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--brand-3);
  box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34,211,238,0.6); }
  70% { box-shadow: 0 0 0 10px rgba(34,211,238,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,211,238,0); }
}
.hero__title {
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 1.02;
  font-weight: 700;
  margin-bottom: 26px;
}
.hero__sub {
  max-width: 620px;
  margin: 0 auto 38px;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--muted);
}
.hero__actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}
.hero__stats {
  display: flex;
  justify-content: center;
  gap: clamp(28px, 6vw, 70px);
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; align-items: center; }
.stat__num {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
}
.stat__label { font-size: 0.85rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- Marquee ---------- */
.marquee {
  margin-top: 70px;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  white-space: nowrap;
  animation: scroll 28s linear infinite;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.15rem;
  color: var(--muted);
}
.marquee__track span { opacity: 0.8; }
.marquee__track .sep { color: var(--brand-2); font-weight: 700; }
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Sections ---------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(70px, 12vw, 140px) 24px;
}
.section--alt { position: relative; }
.section__head { max-width: 720px; margin-bottom: 60px; }
.eyebrow {
  display: inline-block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--brand);
  margin-bottom: 18px;
}
.section__title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.05;
  font-weight: 700;
  margin-bottom: 20px;
}
.section__lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--muted);
  max-width: 600px;
}

/* ---------- Products ---------- */
.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.product {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s;
}
.product::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 200px at 50% -10%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
}
.product:hover {
  transform: translateY(-8px);
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
}
.product:hover::before { opacity: 1; }
.product__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  position: relative;
}
.product__mark {
  width: 50px; height: 50px;
  display: grid; place-items: center;
  border-radius: 14px;
  font-size: 1.5rem;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}
.product__tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
}
.product__name {
  font-size: 1.7rem;
  margin-bottom: 8px;
  position: relative;
}
.product__pitch {
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 14px;
  position: relative;
}
.product__desc { color: var(--muted); font-size: 0.96rem; margin-bottom: 22px; position: relative; }
.product__features {
  list-style: none;
  margin-bottom: 26px;
  position: relative;
}
.product__features li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  font-size: 0.92rem;
}
.product__features li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.product__link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  color: var(--text);
  position: relative;
  width: fit-content;
}
.product__link span { transition: transform 0.25s var(--ease); }
.product__link:hover { color: var(--accent); }
.product__link:hover span { transform: translate(3px, -3px); }

/* ---------- Pillars ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.pillar {
  padding: 32px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.35s var(--ease), background 0.35s;
}
.pillar:hover { transform: translateY(-5px); background: rgba(255,255,255,0.05); }
.pillar__num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand);
  display: block;
  margin-bottom: 14px;
}
.pillar h3 { font-size: 1.3rem; margin-bottom: 10px; }
.pillar p { color: var(--muted); font-size: 0.96rem; }

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(30px, 6vw, 80px);
  align-items: start;
}
.about__right p { color: var(--muted); font-size: 1.1rem; margin-bottom: 20px; }
.about__right p:last-child { margin-bottom: 0; }

/* ---------- CTA ---------- */
.cta { padding-top: 30px; }
.cta__card {
  position: relative;
  text-align: center;
  padding: clamp(50px, 8vw, 90px) 28px;
  border-radius: 30px;
  border: 1px solid var(--border);
  background:
    radial-gradient(700px 400px at 50% 0%, rgba(59,130,246,0.20), transparent 65%),
    var(--bg-soft);
  overflow: hidden;
}
.cta__title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.05;
  margin-bottom: 20px;
}
.cta__sub {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 480px;
  margin: 0 auto 34px;
}

/* ---------- Footer ---------- */
.footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 50px 24px 70px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer__brand {
  display: flex; align-items: center; gap: 9px;
  font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.15rem;
}
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__links a { color: var(--muted); font-size: 0.95rem; transition: color 0.2s; }
.footer__links a:hover { color: var(--text); }
.footer__biz {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 0.8rem;
  opacity: 0.65;
}
.footer__biz span { position: relative; }
.footer__biz span:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 11px;
  background: var(--border);
}
.footer__copy { width: 100%; color: var(--muted); font-size: 0.85rem; opacity: 0.7; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .products { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .nav__links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(78vw, 320px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 26px;
    padding: 40px;
    background: rgba(10, 10, 20, 0.96);
    backdrop-filter: blur(16px);
    border-left: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    font-size: 1.3rem;
  }
  .nav__links.open { transform: translateX(0); }
  .nav__menu-btn { display: flex; z-index: 60; }
  .nav.menu-open .nav__menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.menu-open .nav__menu-btn span:nth-child(2) { opacity: 0; }
  .nav.menu-open .nav__menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (prefers-reduced-motion: reduce) {
  .blob, .marquee__track, .hero__badge .dot { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
