:root {
  color-scheme: light;
  --brand: #3867f4;
  --ink: #172033;
  --muted: #667085;
  --line: #d9e0ea;
  --line-soft: #e8edf4;
  --soft: #f5f7fb;
  --panel: #ffffff;
  --panel-warm: #fbfcff;
  --field: #ffffff;
  --topbar: #101827;
  --accent: #159b70;
  --warning: #b5472f;
  --shadow: 0 18px 44px rgba(16, 24, 40, 0.16);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow: auto;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% -15%, color-mix(in srgb, var(--brand) 20%, transparent), transparent 36%),
    linear-gradient(180deg, #eef3fa 0%, #e7ecf4 100%);
}

button,
input,
select,
textarea {
  font: inherit;
}

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

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

h1 {
  margin: 8px 0 12px;
  font-size: clamp(2.4rem, 5vw, 4.25rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 8px;
  font-size: clamp(1.55rem, 3vw, 2.45rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 7px;
  font-size: 1rem;
  line-height: 1.25;
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 52px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 0 max(14px, calc((100vw - 1360px) / 2));
  color: #fff;
  background: rgba(12, 18, 31, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.brand-symbol {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 88%, #fff 12%), #1a2750);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.2);
  font-size: 0.72rem;
}

.brand-text {
  white-space: nowrap;
}

.brand-mark small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.76rem;
  font-weight: 680;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-actions {
  display: inline-flex;
  justify-content: flex-end;
  align-items: center;
  gap: 7px;
}

.top-button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  width: auto;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 760;
}

.primary-top-button {
  background: var(--brand);
  border-color: transparent;
}

.landing-shell {
  width: min(100%, 1360px);
  margin: 0 auto;
  padding: clamp(12px, 3vw, 28px);
}

.hero-section {
  min-height: calc(100svh - 108px);
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(520px, 1.15fr);
  align-items: center;
  gap: clamp(18px, 4vw, 48px);
}

.hero-copy {
  display: grid;
  align-content: center;
  gap: 14px;
}

.quick-kicker {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid color-mix(in srgb, var(--brand) 28%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 8%, #fff);
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 860;
}

.hero-lede,
.section-head p,
.variant-demo p,
.workflow-grid p {
  color: var(--muted);
  line-height: 1.5;
}

.hero-lede {
  width: min(580px, 100%);
  margin-bottom: 4px;
  font-size: 1.05rem;
}

.hero-actions,
.quick-preview-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.primary-button,
.secondary-button,
.ghost-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid transparent;
  padding: 0 18px;
  font-weight: 820;
}

.primary-button {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 1px 0 color-mix(in srgb, #fff 22%, transparent) inset;
}

.secondary-button {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.compact-button {
  min-height: 38px;
  padding: 0 12px;
  font-size: 0.86rem;
}

.quick-start-steps {
  width: min(100%, 650px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.quick-start-steps li,
.workflow-grid article,
.product-card,
.advanced-card {
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 38px rgba(16, 24, 40, 0.08);
}

.quick-start-steps li {
  min-width: 0;
  display: grid;
  gap: 5px;
  justify-items: center;
  padding: 12px 10px;
  border-radius: 12px;
  background: var(--panel-warm);
}

.quick-start-steps span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 12%, #fff);
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 880;
}

.quick-start-steps strong {
  font-size: 0.86rem;
  font-weight: 850;
}

.quick-start-steps small {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.32;
  text-align: center;
}

.product-preview {
  position: relative;
  display: grid;
  grid-template-columns: minmax(290px, 1fr) minmax(260px, 0.72fr);
  align-items: center;
  gap: 14px;
}

.product-card {
  display: grid;
  gap: 12px;
  padding: clamp(14px, 2vw, 20px);
  border-radius: 16px;
}

.compose-card {
  min-width: 0;
}

.ready-card {
  justify-items: center;
}

.card-head {
  display: grid;
  gap: 8px;
}

.card-head strong {
  font-size: 1.05rem;
  font-weight: 850;
}

.quick-media-card {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(82px, 128px) minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}

.quick-media-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: #101827;
}

.quick-media-card strong,
.quick-media-card span {
  display: block;
  min-width: 0;
}

.quick-media-card strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.98rem;
}

.quick-media-card span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.38;
}

.notes-box {
  min-height: 132px;
  border: 1px solid #cfd8e6;
  border-radius: 12px;
  background: #fff;
  padding: 15px;
  color: #243047;
  font-size: 0.94rem;
  line-height: 1.55;
}

.quick-status {
  margin: 0;
  color: #475467;
  font-size: 0.86rem;
  font-weight: 740;
}

.quick-ready-status {
  display: grid;
  gap: 3px;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 720;
  line-height: 1.35;
  text-align: center;
}

.quick-ready-status strong {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 880;
}

.vertical-preview {
  position: relative;
  width: min(100%, 218px);
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 9px solid #101827;
  border-radius: 24px;
  background: #101827;
  box-shadow: var(--shadow);
}

.vertical-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.02);
}

.vertical-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 24, 40, 0.1), rgba(16, 24, 40, 0.08) 48%, rgba(16, 24, 40, 0.58));
}

