/* ============================================================
   Influeri — Home page
   Tokens pulled from Figma:
     White        #FFFFFF
     Primary      #0B0B0B
     Text color   #535353
     Gradient     linear-gradient(266.878deg, #ED3D7F 0%, #F3C370 100%)
   Display font in design: Telegraf SemiBold  -> fallback: Manrope
   Body/UI font in design: Pulp Display       -> fallback: Inter
   ============================================================ */

:root {
  --white: #ffffff;
  --primary: #0b0b0b;
  --text: #535353;
  --line: #ececec;
  --grad: linear-gradient(267deg, #ed3d7f 0%, #f3c370 100%);

  --font-display: "Telegraf", "Manrope", system-ui, sans-serif;
  --font-body: "Pulp Display", "Inter", system-ui, sans-serif;

  --content: 744px;       /* centered content column (1512 - 384*2) */
  --nav-max: 1380px;
}

* { box-sizing: border-box; }

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

/* ============================================================
   MOBILE HORIZONTAL SCROLL FIX — prevent horizontal overflow
   ============================================================ */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

img, video, iframe, embed, object {
  max-width: 100%;
  height: auto;
}

.wrap, .wrap--narrow, .sec-head, .spot-block, .cc, .tcm, .ctx-cta {
  max-width: 100%;
  overflow-x: hidden;
}

/* Ensure all grid/flex containers don't overflow.
   NB: *__track elements are deliberately EXCLUDED. Every `track` in this tree is
   the inner, wider-than-its-parent strip of a marquee or carousel (.logo-marquee,
   .marquee, .cc-car, .quotes, .tcm), and each already sits inside a wrapper that
   clips. Clamping a track to max-width:100% both hides the half of it that has to
   overflow AND breaks the translateX(-50%) loop keyframes, whose percentage then
   resolves against the clamped rail width instead of the real content width — the
   rail drains to blank after one cycle. Clip on the wrapper, never on the track. */
section, div[class*="grid"], div[class*="rail"] {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* ---------------- Nav ---------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}
.nav__inner {
  max-width: var(--nav-max);
  margin: 0 auto;
  height: 76px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand__mark { display: inline-flex; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 15px;
  font-weight: 600;
}
.nav__links a {
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  padding: 4px 0;
  transition: opacity 0.15s ease;
}
.nav__links a:not(.is-active) { opacity: 0.78; }
.nav__links a:hover { opacity: 1; }
.nav__links a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}
.caret { margin-top: 1px; opacity: 0.7; }

.nav__actions { margin-left: auto; display: flex; align-items: center; gap: 16px; }

.lang { display: inline-flex; align-items: center; gap: 10px; margin-right: 4px; }
.lang__opt {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: #b9b9b9;
  background: none;
  border: 0;
  padding: 2px 0;
  cursor: pointer;
  position: relative;
}
.lang__opt.is-active { color: var(--primary); }
.lang__opt.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 44px;
  padding: 0 24px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.12s ease, box-shadow 0.2s ease, opacity 0.15s ease;
}
.btn:active { transform: translateY(1px); }

.btn--ghost {
  height: 42px;
  background: var(--white);
  color: var(--primary);
  border-color: rgba(0, 0, 0, 0.16);
}
.btn--ghost:hover { border-color: rgba(0, 0, 0, 0.4); }

.btn--dark {
  height: 42px;
  background: var(--primary);
  color: var(--white);
}
.btn--dark:hover { box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22); }

.btn--gradient {
  background-image: var(--grad);
  color: var(--white);
  /* the inherited .btn transparent border seams against a gradient background
     at the rounded corners — most visible as a hard pink line on the left
     edge (LP-02). Gradient buttons don't need a border at all. */
  border: none;
}
.btn--gradient:hover { box-shadow: 0 10px 24px rgba(237, 61, 127, 0.35); }

