/* ============================================================
   tenx — Landing Page
   Aesthetic: Scale AI × Linear — pure black, white type, no color
   Font: Plus Jakarta Sans
   ============================================================ */

/* ── Tokens ── */
:root {
  --black:       #080a0f;
  --white:       #ffffff;
  --text:        #f0f2f5;
  --text-muted:  #8c9199;
  --text-dim:    #555a63;
  --border:      #1e2128;
  --border-hover:#2e3240;
  --surface:     #0c0e14;
  --surface-2:   #111318;
  --font:        'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --max-w:       1120px;
  --radius:      9px;
  --radius-sm:   6px;
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
strong { font-weight: 700; }

/* ── Layout ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

/* ── Typography utilities ── */
.eyebrow {
  display: block;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.eyebrow.center { text-align: center; }
.section-heading {
  font-size: clamp(26px, 2.8vw, 40px);
  font-weight: 640;
  letter-spacing: -0.022em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 16px;
}
.section-heading.center { text-align: center; text-wrap: balance; }
h2 {
  font-size: clamp(24px, 2.6vw, 36px);
  font-weight: 640;
  letter-spacing: -0.022em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 16px;
}
h2.center { text-align: center; text-wrap: balance; }
h3 {
  font-size: 17px;
  font-weight: 590;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 10px;
}

/* ── Scroll reveal ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   NAVIGATION  (navbar.md → scroll-aware, transparent → glass)
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  transition: background 0.3s, border-color 0.3s;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 22px 28px;
  transition: padding 0.3s;
}
.nav--scrolled .nav__inner {
  padding-top: 14px;
  padding-bottom: 14px;
}
.nav--scrolled {
  background: rgba(8, 10, 15, 0.88);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

.nav__brand {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
}

.nav__links {
  display: flex;
  gap: 32px;
}
.nav__links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.18s;
}
.nav__links a:hover { color: var(--white); }

.nav__cta {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 8px 20px;
  transition: background 0.18s, border-color 0.18s;
}
.nav__cta:hover {
  background: var(--surface-2);
  border-color: var(--border-hover);
}

/* Hamburger (mobile) */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  padding: 8px;
}
.nav__hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
  transform-origin: center;
}
.nav__hamburger.is-open span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav__hamburger.is-open span:last-child  { transform: translateY(-3.25px) rotate(-45deg); }

/* Mobile menu */
.nav__mobile {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(8, 10, 15, 0.97);
  backdrop-filter: blur(12px);
  z-index: 100;
  flex-direction: column;
  justify-content: center;
  padding: 80px 28px 40px;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}
.nav__mobile.is-open {
  opacity: 1;
  transform: none;
  pointer-events: all;
}
.nav__mobile ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nav__mobile a {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 12px 0;
  display: block;
  transition: color 0.18s;
}
.nav__mobile a:hover { color: var(--white); }
.nav__mobile-cta {
  display: inline-block;
  margin-top: 24px;
  color: var(--text) !important;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 14px 28px !important;
  font-size: 16px !important;
  width: fit-content;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  border-radius: 7px;
  border: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease-out), opacity 0.18s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn--primary {
  background: #4f5bc7;
  color: #ffffff;
}
.btn--primary:hover { background: #5f6cd4; transform: translateY(-1px); }

.btn--ghost {
  background: rgba(255,255,255,0.025);
  color: var(--text-muted);
  border: 1px solid #2a2d35;
}
.btn--ghost:hover { color: var(--text); border-color: var(--border-hover); background: var(--surface-2); }

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--outline:hover { border-color: var(--border-hover); background: var(--surface); }

.btn--lg { padding: 16px 36px; font-size: 16px; }

/* Book-a-call button phone animation (from cta.md) */
.book-btn-inner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.book-btn-phone {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  overflow: hidden;
}
.book-btn-phone svg {
  position: absolute;
  left: 0; top: 0;
  width: 18px; height: 18px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}
.phone-a { transform: translateY(0);    opacity: 1; }
.phone-b { transform: translateY(18px); opacity: 0; }

.btn--primary.is-hovered .phone-a { transform: translateY(-18px); opacity: 0; }
.btn--primary.is-hovered .phone-b { transform: translateY(0);    opacity: 1; }

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

/* Ethereal glow (background.md SVG turbulence technique) */
.hero__glow {
  position: absolute;
  inset: -100px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  overflow: hidden;
}
.hero__glow-inner {
  position: absolute;
  inset: -100px;
  /* filter applied by JS after SVG is ready */
}
.hero__glow-blob {
  position: absolute;
  inset: 0;
  background: rgba(100, 80, 180, 0.4);
  mask-image: url('https://framerusercontent.com/images/ceBGguIpUU8luwByxuQz79t7To.png');
  -webkit-mask-image: url('https://framerusercontent.com/images/ceBGguIpUU8luwByxuQz79t7To.png');
  mask-size: cover;
  -webkit-mask-size: cover;
  mask-repeat: no-repeat;
  mask-position: center right;
  -webkit-mask-position: center right;
}

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

.hero__content h1 {
  font-size: clamp(38px, 4.8vw, 62px);
  font-weight: 620;
  letter-spacing: -0.028em;
  line-height: 1.06;
  color: var(--text);
  margin-bottom: 24px;
}

.hero__lead {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 460px;
  margin-bottom: 40px;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Hero right: globe + floating pills */
.hero__visual {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}
.hero__img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  mix-blend-mode: lighten;
  opacity: 0.95;
}

/* Floating metric pills */
.pill {
  position: absolute;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 130px;
}
.pill--a {
  bottom: 24px;
  left: -24px;
  animation: float 4.5s ease-in-out infinite;
}
.pill--b {
  top: 24px;
  right: -24px;
  animation: float 4.5s ease-in-out infinite 2.2s;
}
.pill__num {
  font-size: 22px;
  font-weight: 620;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1;
}
.pill__label {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 500;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-9px); }
}

