/* ThousandsLink — Professional Affiliate Network Styles */

:root {
  --ink: #141B29;
  --ink-soft: #1D2739;
  --porcelain: #EEF1F0;
  --card: #FFFFFF;
  --line: #E1E5E3;
  --slate: #5B6472;
  --slate-2: #8A93A0;
  --teal: #0F6E5F;
  --teal-deep: #0B554A;
  --teal-tint: #E4F1EE;
  --dark-teal-deep: #E4F1EE;
  --dark-teal-tint: #0B554A;
  --amber: #F2A93B;
  --amber-deep: #C2811F;
  --amber-tint: #FDF1DD;
  --coral: #E85D4C;
  --coral-deep: #b91600;
  --coral-tint: #FCE9E6;

  --font-display: "Poppins", "Georgia", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Azeret Mono", "SFMono-Regular", Menlo, monospace;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-card: 0 1px 2px rgba(20, 27, 41, .04), 0 8px 24px -12px rgba(20, 27, 41, .12);
  --shadow-pop: 0 12px 32px -8px rgba(20, 27, 41, .22);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--porcelain);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

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

ul,
ol {
  list-style: none;
}

/* ========== Typography ========== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  letter-spacing: -0.015em;
}

h3 {
  font-size: 1.35rem;
}

h4 {
  font-size: 1.15rem;
}

p {
  color: var(--slate);
  font-size: 1.05rem;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== Header ========== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.986);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--ink);
}

.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--teal);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
}

.logo span {
  color: var(--teal);
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.mobile-nav {
  position: absolute;
  top: calc(100%);
  left: 0;
  right: 0;

  display: none;
  flex-direction: column;
  gap: 0;

  background: #ffffff;
  padding: 10px 20px;

  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);

  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;

  z-index: 1000;
}

.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--slate);
  transition: color 0.2s;
}

.nav a:hover,
.nav a.active {
  color: var(--ink);
}

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

.rbtn {
  --bg: var(--ink);
  --fg: #fff;
  --bg2: var(--amber);
  --fg2: #141B29;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  border-radius: 60px;
  background: var(--bg);
  border: 1px solid var(--bg);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  font: 600 15px var(--font-body);
  transition: transform .2s, border-color .4s
}

.rbtn:before {
  content: "";
  position: absolute;
  inset: -1px;
  background: var(--bg2);
  transform: translateY(102%);
  border-radius: 50% 50% 0 0/40% 40% 0 0;
  transition: transform .55s cubic-bezier(.7, 0, .2, 1), border-radius .55s;
  z-index: -1
}

.rbtn:hover:before {
  transform: none;
  border-radius: 0
}

.rbtn:hover {
  border-color: var(--bg2)
}

.rbtn.amber {
  --bg: var(--amber);
  --fg: #141B29;
  --bg2: var(--ink);
  --fg2: #fff
}

.rbtn.teal {
  --bg: var(--teal);
  --fg: #fff;
  --bg2: var(--amber);
  --fg2: #141B29;
}

.rbtn.ghost {
  --bg: transparent;
  --fg: #fff;
  --bg2: var(--amber);
  --fg2: #141B29;
  border-color: rgba(255, 255, 255, .35)
}

.rbtn.ghost-d {
  --bg: transparent;
  --fg: var(--ink);
  --bg2: var(--ink);
  --fg2: #fff;
  border-color: var(--ink)
}

.rbtn.sm {
  padding: 10px 16px;
  font-size: 14px
}

.rbtn .t {
  position: relative;
  display: block;
  height: 1.5em;
  overflow: hidden;
  white-space: nowrap
}

.rbtn .t i,
.rbtn .t b {
  display: block;
  font-style: normal;
  font-weight: 600;
  line-height: 1.5;
  transition: transform .5s cubic-bezier(.7, 0, .2, 1)
}

.rbtn .t i {
  color: var(--fg)
}

.rbtn .t b {
  position: absolute;
  left: 0;
  top: 100%;
  color: var(--fg2)
}

.rbtn:hover .t i,
.rbtn:hover .t b {
  transform: translateY(-100%)
}

.rbtn .a {
  position: relative;
  width: 16px;
  height: 16px;
  overflow: hidden;
  flex: none
}

.rbtn .a svg {
  position: absolute;
  inset: 0;
  width: 16px;
  height: 16px;
  transition: transform .5s cubic-bezier(.7, 0, .2, 1)
}

.rbtn .a svg:first-child {
  color: var(--fg)
}

.rbtn .a svg+svg {
  color: var(--fg2);
  transform: translateX(-22px)
}

.rbtn:hover .a svg:first-child {
  transform: translateX(22px)
}

.rbtn:hover .a svg+svg {
  transform: none
}

.rbtn:active {
  transform: scale(.97)
}

/* ========== Hero ========== */
.hero {
  padding: 80px 0 70px;
  position: relative;
  overflow: hidden;
}