.btn--wide { width: 168px; height: 44px; padding: 0; }
.arrow { flex: none; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  background: var(--white);
  overflow: hidden;
  min-height: 800px;
  display: flex;
  align-items: center;
  padding: 96px 24px 72px;
}
.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

/* Animated floating account cards (background) */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 46% 56% at 50% 46%, transparent 38%, #000 82%);
          mask-image: radial-gradient(ellipse 46% 56% at 50% 46%, transparent 38%, #000 82%);
}
.acct {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 208px;
  padding: 10px 13px;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.10);
  transform: rotate(var(--r, 0deg));
  animation: floaty 7s ease-in-out infinite;
  will-change: transform;
}
.acct__av {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  padding: 2px;
  background: #0b0b0b;
  display: inline-flex;
}
.acct__av img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--white);
  display: block;
}
.acct__meta { min-width: 0; }
.acct__name { margin: 0; font-weight: 700; font-size: 13px; color: var(--primary); }
.acct__stat { margin: 0; font-size: 11px; color: var(--text); }

.acct--f1 { top: 9%;  left: 2%;  animation-duration: 6.5s; }
.acct--f2 { top: 20%; right: 3%; animation-duration: 7.5s; animation-delay: -2s; }
.acct--f3 { top: 45%; left: 5%;  animation-duration: 8s;   animation-delay: -1s; }
.acct--f4 { top: 43%; right: 5%; animation-duration: 7s;   animation-delay: -3s; }
.acct--f5 { bottom: 11%; left: 8%;  animation-duration: 6.8s; animation-delay: -1.5s; }
.acct--f6 { bottom: 9%;  right: 7%; animation-duration: 7.8s; animation-delay: -2.5s; }
.acct--f7 { top: 5%;  left: 31%; animation-duration: 8.5s; animation-delay: -4s; }
.acct--f8 { bottom: 5%; right: 30%; animation-duration: 9s; animation-delay: -0.5s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50%      { transform: translateY(-16px) rotate(var(--r, 0deg)); }
}
@media (prefers-reduced-motion: reduce) {
  .acct { animation: none; }
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 26px;
}
.hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0b0b0b;
  box-shadow: 0 0 0 4px rgba(11, 11, 11, 0.12);
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  margin: 0 0 22px;
}
.hero__sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  max-width: 600px;
  margin: 0 auto;
}
.hero__cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}
.btn--lg {
  height: 54px;
  padding: 0 28px;
  font-size: 17px;
  border-radius: 12px;
}
.btn--ghost.btn--lg { height: 54px; }
.hero__proof {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}
.hero__avatars { display: inline-flex; align-items: center; }
.hero__avatars img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.hero__avatars img + img,
.hero__avatars .hero__avatars-more { margin-left: -14px; }
.hero__avatars-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  border: 3px solid var(--white);
  position: relative;
}
.hero__proof-text {
  margin: 0;
  font-size: 14.5px;
  color: var(--text);
}
.hero__proof-text strong { color: var(--primary); font-weight: 700; }

/* Centered prompt box inside hero */
.hero__prompt {
  max-width: 600px;
  margin: 32px auto 0;
  text-align: left;
  min-height: 188px;
}

/* Featured account card below the input */
.hero__featured {
  position: relative;
  max-width: 360px;
  margin: 20px auto 0;
  text-align: left;
}
.hero__match {
  position: absolute;
  top: 12px;
  right: 14px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #0b0b0b;
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

@media (max-width: 760px) {
  .hero { min-height: auto; padding: 56px 20px 48px; }
  .hero__bg { display: none; }
  .hero__prompt, .hero__featured { max-width: 100%; }
}

/* ---------------- Content blocks ---------------- */
.block {
  max-width: var(--content);
  margin: 0 auto;
  padding: 48px 24px 0;
}
.block__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  line-height: 44px;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
}