/* Globe SVG */
.globe-svg {
  width: 100%;
  height: 100%;
  min-height: 400px;
  cursor: grab;
}
.globe-svg:active {
  cursor: grabbing;
}
.land {
  transition: fill 0.3s;
}

/* ============================================================
   LOGO STRIP (hero-section-4.md InfiniteSlider + logos3.md)
   ============================================================ */
.logos-strip {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.logos-strip__label {
  text-align: center;
  margin-bottom: 20px;
}
.logos-strip__label span {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.marquee {
  position: relative;
  overflow: hidden;
}
.marquee::before,
.marquee::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 100px;
  z-index: 1;
  pointer-events: none;
}
.marquee::before { left: 0;  background: linear-gradient(to right, var(--black), transparent); }
.marquee::after  { right: 0; background: linear-gradient(to left,  var(--black), transparent); }

.marquee__track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: scroll-left 36s linear infinite;
  padding: 4px 28px;
  align-items: center;
}
.marquee__track span {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dim);
  white-space: nowrap;
  letter-spacing: -0.01em;
  opacity: 0.7;
}

@keyframes scroll-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   SECTIONS — shared spacing
   ============================================================ */
.section { padding: 120px 0; }

/* ============================================================
   PROBLEM SECTION
   ============================================================ */
.problem { border-top: 1px solid var(--border); }

.problem__quote {
  font-size: clamp(24px, 3.2vw, 44px);
  font-weight: 620;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--text);
  text-align: center;
  text-wrap: balance;
  max-width: 820px;
  margin: 0 auto 64px;
  font-style: normal;
}

.problem__body {
  color: var(--text-muted);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.6;
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat {
  background: var(--black);
  padding: 40px 36px;
  text-align: center;
}
.stat__num {
  display: block;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 560;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how { border-top: 1px solid var(--border); }
.how .section-heading,
.how h2 { margin-bottom: 56px; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.step {
  background: var(--black);
  padding: 40px 32px;
}
.step__num {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.step p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================================================
   FEATURE SECTIONS (features.md layout pattern)
   ============================================================ */
.feature { border-top: 1px solid var(--border); }
.feature--alt { background: transparent; }

.feature__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.feature__layout--rev .feature__text   { order: 2; }
.feature__layout--rev .feature__visual { order: 1; }

.feature__text p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
}

.check-list {
  margin-bottom: 36px;
}
.check-list li {
  font-size: 14px;
  color: var(--text-muted);
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.check-list li::before {
  content: '—';
  color: var(--text-dim);
  flex-shrink: 0;
  font-weight: 400;
}

/* ── LinkedIn post mockup ── */
.post-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.6), 0 0 1px rgba(255,255,255,0.04);
}
.post-card__header {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}
.post-card__meta { flex: 1; min-width: 0; }
.post-card__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.post-card__follow { color: var(--text-dim); font-weight: 400; }
.post-card__role {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 2px;
}
.post-card__body {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 18px;
}
.post-card__body strong { color: var(--text); }
.post-card__footer {
  font-size: 12px;
  color: var(--text-dim);
  display: flex;
  gap: 16px;
  margin-bottom: 14px;
}

.tenx-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px 12px;
}

/* ── Avatar ── */
.avatar {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}
.avatar--lg { width: 48px; height: 48px; font-size: 15px; }

/* ── Creator card ── */
.creator-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 0 80px rgba(0,0,0,0.6), 0 0 1px rgba(255,255,255,0.04);
}
.creator-card__header {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 28px;
}
.creator-card__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.metric-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 10px;
  text-align: center;
}
.metric-tile__val {
  display: block;
  font-size: 20px;
  font-weight: 620;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1;
}
.metric-tile__lbl {
  font-size: 11px;
  color: var(--text-dim);
}
.creator-card__status {
  font-size: 12px;
  color: var(--text-dim);
}
.creator-card__status span { color: var(--text-muted); }

