/* ============================================
   STACK — Peptide Tracking & Analytics
   Landing site styles
   ============================================ */

:root {
  --bg: #050507;
  --bg-elev: #0c0c12;
  --bg-card: rgba(255, 255, 255, 0.035);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #ffffff;
  --text-muted: #a8a8b8;
  --text-dim: #6b6b78;

  --pink: #ff3e8a;
  --magenta: #d946ef;
  --purple: #a855f7;
  --blue: #3b82f6;
  --cyan: #22d3ee;
  --orange: #ff7a3d;

  --gradient-brand: linear-gradient(135deg, #ff3e8a 0%, #a855f7 35%, #3b82f6 70%, #22d3ee 100%);
  --gradient-warm: linear-gradient(135deg, #ff3e8a 0%, #ff7a3d 100%);
  --gradient-cool: linear-gradient(135deg, #a855f7 0%, #3b82f6 100%);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --max-w: 1240px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

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

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

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-weight: 400;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* ============================================
   Layout helpers
   ============================================ */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 120px 0;
  position: relative;
}

.section--tight {
  padding: 80px 0;
}

@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .section--tight { padding: 56px 0; }
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

h1 {
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  font-weight: 600;
  letter-spacing: -0.015em;
}

p {
  color: var(--text-muted);
  font-size: 1.0625rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--gradient-brand);
  box-shadow: 0 0 12px var(--pink);
}

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

.section-heading {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 64px;
}

.section-heading h2 {
  margin: 18px 0 16px;
}

.section-heading p {
  font-size: 1.125rem;
  color: var(--text-muted);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  transition: all 0.25s ease;
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid transparent;
}

.btn--primary {
  background: #fff;
  color: #000;
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(255, 255, 255, 0.18);
}

.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: var(--border-strong);
}

.btn--ghost:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn--apple {
  background: #fff;
  color: #000;
  padding: 16px 28px;
  font-size: 1rem;
}

.btn--apple:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(255, 255, 255, 0.22);
}

.btn--apple .apple-icon {
  width: 22px;
  height: 22px;
  fill: #000;
  margin-top: -3px;
}

.btn--apple .label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
  gap: 1px;
}

.btn--apple .label .small {
  font-size: 0.66rem;
  font-weight: 500;
  opacity: 0.7;
  letter-spacing: 0.02em;
}

.btn--apple .label .big {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.btn--large {
  padding: 18px 32px;
  font-size: 1.05rem;
}

/* ============================================
   Navbar
   ============================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(5, 5, 7, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.25rem;
}

.brand__icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: #000;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.35), inset 0 0 0 1px rgba(255,255,255,0.06);
}

.brand__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav__links a:hover {
  color: var(--text);
}

.nav__cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  align-items: center;
  justify-content: center;
}

.nav__toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: #fff;
  position: relative;
}
.nav__toggle span::before,
.nav__toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.5px;
  background: #fff;
}
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }

@media (max-width: 880px) {
  .nav__links { display: none; }
  .nav__cta .btn--ghost { display: none; }
  .nav__toggle { display: flex; }

  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 16px;
    right: 16px;
    background: rgba(12, 12, 18, 0.95);
    backdrop-filter: blur(20px);
    padding: 22px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    gap: 18px;
    margin-top: 12px;
  }
}

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

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('assets/background.png');
  background-size: cover;
  background-position: center;
  opacity: 0.55;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top, rgba(168, 85, 247, 0.18) 0%, transparent 60%),
    linear-gradient(180deg, rgba(5,5,7,0.4) 0%, rgba(5,5,7,0.85) 60%, var(--bg) 100%);
}

.hero__glow {
  position: absolute;
  z-index: 0;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 62, 138, 0.28) 0%, transparent 60%);
  filter: blur(60px);
  top: -100px;
  right: -200px;
  pointer-events: none;
  animation: float 14s ease-in-out infinite;
}

.hero__glow--2 {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.22) 0%, transparent 60%);
  top: 40%;
  left: -200px;
  width: 640px;
  height: 640px;
  animation-delay: -7s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -40px) scale(1.08); }
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

@media (max-width: 980px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
}

.hero__content {
  max-width: 640px;
}

@media (max-width: 980px) {
  .hero__content { margin: 0 auto; }
}

.hero h1 {
  margin: 22px 0 24px;
}

.hero__sub {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.55;
  max-width: 560px;
}

@media (max-width: 980px) {
  .hero__sub { margin-left: auto; margin-right: auto; }
}

.hero__cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .hero__cta { justify-content: center; }
}

.hero__stats {
  display: flex;
  gap: 48px;
  margin-top: 56px;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .hero__stats { justify-content: center; }
}

.hero__stat .num {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__stat .label {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 4px;
}

/* iPhone frame */
.hero__phone {
  display: flex;
  justify-content: center;
  position: relative;
}

.phone {
  position: relative;
  width: 320px;
  aspect-ratio: 320 / 660;
  border-radius: 48px;
  background: #0a0a0f;
  padding: 12px;
  box-shadow:
    0 60px 120px rgba(0, 0, 0, 0.7),
    0 0 0 1.5px rgba(255, 255, 255, 0.08),
    inset 0 0 0 2px #1a1a22;
}

.phone::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 30px;
  background: #000;
  border-radius: 999px;
  z-index: 3;
}

