/* ==========================================================
   FreeGen - Landing styles
   Dark theme, magenta accent, Inter font
   ========================================================== */

:root {
  --bg: #0d0d10;
  --surface: #15151a;
  --surface-2: #1e1e24;
  --text: #f2f2f4;
  --text-muted: rgba(242, 242, 244, 0.65);
  --accent: #c600a1;
  --accent-2: #ff2d95;
  --border: rgba(255, 255, 255, 0.1);
  --radius: 16px;
}

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

html { scroll-behavior: smooth; }

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

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

.text-gradient {
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 700;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.1); }

.btn--nav {
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  color: #fff;
  padding: 10px 22px;
  font-size: 15px;
}

.btn--hero {
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  color: #fff;
  padding: 18px 44px;
  font-size: 20px;
  box-shadow: 0 8px 40px rgba(198, 0, 161, 0.45);
}
.btn--hero:hover { box-shadow: 0 12px 56px rgba(198, 0, 161, 0.65); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(13, 13, 16, 0.7);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.nav__logo-img { display: block; border-radius: 9px; box-shadow: 0 2px 12px rgba(198, 0, 161, 0.4); }
.nav__logo-ai {
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  text-align: center;
  padding: 110px 24px 90px;
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  pointer-events: none;
}
.hero__glow--1 { width: 560px; height: 560px; background: var(--accent); top: -180px; left: -120px; }
.hero__glow--2 { width: 480px; height: 480px; background: #4a00e0; bottom: -160px; right: -100px; }

.hero__badge {
  display: inline-block;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 32px;
  position: relative;
}

.hero__title {
  font-size: clamp(42px, 7vw, 84px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  position: relative;
}
.hero__title-gradient {
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__title-unlimited {
  display: inline-block;
  margin-top: 8px;
  font-size: clamp(48px, 8.5vw, 110px);
  letter-spacing: 0.04em;
  background: linear-gradient(90deg, #ffd166, #ff2d95, #c600a1, #7b2ff7);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s linear infinite;
}
@keyframes shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

.hero__subtitle {
  margin: 28px auto 40px;
  max-width: 620px;
  font-size: 19px;
  color: var(--text-muted);
  position: relative;
}
.hero__subtitle strong { color: var(--text); }

.hero__note { margin-top: 16px; font-size: 14px; color: var(--text-muted); position: relative; }

.hero__stats {
  display: flex;
  justify-content: center;
  gap: 56px;
  margin-top: 64px;
  flex-wrap: wrap;
  position: relative;
}
.stat__value {
  font-size: 44px;
  font-weight: 900;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat__label { font-size: 14px; color: var(--text-muted); }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 16px 0;
}
.marquee__track {
  display: flex;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  width: max-content;
  will-change: transform;
}
/* No flex gap on the track: the two groups must be exactly identical
   in width (including trailing spacing) so translateX(-50%) lands
   precisely on the seam without a visible jump or empty stripe. */
.marquee__group {
  display: flex;
  align-items: center;
}
.marquee__group span {
  margin-right: 32px;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}
.marquee__group span:nth-child(odd) { color: var(--text); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Sections ---------- */
.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 96px 24px;
  text-align: center;
}
.section--alt {
  max-width: none;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section--alt > * { max-width: 1120px; margin-left: auto; margin-right: auto; }

.section__title {
  font-size: clamp(30px, 4.5vw, 48px);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section__subtitle {
  color: var(--text-muted);
  font-size: 18px;
  max-width: 560px;
  margin: 0 auto 56px;
}
.section__subtitle strong { color: var(--text); }
.section__subtitle--wide { max-width: 760px; }

/* ---------- Models grid ---------- */
.models {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 48px;
}
.model-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 16px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.model-card:hover { transform: translateY(-4px); border-color: rgba(255, 45, 149, 0.5); }
.model-card__icon { font-size: 32px; margin-bottom: 12px; }
.model-card__name { font-weight: 700; font-size: 16px; }
.model-card__tag { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.model-card--more { border-style: dashed; }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 56px;
}
.step {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 16px 28px;
  text-align: left;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.step:hover { transform: translateY(-4px); border-color: rgba(255, 45, 149, 0.45); }

.step__visual {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border);
  margin-bottom: 20px;
}
.step__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.step__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 4px 16px rgba(198, 0, 161, 0.5);
  z-index: 2;
}

/* step 1: fake prompt input with blinking caret */
.step__mock--prompt {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0 18px;
  background:
    radial-gradient(circle at 80% 20%, rgba(198, 0, 161, 0.25), transparent 55%),
    radial-gradient(circle at 15% 85%, rgba(74, 0, 224, 0.3), transparent 55%),
    var(--bg);
}
.step__mock-caret {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  background: var(--surface);
  border: 1px solid rgba(255, 45, 149, 0.5);
  border-radius: 10px;
  padding: 12px 14px;
  width: 100%;
  line-height: 1.4;
}
.step__mock-caret i {
  display: inline-block;
  width: 2px;
  height: 14px;
  background: var(--accent-2);
  margin-left: 3px;
  vertical-align: -2px;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* step 2: progress bar over the image */
.step__mock-progress {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
  z-index: 2;
}
.step__mock-progress i {
  display: block;
  height: 100%;
  width: 40%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  animation: progress 2.4s ease-in-out infinite;
}
@keyframes progress {
  0% { width: 8%; }
  70% { width: 86%; }
  100% { width: 96%; }
}

/* step 3: download chip over the image */
.step__mock-download {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  padding: 8px 16px;
  box-shadow: 0 4px 18px rgba(198, 0, 161, 0.5);
}

.step__title { font-size: 20px; font-weight: 700; margin-bottom: 8px; padding: 0 8px; }
.step__text { color: var(--text-muted); font-size: 15px; padding: 0 8px; }
.steps__cta { margin-top: 48px; }

/* ---------- Community gallery (two-column vertical marquee) ---------- */
.community__trust {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 8px 20px 8px 10px;
}
.community__avatars { display: flex; }
.community__avatars img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 25%;
  border: 2px solid var(--bg);
}
.community__avatars img + img { margin-left: -9px; }
.community__trust-text { font-size: 14px; font-weight: 600; }

.community__marquee {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 720px;
  margin: 0 auto;
  height: 640px;
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
}
.community__col {
  display: flex;
  flex-direction: column;
  will-change: transform;
}
/* margin instead of flex gap keeps the -50% loop seamless */
.community__tile + .community__tile { margin-top: 12px; }
.community__col--up { animation: community-up 45s linear infinite; }
.community__col--down { animation: community-down 45s linear infinite; }
@keyframes community-up {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}
@keyframes community-down {
  from { transform: translateY(-50%); }
  to { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .community__col--up, .community__col--down { animation: none; }
}

.community__tile {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  flex: none;
}
.community__tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.community__author {
  position: absolute;
  left: 8px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px 4px 5px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  font-size: 11.5px;
  font-weight: 600;
}
.community__author i {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6b6b, #b56cff);
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.community__cta { margin-top: 48px; }

/* ---------- Testimonials ---------- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  margin-top: 24px;
}
.testimonial {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  text-align: left;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.testimonial:hover { transform: translateY(-3px); border-color: rgba(255, 45, 149, 0.4); }
.testimonial__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.testimonial__stars { color: #ffd166; font-size: 15px; letter-spacing: 2px; }
.testimonial__verified {
  font-size: 12px;
  font-weight: 700;
  color: #4fd18b;
  background: rgba(64, 200, 120, 0.12);
  border-radius: 999px;
  padding: 3px 10px;
}
.testimonial__title { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.testimonial__body { color: var(--text-muted); font-size: 14.5px; line-height: 1.55; }
.testimonial__author { margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--text-muted); }

/* ---------- Features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  text-align: left;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.feature:hover { transform: translateY(-3px); border-color: rgba(255, 45, 149, 0.4); }
.feature__icon { font-size: 30px; display: block; margin-bottom: 14px; }
.feature h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.feature p { color: var(--text-muted); font-size: 15px; }

/* ---------- Big CTA ---------- */
.big-cta {
  text-align: center;
  padding: 120px 24px;
  position: relative;
  overflow: hidden;
}
.big-cta__unlimited {
  font-size: clamp(64px, 14vw, 190px);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1;
  background: linear-gradient(180deg, rgba(255, 45, 149, 0.28), rgba(198, 0, 161, 0.02));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  user-select: none;
  margin-bottom: -20px;
}
.big-cta__title {
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
}

/* ---------- FAQ ---------- */
.faq { max-width: 720px !important; text-align: left; }
.faq__item {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 12px;
}
.faq__item summary {
  font-weight: 700;
  font-size: 17px;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--accent-2);
}
.faq__item[open] summary::after { content: "-"; }
.faq__item p { margin-top: 12px; color: var(--text-muted); font-size: 15px; }

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  padding: 72px 24px 48px;
  border-top: 1px solid var(--border);
}
.footer__logo {
  font-weight: 800;
  font-size: 22px;
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.footer__logo-img { display: block; border-radius: 8px; }
.footer__tag { color: var(--text-muted); margin-bottom: 28px; }
.footer__links {
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 14px;
}
.footer__links a { color: var(--text-muted); text-decoration: none; font-weight: 600; }
.footer__links a:hover { color: var(--text); }
.footer__links-sep { color: var(--text-muted); }
.footer__copy { margin-top: 14px; font-size: 13px; color: var(--text-muted); }

/* ---------- Mobile ---------- */
@media (max-width: 600px) {
  .hero { padding: 72px 20px 64px; }
  .hero__stats { gap: 32px; }
  .section { padding: 64px 20px; }
  .big-cta { padding: 80px 20px; }
  .community__marquee { height: 520px; gap: 10px; }
  .community__tile + .community__tile { margin-top: 10px; }
}