.caption-card {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 9%;
  z-index: 1;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-weight: 860;
  line-height: 1.18;
  text-align: center;
}

.variant-picker,
.variant-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
}

.variant-picker span,
.variant-list span,
.variant-list a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #344054;
  font-size: 0.82rem;
  font-weight: 760;
}

.variant-picker .is-active,
.variant-list .is-active {
  border-color: color-mix(in srgb, var(--brand) 70%, var(--line));
  background: color-mix(in srgb, var(--brand) 10%, #fff);
  color: var(--brand);
}

.panel-section,
.examples-section,
.studio-section {
  padding: clamp(36px, 6vw, 76px) 0;
}

.section-head {
  width: min(760px, 100%);
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 820;
  text-transform: uppercase;
}

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

.workflow-grid article {
  min-height: 178px;
  padding: 16px;
  border-radius: 14px;
}

.workflow-grid span {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 880;
}

.workflow-grid p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.media-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 12px;
}

.media-grid figure {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: 0 16px 38px rgba(16, 24, 40, 0.08);
}

.media-grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  background: #101827;
}

.media-grid figcaption {
  padding: 12px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 720;
  line-height: 1.4;
}

.variant-demo {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 38px rgba(16, 24, 40, 0.08);
}

.variant-demo p {
  margin-bottom: 0;
}

.advanced-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: 18px;
  align-items: center;
  padding: clamp(18px, 3vw, 26px);
  border-radius: 16px;
}

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

.studio-preview div {
  min-height: 118px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--brand) 9%, transparent), transparent),
    var(--panel-warm);
}

@media (max-width: 1080px) {
  .hero-section,
  .product-preview,
  .advanced-card,
  .variant-demo {
    grid-template-columns: 1fr;
  }

  .product-preview {
    align-items: stretch;
  }

  .ready-card {
    width: min(100%, 430px);
    justify-self: center;
  }

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

@media (max-width: 760px) {
  .app-topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 0 10px;
  }

  .brand-mark small,
  .top-actions a:not(.primary-top-button) {
    display: none;
  }

  .landing-shell {
    padding: 14px;
  }

  .hero-section {
    min-height: 0;
    gap: 16px;
    padding-top: 16px;
  }

  h1 {
    font-size: clamp(2.55rem, 14vw, 3.35rem);
  }

  .hero-lede {
    font-size: 0.98rem;
  }

  .hero-actions .primary-button,
  .hero-actions .secondary-button {
    width: 100%;
  }

  .quick-start-steps,
  .workflow-grid,
  .media-grid {
    grid-template-columns: 1fr;
  }

  .quick-start-steps {
    display: none;
  }

  .quick-media-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .notes-box {
    min-height: 116px;
    font-size: 0.9rem;
  }

  .vertical-preview {
    width: min(100%, 220px);
  }

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

  .workflow-grid span {
    margin-bottom: 14px;
  }
}