.phone__screen {
  width: 100%;
  height: 100%;
  border-radius: 38px;
  overflow: hidden;
  background: #fff;
  position: relative;
}

.phone__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.hero__phone .phone {
  transform: rotate(-3deg);
  animation: floaty 8s ease-in-out infinite;
}

@keyframes floaty {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50% { transform: rotate(-3deg) translateY(-14px); }
}

.phone__glow {
  position: absolute;
  inset: -40px;
  border-radius: 60px;
  background: var(--gradient-brand);
  filter: blur(60px);
  opacity: 0.25;
  z-index: -1;
}

/* ============================================
   Marquee / trust strip
   ============================================ */

.trust {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.015);
}

.trust__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.trust__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-dim);
}

.trust__items {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  align-items: center;
}

.trust__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.trust__item svg {
  width: 16px;
  height: 16px;
  stroke: var(--cyan);
}

/* ============================================
   Features
   ============================================ */

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

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

@media (max-width: 640px) {
  .features__grid { grid-template-columns: 1fr; }
}

.feature {
  position: relative;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color 0.3s ease, transform 0.3s ease, background 0.3s ease;
  overflow: hidden;
  min-height: 240px;
}

.feature::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

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

.feature__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(255, 62, 138, 0.18), rgba(168, 85, 247, 0.18));
  border: 1px solid rgba(255, 62, 138, 0.25);
  margin-bottom: 20px;
}

.feature__icon svg {
  width: 24px;
  height: 24px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.8;
}

.feature h3 {
  margin-bottom: 10px;
}

.feature p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Color variants for feature icons */
.feature:nth-child(2) .feature__icon {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(34, 211, 238, 0.18));
  border-color: rgba(34, 211, 238, 0.25);
}
.feature:nth-child(3) .feature__icon {
  background: linear-gradient(135deg, rgba(255, 122, 61, 0.18), rgba(255, 62, 138, 0.18));
  border-color: rgba(255, 122, 61, 0.25);
}
.feature:nth-child(4) .feature__icon {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.18), rgba(59, 130, 246, 0.18));
  border-color: rgba(168, 85, 247, 0.25);
}
.feature:nth-child(5) .feature__icon {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(168, 85, 247, 0.18));
  border-color: rgba(34, 211, 238, 0.25);
}
.feature:nth-child(6) .feature__icon {
  background: linear-gradient(135deg, rgba(255, 62, 138, 0.18), rgba(255, 122, 61, 0.18));
  border-color: rgba(255, 62, 138, 0.25);
}

