:root {
  --ink: #17191f;
  --muted: #5f6673;
  --paper: #f7f4ed;
  --panel: #fffaf1;
  --line: #ded4c5;
  --accent: #e0524d;
  --accent-dark: #a83431;
  --green: #226c5e;
  --blue: #263b55;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
}

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

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

.site-header {
  min-height: 78vh;
  position: relative;
  overflow: hidden;
  background: #15171d;
  color: #fff;
}

.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 15, 18, 0.92) 0%, rgba(15, 15, 18, 0.72) 44%, rgba(15, 15, 18, 0.08) 100%),
    linear-gradient(0deg, rgba(15, 15, 18, 0.54), rgba(15, 15, 18, 0));
}

.nav,
.hero {
  position: relative;
  z-index: 1;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 800;
}

.brand img {
  width: 44px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.62);
  border-radius: 8px;
}

.nav-link {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.84);
}

.hero {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(60px, 12vh, 132px) 0 64px;
}

.eyebrow,
.status {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffb14d;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3.1rem, 10vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.lede {
  max-width: 600px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 850;
}

.button.primary {
  background: var(--accent);
  color: #fff;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.button.disabled {
  cursor: not-allowed;
}

.microcopy {
  max-width: 540px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.95rem;
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 68px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(280px, 1fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}

.section-heading h2,
.launch-section h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
  letter-spacing: 0;
}

.section-heading p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.video-status-panel {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--muted);
  font-weight: 720;
}

.video-status-panel[data-state="live"] {
  border-left-color: var(--green);
  color: var(--green);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.video-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 44px rgba(35, 29, 24, 0.08);
}

.video-link {
  display: block;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.video-link:hover,
.video-link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 22px 52px rgba(35, 29, 24, 0.14);
  outline: 0;
}

.video-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #222;
}

.video-copy {
  padding: 18px;
}

.video-copy h3 {
  min-height: 3.2em;
  margin: 0 0 10px;
  font-size: 1.25rem;
  line-height: 1.08;
  letter-spacing: 0;
}

.video-copy p {
  margin: 0;
  color: var(--muted);
}

.not-found {
  display: inline-flex;
  margin-top: 18px;
  padding: 6px 9px;
  border: 1px solid rgba(224, 82, 77, 0.32);
  border-radius: 8px;
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 850;
}

.watch-label {
  display: inline-flex;
  margin-top: 18px;
  padding: 6px 9px;
  border-radius: 8px;
  background: rgba(34, 108, 94, 0.12);
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 850;
}

.launch-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(300px, 1fr);
  gap: 28px;
  border-top: 1px solid var(--line);
}

.designs-callout,
.designs-meta {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(300px, 1fr);
  gap: 28px;
  border-top: 1px solid var(--line);
}

.callout-copy p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1.05rem;
}

.compact-header {
  background: #15171d;
  color: #fff;
}

.compact-hero {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 78px;
}

.compact-hero h1 {
  max-width: 820px;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.meta-grid div,
.template-category {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.meta-grid div {
  padding: 14px;
}

.meta-grid dt {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.meta-grid dd {
  margin: 6px 0 0;
  color: var(--blue);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.template-library {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.template-category {
  padding: 18px;
}

.template-category-wide {
  grid-column: 1 / -1;
}

.template-category h2 {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 1.25rem;
  letter-spacing: 0;
}

.template-category ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 1.5rem;
}

.template-category li {
  padding-left: 4px;
}

.template-category a {
  color: var(--accent-dark);
  font-weight: 850;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.template-category span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.92rem;
}

.funnel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.funnel li {
  min-height: 112px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.funnel strong,
.funnel span {
  display: block;
}

.funnel strong {
  color: var(--blue);
  font-size: 1rem;
}

.funnel span {
  margin-top: 10px;
  color: var(--green);
  font-weight: 750;
}

@media (max-width: 820px) {
  .site-header {
    min-height: 88vh;
  }

  .site-header::after {
    background: linear-gradient(0deg, rgba(15, 15, 18, 0.86), rgba(15, 15, 18, 0.42));
  }

  .nav {
    align-items: flex-start;
  }

  .brand span {
    max-width: 12ch;
  }

  .hero {
    padding-top: 68px;
  }

  .section-heading,
  .launch-section,
  .designs-callout,
  .designs-meta,
  .video-grid,
  .funnel,
  .meta-grid,
  .template-library {
    grid-template-columns: 1fr;
  }

  .video-copy h3 {
    min-height: auto;
  }
}

@media (max-width: 520px) {
  .nav-link {
    display: none;
  }

  .button {
    width: 100%;
  }

  h1 {
    font-size: 3.15rem;
  }
}
