/* SaleStar marketing landing - self-contained */

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/outfit-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Syne";
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url("../fonts/syne-latin.woff2") format("woff2");
}

:root {
  --bg: #060606;
  --bg-elevated: #0e0e0e;
  --ink: #f4f4f1;
  --muted: #9a9a94;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.28);
  --accent: #c9a45c;
  --accent-soft: #e8d5a8;
  --accent-dim: rgba(201, 164, 92, 0.18);
  --font-display: "Syne", "Arial Narrow", sans-serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  max-width: 100%;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* Atmosphere */
.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.atmosphere__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  transform: perspective(600px) rotateX(58deg) translateY(-8%) scale(1.15);
  transform-origin: center top;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 68%);
  animation: grid-drift 28s linear infinite;
}

.atmosphere__wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(201, 164, 92, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 40% at 80% 60%, rgba(255, 255, 255, 0.03), transparent 50%),
    radial-gradient(ellipse 40% 35% at 15% 80%, rgba(201, 164, 92, 0.05), transparent 50%);
}

.atmosphere__shard {
  position: absolute;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent);
  will-change: transform;
}

.atmosphere__shard--a {
  width: min(140px, 22vw);
  height: min(220px, 32vh);
  top: 22%;
  left: 2%;
  clip-path: polygon(20% 0, 100% 8%, 82% 100%, 0 90%);
}

.atmosphere__shard--b {
  width: min(160px, 24vw);
  height: min(120px, 18vh);
  top: 58%;
  right: 2%;
  clip-path: polygon(0 20%, 100% 0, 90% 100%, 10% 85%);
}

@media (max-width: 700px) {
  .atmosphere__shard {
    display: none;
  }
}

@keyframes grid-drift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 72px, 72px 0; }
}

/* Layout */
.site {
  position: relative;
  z-index: 1;
  max-width: 100%;
  overflow-x: clip;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.15rem;
  transition: background 0.35s var(--ease-out), border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
  max-width: 100%;
}

.nav.is-scrolled {
  background: rgba(6, 6, 6, 0.82);
  border-bottom-color: var(--line);
  backdrop-filter: blur(12px);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.9rem;
  min-width: 0;
}

.nav__brand img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

.nav__links {
  display: none;
  gap: 1.5rem;
  align-items: center;
}

.nav__links a {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
  white-space: nowrap;
}

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

.nav__cta {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--accent);
  color: var(--accent-soft);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.25s, color 0.25s;
  flex-shrink: 0;
}

.nav__cta:hover {
  background: var(--accent);
  color: #111;
}

@media (min-width: 900px) {
  .nav {
    padding: 1rem 1.5rem;
  }

  .nav__links {
    display: flex;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  transition: transform 0.25s var(--ease-out), background 0.25s, border-color 0.25s, color 0.25s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #111;
  font-weight: 600;
}

.btn--primary:hover {
  background: var(--accent-soft);
  border-color: var(--accent-soft);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
}

/* Hero — stacked so text never sits on the logo */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5.5rem 1rem 4.5rem;
  overflow: hidden;
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: min(100%, 640px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

.hero__logo-wrap {
  position: relative;
  width: min(42vw, 220px);
  aspect-ratio: 1;
  flex-shrink: 0;
  opacity: 0;
  transform: scale(1.08);
  animation: logo-enter 1.2s var(--ease-out) 0.1s forwards;
}

@media (min-width: 700px) {
  .hero__logo-wrap {
    width: min(36vw, 260px);
  }
}

.hero__logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 28px rgba(201, 164, 92, 0.14));
  animation: logo-breathe 5.5s ease-in-out 1.4s infinite;
}

.hero__logo-ring {
  position: absolute;
  inset: -10%;
  border: 1px solid var(--line);
  opacity: 0;
  animation: ring-in 1.1s var(--ease-out) 0.45s forwards;
  pointer-events: none;
}

.hero__logo-ring::before,
.hero__logo-ring::after {
  content: "";
  position: absolute;
  background: var(--accent);
}

.hero__logo-ring::before {
  width: 22px;
  height: 1px;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.hero__logo-ring::after {
  width: 1px;
  height: 22px;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.hero__content {
  width: 100%;
  opacity: 0;
  transform: translateY(20px);
  animation: rise 0.95s var(--ease-out) 0.55s forwards;
}

.hero__brand {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 10vw, 4.6rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 0.95;
}

.hero__brand span {
  color: var(--accent);
}

.hero__headline {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 3.2vw, 1.45rem);
  letter-spacing: 0.01em;
  line-height: 1.3;
  max-width: 28ch;
  margin-left: auto;
  margin-right: auto;
}

.hero__lede {
  margin: 0 auto 1.5rem;
  max-width: 34rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.hero__scroll {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0;
  animation: rise 0.8s var(--ease-out) 1.15s forwards;
}

.hero__scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes logo-enter {
  to { opacity: 1; transform: scale(1); }
}

@keyframes logo-breathe {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 24px rgba(201, 164, 92, 0.1)); }
  50% { transform: scale(1.02); filter: drop-shadow(0 0 40px rgba(201, 164, 92, 0.2)); }
}