/* ============================================================
   WHY TENX — CARD GRID (features-8.md layout pattern)
   ============================================================ */
.cards-section { border-top: 1px solid var(--border); }
.cards-section .section-heading,
.cards-section h2 { margin-bottom: 56px; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.card {
  background: var(--black);
  padding: 36px 32px;
}
.card__icon {
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
  color: var(--text-muted);
}
.card__icon svg { width: 100%; height: 100%; }
.card h3 { font-size: 16px; }
.card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================================================
   CTA SECTION (cta-banner.md + cta.md)
   ============================================================ */
.cta-section { border-top: 1px solid var(--border); }

.cta-box {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 80px 48px;
  text-align: center;
  overflow: hidden;
  background: var(--surface);
}

/* Subtle radial glow inside the box */
.cta-box__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 120%, rgba(120,100,220,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.cta-box h2,
.cta-box .section-heading { font-size: clamp(26px, 3vw, 42px); margin-bottom: 14px; position: relative; z-index: 1; text-wrap: balance; }
.cta-box__sub {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 48px;
  position: relative;
  z-index: 1;
}
.cta-box__actions {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__brand {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
}
.footer__copy {
  font-size: 12px;
  color: var(--text-dim);
}
.footer__links {
  display: flex;
  gap: 24px;
}
.footer__links a {
  font-size: 13px;
  color: var(--text-dim);
  transition: color 0.18s;
}
.footer__links a:hover { color: var(--white); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ── Tablet (< 1024px) ── */
@media (max-width: 1023px) {
  .hero__layout    { gap: 40px; }
  .feature__layout { gap: 48px; }
  .cards-grid      { grid-template-columns: 1fr 1fr; }
}

/* ── Mobile landscape / small tablet (< 768px) ── */
@media (max-width: 767px) {
  .hero {
    padding-top: 80px;
    padding-bottom: 60px;
    min-height: unset;
  }
  .hero__layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero__visual { display: none; }

  .problem__quote { font-size: clamp(20px, 5vw, 32px); }
  .stats-grid     { grid-template-columns: 1fr; }
  .stat           { padding: 28px 24px; }
  .stat__num      { font-size: 40px; }

  .steps { grid-template-columns: 1fr; }
  .step  { padding: 28px 24px; }

  .feature__layout,
  .feature__layout--rev .feature__text,
  .feature__layout--rev .feature__visual {
    grid-template-columns: 1fr;
    order: unset;
  }
  .feature__layout { gap: 40px; }

  .cards-grid { grid-template-columns: 1fr; }
  .card { padding: 28px 24px; }

  .cta-box { padding: 48px 24px; }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── Small mobile (< 480px) ── */
@media (max-width: 479px) {
  .container { padding: 0 18px; }
  .hero__content h1 { font-size: 34px; }
  .hero__lead  { font-size: 16px; }
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .btn--primary,
  .btn--ghost { width: 100%; justify-content: center; }
  .section { padding: 80px 0; }
}

/* ── Desktop nav visible, hamburger hidden ── */
@media (min-width: 768px) {
  .nav__hamburger { display: none; }
  .nav__mobile    { display: none !important; }
}

@media (max-width: 767px) {
  .nav__links,
  .nav__cta   { display: none; }
  .nav__hamburger { display: flex; }
  .nav__mobile    { display: flex; }
}
