/* VidFac marketing site - black / white / orange only */

:root {
  --black: #0c0c0c;
  --black-soft: #161616;
  --white: #f7f5f2;
  --white-muted: #c8c4be;
  --orange: #f05a1a;
  --orange-deep: #c94410;
  --orange-glow: rgba(240, 90, 26, 0.28);
  --line: rgba(247, 245, 242, 0.12);
  --font-display: "Satoshi", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "General Sans", "Avenir Next", "Segoe UI", sans-serif;
  --radius: 2px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 64px;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--white);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--orange);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--white);
}

code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
  color: var(--orange);
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--nav-h);
  max-height: 80px;
  padding: 0 1.5rem;
  background: rgba(12, 12, 12, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav__brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: var(--white);
  text-decoration: none;
}

.nav__links {
  display: none;
  gap: 1.75rem;
}

.nav__links a {
  color: var(--white-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

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

.nav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border-radius: var(--radius);
  background: var(--orange);
  color: var(--black);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}

.nav__cta:hover {
  background: var(--white);
  color: var(--black);
}

.nav__cta:active {
  transform: translateY(1px) scale(0.98);
}

@media (min-width: 768px) {
  .nav {
    padding: 0 2.5rem;
  }

  .nav__links {
    display: flex;
  }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease),
    color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn:active {
  transform: translateY(1px) scale(0.98);
}

.btn--primary {
  background: var(--orange);
  color: var(--black);
  border: 1px solid var(--orange);
}

.btn--primary:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--black);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--line);
}

.btn--ghost:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.btn--lg {
  padding: 1rem 1.75rem;
  font-size: 1.05rem;
}

/* Hero - one composition, brand-first, full-bleed */

.hero {
  position: relative;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 0;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  animation: hero-drift 18s var(--ease) infinite alternate;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(12, 12, 12, 0.35) 0%,
      rgba(12, 12, 12, 0.55) 42%,
      rgba(12, 12, 12, 0.92) 100%
    ),
    radial-gradient(
      ellipse 70% 55% at 70% 30%,
      var(--orange-glow),
      transparent 60%
    );
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(100% - 3rem, var(--max));
  margin: 0 auto;
  padding: 5.5rem 0 4.5rem;
}

.brand-mark {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  color: var(--white);
}

.hero__title {
  margin: 0 0 1.25rem;
  max-width: 14ch;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 4.2vw, 3.15rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--white);
}

.hero__lede {
  margin: 0 0 1.75rem;
  max-width: 36ch;
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--white-muted);
}

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

@keyframes hero-drift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.2%, -0.8%, 0);
  }
}

/* Sections */

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

.section__inner {
  width: min(100% - 3rem, var(--max));
  margin: 0 auto;
}

.section__inner--narrow {
  max-width: 720px;
}

.section__inner--cta {
  text-align: left;
}

.section__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section__body {
  margin: 0 0 2.25rem;
  max-width: 58ch;
  color: var(--white-muted);
}

.section__body strong {
  color: var(--white);
  font-weight: 600;
}

/* What - pillars */

.pillars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.pillars li {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.pillars__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--orange);
}

.pillars__value {
  color: var(--white);
}

@media (min-width: 768px) {
  .pillars {
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid var(--line);
  }

  .pillars li {
    grid-template-columns: 1fr;
    gap: 0.4rem;
    padding: 1.35rem 1.25rem 1.35rem 0;
    border-bottom: none;
    border-right: 1px solid var(--line);
  }

  .pillars li:last-child {
    border-right: none;
    padding-right: 0;
  }
}

/* Loop steps */

.loop-steps {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  counter-reset: loop;
}

.loop-steps li {
  counter-increment: loop;
  display: grid;
  gap: 0.35rem;
  padding: 1.35rem 0 1.35rem 3.25rem;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.loop-steps li::before {
  content: counter(loop);
  position: absolute;
  left: 0;
  top: 1.35rem;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--orange);
  color: var(--orange);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius);
}

.loop-steps strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.loop-steps span {
  color: var(--white-muted);
}

.beat-line {
  margin: 0;
  padding: 1.25rem 1.25rem;
  background: var(--black-soft);
  border-left: 3px solid var(--orange);
  color: var(--white);
  font-weight: 500;
}

/* Archetypes - asymmetric, not 3 equal cards */

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

.archetype {
  margin: 0;
  padding: 1.75rem 1.5rem;
  background: var(--black);
}

.archetype h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
}

.archetype p {
  margin: 0;
  color: var(--white-muted);
  max-width: 36ch;
}

.archetype--accent {
  background:
    linear-gradient(145deg, rgba(240, 90, 26, 0.18), transparent 55%),
    var(--black-soft);
}

.archetype--accent h3 {
  color: var(--orange);
}

@media (min-width: 768px) {
  .archetypes {
    grid-template-columns: 1.35fr 1fr;
    grid-template-rows: auto auto;
  }

  .archetype:first-child {
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 280px;
    padding: 2.25rem;
  }

  .archetype:first-child h3 {
    font-size: 1.75rem;
  }

  .archetype:first-child p {
    font-size: 1.05rem;
    max-width: 28ch;
  }
}

/* Install */

.install-grid {
  display: grid;
  gap: 1.5rem;
}

.code-block {
  margin: 0;
  padding: 1.35rem 1.25rem;
  overflow-x: auto;
  background: var(--black-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--white);
  font-size: 0.92rem;
  line-height: 1.55;
}

.code-block code {
  color: var(--white);
}

.install-notes {
  display: grid;
  gap: 1rem;
  color: var(--white-muted);
}

.install-notes p {
  margin: 0;
}

@media (min-width: 900px) {
  .install-grid {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }
}

/* Why */

.why-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.why-list li {
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--white-muted);
}

.why-list li:first-child {
  border-top: 1px solid var(--line);
}

.why-list strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Final CTA */

.section--cta {
  background:
    radial-gradient(
      ellipse 80% 70% at 10% 80%,
      var(--orange-glow),
      transparent 55%
    ),
    var(--black);
  padding: 6.5rem 0;
}

.cta__title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.cta__body {
  margin: 0 0 1.75rem;
  max-width: 40ch;
  color: var(--white-muted);
}

/* Footer */

.footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
}

.footer__inner {
  width: min(100% - 3rem, var(--max));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer__brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.footer__meta {
  margin: 0;
  color: var(--white-muted);
  font-size: 0.9rem;
}

/* Motion - reveal + reduced motion */

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

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.reveal--delay-1 {
  transition-delay: 0.08s;
}

.reveal--delay-2 {
  transition-delay: 0.16s;
}

.reveal--delay-3 {
  transition-delay: 0.24s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__media img {
    animation: none;
    transform: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 640px) {
  .hero__content {
    padding-top: 4.5rem;
    padding-bottom: 3.25rem;
  }

  .pillars li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .section {
    padding: 4rem 0;
  }
}