.hero-people {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal-tint);
  color: var(--teal-deep);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
  letter-spacing: 0.02em;
}

.hero h1 {
  margin-bottom: 18px;
  max-width: 540px;
}

.hero h1 .accent {
  color: var(--teal);
}

.hero-lead {
  font-size: 1.12rem;
  color: var(--slate);
  max-width: 460px;
  margin-bottom: 28px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-avatars {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar-stack {
  display: flex;
}

.avatar-stack .avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid var(--porcelain);
  margin-left: -12px;
}

.avatar-stack .avatar:first-child {
  margin-left: 0;
}

.avatar-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.avatar-text strong {
  font-size: 0.9rem;
  color: var(--ink);
  font-weight: 600;
}

.avatar-text span {
  font-size: 0.82rem;
  color: var(--slate-2);
}

/* Collage layout */
.hero-collage {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 14px;
  height: 420px;
  animation: heroFloat 4s ease-in-out infinite;
}

@keyframes heroFloat {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }

  100% {
    transform: translateY(0);
  }
}

.collage-main {
  position: relative;
  border-radius: var(--radius-lg);
  border: 4px solid var(--teal-tint);
  overflow: hidden;
  box-shadow: var(--shadow-pop);
}

.collage-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.collage-caption {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(20, 27, 41, 0.1);
}

.caption-dot {
  width: 8px;
  height: 8px;
  background: var(--teal);
  border-radius: 50%;
  flex-shrink: 0;
}

.collage-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  bottom: 73px;
}

.collage-img {
  flex: 1;
  border-radius: var(--radius);
  border: 4px solid var(--teal-tint);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.collage-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.stat-box {
  background: var(--porcelain);
  border-radius: var(--radius);
  padding: 18px;
}

.stat-box .label {
  font-size: 0.8rem;
  color: var(--slate-2);
  margin-bottom: 6px;
}

.stat-box .value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--ink);
}

.stat-box .value.amber {
  color: var(--amber-deep);
}

.stat-box .value.teal {
  color: var(--teal);
}

