/* ==========================================================================
   SimpleSell Agency
   ========================================================================== */

:root {
  --bg: #050606;
  --ink: #f3f3f0;
  --muted: #8b8c89;
  --dim: rgba(243, 243, 240, 0.32);
  --line: rgba(255, 255, 255, 0.14);
  --orange: #ef4e23;
  --orange-hi: #ff6a3d;
  --paper: #f6f6f3;
  --paper-ink: #0b0b0b;
  --paper-muted: #6f706c;

  --f-sans: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-wide: "Archivo", "Inter Tight", ui-sans-serif, system-ui, sans-serif;

  --gutter: clamp(16px, 3.4vw, 56px);
  --radius: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
body.is-loading { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img, video, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul { margin: 0; }
ul { list-style: none; padding: 0; }
::selection { background: var(--orange); color: #fff; }

.wrap {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Type scale ---------- */
.display {
  --tc: var(--ink);
  font-weight: 500;
  font-size: clamp(2.5rem, 6.2vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.055em;
  text-transform: uppercase;
  color: var(--tc);
}
.display--md { font-size: clamp(2.2rem, 4.8vw, 5.4rem); }
.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.7rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
}
.body {
  font-size: clamp(0.95rem, 1.08vw, 1.15rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.micro {
  font-size: clamp(0.7rem, 0.74vw, 0.82rem);
  line-height: 1.38;
  color: var(--muted);
}
.micro--right { text-align: right; }

/* SplitText helpers */
.tline-mask { padding-block: 0.08em; margin-block: -0.08em; }
.char { position: relative; will-change: opacity; }
.char.is-head { color: transparent !important; }
.char.is-head::after {
  content: attr(data-g);
  position: absolute;
  left: 0;
  bottom: 0;
  color: var(--tc);
}
[data-fill] .word { transition: none; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  border-radius: 999px;
  padding: 0.75em 1.5em;
  font-size: clamp(0.8rem, 0.85vw, 0.95rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
  will-change: transform;
}
.btn--orange {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 10px 40px -12px rgba(239, 78, 35, 0.65);
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.btn--orange:hover { background: var(--orange-hi); box-shadow: 0 14px 50px -10px rgba(255, 106, 61, 0.8); }
/* Text roll on hover: the label box stays put and clips; two painted copies slide up inside it.
   The real text keeps its space (and stays readable to screen readers) but isn't painted. */
.btn__text,
.nav__links a span {
  position: relative;
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  line-height: 1.2;
  -webkit-text-fill-color: transparent;
}
.btn__text::before,
.btn__text::after,
.nav__links a span::before,
.nav__links a span::after {
  content: attr(data-text);
  content: attr(data-text) / "";
  position: absolute;
  left: 0;
  width: 100%;
  -webkit-text-fill-color: initial;
  transition: transform 0.55s var(--ease);
}
.btn__text::before,
.nav__links a span::before { top: 0; }
.btn__text::after,
.nav__links a span::after { top: 100%; }
.btn:hover .btn__text::before,
.btn:hover .btn__text::after,
.nav__links a:hover span::before,
.nav__links a:hover span::after { transform: translateY(-100%); }

/* ---------- Preloader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: radial-gradient(120% 90% at 50% 60%, rgba(5, 6, 6, 0.15), rgba(5, 6, 6, 0.75));
  pointer-events: none;
}
html:not(.js) .loader { display: none; }
.loader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(10px, 1.6vw, 22px);
}
.loader__mark {
  width: clamp(44px, 5vw, 76px);
  height: clamp(44px, 5vw, 76px);
  fill: #ecece9;
}
.loader__word { overflow: hidden; line-height: 0.82; padding-top: 0.06em; }
.loader__word span {
  display: block;
  font-family: var(--f-wide);
  font-stretch: 125%;
  font-weight: 900;
  font-size: clamp(2.6rem, 9vw, 9rem);
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #fff 10%, #b9bab6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.loader__count {
  position: fixed;
  right: var(--gutter);
  bottom: calc(var(--gutter) * 0.8);
  font-size: clamp(0.75rem, 0.9vw, 0.95rem);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* ---------- Stage (fixed backdrop) ---------- */
.stage {
  --sblur: 0px;
  --sscale: 1;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--bg);
  pointer-events: none;
}
.stage.is-intro {
  filter: blur(var(--sblur));
  transform: scale(var(--sscale));
}
.stage__layer {
  --blur: 0px;
  --bright: 1;
  position: absolute;
  inset: 0;
  filter: blur(var(--blur)) brightness(var(--bright));
  transform-origin: 70% 60%;
  will-change: transform, filter, opacity;
}
.stage__layer--arch { opacity: 0; transform-origin: 50% 100%; }
.stage__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
}
.stage__layer--arch .stage__media { object-position: 60% 100%; }
.stage__vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(130% 100% at 70% 45%, transparent 45%, rgba(5, 6, 6, 0.65) 100%),
    linear-gradient(180deg, rgba(5, 6, 6, 0.35) 0%, transparent 22%, transparent 78%, rgba(5, 6, 6, 0.55) 100%);
}
.stage__grain {
  position: absolute;
  inset: -50%;
  opacity: 0.075;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-6%, 4%); }
  40% { transform: translate(5%, -7%); }
  60% { transform: translate(-3%, 8%); }
  80% { transform: translate(7%, 2%); }
  100% { transform: translate(0, 0); }
}

main, .footer { position: relative; z-index: 1; }

/* ---------- Cursor ---------- */
.cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 90;
  width: 0;
  height: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.cursor.is-visible { opacity: 1; }
.cursor::before {
  content: "";
  position: absolute;
  left: -14px;
  top: -14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(2px);
  transition: transform 0.5s var(--ease), background-color 0.4s var(--ease);
}
.cursor.is-hover::before { transform: scale(1.7); background: rgba(255, 230, 220, 0.5); }
.cursor.is-btn::before { transform: scale(0); }
.cursor.is-label::before { transform: scale(3.2); background: #fff; }
.cursor__label {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%) scale(0.6);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--paper-ink);
  opacity: 0;
  white-space: nowrap;
  transition: opacity 0.3s, transform 0.5s var(--ease);
}
.cursor.is-label .cursor__label { opacity: 1; transform: translate(-50%, -50%) scale(1); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: clamp(16px, 2.2vw, 30px) var(--gutter);
  mix-blend-mode: difference;
  color: #fff;
  pointer-events: none;
  transition: transform 0.8s var(--ease);
}
.nav.is-hidden { transform: translateY(-110%); }
.nav > * { pointer-events: auto; }
.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-wide);
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(0.82rem, 1vw, 1.05rem);
  letter-spacing: -0.01em;
}
.nav__mark { width: 1.35em; height: 1.35em; fill: currentColor; }
.nav__links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  font-size: clamp(0.62rem, 0.66vw, 0.74rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.2;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 128vh;
  padding-top: clamp(96px, 15vh, 170px);
  display: flex;
  flex-direction: column;
}
.hero__title { max-width: none; }
.hero__cta { margin-top: clamp(20px, 3vh, 36px); }
.hero__bottom {
  margin-top: auto;
  padding-bottom: 18vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  align-items: end;
  gap: 4vw;
}
.hero__lead { max-width: 34ch; justify-self: end; }
.hero__note { padding-bottom: 0.4em; }

