/* ============================================================
   INFLUOVA — Landing Page Styles
   Colour scheme pulled from the logo:
   - Deep near-black navy background
   - Purple → pink gradient accent
   ============================================================ */

:root {
  --bg:            #0b0b14;
  --bg-2:          #11111d;
  --surface:       #16162400;
  --card:          rgba(255, 255, 255, 0.035);
  --card-border:   rgba(255, 255, 255, 0.08);
  --text:          #f4f3f8;
  --text-muted:    #a7a3b8;
  --purple:        #9b6cff;
  --pink:          #e84aa0;
  --grad:          linear-gradient(135deg, #9b6cff 0%, #e84aa0 100%);
  --grad-soft:     linear-gradient(135deg, rgba(155,108,255,0.16), rgba(232,74,160,0.16));
  --radius:        18px;
  --radius-lg:     28px;
  --maxw:          1120px;
}

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

html { scroll-behavior: smooth; }

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

/* Background gradient base */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(155,108,255,0.10), transparent 60%),
    radial-gradient(1000px 600px at 0% 100%, rgba(232,74,160,0.08), transparent 55%),
    var(--bg);
  z-index: -2;
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  opacity: 0.5;
  pointer-events: none;
}
.bg-glow--one { width: 480px; height: 480px; background: #9b6cff; top: -120px; right: -120px; }
.bg-glow--two { width: 420px; height: 420px; background: #e84aa0; bottom: -160px; left: -140px; opacity: 0.4; }

img { max-width: 100%; display: block; }

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

.hidden { position: absolute; left: -9999px; opacity: 0; }

/* Ensure the [hidden] attribute always wins, even over display:flex elements */
[hidden] { display: none !important; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 30px rgba(155,108,255,0.35);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(232,74,160,0.45); }
.btn--ghost {
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border-color: var(--card-border);
}
.btn--ghost:hover { border-color: rgba(155,108,255,0.6); background: rgba(155,108,255,0.08); }
.btn--block { width: 100%; }

/* ============ NAV ============ */
.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 5;
}
.nav__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav__logo { width: 40px; height: 40px; border-radius: 10px; }
.nav__name {
  font-weight: 800;
  letter-spacing: 0.18em;
  font-size: 1.1rem;
  color: var(--text);
}
.nav__links { display: flex; align-items: center; gap: 18px; }
.nav__link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.18s ease;
}
.nav__link:hover { color: var(--text); }
.nav__link { white-space: nowrap; }
.nav__cta { padding: 10px 22px; }

/* On small screens the logo already reads "INFLUOVA", so drop the text label
   to give the Contact/Apply links room. */
@media (max-width: 560px) {
  .nav { padding: 16px; }
  .nav__name { display: none; }
  .nav__links { gap: 12px; }
  .nav__cta { padding: 9px 18px; }
}