/* ========== Stats Bar ========== */
.stats-bar {
  background: var(--ink);
  color: white;
  padding: 36px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item .number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.stat-item .label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ========== Sections ========== */
.section {
  padding: 90px 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-header .eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.section-header p {
  margin-top: 14px;
}

/* ========== Feature Cards ========== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-pop);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--teal-tint);
  color: var(--teal);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}

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

.feature-card p {
  font-size: 0.98rem;
}

.section.how-it-works .section-header .eyebrow {
  color: var(--teal-tint);
}

.section.how-it-works .section-header h2 {
  color: var(--card);
}

.section.how-it-works .step h3 {
  color: var(--card);
}

.section.how-it-works p {
  color: #A9A9A9;
}

/* ========== Two Column Sections ========== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.split.reverse {
  direction: rtl;
}

.split.reverse>* {
  direction: ltr;
}

.split-content .eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.split-content h2 {
  margin-bottom: 16px;
}

.split-content p {
  margin-bottom: 24px;
}

.check-list {
  margin-bottom: 28px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--slate);
  font-size: 1rem;
}

.check-list li::before {
  content: "✓";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: var(--teal-tint);
  color: var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 2px;
}

.split-visual {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
}

/* ========== How it works ========== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  counter-reset: step;
}

.step {
  position: relative;
  text-align: center;
}

.step-number {
  width: 52px;
  height: 52px;
  background: var(--teal);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  margin: 0 auto 18px;
}

.step h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.step p {
  font-size: 0.95rem;
}

/* ========== Testimonials ========== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

.testimonial .stars {
  color: var(--amber);
  font-size: 1.1rem;
  margin-bottom: 14px;
  letter-spacing: 2px;
}

.testimonial p {
  font-size: 1rem;
  margin-bottom: 20px;
  color: var(--ink);
  font-style: italic;
}

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

.author-avatar {
  width: 44px;
  height: 44px;
  background: var(--teal-tint);
  color: var(--teal-deep);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.95rem;
}

.author-info strong {
  display: block;
  font-size: 0.95rem;
  color: var(--ink);
}

.author-info span {
  font-size: 0.85rem;
  color: var(--slate-2);
}

/* ========== Contact ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.contact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: var(--teal-tint);
  color: var(--teal);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: var(--ink);
}

.contact-item a {
  color: var(--teal);
  font-weight: 500;
  font-size: 1rem;
}

.contact-item a:hover {
  text-decoration: underline;
}

.contact-item p {
  font-size: 0.92rem;
  margin-top: 2px;
  color: var(--slate);
}

.contact-note {
  font-size: 0.85rem !important;
  color: var(--slate-2) !important;
  margin-top: 4px !important;
}

.contact-form-wrap {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--porcelain);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-tint);
  background: white;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* ========== Footer ========== */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
  padding: 64px 0 32px;
  margin-top: 40px;
}

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

.footer-brand .logo {
  color: white;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 280px;
}

.footer h4 {
  color: white;
  font-size: 0.95rem;
  margin-bottom: 18px;
  font-weight: 600;
}

.footer ul li {
  margin-bottom: 10px;
}

.footer ul a {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s;
}

.footer ul a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.6);
  margin-left: 20px;
}

.footer-bottom a:hover {
  color: white;
}

/* ========== Legal Pages ========== */
.legal-hero {
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--line);
  background: var(--card);
}

.legal-hero h1 {
  margin-bottom: 8px;
}

.legal-hero .meta {
  color: var(--slate-2);
  font-size: 0.95rem;
}

.legal-content {
  padding: 50px 0 80px;
  max-width: 760px;
}

.legal-content h2 {
  font-size: 1.4rem;
  margin: 36px 0 14px;
}

.legal-content h3 {
  font-size: 1.15rem;
  margin: 28px 0 10px;
}

.legal-content p,
.legal-content li {
  color: var(--slate);
  margin-bottom: 12px;
  font-size: 1rem;
}

.legal-content ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.legal-content ul li {
  list-style: disc;
  margin-bottom: 8px;
}

.legal-content a {
  color: var(--teal);
  text-decoration: underline;
}

/* ========== Mobile Menu ========== */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  border-radius: 2px;
}

/* ========== Responsive ========== */
@media (max-width: 960px) {

  .hero-grid,
  .split,
  .features-grid,
  .testimonials-grid,
  .steps,
  .stats-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .split.reverse {
    direction: ltr;
  }

  .nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    padding: 50px 0 40px;
  }

  .hero-visual {
    order: -1;
  }

  .section {
    padding: 60px 0;
  }

  .cta-banner {
    padding: 40px 28px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .header-inner {
    position: relative;
  }

  .header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .action-btn{
    display: none;
  }

  .menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #0a0a0b;
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  /* Hamburger -> X */
  .menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .mobile-nav.active {
    display: flex;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .mobile-nav a {
    width: 100%;
    padding: 14px 5px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  }

  .mobile-nav a:last-child {
    border-bottom: 0;
  }

  .hero{
    padding: 18px 0;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .hero-people{
    grid-template-columns: 1fr;
  }

  .hero-collage{
    display: none;
  }

  .stat-row {
    grid-template-columns: 1fr;
  }
}