:root {
  color-scheme: dark;
  --bg: #080a0d;
  --bg-soft: #10151b;
  --panel: rgba(18, 24, 31, 0.86);
  --panel-solid: #141b23;
  --text: #f7f3ea;
  --muted: #b7c2c9;
  --quiet: #7f8d96;
  --line: rgba(247, 243, 234, 0.14);
  --brand: #2dd4bf;
  --brand-strong: #14b8a6;
  --signal: #f6c85f;
  --rose: #ff7a90;
  --ink: #080a0d;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 48px);
  background: rgba(8, 10, 13, 0.72);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(8, 10, 13, 0.92);
  border-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-weight: 750;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, var(--brand), rgba(45, 212, 191, 0) 62%),
    linear-gradient(315deg, var(--signal), var(--rose));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 16px 34px rgba(20, 184, 166, 0.25);
}

.nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 0.94rem;
}

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

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

.header-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.header-action {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 0.92rem;
}

.button {
  min-height: 50px;
  padding: 0 22px;
  font-weight: 720;
}

.button:hover,
.header-action:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.26);
}

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

.button.primary:hover {
  background: #58e4d1;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.icon-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 132px clamp(18px, 4vw, 48px) 48px;
}

.hero-media,
.hero-media video,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(8, 10, 13, 0.96) 0%, rgba(8, 10, 13, 0.76) 44%, rgba(8, 10, 13, 0.28) 100%),
    linear-gradient(180deg, rgba(8, 10, 13, 0.48), rgba(8, 10, 13, 0.95));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100%, var(--max));
  margin: 0 auto;
}

