/* Aiverse — marketing site
   Brand: deep-space navy/black + blue → violet → pink gradient, cosmic SaaS theme */

:root {
  --bg-void: #05060f;
  --bg-deep: #0a0c1f;
  --bg-alt: #0d0f24;
  --bg-card: rgba(255, 255, 255, 0.045);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.1);
  --border-soft: rgba(255, 255, 255, 0.07);
  --blue: #3b82f6;
  --violet: #8b5cf6;
  --pink-600: #ec4899;
  --pink-700: #d63384;
  --pink-glow: rgba(236, 72, 153, 0.35);
  --grad-brand: linear-gradient(120deg, var(--blue), var(--violet), var(--pink-600));
  --ink: #f4f5fc;
  --muted: rgba(244, 245, 252, 0.64);
  --muted-soft: rgba(244, 245, 252, 0.45);
  --card: #ffffff;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-pill: 999px;
  --shadow-card: 0 20px 50px -20px rgba(0, 0, 0, 0.55);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg-void);
  background-image:
    radial-gradient(ellipse 900px 600px at 12% -10%, rgba(59, 130, 246, 0.16), transparent 60%),
    radial-gradient(ellipse 900px 700px at 88% 15%, rgba(236, 72, 153, 0.13), transparent 60%),
    radial-gradient(ellipse 700px 600px at 50% 100%, rgba(139, 92, 246, 0.12), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .brand-word {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  margin: 0;
  line-height: 1.15;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pink-600);
  margin-bottom: 14px;
}
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 { font-size: 36px; font-weight: 700; color: var(--ink); }
.section-head p { margin-top: 14px; font-size: 16px; color: var(--muted); line-height: 1.6; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-pink { background: var(--grad-brand); background-size: 160% 160%; color: #fff; box-shadow: 0 8px 26px -6px var(--pink-glow); }
.btn-pink:hover { background-position: 100% 0%; }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.35); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.08); }
.btn-white { background: #fff; color: var(--violet); }
.btn-white:hover { background: #f2ecff; }
.btn-outline { background: rgba(255,255,255,0.03); color: var(--ink); border-color: var(--border); }
.btn-outline:hover { border-color: var(--pink-600); color: var(--pink-600); }
.btn-block { width: 100%; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 12, 31, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 30px; width: auto; }
.brand-word { color: #fff; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { color: rgba(255,255,255,0.75); font-size: 14.5px; font-weight: 500; transition: color .15s; }
.nav-links-cta { display: none; }
.nav-links a:hover { color: #fff; }
.nav-actions { display: flex; align-items: center; gap: 18px; }
.nav-actions .login-link { color: rgba(255,255,255,0.8); font-size: 14.5px; font-weight: 500; }
.nav-actions .login-link:hover { color: #fff; }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 26px; cursor: pointer; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: transparent;
  padding: 88px 0 100px;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 20% 30%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.5px 1.5px at 75% 15%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 60% 65%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.5px 1.5px at 88% 55%, rgba(255,255,255,0.35), transparent),
    radial-gradient(1px 1px at 40% 80%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1.5px 1.5px at 10% 70%, rgba(255,255,255,0.3), transparent);
  background-repeat: repeat;
  background-size: 100% 100%;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute; inset: -10%;
  background-image:
    radial-gradient(circle at 82% 15%, rgba(236,72,153,0.32), transparent 45%),
    radial-gradient(circle at 100% 60%, rgba(59,130,246,0.32), transparent 50%),
    radial-gradient(circle at 10% 90%, rgba(139,92,246,0.28), transparent 50%);
  background-size: 130% 130%;
  animation: heroDrift 16s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes heroDrift {
  0% { background-position: 0% 0%; }
  100% { background-position: -12% 8%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero::after { animation: none; }
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
.hero-copy h1 { font-size: 48px; color: #fff; font-weight: 700; letter-spacing: -0.02em; }
.hero-copy h1 .accent {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-copy p.lead { margin-top: 20px; font-size: 17px; line-height: 1.7; color: rgba(255,255,255,0.72); max-width: 480px; }
.hero-cta { margin-top: 32px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-trust { margin-top: 22px; display: flex; gap: 22px; flex-wrap: wrap; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,0.6); }
.hero-trust svg { flex-shrink: 0; }

/* Hero mock chat card */
.mock-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 70px -20px rgba(0,0,0,0.6);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}
.mock-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid #eceef7;
}
.mock-model { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: #0f1330; }
.mock-model img { width: 20px; height: 20px; border-radius: 5px; }
.mock-dots { display: flex; gap: 6px; }
.mock-dots span { width: 9px; height: 9px; border-radius: 50%; background: #eceef7; }
.mock-body { padding: 22px 20px 26px; }
.mock-msg { display: flex; gap: 10px; margin-bottom: 16px; }
.mock-msg img { width: 26px; height: 26px; border-radius: 7px; margin-top: 2px; }
.mock-msg .bubble { font-size: 14px; color: #0f1330; line-height: 1.55; }
.mock-msg .bubble b { display: block; font-size: 15px; margin-top: 2px; }
.mock-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.mock-thumbs div {
  aspect-ratio: 1; border-radius: 10px; overflow: hidden; position: relative;
  background: linear-gradient(135deg, #ede9ff, #ffe4f1);
}
.mock-thumbs div::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,0.75) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: thumbShimmer 2.6s ease-in-out infinite;
}
.mock-thumbs div:nth-child(2)::after { animation-delay: 0.25s; }
.mock-thumbs div:nth-child(3)::after { animation-delay: 0.5s; }
@keyframes thumbShimmer {
  0% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(100%); }
}
.mock-input {
  display: flex; align-items: center; justify-content: space-between;
  border: 1px solid #eceef7; border-radius: 12px; padding: 12px 14px; margin-top: 4px;
}
.mock-input span { font-size: 13.5px; color: #616a86; }
.mock-input .type-cursor { display: inline-block; margin-left: 1px; animation: caretBlink 1s step-end infinite; color: #616a86; }
@keyframes caretBlink { 50% { opacity: 0; } }
.mock-input .send { width: 30px; height: 30px; border-radius: 50%; background: var(--grad-brand); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; transition: transform 0.2s ease; }
.mock-input .send { animation: sendPulse 2.4s ease-in-out infinite; }
@keyframes sendPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(236,72,153,0.45); }
  50% { box-shadow: 0 0 0 7px rgba(236,72,153,0); }
}
@media (prefers-reduced-motion: reduce) {
  .mock-thumbs div::after { animation: none; }
  .mock-input .type-cursor { animation: none; }
  .mock-input .send { animation: none; }
}

/* Logo strip */
.strip { background: var(--bg-deep); border-bottom: 1px solid var(--border-soft); padding: 34px 0; overflow: hidden; }
.strip-track { display: flex; align-items: center; width: max-content; animation: stripMarquee 32s linear infinite; }
.strip:hover .strip-track { animation-play-state: paused; }
.strip-group { display: flex; align-items: center; gap: 44px; padding-right: 44px; flex-shrink: 0; }
.strip-item { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13.5px; font-weight: 600; opacity: 0.9; white-space: nowrap; }
.strip-item img { width: 26px; height: 26px; border-radius: 7px; }
@keyframes stripMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .strip-track { animation: none; }
}
.strip-tag {
  display: inline-flex; align-items: center; padding: 4px 12px; border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 700; letter-spacing: 0.03em;
}
.tag-free { background: rgba(59,130,246,0.16); color: #7fb0ff; }
.tag-plus { background: rgba(236,72,153,0.16); color: #ff9ecb; }
.tag-pro { background: var(--grad-brand); color: #fff; }

/* Features */
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-card); display: flex; flex-direction: column;
}
.feature-visual {
  height: 190px; padding: 22px;
  background: linear-gradient(135deg, rgba(59,130,246,0.14), rgba(236,72,153,0.14));
  display: flex; align-items: center; justify-content: center; gap: 14px;
}
.feature-visual img { width: 56px; height: 56px; border-radius: 14px; box-shadow: 0 10px 24px -8px rgba(0,0,0,0.4); }
.feature-visual.alt { background: linear-gradient(135deg, rgba(139,92,246,0.16), rgba(59,130,246,0.14)); }
.feature-body { padding: 22px 24px 26px; }
.feature-body h3 { font-size: 19px; font-weight: 700; color: var(--ink); }
.feature-body p { margin-top: 10px; font-size: 14.5px; color: var(--muted); line-height: 1.6; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.price-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 30px 26px; display: flex; flex-direction: column; position: relative; box-shadow: var(--shadow-card);
}
.price-card.featured { border: 2px solid transparent; background: linear-gradient(var(--bg-alt), var(--bg-alt)) padding-box, var(--grad-brand) border-box; transform: translateY(-8px); }
.price-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--grad-brand); color: #fff; font-size: 12px; font-weight: 700;
  padding: 5px 14px; border-radius: var(--radius-pill); letter-spacing: 0.02em;
}
.price-name { font-size: 20px; font-weight: 700; color: var(--ink); }
.price-desc { margin-top: 8px; font-size: 13.5px; color: var(--muted); min-height: 40px; }
.price-value { margin-top: 18px; font-size: 34px; font-weight: 700; color: var(--ink); }
.price-value small { font-size: 14px; font-weight: 500; color: var(--muted); }
.price-tokens {
  margin-top: 6px; display: inline-flex; align-items: center; align-self: flex-start;
  font-size: 12.5px; font-weight: 600; color: var(--pink-600);
  background: rgba(236,72,153,0.12); padding: 4px 10px; border-radius: var(--radius-pill);
}
.price-cta { margin-top: 20px; }
.price-list { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 12px; }
.price-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--ink); line-height: 1.5; }
.price-list svg { flex-shrink: 0; margin-top: 2px; color: var(--pink-600); }
.price-models { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--border); font-size: 12.5px; color: var(--muted); }

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 600; font-size: 15.5px;
  color: var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { transition: transform 0.2s ease; color: var(--pink-600); flex-shrink: 0; }
.faq-item[open] summary .chev { transform: rotate(180deg); }
.faq-answer { padding: 0 24px 20px; font-size: 14.5px; color: var(--muted); line-height: 1.65; }

/* CTA banner */
.cta-banner {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: var(--grad-brand);
  padding: 64px 40px; text-align: center; color: #fff;
}
.cta-banner::before {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,0.06) 0 1px, transparent 1px 54px),
    repeating-linear-gradient(25deg, rgba(255,255,255,0.06) 0 1px, transparent 1px 54px);
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 { font-size: 34px; font-weight: 700; }
.cta-banner p { margin-top: 12px; font-size: 15.5px; color: rgba(255,255,255,0.85); }
.cta-banner .btn { margin-top: 26px; }
.cta-note { margin-top: 14px; font-size: 12.5px; color: rgba(255,255,255,0.7); }

/* Footer */
.footer { background: var(--bg-void); color: rgba(255,255,255,0.7); padding: 64px 0 28px; border-top: 1px solid var(--border-soft); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { margin-top: 14px; font-size: 13.5px; line-height: 1.6; max-width: 280px; color: rgba(255,255,255,0.55); }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: rgba(255,255,255,0.9); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: rgba(255,255,255,0.6); margin-bottom: 12px; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 12.5px; color: rgba(255,255,255,0.45);
}

/* Responsive */
@media (max-width: 1100px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy p.lead { max-width: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .price-card.featured { transform: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: flex;
    position: absolute; top: 76px; left: 0; right: 0;
    background: var(--bg-deep);
    flex-direction: column; align-items: flex-start; gap: 2px;
    max-height: 0; overflow: hidden; opacity: 0;
    padding: 0 24px;
    box-shadow: 0 16px 28px -14px rgba(0,0,0,0.65);
    transition: max-height 0.32s ease, opacity 0.24s ease, padding 0.32s ease;
  }
  .nav-links a { padding: 13px 0; width: 100%; }
  .nav-links a.nav-links-cta { display: flex; justify-content: center; text-align: center; margin-top: 6px; width: 100%; color: #fff; }
  .nav-links.nav-open { max-height: 360px; opacity: 1; padding: 16px 24px 22px; }
  .nav-actions .login-link,
  .nav-actions .nav-actions-cta { display: none; }
  .section { padding: 64px 0; }
  .hero-copy h1 { font-size: 34px; }
  .section-head h2 { font-size: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-banner { padding: 44px 24px; }
  .cta-banner h2 { font-size: 26px; }
}

/* --- Interactivity: nav scroll state --- */
.nav { transition: box-shadow 0.25s ease; }
.nav.scrolled { box-shadow: 0 10px 26px -14px rgba(0,0,0,0.65); }

/* --- Interactivity: button micro-feedback --- */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: "";
  position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
  pointer-events: none;
}
.btn:hover::after { left: 130%; }
.btn:active { transform: translateY(0) scale(0.97); }
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.55);
  transform: scale(0);
  animation: rippleOut 0.6s ease-out forwards;
  pointer-events: none;
}
.btn-outline .ripple, .btn-white .ripple, .btn-ghost-light .ripple { background: rgba(236,72,153,0.25); }
@keyframes rippleOut {
  to { transform: scale(1); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .btn .ripple { display: none; }
}

/* --- Interactivity: back-to-top --- */
.back-to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--bg-alt); color: #fff; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; cursor: pointer;
  box-shadow: 0 12px 28px -10px rgba(0,0,0,0.6);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--grad-brand); border-color: transparent; }