/* ============================================
   Showcase (alternating screenshots)
   ============================================ */

.showcase {
  display: flex;
  flex-direction: column;
  gap: 140px;
}

.showcase__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.showcase__row--reverse {
  direction: rtl;
}
.showcase__row--reverse > * { direction: ltr; }

@media (max-width: 880px) {
  .showcase { gap: 96px; }
  .showcase__row,
  .showcase__row--reverse { grid-template-columns: 1fr; gap: 40px; direction: ltr; text-align: center; }
}

.showcase__text .eyebrow { margin-bottom: 20px; }
.showcase__text h2 { margin-bottom: 20px; }
.showcase__text p {
  font-size: 1.0625rem;
  margin-bottom: 28px;
  max-width: 480px;
}

@media (max-width: 880px) {
  .showcase__text p { margin-left: auto; margin-right: auto; }
}

.showcase__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

@media (max-width: 880px) {
  .showcase__list { max-width: 360px; margin: 0 auto; text-align: left; }
}

.showcase__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.98rem;
  color: var(--text-muted);
}

.showcase__list li svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
}

.showcase__phone-wrap {
  display: flex;
  justify-content: center;
  position: relative;
}

.showcase__phone-wrap .phone__glow { opacity: 0.18; }

/* ============================================
   Pricing
   ============================================ */

.pricing__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 920px;
  margin: 0 auto;
}

@media (max-width: 720px) {
  .pricing__grid { grid-template-columns: 1fr; }
}

.plan {
  position: relative;
  padding: 40px 36px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.plan--featured {
  background:
    radial-gradient(ellipse at top, rgba(168, 85, 247, 0.12), transparent 70%),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(168, 85, 247, 0.35);
  box-shadow: 0 30px 80px rgba(168, 85, 247, 0.15);
}

.plan__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 14px;
  background: var(--gradient-brand);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 999px;
}

.plan__name {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 6px;
}

.plan__price .currency {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-muted);
}