.hero-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.hero-kicker span,
.eyebrow {
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-kicker span {
  padding: 7px 10px;
  border: 1px solid rgba(45, 212, 191, 0.35);
  border-radius: 999px;
  background: rgba(8, 10, 13, 0.62);
}

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

h1 {
  max-width: 900px;
  margin-bottom: 22px;
  font-size: clamp(3.2rem, 8vw, 7.7rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero p {
  max-width: 690px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 34px 0 42px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 760px;
  margin: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero-metrics div {
  padding: 18px 18px 18px 0;
}

.hero-metrics dt,
.proof-stats dt,
.price {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  font-weight: 820;
}

.hero-metrics dd,
.proof-stats dd {
  margin: 8px 0 0;
  color: var(--quiet);
  font-size: 0.94rem;
}

.section,
.showcase,
.proof {
  width: min(calc(100% - 36px), var(--max));
  margin: 0 auto;
}

.section {
  padding: 96px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: 34px;
  align-items: start;
  margin-bottom: 34px;
}

.section-heading.compact {
  display: block;
  max-width: 720px;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.22rem;
}

.intro .section-heading h2 {
  max-width: 870px;
}

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

.platform-grid article,
.timeline article,
.plan-grid article,
.contact-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.platform-grid article {
  min-height: 310px;
  padding: 24px;
}

.card-index {
  display: inline-block;
  margin-bottom: 86px;
  color: var(--signal);
  font-size: 0.82rem;
  font-weight: 800;
}

.platform-grid p,
.timeline p,
.plan-grid p,
.showcase-copy p,
.proof p,
.contact-copy p,
.plan-grid li,
.check-list li {
  color: var(--muted);
}

.showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 36px;
  align-items: center;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(45, 212, 191, 0.13), rgba(246, 200, 95, 0.09)),
    var(--panel-solid);
}

.showcase-copy {
  max-width: 470px;
}

.showcase-media {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #000;
}

.showcase-media video {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.check-list,
.plan-grid ul {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li,
.plan-grid li {
  position: relative;
  padding-left: 20px;
}

.check-list li::before,
.plan-grid li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 36px;
}

.timeline article {
  min-height: 250px;
  padding: 24px;
}

.timeline span {
  display: inline-block;
  margin-bottom: 44px;
  color: var(--signal);
  font-weight: 800;
}

.proof {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 36px;
  align-items: center;
  padding: 56px;
  border-radius: 8px;
  background: #f7f3ea;
  color: #11151a;
}

.proof p {
  color: #48535a;
}

.proof .eyebrow {
  color: #0f766e;
}

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

.proof-stats div {
  min-height: 180px;
  padding: 20px;
  border: 1px solid rgba(17, 21, 26, 0.16);
  border-radius: 8px;
  background: #ffffff;
}

.proof-stats dd {
  color: #5f6a71;
}

.plans-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.plans-header h2 {
  max-width: 760px;
}

.billing-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.billing-toggle button {
  min-width: 92px;
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.billing-toggle button.active {
  background: var(--text);
  color: var(--ink);
}

.plan-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.plan-grid article {
  display: grid;
  gap: 18px;
  align-content: start;
  min-height: 520px;
  padding: 28px;
}

.plan-grid .featured-plan {
  border-color: rgba(45, 212, 191, 0.5);
  background:
    linear-gradient(180deg, rgba(45, 212, 191, 0.15), rgba(45, 212, 191, 0)),
    var(--panel);
}

.price {
  margin: 8px 0;
}

.plan-grid .button {
  align-self: end;
  margin-top: 12px;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 42px;
  align-items: start;
}

.contact-copy {
  position: sticky;
  top: 108px;
}

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

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.contact-form .full {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  font-size: 16px;
  padding: 10px 12px;
  outline: none;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--brand);
}

.contact-form button[disabled] {
  cursor: default;
  opacity: 0.78;
  transform: none;
}

.form-status {
  min-height: 24px;
  margin: -4px 0 0;
  color: var(--brand);
  font-size: 0.95rem;
}

.site-footer {
  width: min(calc(100% - 36px), var(--max));
  margin: 0 auto;
  padding: 28px 0 46px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--quiet);
}

.site-footer span {
  color: var(--text);
  font-weight: 750;
  margin-right: auto;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.site-footer small {
  flex-basis: 100%;
  color: var(--quiet);
  font-size: 0.88rem;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
}

.video-modal[hidden] {
  display: none;
}

.video-modal-panel {
  position: relative;
  width: min(980px, calc(100vw - 28px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #000;
  color: var(--text);
  box-shadow: var(--shadow);
}

.video-modal video {
  width: 100%;
}

.dialog-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.52);
  color: #fff;
  cursor: pointer;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .icon-button {
    display: block;
    justify-self: end;
  }

  .nav,
  .header-action {
    display: none;
  }

  .nav.is-open {
    position: fixed;
    top: 72px;
    left: 18px;
    right: 18px;
    width: auto;
    justify-self: stretch;
    justify-items: stretch;
    display: grid;
    gap: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(14, 18, 24, 0.98);
    box-shadow: var(--shadow);
  }

  .nav.is-open a {
    display: block;
    padding: 14px;
    border-radius: 6px;
  }

  .nav.is-open a:hover {
    background: rgba(255, 255, 255, 0.06);
  }

  .nav a[href="#workflow"],
  .nav a[href="#proof"] {
    display: none;
  }

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

  .showcase,
  .proof,
  .contact,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .contact-copy {
    position: static;
  }
}

@media (max-width: 720px) {
  .hero {
    min-height: auto;
    padding: 96px 18px 30px;
  }

  h1 {
    margin-bottom: 16px;
    font-size: clamp(2.35rem, 13vw, 3rem);
    line-height: 0.96;
  }

  .hero-kicker span {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .hero-kicker {
    gap: 8px;
    margin-bottom: 16px;
  }

  .hero-kicker span {
    padding: 6px 9px;
    font-size: 0.68rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-actions {
    gap: 10px;
    margin: 24px 0 28px;
  }

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

  .hero-metrics {
    gap: 0;
  }

  .hero-metrics,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-metrics div {
    padding: 12px 0;
  }

  .hero-metrics dd {
    margin-top: 4px;
    font-size: 0.72rem;
  }

  .hero-metrics dt {
    font-size: 1.55rem;
  }

  .proof-stats dt,
  .price {
    font-size: 1.9rem;
  }

  .section {
    padding: 46px 0;
  }

  .section-heading {
    gap: 10px;
    margin-bottom: 20px;
  }

  h2 {
    margin-bottom: 12px;
    font-size: clamp(1.75rem, 9vw, 2.35rem);
  }

  h3 {
    margin-bottom: 8px;
  }

  .platform-grid,
  .timeline,
  .plan-grid,
  .proof-stats {
    display: flex;
    grid-template-columns: none;
    gap: 10px;
    margin-inline: -18px;
    padding-inline: 18px;
    overflow-x: auto;
    scroll-padding-inline: 18px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .platform-grid article,
  .timeline article,
  .plan-grid article {
    flex: 0 0 84%;
    min-height: auto;
    padding: 18px;
    scroll-snap-align: start;
  }

  .proof-stats div {
    flex: 0 0 74%;
    scroll-snap-align: start;
  }

  .platform-grid::-webkit-scrollbar,
  .timeline::-webkit-scrollbar,
  .plan-grid::-webkit-scrollbar,
  .proof-stats::-webkit-scrollbar {
    display: none;
  }

  .platform-grid,
  .timeline,
  .plan-grid,
  .proof-stats {
    scrollbar-width: none;
  }

  .card-index,
  .timeline span {
    margin-bottom: 16px;
  }

  .showcase {
    gap: 22px;
  }

  .showcase-copy p {
    margin-bottom: 12px;
  }

  .check-list,
  .plan-grid ul {
    gap: 8px;
    margin-top: 14px;
  }

  .workflow .section-heading {
    margin-bottom: 0;
  }

  .timeline {
    margin-top: 18px;
  }

  .plans-header {
    margin-bottom: 20px;
  }

  .plan-grid article {
    gap: 10px;
  }

  .plan-grid .button {
    margin-top: 4px;
  }

  .contact {
    gap: 22px;
  }

  .contact-form {
    gap: 12px;
    padding: 18px;
  }

  .site-footer {
    padding: 22px 0 30px;
  }

  .hero-metrics div {
    padding-right: 0;
  }

  .showcase,
  .proof {
    padding: 20px;
  }

  .showcase,
  .workflow,
  .proof {
    display: none;
  }

  .plans-header {
    align-items: stretch;
    flex-direction: column;
  }

  .billing-toggle {
    width: 100%;
  }

  .billing-toggle button {
    flex: 1;
  }

  .contact-form .full {
    grid-column: auto;
  }

  .site-footer {
    display: grid;
  }
}
