/* ==========================================================================
   Design tokens
   ========================================================================== */

:root {
  --bg: #05070b;
  --bg-1: #070a11;
  --bg-2: #0a0f19;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-strong: rgba(255, 255, 255, 0.065);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --ink: #eef3f8;
  --ink-soft: #93a0b4;
  --ink-faint: #5b6675;

  --blue: #3d7bff;
  --blue-soft: #7aa6ff;
  --emerald: #17d9a3;
  --cyan: #37e0ff;

  --grad-aurora: linear-gradient(120deg, var(--blue), var(--emerald) 55%, var(--cyan));
  --grad-aurora-soft: linear-gradient(120deg, rgba(61, 123, 255, 0.35), rgba(23, 217, 163, 0.35) 55%, rgba(55, 224, 255, 0.35));

  /* accent used only in the Aurora product preview, matching the real app */
  --dawn: #e8a87c;
  --mist: #7eb8c9;

  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --ease: cubic-bezier(0.16, 0.84, 0.44, 1);
  --container: min(1180px, 92vw);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

@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;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

main,
header,
footer,
section {
  min-width: 0;
  max-width: 100%;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.02em;
}

p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.grad-text {
  background: var(--grad-aurora);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ==========================================================================
   Global fx layers: noise, progress bar, custom cursor
   ========================================================================== */

.noise {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--grad-aurora);
  z-index: 1000;
  box-shadow: 0 0 12px rgba(55, 224, 255, 0.6);
}

.cursor-dot,
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 998;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--cyan);
  transition: width 0.2s var(--ease), height 0.2s var(--ease), background 0.2s var(--ease);
}

.cursor-dot.is-active {
  width: 40px;
  height: 40px;
  background: rgba(55, 224, 255, 0.12);
  border: 1px solid rgba(55, 224, 255, 0.5);
}

.cursor-glow {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(61, 123, 255, 0.16), transparent 65%);
  mix-blend-mode: screen;
}

@media (pointer: coarse) {
  .cursor-dot, .cursor-glow { display: none; }
}

/* ==========================================================================
   Nav
   ========================================================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
}

.nav.is-scrolled {
  background: rgba(5, 7, 11, 0.72);
  border-bottom-color: var(--border);
  backdrop-filter: blur(16px);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--grad-aurora);
  color: var(--bg);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  gap: 2rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.nav-links a { transition: color 0.2s var(--ease); }
.nav-links a:hover { color: var(--ink); }

.nav-cta {
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 500;
  background: var(--surface);
  backdrop-filter: blur(10px);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
  white-space: nowrap;
}

.nav-cta:hover {
  border-color: rgba(55, 224, 255, 0.55);
  background: var(--surface-strong);
  transform: translateY(-1px);
}

@media (max-width: 760px) {
  .nav {
    gap: 0.75rem;
    padding: 0.9rem max(1rem, env(safe-area-inset-right)) 0.9rem max(1rem, env(safe-area-inset-left));
  }

  .nav-links { display: none; }
  .brand-word { display: none; }
  .nav-cta { padding: 0.52rem 0.9rem; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  max-width: 100%;
  z-index: 0;
  opacity: 0.75;
}

.hero-mesh {
  position: absolute;
  inset: -20%;
  z-index: -1;
  background:
    radial-gradient(38% 32% at 22% 28%, rgba(61, 123, 255, 0.35), transparent 60%),
    radial-gradient(42% 36% at 78% 22%, rgba(23, 217, 163, 0.28), transparent 60%),
    radial-gradient(46% 40% at 55% 82%, rgba(55, 224, 255, 0.22), transparent 60%),
    var(--bg);
  filter: blur(60px) saturate(1.2);
  animation: meshDrift 22s ease-in-out infinite alternate;
}

@keyframes meshDrift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-2%, 2%, 0) scale(1.06); }
}

.hero-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(23, 217, 163, 0.18), transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: screen;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 880px;
  padding: 0 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}

@media (max-width: 620px) {
  .hero {
    min-height: 100svh;
    padding: 5.8rem 0 4.8rem;
  }

  .hero-mesh {
    inset: 0;
    filter: blur(38px) saturate(1.15);
  }

  .hero-content {
    padding-inline: 1.25rem;
  }

  .eyebrow {
    max-width: 100%;
    font-size: 0.72rem;
    line-height: 1.45;
    text-wrap: balance;
  }

  .hero-title {
    max-width: 100%;
    font-size: clamp(2.45rem, 13vw, 3.4rem);
  }

  .hero-lead,
  .hero-sub {
    max-width: 100%;
    text-wrap: balance;
  }
}

.eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  background: var(--surface);
  backdrop-filter: blur(10px);
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 0.1em;
  font-size: clamp(2.6rem, 9vw, 5.6rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0.3rem 0;
}

.reveal-line { overflow: hidden; display: block; }
.reveal-line span { display: inline-block; will-change: transform; }

.hero-lead {
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  font-weight: 400;
  color: var(--ink);
  max-width: 620px;
}

.hero-sub {
  font-size: 1rem;
  color: var(--ink-soft);
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.6rem;
}

.scroll-cue {
  position: absolute;
  bottom: clamp(1.25rem, 4vh, 2.5rem);
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 1.5px solid var(--border-strong);
  border-radius: 999px;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-cue-dot {
  width: 4px;
  height: 8px;
  border-radius: 999px;
  background: var(--grad-aurora);
  animation: scrollCue 1.8s ease-in-out infinite;
}

@keyframes scrollCue {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(14px); opacity: 0; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.cta-primary {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.7rem;
  border-radius: 999px;
  background: var(--grad-aurora);
  color: #05070b;
  font-weight: 600;
  font-size: 1rem;
  isolation: isolate;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  box-shadow: 0 0 0 0 rgba(55, 224, 255, 0);
}

.cta-primary:hover {
  transform: translateY(-2px) scale(1.015);
  box-shadow: 0 12px 40px rgba(23, 217, 163, 0.32), 0 0 30px rgba(55, 224, 255, 0.25);
}

.cta-primary:active { transform: translateY(0) scale(0.98); }

.cta-primary svg { transition: transform 0.25s var(--ease); }
.cta-primary:hover svg { transform: translateX(3px); }

.cta-small {
  padding: 0.75rem 1.3rem;
  font-size: 0.9rem;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(5, 7, 11, 0.35);
  transform: scale(0);
  animation: rippleAnim 0.65s ease-out forwards;
  pointer-events: none;
}

@keyframes rippleAnim {
  to { transform: scale(1); opacity: 0; }
}

.cta-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0.4rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.cta-ghost:hover {
  color: var(--ink);
  border-color: var(--border-strong);
}

/* ==========================================================================
   Sections shared
   ========================================================================== */

