* {
  box-sizing: border-box;
}

:root {
  --paper: #f8f6f2;
  --paper-strong: #fffdf9;
  --ink: #0f162b;
  --muted: #626a7e;
  --line: #dedbd4;
  --red: #f23024;
  --red-dark: #c91d16;
  --gold: #f3ad22;
  --blue: #246ee9;
  --green: #13a566;
  --violet: #5b3fe8;
  --shadow: 0 18px 55px rgba(20, 24, 36, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(15, 22, 43, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(15, 22, 43, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 56px 56px;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: inherit;
}

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

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 40;
  display: flex;
  width: calc(100% - 48px);
  max-width: 1180px;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 10px 16px;
  border: 1px solid rgba(15, 22, 43, 0.08);
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.88);
  box-shadow: 0 12px 35px rgba(20, 24, 36, 0.08);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
}

.site-header.compact {
  box-shadow: 0 16px 42px rgba(20, 24, 36, 0.14);
}

.brand,
.footer-brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

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

.brand-mark {
  position: relative;
  display: inline-flex;
  width: 38px;
  height: 46px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--red);
  border-radius: 8px 8px 6px 6px;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  background: #fff;
}

.brand-mark::after {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 13px;
  height: 13px;
  border-left: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  background: #fff;
  content: "";
  transform: skew(-8deg);
}

.brand-mark.small {
  width: 30px;
  height: 36px;
  font-size: 9px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.primary-nav a {
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a.active {
  background: rgba(242, 48, 36, 0.08);
  color: var(--red);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  padding: 168px 24px 92px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(248, 246, 242, 0.98) 0%, rgba(248, 246, 242, 0.94) 42%, rgba(248, 246, 242, 0.64) 64%, rgba(248, 246, 242, 0.12) 100%),
    #f8f6f2;
}

.hero::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 22, 43, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(15, 22, 43, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  content: "";
  mask-image: linear-gradient(90deg, #000, transparent 58%);
  pointer-events: none;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(248, 246, 242, 0.96) 0%, rgba(248, 246, 242, 0.9) 38%, rgba(248, 246, 242, 0.34) 62%, rgba(248, 246, 242, 0.04) 100%),
    url("../assets/hero-background.png") right center / cover no-repeat;
  content: "";
  pointer-events: none;
}

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

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 650px;
  margin: 0;
  color: var(--ink);
  font-size: 78px;
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 550px;
  margin: 24px 0 0;
  color: #2f374b;
  font-size: 22px;
}

.hero-actions,
.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 850;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--red);
  box-shadow: 0 14px 28px rgba(242, 48, 36, 0.24);
  color: #fff;
}

.button-primary:hover {
  background: var(--red-dark);
}