/* ============ HERO ============ */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 60px 24px 90px;
  text-align: center;
}
.hero__inner { max-width: 760px; margin: 0 auto; }
.hero__logo-wrap { display: flex; justify-content: center; margin-bottom: 28px; }
.hero__mark {
  width: 110px; height: 110px;
  filter: drop-shadow(0 12px 30px rgba(232,74,160,0.35));
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.hero__title {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.hero__sub {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 34px;
}
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero__note { margin-top: 22px; font-size: 0.9rem; color: var(--text-muted); }

/* ============ SECTIONS ============ */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 80px 24px;
}
.section__head { text-align: center; max-width: 680px; margin: 0 auto 54px; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--grad-soft);
  border: 1px solid rgba(155,108,255,0.25);
}
.section__title {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.section__lead {
  color: var(--text-muted);
  font-size: 1.08rem;
  margin-top: 16px;
}

/* ============ CARDS ============ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(155,108,255,0.4);
  background: rgba(155,108,255,0.05);
}
.card__icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--grad-soft);
  border: 1px solid rgba(155,108,255,0.2);
  margin-bottom: 18px;
}
.card__icon svg { width: 26px; height: 26px; }
.card__title { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.card__text { color: var(--text-muted); font-size: 0.98rem; }

/* ============ TESTIMONIAL ============ */
.section--results { position: relative; }
.testimonial {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 36px;
  align-items: center;
  background: linear-gradient(135deg, rgba(155,108,255,0.08), rgba(232,74,160,0.06));
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.testimonial__media {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 20px;
  overflow: hidden;
  background: var(--grad);
  display: grid;
  place-items: center;
}
.testimonial__photo { width: 100%; height: 100%; object-fit: cover; }
.testimonial__initials {
  display: none;
  font-size: 3.4rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.05em;
}
.testimonial__media--placeholder .testimonial__initials { display: block; }

.testimonial__quote-mark {
  font-size: 4rem;
  line-height: 0.6;
  font-weight: 900;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}
.testimonial__quote {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 22px;
}
.testimonial__quote strong { color: #fff; }
.testimonial__person { display: flex; flex-direction: column; }
.testimonial__name { font-weight: 700; font-size: 1.05rem; }
.testimonial__role { color: var(--pink); font-size: 0.9rem; }

.results__note {
  text-align: center;
  color: var(--text-muted);
  margin-top: 34px;
  font-size: 1.02rem;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

/* ============ APPLY ============ */
.section--apply { padding-top: 40px; }
.apply__card {
  background: var(--bg-2);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 56px);
  max-width: 820px;
  margin: 0 auto;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}
.apply__intro { text-align: center; margin-bottom: 34px; }

.form { display: flex; flex-direction: column; gap: 18px; }
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form__field { display: flex; flex-direction: column; gap: 8px; }
.form__label { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }
.form input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.form input::placeholder { color: #6c6880; }
.form input:focus {
  outline: none;
  border-color: var(--purple);
  background: rgba(155,108,255,0.06);
  box-shadow: 0 0 0 3px rgba(155,108,255,0.18);
}
.form__fineprint { text-align: center; font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; }

/* ============ PHONE (country dial code) ============ */
.phone { position: relative; display: flex; gap: 8px; }
.phone__country {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.phone__country:hover { border-color: rgba(155,108,255,0.5); }
.phone__country:focus-visible { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(155,108,255,0.18); }
.phone__caret { width: 16px; height: 16px; color: var(--text-muted); transition: transform 0.2s ease; }
.phone__country[aria-expanded="true"] .phone__caret { transform: rotate(180deg); }
.phone__input { flex: 1; min-width: 0; }

.phone__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 20;
  width: 320px;
  max-width: min(360px, 86vw);
  background: #15151f;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  padding: 10px;
  animation: fadeUp 0.16s ease;
}
.phone__search {
  width: 100%;
  padding: 11px 14px !important;
  margin-bottom: 8px;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
}
.phone__search:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(155,108,255,0.18); }
.phone__list { list-style: none; max-height: 260px; overflow-y: auto; margin: 0; padding: 0; }
.phone__list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 9px;
  cursor: pointer;
  font-size: 0.95rem;
}
.phone__list li:hover,
.phone__list li.is-active { background: var(--grad-soft); }
.phone__list li .c-name { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.phone__list li .c-dial { color: var(--text-muted); font-variant-numeric: tabular-nums; }
.phone__empty { text-align: center; color: var(--text-muted); padding: 16px 0; font-size: 0.9rem; }

/* Scrollbar styling for the country list */
.phone__list::-webkit-scrollbar { width: 8px; }
.phone__list::-webkit-scrollbar-thumb { background: rgba(155,108,255,0.35); border-radius: 8px; }

/* ============ SUCCESS ============ */
.success { text-align: center; padding: 20px 0; animation: fadeUp 0.5s ease; }
.success__check {
  width: 72px; height: 72px;
  margin: 0 auto 22px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 2rem; color: #fff;
  background: var(--grad);
  box-shadow: 0 12px 34px rgba(232,74,160,0.45);
}
.success__title { font-size: 1.9rem; font-weight: 800; margin-bottom: 14px; }
.success__text { color: var(--text-muted); max-width: 480px; margin: 0 auto 26px; font-size: 1.05rem; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

/* ============ CONTACT ============ */
.section--contact { text-align: center; }
.contact__card {
  max-width: 640px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(155,108,255,0.08), rgba(232,74,160,0.06));
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 56px);
}
.contact__btn {
  margin-top: 28px;
  font-size: 1.05rem;
  gap: 10px;
}
.contact__btn svg { width: 20px; height: 20px; }
.contact__note { margin-top: 18px; color: var(--text-muted); font-size: 0.9rem; }

/* ============ FOOTER ============ */
.footer {
  max-width: var(--maxw);
  margin: 40px auto 0;
  padding: 40px 24px;
  border-top: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__brand { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.footer__tag { color: var(--pink); font-size: 0.9rem; }
.footer__copy { color: var(--text-muted); font-size: 0.88rem; }

/* ============ RESPONSIVE ============ */
@media (max-width: 720px) {
  .testimonial { grid-template-columns: 1fr; text-align: left; }
  .testimonial__media { max-width: 180px; }
  .form__row { grid-template-columns: 1fr; }
}