.section {
  position: relative;
  width: 100%;
  padding: clamp(4.5rem, 10vh, 7.5rem) clamp(1.25rem, 6vw, 3rem);
  max-width: var(--container);
  margin: 0 auto;
}

.section-alt {
  max-width: none;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.015) 12%, rgba(255, 255, 255, 0.015) 88%, transparent);
}

.section-alt > * { max-width: var(--container); margin-left: auto; margin-right: auto; }

.section-head {
  max-width: 620px;
  margin: 0 auto 3.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.tag {
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--emerald);
  font-weight: 600;
}

.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
}

.section-sub {
  color: var(--ink-soft);
  font-size: 1.02rem;
}

/* ==========================================================================
   Cards ("O que eu construo")
   ========================================================================== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.card {
  position: relative;
  padding: 1.9rem 1.7rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(14px);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), rgba(55, 224, 255, 0.14), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--surface-strong);
}

.card:hover::before { opacity: 1; }

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(61, 123, 255, 0.18), rgba(23, 217, 163, 0.18));
  color: var(--cyan);
  margin-bottom: 1.2rem;
}

.card-icon svg { width: 22px; height: 22px; }

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.card > p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-bottom: 1.1rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag-list li {
  font-size: 0.76rem;
  color: var(--ink-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
}

/* ==========================================================================
   Products
   ========================================================================== */

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.product-card {
  padding: 2rem;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(14px);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.product-card h3 {
  font-size: 1.3rem;
  margin: 0.6rem 0 0.7rem;
}

.product-card > p {
  color: var(--ink-soft);
  font-size: 0.94rem;
  margin-bottom: 1rem;
}

.product-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
  border-color: rgba(23, 217, 163, 0.28);
  background: linear-gradient(160deg, rgba(23, 217, 163, 0.07), rgba(61, 123, 255, 0.05));
}

.tag-live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--emerald);
}

.tag-live .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px rgba(23, 217, 163, 0.9);
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; } 50% { opacity: 0.35; }
}

.product-featured h3 { font-size: 1.9rem; }

.check-list { display: flex; flex-direction: column; gap: 0.55rem; margin-bottom: 1.5rem; }

.check-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--grad-aurora);
}

/* --- Aurora chat preview mock --- */

.product-visual { display: flex; justify-content: center; }

.aurora-preview {
  width: 100%;
  max-width: 340px;
  padding: 1.3rem;
  border-radius: 18px;
  border: 1px solid rgba(232, 168, 124, 0.18);
  background: rgba(12, 18, 24, 0.55);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.ap-row { display: flex; align-items: flex-end; gap: 0.5rem; }
.ap-you { justify-content: flex-end; }

.ap-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  color: #241a12;
  background: linear-gradient(135deg, var(--dawn), var(--mist));
}

.ap-bubble {
  max-width: 78%;
  padding: 0.55rem 0.8rem;
  border-radius: 14px;
  font-size: 0.82rem;
  line-height: 1.4;
}

.ap-them .ap-bubble {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-bottom-left-radius: 4px;
  color: var(--ink);
}

.ap-you .ap-bubble {
  background: linear-gradient(135deg, var(--dawn), #f0c9a0);
  color: #241a12;
  border-bottom-right-radius: 4px;
  font-weight: 500;
}

.ap-typing {
  display: flex;
  gap: 4px;
  padding-left: 1.9rem;
}

.ap-typing span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--dawn);
  opacity: 0.5;
  animation: apDots 1.2s infinite ease-in-out;
}