.plan__price .amount {
  font-size: 3.25rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.plan__price .period {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
}

.plan__sub {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.plan__sub strong { color: #fff; font-weight: 600; }

.plan__compare {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

.plan__compare--hero {
  background: linear-gradient(135deg, rgba(255, 62, 138, 0.10), rgba(34, 211, 238, 0.10));
  border-color: rgba(168, 85, 247, 0.3);
}

.plan__compare-row {
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-dim);
}

.plan__compare-val {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

.plan__compare-val--big {
  font-size: 1.15rem;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.01em;
}

.plan__cta { margin-top: auto; }

.plan__cta .btn { width: 100%; }

.pricing__shared {
  max-width: 920px;
  margin: 48px auto 0;
  padding: 28px 32px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.pricing__shared-label {
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  margin-bottom: 16px;
  text-align: center;
}

.pricing__shared-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 28px;
}

@media (max-width: 720px) {
  .pricing__shared-list { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .pricing__shared-list { grid-template-columns: 1fr; }
}

.pricing__shared-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.94rem;
  color: var(--text-muted);
}

.pricing__shared-list li svg {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  flex-shrink: 0;
  stroke: var(--cyan);
}

.pricing__note {
  text-align: center;
  margin-top: 32px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ============================================
   Final CTA
   ============================================ */

.cta-final {
  position: relative;
  overflow: hidden;
}

.cta-final__inner {
  position: relative;
  padding: 80px 48px;
  border-radius: var(--radius-xl);
  background: radial-gradient(ellipse at center top, rgba(255, 62, 138, 0.18), transparent 65%), var(--bg-elev);
  border: 1px solid var(--border-strong);
  text-align: center;
  overflow: hidden;
}

.cta-final__inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('assets/background.png');
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  mix-blend-mode: screen;
  z-index: 0;
}

.cta-final__content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.cta-final h2 {
  margin: 18px 0 16px;
}

.cta-final p {
  font-size: 1.1rem;
  margin-bottom: 36px;
}

@media (max-width: 640px) {
  .cta-final__inner { padding: 56px 24px; }
}

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

.footer {
  padding: 72px 0 40px;
  border-top: 1px solid var(--border);
  background: #030305;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

@media (max-width: 780px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
}

.footer__brand p {
  font-size: 0.9rem;
  margin: 16px 0 20px;
  max-width: 320px;
}

.footer__col h4 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 18px;
}

.footer__col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__col ul a {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.footer__col ul a:hover {
  color: #fff;
}

.footer__bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.footer__legal {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__legal a:hover { color: #fff; }

/* ============================================
   Legal pages (Privacy, Terms)
   ============================================ */

.legal {
  padding: 160px 0 120px;
  min-height: 100vh;
  position: relative;
}

.legal__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at top, rgba(168, 85, 247, 0.1) 0%, transparent 60%);
}

.legal__container {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.legal__back:hover { color: #fff; }

.legal h1 {
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  margin-bottom: 12px;
}

.legal__updated {
  color: var(--text-dim);
  font-size: 0.92rem;
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.legal h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 48px 0 16px;
  letter-spacing: -0.015em;
}

.legal h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 28px 0 10px;
  color: #fff;
}

.legal p,
.legal li {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 14px;
}

.legal ul, .legal ol {
  padding-left: 22px;
  margin-bottom: 20px;
}

.legal li::marker { color: var(--purple); }

.legal a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(34,211,238,0.5);
}

.legal a:hover {
  color: #fff;
}

.legal strong { color: #fff; font-weight: 600; }

/* ============================================
   Affiliate form
   ============================================ */

.affiliate-hero {
  padding: 160px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.affiliate-hero__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, rgba(255, 62, 138, 0.18) 0%, transparent 60%);
  z-index: 0;
}

.affiliate-hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.affiliate-hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  margin: 20px 0 18px;
}

.affiliate-hero p {
  font-size: 1.1rem;
  margin-bottom: 0;
}

.affiliate-perks {
  padding: 40px 0 80px;
}

.affiliate-perks__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 980px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .affiliate-perks__grid { grid-template-columns: 1fr; }
}

.perk {
  text-align: center;
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.perk .big {
  font-size: 2.25rem;
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.perk h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #fff;
  letter-spacing: -0.01em;
}

.perk p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.form-section {
  padding: 40px 0 120px;
}

.form-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px;
  border-radius: var(--radius-xl);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.form-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: var(--gradient-brand);
  opacity: 0.6;
}

@media (max-width: 640px) {
  .form-card { padding: 32px 24px; }
}

.form-card h2 {
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.form-card > p {
  font-size: 0.98rem;
  margin-bottom: 32px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

@media (max-width: 540px) {
  .form-grid { grid-template-columns: 1fr; }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.form-field--full { grid-column: 1 / -1; }

.form-field label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
}

.form-field input,
.form-field select,
.form-field textarea {
  font-family: inherit;
  width: 100%;
  padding: 14px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: #fff;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--text-dim); }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: rgba(168, 85, 247, 0.5);
  background: rgba(255,255,255,0.06);
}

.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1.5L6 6.5L11 1.5' stroke='%23a8a8b8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-field textarea {
  resize: vertical;
  min-height: 110px;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 12px 0 24px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.form-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #a855f7;
}

.form-submit {
  width: 100%;
  padding: 16px;
  background: var(--gradient-brand);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.form-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(168, 85, 247, 0.3);
}

.form-success {
  display: none;
  text-align: center;
  padding: 24px;
  border-radius: 12px;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.25);
  color: var(--cyan);
  font-weight: 500;
  margin-top: 18px;
}

.form-success.visible { display: block; }

/* ============================================
   Utilities
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

::selection {
  background: rgba(168, 85, 247, 0.5);
  color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #050507; }
::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.15); }