/* ---------------- Prompt card ---------------- */
.prompt-card {
  position: relative;
  background: var(--white);
  border-radius: 14px;
  min-height: 220px;
  padding: 24px;
  box-shadow: 0 0 30px 5px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
}
.prompt-card__input {
  flex: 1;
  border: 0;
  resize: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--primary);
  background: transparent;
  padding: 0;
}
.prompt-card__input::placeholder { color: #9a9a9a; }
.prompt-card__cta { align-self: flex-end; margin-top: 16px; }

/* ---------------- Creator cards (Instagram-style) ---------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.creator {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--white);
  border-radius: 16px;
  padding: 20px 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.creator:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.10);
}
.creator__avatar {
  flex: none;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, #ed3d7f 0%, #f3c370 100%);
  display: inline-flex;
  margin-bottom: 12px;
}
.creator__avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--white);
  display: block;
}
.creator__meta { min-width: 0; width: 100%; }
.creator__name {
  font-weight: 700;
  font-size: 15px;
  color: var(--primary);
  margin: 0 0 2px;
}
.creator__stat {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text);
  margin: 0;
}
.creator__stat b {
  font-weight: 700;
  color: var(--primary);
}

/* ---------------- CTA row ---------------- */
.cta-row {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  padding: 28px 0 96px;
}

/* ---------------- Showcase · platform UI ---------------- */
.showcase {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 24px 96px;
}
.showcase__head {
  max-width: 640px;
  margin: 0 auto 38px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.showcase__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 3.4vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}
.showcase__sub { margin: 0; color: var(--text); font-size: 16.5px; line-height: 1.6; }

.app-frame {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 18px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}
.app-frame__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  background: #fafafa;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.app-frame__dots { display: inline-flex; gap: 7px; }
.app-frame__dots i { width: 11px; height: 11px; border-radius: 50%; background: #e0e0e0; }
.app-frame__dots i:nth-child(1) { background: #ff5f57; }
.app-frame__dots i:nth-child(2) { background: #febc2e; }
.app-frame__dots i:nth-child(3) { background: #28c840; }
.app-frame__chip {
  font-size: 13px; font-weight: 600; color: var(--primary);
  background: var(--white); border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px; padding: 5px 11px;
}
.app-frame__tokens { margin-left: auto; font-size: 12.5px; color: var(--text); }
.app-frame__body {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 26px;
  padding: 26px;
  background: radial-gradient(130% 130% at 0% 0%, #ffffff, #fbf6f5);
}
.app-frame__panel { display: flex; flex-direction: column; gap: 14px; }
.app-frame__label {
  margin: 0; font-size: 12px; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase; color: #9a9a9a;
}
.app-frame__prompt { min-height: 156px; flex: 1; }
.app-frame__typed { flex: 1; margin: 0; font-size: 16px; line-height: 1.55; color: var(--primary); }
.app-frame__actions { display: flex; gap: 12px; }
.app-frame__actions .btn--wide { width: auto; flex: 1; }
.app-frame__panel--results { gap: 12px; }
.app-frame__panel--results .creator__meta { flex: 1; min-width: 0; }
.creator__match {
  flex: none;
  align-self: center;
  font-size: 12px; font-weight: 700; color: #fff;
  background: #0b0b0b;
  padding: 4px 10px; border-radius: 999px;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 820px) {
  .app-frame__body { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__inner { gap: 16px; padding: 0 20px; }
}
@media (max-width: 680px) {
  .cards { grid-template-columns: 1fr; }
  .cta-row { flex-direction: column; }
  .btn--wide { width: 100%; }
  .lang { display: none; }
  .hero { padding-top: 48px; }
  /* Book an intro / Talk to us must stay reachable on mobile — the only other
     CTA at this width is Try the platform for free / Log in, so hiding every
     .btn--ghost left no way for an enterprise buyer to book a call. */
  
  /* Hide Log In button on mobile */
  .nav__login { display: none; }
  
  /* Hide Book an intro button in hero on mobile */
  .hh__try-btn--desktop { display: none; }
}