.ap-typing span:nth-child(2) { animation-delay: 0.15s; }
.ap-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes apDots {
  0%, 80%, 100% { opacity: 0.25; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-2px); }
}

/* ==========================================================================
   Timeline
   ========================================================================== */

.timeline {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2.2rem 1rem;
  padding-top: 1rem;
}

.timeline-line {
  position: absolute;
  top: 22px;
  left: 4%;
  right: 4%;
  height: 1px;
  background: var(--border);
  z-index: 0;
}

.timeline-line-fill {
  position: absolute;
  inset: 0;
  transform-origin: left top;
  background: var(--grad-aurora);
}

.timeline-item {
  position: relative;
  z-index: 1;
  width: calc(25% - 1rem);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.timeline-dot {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  background: var(--bg-1);
  border: 1px solid var(--border-strong);
  color: var(--cyan);
}

.timeline-item h4 { font-size: 1rem; }
.timeline-item p { color: var(--ink-soft); font-size: 0.86rem; }

@media (max-width: 860px) {
  .timeline { flex-direction: column; gap: 1.8rem; }
  .timeline-line { top: 4%; bottom: 4%; left: 22px; right: auto; width: 1px; height: auto; }
  .timeline-item { width: 100%; padding-left: 3.6rem; }
  .timeline-dot { position: absolute; left: 0; top: 0; width: 38px; height: 38px; }
}

/* ==========================================================================
   Constellation
   ========================================================================== */

.constellation {
  position: relative;
  min-height: 460px;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  gap: 0.9rem 1.1rem;
}

.tech-pill {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.6rem 1.15rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
  background: var(--surface);
  backdrop-filter: blur(8px);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.tech-pill-accent {
  border-color: rgba(23, 217, 163, 0.3);
  color: var(--emerald);
}

.tech-pill:hover {
  color: var(--ink);
  border-color: var(--cyan);
  box-shadow: 0 0 22px rgba(55, 224, 255, 0.28);
  transform: translateY(-3px) scale(1.05);
}

@media (min-width: 761px) {
  .constellation { justify-content: flex-start; align-content: flex-start; }
  .constellation .tech-pill {
    position: absolute;
    will-change: transform;
  }
}

@keyframes floaty {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(var(--fx, 6px), var(--fy, -10px)); }
}

.tech-pill.is-floating {
  animation: floaty var(--fdur, 6s) ease-in-out infinite;
  animation-delay: var(--fdelay, 0s);
}

/* ==========================================================================
   Stats
   ========================================================================== */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  text-align: center;
}

.stat {
  padding: 1.75rem 1rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 700;
  background: var(--grad-aurora);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 560px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 3rem clamp(1.25rem, 6vw, 3rem) calc(3rem + env(safe-area-inset-bottom));
  max-width: var(--container);
  margin: 0 auto;
  border-top: 1px solid var(--border);
}

.footer-name { font-family: var(--font-display); font-weight: 600; }
.footer-name span { color: var(--ink-faint); font-weight: 400; }
.footer-tag { color: var(--ink-soft); font-size: 0.9rem; margin-top: 0.3rem; }

/* ==========================================================================
   Aurora companion widget
   ========================================================================== */

.companion {
  position: fixed;
  left: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 400;
  display: flex;
  align-items: center;
  max-width: min(340px, calc(100vw - 3rem));
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  pointer-events: none;
}

.companion.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.companion-body {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1.1rem 0.7rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(232, 168, 124, 0.25);
  background: rgba(10, 14, 20, 0.75);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.companion-body:hover {
  border-color: rgba(232, 168, 124, 0.55);
  transform: translateY(-2px);
}

.companion-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: #241a12;
  background: linear-gradient(135deg, var(--dawn), var(--mist));
}

.companion-text {
  font-size: 0.84rem;
  color: var(--ink);
  line-height: 1.35;
  transition: opacity 0.25s var(--ease);
}

.companion-close {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--bg-1);
  color: var(--ink-soft);
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  pointer-events: auto;
}

.companion-close:hover { color: var(--ink); }

@media (max-width: 640px) {
  .companion-text { display: none; }
  .companion-body { padding: 0.6rem; border-radius: 50%; }
  .companion {
    left: max(1rem, env(safe-area-inset-left));
    max-width: calc(100vw - 3.5rem);
  }
  .companion-close { right: -6px; }
}

/* ==========================================================================
   Reveal defaults (JS/GSAP progressively enhances these)
   ========================================================================== */

.reveal { opacity: 1; }

/* ==========================================================================
   Responsive: cards / products
   ========================================================================== */

@media (max-width: 980px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: 1fr; }
  .product-featured { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 620px) {
  .card-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .cta-primary, .cta-ghost { justify-content: center; }
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }
  .stat {
    min-width: 0;
    padding: 1.4rem 0.65rem;
  }
  .stat-num { font-size: clamp(1.55rem, 8vw, 2rem); }
  .footer { width: 100%; }
}
