:root {
  color-scheme: dark;
  --bg: #07101e;
  --bg-deep: #040812;
  --surface: #101827;
  --surface-2: #172132;
  --line: rgba(214, 224, 255, 0.14);
  --line-strong: rgba(214, 224, 255, 0.24);
  --text: #f7f8fb;
  --muted: #b6bed0;
  --quiet: #8f99ae;
  --accent: #c8ff00;
  --accent-soft: rgba(200, 255, 0, 0.16);
  --purple: #9b6cff;
  --purple-soft: rgba(155, 108, 255, 0.18);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg-deep);
  color: var(--text);
  overflow-x: hidden;
  font-family:
    "Plus Jakarta Sans",
    "Aptos",
    "Helvetica Neue",
    sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

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

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

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 126px;
}

.brand img {
  width: 134px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: rgba(247, 248, 251, 0.76);
  font-size: 14px;
}

.nav-links a {
  transition: color 160ms ease;
}

.nav-links a:hover {
  color: var(--text);
}

.header-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.header-action {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(4, 8, 18, 0.46);
  color: var(--text);
  font-size: 14px;
}

.header-action:hover,
.button.secondary:hover {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
}

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 520px;
  height: 82svh;
  max-height: 780px;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-bg {
  z-index: -3;
  background-image: url("assets/clipjam-caption-editor.png");
  background-position: center top;
  background-size: cover;
  transform: scale(1.02);
}

.hero-shade {
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(4, 8, 18, 0.32) 0%, rgba(4, 8, 18, 0.76) 58%, #040812 100%),
    linear-gradient(90deg, rgba(4, 8, 18, 0.92) 0%, rgba(4, 8, 18, 0.58) 42%, rgba(4, 8, 18, 0.86) 100%);
}

.hero-content {
  width: 100%;
  max-width: var(--max);
  min-width: 0;
  margin: 0 auto;
  padding: 0 28px 72px;
}

.availability {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 16px;
  font-size: clamp(58px, 8vw, 116px);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-copy {
  width: min(660px, 100%);
  max-width: 660px;
  margin-bottom: 28px;
  color: rgba(247, 248, 251, 0.88);
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.22;
  font-weight: 600;
}

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

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

.button.primary:hover {
  background: #d9ff39;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(10, 16, 28, 0.74);
  color: var(--text);
}

.section-inner {
  width: 100%;
  max-width: var(--max);
  min-width: 0;
  margin: 0 auto;
  padding: 0 28px;
}

.intro-band {
  background: var(--bg-deep);
  padding: 72px 0 86px;
}

.intro-grid,
.product-grid,
.local-grid {
  display: grid;
  align-items: center;
  gap: 42px;
}

.intro-grid {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(34px, 4.8vw, 68px);
  line-height: 1;
  letter-spacing: 0;
}

.intro-grid > div > p,
.product-copy > p,
.cta-inner > p {
  color: var(--muted);
  font-size: 18px;
}

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

.workflow-list article,
.feature-grid article {
  min-height: 188px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 22px;
}

.workflow-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 30px;
  margin-bottom: 20px;
  border-radius: 6px;
  background: var(--accent);
  color: #11150f;
  font-size: 13px;
  font-weight: 900;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.18;
}

.workflow-list p,
.feature-grid p,
.plain-list,
.trust-row span {
  color: var(--muted);
}

.product-section {
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding: 82px 0;
}

.product-grid {
  grid-template-columns: minmax(280px, 0.76fr) minmax(0, 1.24fr);
}

.product-copy {
  max-width: 480px;
}

.plain-list {
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.plain-list li {
  position: relative;
  padding-left: 20px;
}

.plain-list li::before {
  position: absolute;
  top: 0.66em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.product-shot {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #0b1220;
}

.product-shot img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: left top;
}

.feature-band {
  border-top: 1px solid var(--line);
  background: #090d17;
  padding: 28px 0;
}

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

.feature-grid article {
  min-height: 206px;
  background: linear-gradient(180deg, var(--surface) 0%, #0f1725 100%);
}

.feature-grid article:nth-child(2) {
  border-color: rgba(200, 255, 0, 0.26);
}

.feature-grid article:nth-child(3) {
  border-color: rgba(155, 108, 255, 0.28);
}

.local-section {
  background: #070d19;
}

.local-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
}

.compact-shot img {
  object-position: center;
}

.trust-row {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.trust-row div {
  border-left: 3px solid var(--accent);
  padding-left: 16px;
}

.trust-row strong,
.trust-row span {
  display: block;
}

.trust-row strong {
  margin-bottom: 4px;
  font-size: 17px;
}

.cta-section {
  border-top: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(200, 255, 0, 0.08), transparent 34%),
    var(--bg-deep);
  padding: 74px 0;
}

.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.32fr);
  align-items: center;
  gap: 28px;
}

.cta-inner h2 {
  max-width: 740px;
  margin-bottom: 10px;
  font-size: clamp(34px, 5vw, 64px);
}

.cta-inner p {
  max-width: 640px;
  margin-bottom: 0;
}

.cta-inner .button {
  justify-self: end;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #040812;
  padding: 24px 0;
  color: var(--quiet);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 14px;
}

.footer-brand {
  color: var(--text);
  font-weight: 800;
}

@media (max-width: 980px) {
  .site-header {
    padding: 18px 20px;
  }

  .nav-links {
    display: none;
  }

  .hero-content,
  .section-inner {
    padding-left: 20px;
    padding-right: 20px;
  }

  .intro-grid,
  .product-grid,
  .local-grid,
  .cta-inner {
    grid-template-columns: 1fr;
  }

  .workflow-list,
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .local-grid .product-shot {
    order: 2;
  }

  .cta-inner .button {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .site-header {
    gap: 12px;
  }

  .brand {
    min-width: 0;
  }

  .brand img {
    width: 118px;
  }

  .header-action {
    display: none;
  }

  .hero {
    min-height: 500px;
    height: 82svh;
  }

  .hero-bg {
    background-position: 36% top;
  }

  .hero-content {
    padding-bottom: 46px;
  }

  .availability {
    font-size: 14px;
  }

  h1 {
    font-size: clamp(54px, 20vw, 78px);
  }

  .hero-copy {
    font-size: 20px;
  }

  .button {
    width: 100%;
  }

  .hero-actions {
    width: min(350px, calc(100vw - 40px));
    max-width: min(350px, calc(100vw - 40px));
  }

  .intro-band,
  .product-section,
  .cta-section {
    padding-top: 58px;
    padding-bottom: 64px;
  }

  h2 {
    max-width: min(350px, calc(100vw - 40px));
    font-size: 34px;
    line-height: 1.05;
  }

  .hero-copy,
  .intro-grid > div > p,
  .product-copy > p,
  .cta-inner > p {
    width: min(350px, calc(100vw - 40px));
    max-width: min(350px, calc(100vw - 40px));
  }

  .hero-copy {
    font-size: 19px;
  }

  .workflow-list,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .workflow-list article,
  .feature-grid article {
    min-height: 0;
  }

  .product-shot img {
    aspect-ratio: 4 / 3;
  }

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

@media (max-height: 620px) {
  .hero {
    min-height: 450px;
    height: 78svh;
  }

  .hero-content {
    padding-bottom: 32px;
  }
}