.button-secondary {
  border-color: rgba(15, 22, 43, 0.14);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.button-secondary.dark {
  border-color: rgba(255, 255, 255, 0.26);
  background: #fff;
  color: var(--ink);
}

.play-mark {
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid currentColor;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 650px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.hero-points li {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border: 1px solid rgba(15, 22, 43, 0.12);
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.7);
  color: #3b4356;
  font-size: 14px;
  font-weight: 800;
  backdrop-filter: blur(14px);
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(1180px, calc(100% - 48px));
  margin: -48px auto 0;
  border: 1px solid rgba(15, 22, 43, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 50px rgba(20, 24, 36, 0.1);
  backdrop-filter: blur(16px);
}

.proof-strip div {
  min-height: 112px;
  padding: 24px 22px;
  border-right: 1px solid var(--line);
}

.proof-strip div:last-child {
  border-right: 0;
}

.proof-strip span {
  display: block;
  margin-bottom: 6px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
}

.proof-strip strong {
  font-size: 18px;
}

.section {
  padding: 96px 24px;
}

section[id] {
  scroll-margin-top: 112px;
}

.section-heading {
  width: min(860px, 100%);
  margin: 0 auto 42px;
}

.section-heading.narrow {
  width: min(760px, 100%);
}

.section-heading h2,
.download-content h2,
.contact-panel h2 {
  margin: 0;
  color: var(--ink);
  font-size: 44px;
  line-height: 1.08;
  letter-spacing: 0;
}

.section-heading p:not(.section-kicker),
.download-content p,
.contact-panel p {
  max-width: 660px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.feature-band {
  background: #fff;
}

.feature-grid {
  display: grid;
  width: min(1180px, 100%);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0 auto;
}

.feature-card {
  min-height: 270px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(20, 24, 36, 0.05);
}

.feature-icon {
  display: block;
  width: 46px;
  height: 46px;
  margin-bottom: 28px;
  border-radius: 8px;
  background: var(--red);
}

.icon-red {
  background:
    linear-gradient(90deg, transparent 42%, #fff 42%, #fff 58%, transparent 58%),
    linear-gradient(180deg, transparent 42%, #fff 42%, #fff 58%, transparent 58%),
    var(--red);
}

.icon-yellow {
  background:
    linear-gradient(135deg, transparent 43%, #fff 43%, #fff 57%, transparent 57%),
    var(--gold);
}

.icon-blue {
  background:
    radial-gradient(circle at 50% 50%, transparent 35%, #fff 36%, #fff 43%, transparent 44%),
    var(--blue);
}

.icon-green {
  background:
    linear-gradient(90deg, transparent 30%, #fff 30%, #fff 39%, transparent 39%, transparent 61%, #fff 61%, #fff 70%, transparent 70%),
    var(--green);
}

.feature-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.18;
}

.feature-card p {
  margin: 14px 0 0;
  color: var(--muted);
}

.screen-lab {
  background: #f8f6f2;
}

.screen-layout {
  display: grid;
  width: min(1160px, 100%);
  grid-template-columns: 0.95fr 1.05fr;
  gap: 38px;
  align-items: center;
  margin: 0 auto;
}

.screen-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 460px;
}

.screen-tab {
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.screen-tab:hover,
.screen-tab.active {
  border-color: rgba(242, 48, 36, 0.38);
  background: rgba(242, 48, 36, 0.08);
  color: var(--red);
}

.screen-detail {
  max-width: 520px;
  margin-top: 34px;
  padding-top: 28px;
  border-top: 2px solid var(--ink);
}

.screen-label {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.screen-detail h3 {
  margin: 0;
  font-size: 34px;
  line-height: 1.12;
}

.screen-detail p:last-child {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.screen-frame {
  width: min(430px, 100%);
  margin: 0 auto;
  padding: 0;
  border: 1px solid rgba(15, 22, 43, 0.12);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.screen-frame img {
  width: 100%;
  aspect-ratio: 841 / 1870;
  object-fit: cover;
  object-position: top center;
}

.workflow-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #141927;
  color: #fff;
}

.workflow-band .section-heading h2,
.workflow-band .section-heading p:not(.section-kicker) {
  color: #fff;
}

.workflow-list {
  display: grid;
  width: min(1180px, 100%);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.workflow-item {
  min-height: 210px;
  padding: 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.workflow-item span {
  display: inline-flex;
  min-width: 74px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #fff;
  font-weight: 900;
}

.workflow-item p {
  margin: 34px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.download-band {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 54px;
  align-items: center;
  background: #fff;
}

.download-visual {
  justify-self: end;
  width: min(350px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.download-visual img {
  width: 100%;
  aspect-ratio: 841 / 1870;
  object-fit: cover;
  object-position: center;
}

.download-content {
  max-width: 650px;
}

.text-link {
  color: var(--red);
  font-weight: 850;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.contact-band {
  background: var(--paper);
}

.contact-panel {
  display: grid;
  width: min(1120px, 100%);
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  margin: 0 auto;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #141927;
  color: #fff;
}

.contact-panel h2,
.contact-panel p {
  color: #fff;
}

.contact-panel p {
  color: rgba(255, 255, 255, 0.72);
}

.contact-actions {
  display: grid;
  gap: 12px;
  min-width: 210px;
}

.legal-link {
  min-height: 44px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
  text-decoration: none;
}

.legal-link:hover {
  color: #fff;
}

.site-footer {
  display: grid;
  gap: 24px;
  padding: 36px 24px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.site-footer > * {
  width: min(1180px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  color: var(--muted);
  font-weight: 750;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--red);
}

.site-footer p {
  margin-top: 0;
  color: var(--muted);
}

.legal-page {
  display: grid;
  min-height: 100svh;
  align-items: start;
  justify-items: center;
  padding: 24px;
}

.legal-document {
  width: min(860px, 100%);
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.legal-document h1 {
  margin: 20px 0 12px;
  font-size: 42px;
  line-height: 1.1;
}

.legal-document h2 {
  margin: 34px 0 12px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 25px;
  line-height: 1.2;
}

.legal-document h3 {
  margin: 24px 0 10px;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.25;
}

.legal-document p,
.legal-document li {
  color: var(--muted);
  font-size: 17px;
}

.legal-document ul,
.legal-document ol {
  padding-left: 22px;
}

.legal-document li {
  margin: 10px 0;
}

.legal-document .lettered-list {
  list-style-type: lower-alpha;
}

.legal-document .lettered-list.upper {
  list-style-type: upper-alpha;
}

.legal-document a {
  color: var(--red);
  font-weight: 800;
  text-decoration: none;
}

.legal-document a:hover {
  text-decoration: underline;
}

.back-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
}

@media (max-width: 1120px) {
  .feature-grid,
  .workflow-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .site-header {
    top: 10px;
    width: calc(100% - 24px);
  }

  .brand-text {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-toggle {
    display: block;
  }

  .primary-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: none;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .nav-open .primary-nav {
    display: grid;
  }

  .primary-nav a {
    min-height: 46px;
  }

  .hero {
    min-height: 720px;
    padding: 126px 18px 96px;
  }

  .hero::after {
    background:
      linear-gradient(180deg, rgba(248, 246, 242, 0.98) 0%, rgba(248, 246, 242, 0.86) 58%, rgba(248, 246, 242, 0.72) 100%),
      url("../assets/hero-background.png") 72% bottom / auto 74% no-repeat;
  }

  .hero h1 {
    font-size: 48px;
  }

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

  .proof-strip,
  .screen-layout,
  .download-band,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .proof-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .proof-strip div:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 94px 18px 72px;
  }

  section[id] {
    scroll-margin-top: 98px;
  }

  .section-heading h2,
  .download-content h2,
  .contact-panel h2 {
    font-size: 34px;
  }

  .section-heading p:not(.section-kicker),
  .download-content p,
  .contact-panel p {
    font-size: 17px;
  }

  .screen-copy {
    order: 2;
  }

  .screen-frame {
    order: 1;
    width: min(330px, 100%);
  }

  .download-visual {
    justify-self: start;
    width: min(260px, 100%);
  }

  .contact-panel {
    padding: 28px;
  }

  .contact-actions {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 560px) {
  .brand-text {
    max-width: 150px;
  }

  .hero-actions,
  .download-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

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

  .hero h1 {
    font-size: 42px;
  }

  .hero-points {
    display: grid;
  }

  .feature-card {
    min-height: auto;
  }

  .screen-detail h3 {
    font-size: 28px;
  }
}