/* --- Interactivity: hero mock card rotation --- */
.mock-dynamic { transition: opacity 0.28s ease, transform 0.28s ease; }
.mock-dynamic.is-swapping { opacity: 0; transform: translateY(6px); }
.mock-model img, .mock-model span { transition: opacity 0.2s ease; }

/* --- Interactivity: scroll-reveal --- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* --- Interactivity: card hover lift --- */
.feature-card, .price-card { transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease; }
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 26px 54px -20px rgba(0,0,0,0.6); background: var(--bg-card-hover); }
.feature-visual img { transition: transform 0.35s ease; }
.feature-card:hover .feature-visual img { transform: translateY(-3px) scale(1.06); }
.feature-card:hover .feature-visual img:nth-child(2) { transition-delay: 0.05s; }
.feature-card:hover .feature-visual img:nth-child(3) { transition-delay: 0.1s; }
.price-card:hover { transform: translateY(-6px); box-shadow: 0 26px 54px -20px rgba(0,0,0,0.6); background: var(--bg-card-hover); }
.price-card.featured:hover {
  transform: translateY(-13px);
  background: linear-gradient(var(--bg-alt), var(--bg-alt)) padding-box, var(--grad-brand) border-box;
}
.strip-item { transition: transform 0.2s ease, opacity 0.2s ease; }
.strip-item:hover { transform: translateY(-2px); opacity: 1; }

/* --- Interactivity: FAQ smooth reveal --- */
.faq-answer { opacity: 0; transform: translateY(-6px); transition: opacity 0.22s ease, transform 0.22s ease; }
.faq-item.faq-open .faq-answer { opacity: 1; transform: translateY(0); }
.faq-item { transition: border-color 0.2s ease; }
.faq-item.faq-open { border-color: var(--pink-600); }

/* --- Interactivity: animated CTA banner --- */
.cta-banner {
  background: linear-gradient(120deg, var(--blue) 0%, var(--violet) 50%, var(--pink-600) 100%);
  background-size: 240% 240%;
  animation: ctaGradient 10s ease infinite;
}
@keyframes ctaGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.cta-banner .btn-white { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.cta-banner .btn-white:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 14px 30px -10px rgba(0,0,0,0.45); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .cta-banner { animation: none; }
  .btn::after { display: none; }
}