@keyframes ring-in {
  to { opacity: 1; }
}

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.35; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.15); }
}

/* Sections */
.section {
  position: relative;
  padding: clamp(4rem, 9vw, 7rem) 0;
}

.section--tight {
  padding-top: 1.5rem;
}

.section__eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.section__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 4.8vw, 3rem);
  letter-spacing: 0.02em;
  line-height: 1.08;
  max-width: 18ch;
}

.section__title--wide {
  max-width: 22ch;
}

.section__copy {
  margin: 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.section__header {
  margin-bottom: 2.75rem;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Intro split */
.intro-grid {
  display: grid;
  gap: 2.25rem;
}

@media (min-width: 900px) {
  .intro-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: end;
    gap: 3.5rem;
  }
}

.intro-stat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.intro-stat-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: baseline;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}

.intro-stat-list strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--accent-soft);
  letter-spacing: 0.04em;
}

.intro-stat-list span {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Capability rows */
.cap-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.cap {
  display: grid;
  gap: 0.85rem;
  padding: 1.85rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

@media (min-width: 800px) {
  .cap {
    grid-template-columns: 220px 1fr;
    gap: 2.25rem;
    padding: 2.25rem 0;
  }
}

.cap__index {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.cap__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
}

.cap__body {
  margin: 0;
  color: var(--muted);
  max-width: 42rem;
}

.cap__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 0.9rem;
  padding: 0;
  list-style: none;
}

.cap__tags li {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  border-left: 2px solid var(--accent);
  padding-left: 0.65rem;
}

/* Flow strip */
.flow {
  position: relative;
  background: linear-gradient(180deg, transparent, rgba(201, 164, 92, 0.04), transparent);
}

.flow__track {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
}

@media (min-width: 800px) {
  .flow__track {
    grid-template-columns: repeat(4, 1fr);
  }
}

.flow__step {
  padding: 1.6rem 1.25rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

@media (min-width: 800px) {
  .flow__step {
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }

  .flow__step:last-child {
    border-right: 0;
  }
}

.flow__step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s var(--ease-out);
}

.flow__step.is-visible::before {
  transform: scaleX(1);
}

.flow__num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.85rem;
  color: rgba(201, 164, 92, 0.35);
  margin-bottom: 0.65rem;
  line-height: 1;
}

.flow__step h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.02rem;
}

.flow__step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Audience */
.audience {
  display: grid;
  gap: 1.35rem;
}

@media (min-width: 700px) {
  .audience {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 1px solid var(--line);
  }
}

.audience__item {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

@media (min-width: 700px) {
  .audience__item {
    padding: 1.85rem 1.35rem;
    border-top: 0;
    border-right: 1px solid var(--line);
  }

  .audience__item:last-child {
    border-right: 0;
  }
}

.audience__item h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.audience__item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Closing */
.closing {
  text-align: center;
  padding-bottom: clamp(4.5rem, 11vw, 7.5rem);
}

.closing__panel {
  position: relative;
  padding: clamp(2.75rem, 7vw, 4.5rem) 1.35rem;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(160deg, rgba(201, 164, 92, 0.08), transparent 45%),
    var(--bg-elevated);
  overflow: hidden;
}

.closing__panel::before {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  border: 1px solid var(--line);
  top: -36px;
  right: -36px;
  transform: rotate(18deg);
}

.closing__panel::after {
  content: "";
  position: absolute;
  width: 96px;
  height: 96px;
  border: 1px solid var(--accent-dim);
  bottom: -24px;
  left: -16px;
}

.closing h2 {
  position: relative;
  margin: 0 0 0.9rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 4.8vw, 2.75rem);
  letter-spacing: 0.03em;
}

.closing p {
  position: relative;
  margin: 0 auto 1.6rem;
  max-width: 34rem;
  color: var(--muted);
}

.closing__actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.closing__note {
  position: relative;
  margin: 1.35rem 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 1.6rem 0 2.25rem;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.footer__brand img {
  width: 26px;
  height: 26px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .atmosphere__grid,
  .hero__logo-wrap,
  .hero__logo-wrap img,
  .hero__logo-ring,
  .hero__content,
  .hero__scroll,
  .hero__scroll-line {
    animation: none !important;
  }
  .hero__logo-wrap,
  .hero__content,
  .hero__scroll,
  .reveal {
    opacity: 1;
    transform: none;
  }
}