/* ---------- Growth (SEO) ---------- */
.growth { padding-top: 12vh; padding-bottom: 14vh; }
.growth__head {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: end;
  gap: 4vw;
}
.growth__aside { max-width: 44ch; justify-self: end; }
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 1vw, 16px);
  align-items: start;
  margin-top: clamp(48px, 9vh, 110px);
}
.card {
  --py: 0;
  translate: 0 calc(var(--py) * 1px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  min-height: clamp(170px, 15vw, 250px);
  padding: clamp(14px, 1.3vw, 22px);
  background: #fff;
  color: var(--orange);
  border-radius: var(--radius);
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.card:hover {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 30px 60px -30px rgba(239, 78, 35, 0.8);
}
.card__top { display: flex; justify-content: space-between; gap: 12px; }
.card__title {
  font-weight: 500;
  font-size: clamp(1.02rem, 1.55vw, 1.7rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}
.card__icon {
  flex: none;
  width: clamp(20px, 1.8vw, 28px);
  height: clamp(20px, 1.8vw, 28px);
  transition: transform 0.6s var(--ease);
}
.card:hover .card__icon { transform: rotate(-12deg) scale(1.1); }
.card__icon-cut { transition: stroke 0.5s var(--ease); }
.card:hover .card__icon-cut { stroke: var(--orange); }
.card__text {
  max-width: 26ch;
  font-size: clamp(0.72rem, 0.78vw, 0.86rem);
  line-height: 1.3;
  color: #5c5d5a;
  transition: color 0.5s var(--ease);
}
.card:hover .card__text { color: rgba(255, 255, 255, 0.9); }
.growth__outro {
  margin-top: clamp(56px, 12vh, 140px);
  max-width: 22ch;
  font-size: clamp(1.15rem, 1.9vw, 2.05rem);
}

/* ---------- Sales (PPC) ---------- */
.sales { padding: 22vh 0 26vh; }
.sales__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr);
  gap: 4vw;
}
.sales__side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
}
.sales__badge .micro { max-width: 22ch; margin-top: 10px; }
.sales__ring { width: 44px; height: 44px; border-radius: 50%; }
.sales__note { max-width: 24ch; }
.sales__title { font-size: clamp(2.2rem, 4.6vw, 5.2rem); }
.list { margin-top: clamp(26px, 4vh, 48px); }
.list__row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: clamp(12px, 1.6vh, 20px) 0;
}
.list__row::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--line);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.4s var(--ease);
}
.list__row:last-child::after { display: none; }
.list__row.is-in::after { transform: scaleX(1); }
.list__title {
  font-weight: 500;
  font-size: clamp(1.1rem, 1.7vw, 1.9rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  color: var(--orange);
  transition: transform 0.6s var(--ease), color 0.4s;
}
.list__row:hover .list__title { transform: translateX(10px); color: var(--orange-hi); }
.list__text { font-size: clamp(0.72rem, 0.76vw, 0.84rem); color: var(--muted); max-width: 30ch; }

/* ---------- Safety (white sheet) ---------- */
.safety { padding: 16vh 0 44vh; }
.sheet {
  position: relative;
  background: var(--paper);
  color: var(--paper-ink);
  border-radius: 14px;
  padding: clamp(22px, 3vw, 48px);
  transform-origin: 50% 0%;
  will-change: transform;
}
.sheet__head { display: flex; flex-direction: column; align-items: flex-end; gap: clamp(14px, 2vh, 24px); }
.sheet__title {
  --tc: var(--paper-ink);
  text-align: right;
  font-size: clamp(2.1rem, 4.6vw, 5.2rem);
  max-width: 15ch;
}
.sheet__aside { max-width: 46ch; color: var(--paper-muted); }
.sheet__foot { margin-top: clamp(24px, 5vh, 56px); }
.sheet__mark {
  width: clamp(48px, 4.6vw, 72px);
  height: clamp(48px, 4.6vw, 72px);
  fill: var(--orange);
  margin-bottom: clamp(16px, 2.4vh, 26px);
}
.sheet__lead { max-width: 32ch; color: #b9b9b5; }
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(32px, 6vh, 72px);
  padding-top: clamp(18px, 2.6vh, 28px);
  border-top: 1px solid rgba(11, 11, 11, 0.12);
}
.stats strong {
  display: block;
  font-weight: 500;
  font-size: clamp(1.8rem, 3.4vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.stats span { display: block; margin-top: 6px; font-size: clamp(0.7rem, 0.76vw, 0.84rem); color: var(--paper-muted); }

/* ---------- CTA ---------- */
.cta {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 10vh 0;
}
.cta__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4vw;
  align-items: end;
}
.cta__title { max-width: 11ch; }
.cta__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: clamp(14px, 2.2vh, 24px);
  text-align: right;
}
.cta__lead { max-width: 32ch; }
.cta__talent {
  font-size: clamp(0.85rem, 0.95vw, 1rem);
  color: var(--ink);
  border-bottom: 1px solid rgba(243, 243, 240, 0.35);
  padding-bottom: 2px;
  transition: color 0.3s, border-color 0.3s;
}
.cta__talent span { display: inline-block; transition: transform 0.5s var(--ease); }
.cta__talent:hover { color: var(--orange-hi); border-color: var(--orange-hi); }
.cta__talent:hover span { transform: translateX(5px); }
.cta .lead,
.cta .micro,
.cta__title { text-shadow: 0 2px 28px rgba(5, 6, 6, 0.75); }

/* ---------- Footer ---------- */
.footer { padding-top: 22vh; overflow: hidden; }
.footer__contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.footer__mark { width: 26px; height: 26px; fill: #e7e7e4; margin-bottom: 4px; }
.footer__contact .micro { text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.66rem; }
.footer__mail {
  position: relative;
  font-size: clamp(1.4rem, 2.7vw, 2.8rem);
  letter-spacing: -0.03em;
  font-weight: 400;
}
.footer__mail::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.7s var(--ease);
}
.footer__mail:hover::after { transform: scaleX(1); transform-origin: left; }
.footer__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 24px;
  margin-top: 18vh;
  font-size: clamp(0.62rem, 0.66vw, 0.74rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer__links button { text-transform: inherit; letter-spacing: inherit; font-weight: inherit; opacity: 0.8; transition: opacity 0.3s, color 0.3s; }
.footer__links button:hover { opacity: 1; color: var(--orange-hi); }
.footer__links a,
.footer__legal a { opacity: 0.8; transition: opacity 0.3s, color 0.3s; }
.footer__links a:hover,
.footer__legal a:hover { opacity: 1; color: var(--orange-hi); }
.footer__legal {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--muted);
}
.footer__giant {
  text-align: center;
  padding: 1.4vh var(--gutter) 0;
  line-height: 0.8;
}
.footer__word {
  display: inline-flex;
  white-space: nowrap;
  font-family: var(--f-wide);
  font-stretch: 125%;
  font-weight: 900;
  font-size: 12vw;
  letter-spacing: -0.03em;
  line-height: 0.8;
  overflow: hidden;
  padding-top: 0.04em;
  margin-bottom: -0.035em;
}
.footer__word span {
  display: inline-block;
  background: linear-gradient(180deg, #ffffff 0%, #e2e2df 38%, #8a8b88 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  will-change: transform;
}

/* Discord has no public profile URL for usernames, so its link copies the username (see social.js). */
[data-copy] { position: relative; }
[data-copy]::after {
  content: "Copied: " attr(data-copy);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translate(-50%, 6px);
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--ink);
  color: #0b0b0b;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.35s var(--ease);
}
[data-copy].is-copied::after { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Page transition ---------- */
.curtain {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--orange);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { min-height: 112vh; }
  .hero__bottom,
  .growth__head,
  .sales__grid,
  .cta__grid { grid-template-columns: 1fr; }
  .hero__bottom { gap: 22px; padding-bottom: 12vh; }
  .hero__lead { justify-self: start; }
  .hero__note { order: 2; }
  .growth__aside { justify-self: start; text-align: left; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sales__side { order: 2; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; }
  .cta__right { align-items: flex-start; text-align: left; }
  .cta__right .micro--right { text-align: left; }
  .footer__row { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer__links { justify-content: center; }
  .footer__legal { align-items: center; }
  .stage__media { object-position: 72% 50%; }
}
@media (max-width: 520px) {
  .display { font-size: clamp(2.2rem, 10.5vw, 3.2rem); }
  .display--md { font-size: clamp(2rem, 9.4vw, 2.9rem); }
  .sales__title,
  .sheet__title { font-size: clamp(1.9rem, 9vw, 2.8rem); }
  .card { min-height: 158px; gap: 18px; }
  .list__row { grid-template-columns: 1fr; gap: 6px; }
  .sheet__title { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .stage__grain { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
