:root {
  --accent: #f5a524;
  --cool: #7fd1ff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--page-bg);
  color: var(--text);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background 220ms ease, color 220ms ease;
}

body[data-theme="dark"] {
  color-scheme: dark;
  --panel: rgba(22, 24, 31, 0.76);
  --panel-strong: rgba(18, 20, 28, 0.92);
  --line: rgba(255, 255, 255, 0.1);
  --text: #f7f3eb;
  --muted: #b7b1a6;
  --eyebrow: #ffdf9e;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
  --page-bg:
    radial-gradient(circle at top left, rgba(245, 165, 36, 0.18), transparent 32%),
    radial-gradient(circle at top right, rgba(127, 209, 255, 0.18), transparent 28%),
    linear-gradient(180deg, #12131a 0%, #0c0d12 52%, #14110d 100%);
}

body[data-theme="light"] {
  color-scheme: light;
  --panel: rgba(255, 255, 255, 0.72);
  --panel-strong: rgba(255, 255, 255, 0.9);
  --line: rgba(18, 33, 58, 0.12);
  --text: #141820;
  --muted: #5d6778;
  --eyebrow: #9a5b00;
  --shadow: 0 24px 60px rgba(29, 53, 87, 0.14);
  --page-bg:
    radial-gradient(circle at top left, rgba(245, 165, 36, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(127, 209, 255, 0.2), transparent 26%),
    linear-gradient(180deg, #fff8ef 0%, #eef6ff 52%, #f6f1e8 100%);
}

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

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

.marketing-page {
  position: relative;
  overflow-x: hidden;
}

.marketing-backdrop {
  position: fixed;
  inset: auto;
  border-radius: 999px;
  filter: blur(24px);
  opacity: 0.45;
  pointer-events: none;
}

.marketing-backdrop-left {
  top: 7rem;
  left: -6rem;
  width: 20rem;
  height: 20rem;
  background: rgba(245, 165, 36, 0.18);
}

.marketing-backdrop-right {
  top: 16rem;
  right: -7rem;
  width: 22rem;
  height: 22rem;
  background: rgba(127, 209, 255, 0.15);
}

body[data-theme="light"] .marketing-backdrop-left {
  background: rgba(245, 165, 36, 0.14);
}

body[data-theme="light"] .marketing-backdrop-right {
  background: rgba(127, 209, 255, 0.12);
}

.marketing-shell,
.marketing-main {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.marketing-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 2rem));
  top: 0.75rem;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0;
  padding: 0.95rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.brand img {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.9rem;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.24);
}

.brand span {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.brand strong {
  font-size: 0.98rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand em {
  color: var(--muted);
  font-size: 0.95rem;
  font-style: normal;
}

.marketing-nav-links {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  color: var(--muted);
}

.nav-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
}

body[data-theme="light"] .nav-menu-toggle {
  background: rgba(255, 255, 255, 0.58);
}

.nav-menu-line {
  display: block;
  width: 1rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-menu-toggle {
  gap: 0.22rem;
  flex-direction: column;
}

.marketing-nav[data-menu-open="true"] .nav-menu-line:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

.marketing-nav[data-menu-open="true"] .nav-menu-line:nth-child(2) {
  opacity: 0;
}

.marketing-nav[data-menu-open="true"] .nav-menu-line:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  cursor: pointer;
}

.theme-toggle span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.4rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  transition: background 220ms ease, color 220ms ease;
}

body[data-theme="light"] .theme-toggle-light,
body[data-theme="dark"] .theme-toggle-dark {
  background: var(--text);
  color: var(--panel-strong);
}

.nav-pill {
  padding: 0.8rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

body[data-theme="light"] .nav-pill,
body[data-theme="light"] .theme-toggle {
  background: rgba(255, 255, 255, 0.58);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2.5rem;
  align-items: center;
  padding: 8.75rem 0 4rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--eyebrow);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.workflow-copy h2,
.final-cta h2 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.94;
  letter-spacing: -0.045em;
}

.hero-text,
.feature-card p,
.workflow-copy p,
.workflow-card-copy p,
.final-cta p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin: 2rem 0 2.25rem;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.4rem;
  padding: 0 1.35rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #f5a524 0%, #ffd37e 100%);
  color: #1b1610;
  font-weight: 800;
  box-shadow: 0 18px 40px rgba(245, 165, 36, 0.25);
}

.secondary-link {
  color: var(--cool);
  font-weight: 700;
}

body[data-theme="light"] .secondary-link {
  color: #0b6fcc;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  max-width: 100%;
}

.metric {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1.3rem;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  min-width: 0;
}

.metric strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.7rem;
}

.metric span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.hero-collage {
  position: relative;
  min-height: 44rem;
  cursor: pointer;
}

.shot {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2rem;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.shot img,
.workflow-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-card img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.shot-tall {
  width: 17rem;
  aspect-ratio: 9 / 19.5;
}

.shot-wide {
  width: 18rem;
  aspect-ratio: 4 / 3.2;
}

.shot-primary {
  top: 1.5rem;
  left: 1.5rem;
  z-index: 4;
  transform: rotate(-8deg);
}

.shot-secondary {
  top: 0;
  right: 1.5rem;
  z-index: 3;
  transform: rotate(7deg);
}

.shot-tertiary {
  left: 7.5rem;
  top: 3.5rem;
  z-index: 1;
  opacity: 0.82;
  transform: rotate(2deg) scale(0.96);
}

.section {
  padding: 2rem 0 4rem;
}

.section-heading {
  max-width: 44rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
  text-align: center;
}

.section-heading-compact {
  max-width: 38rem;
}

.section-heading h2,
.workflow-copy h2,
.final-cta h2 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1;
}

.section-heading-compact h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.02;
}

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

.feature-card,
.workflow-card,
.final-cta {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.feature-card {
  min-height: 19rem;
  padding: 1.5rem;
  border-radius: 1.8rem;
  text-align: center;
}

.feature-kicker {
  margin: 0 0 0.9rem;
  color: var(--cool);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.feature-card h3,
.workflow-card-copy h3 {
  margin: 0 0 1rem;
  font-size: 1.65rem;
  line-height: 1.08;
}

.workflow-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.workflow-copy h2 {
  max-width: 18ch;
  font-size: clamp(1.85rem, 3.6vw, 2.9rem);
  line-height: 1.04;
}

.workflow-copy {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.workflow-copy .eyebrow {
  margin-bottom: 0.75rem;
}

.workflow-summary {
  max-width: 40rem;
  margin: 1.25rem auto 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
}

.workflow-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(320px, 1fr);
  gap: 1.2rem;
  padding: 1.25rem;
  border-radius: 2rem;
  min-height: 0;
  overflow: hidden;
}

.workflow-card-copy {
  align-self: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 18rem;
  margin: 0;
  padding: 0.75rem 0.5rem;
  text-align: left;
}

.workflow-card img {
  width: 100%;
  max-width: min(100%, 21rem);
  height: auto;
  justify-self: end;
  align-self: start;
  margin-right: 1.25rem;
  border-radius: 1.3rem;
}

.workflow-card-copy h3 {
  max-width: 11ch;
}

.workflow-card-copy p:last-child {
  max-width: 22rem;
  line-height: 1.75;
}

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

.gallery-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  min-height: 26rem;
}

.final-cta {
  display: grid;
  justify-items: center;
  padding: 3rem 1.5rem;
  border-radius: 2rem;
  text-align: center;
}

.final-cta p {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.site-footer {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0 3rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  text-align: center;
}

.site-footer-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.site-footer p {
  margin: 0;
}

.legal-shell {
  width: min(920px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 0 4rem;
}

.legal-nav {
  margin-bottom: 2rem;
}

.legal-nav .marketing-nav-links {
  justify-content: flex-end;
}

.legal-card {
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 2rem;
  background: var(--panel);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.legal-card h1 {
  margin: 0 0 1.5rem;
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 0.98;
}

.legal-card h2 {
  margin: 1.75rem 0 0.75rem;
  color: var(--text);
  font-size: 1.25rem;
}

.legal-card h3 {
  margin: 1.2rem 0 0.45rem;
  color: var(--text);
  font-size: 1rem;
}

.legal-card p {
  margin: 0 0 0.9rem;
  color: color-mix(in srgb, var(--text) 88%, var(--muted) 12%);
  line-height: 1.75;
}

.legal-card a,
.site-footer a {
  color: var(--cool);
}

.legal-card p + p {
  margin-top: -0.15rem;
}

@media (max-width: 1280px) {
  .workflow-band {
    grid-template-columns: 1fr;
  }

  .workflow-card {
    grid-template-columns: 1fr;
  }

  .workflow-card img {
    justify-self: start;
  }
}

@media (max-width: 1100px) {
  .hero,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 4rem;
  }

  .hero-collage {
    min-height: 36rem;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .marketing-shell,
  .marketing-main {
    width: min(100% - 1.25rem, 1180px);
  }

  .marketing-nav {
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    top: 0.5rem;
    width: min(calc(100% - 1rem), 1180px);
    padding: 0.72rem 0.78rem;
    border-radius: 1.15rem;
    transform: translateX(-50%);
  }

  .brand {
    gap: 0.7rem;
    min-width: 0;
  }

  .brand img {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.72rem;
  }

  .brand span {
    min-width: 0;
  }

  .brand strong {
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand em {
    display: none;
  }

  .nav-menu-toggle {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .marketing-nav-links {
    display: none;
    width: 100%;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 0.7rem;
    padding-top: 0.15rem;
    font-size: 0.92rem;
  }

  .marketing-nav[data-menu-open="true"] .marketing-nav-links {
    display: grid;
  }

  .legal-nav .marketing-nav-links {
    width: 100%;
    justify-content: flex-start;
  }

  .theme-toggle {
    width: 100%;
    justify-content: center;
    padding: 0.35rem;
  }

  .theme-toggle span {
    flex: 1 1 0;
    min-width: 0;
    padding: 0.36rem 0.58rem;
    font-size: 0.8rem;
  }

  .marketing-nav-links > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.9rem;
    padding: 0.7rem 0.95rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
  }

  body[data-theme="light"] .marketing-nav-links > a {
    background: rgba(255, 255, 255, 0.58);
  }

  .nav-pill {
    width: 100%;
    padding: 0.68rem 0.9rem;
    font-size: 0.84rem;
  }

  .hero {
    gap: 1.35rem;
    padding: 7.4rem 0 2.2rem;
  }

  .hero h1 {
    max-width: 8.4ch;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(2.35rem, 13vw, 3.35rem);
    line-height: 0.92;
  }

  .hero-text {
    max-width: 31rem;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.98rem;
    line-height: 1.62;
  }

  .site-footer-links {
    flex-wrap: wrap;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 0.85rem;
    margin: 1.45rem 0 1.5rem;
  }

  .primary-button {
    width: 100%;
  }

  .secondary-link {
    justify-self: center;
  }

  .metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
  }

  .metric {
    padding: 0.8rem 0.45rem;
    border-radius: 1rem;
  }

  .metric strong {
    font-size: 1.2rem;
  }

  .metric span {
    font-size: 0.72rem;
    line-height: 1.3;
  }

  .hero-collage {
    min-height: 18rem;
    max-width: 18.25rem;
    margin: 0 auto;
  }

  .shot-tall {
    width: 8.75rem;
  }

  .shot-wide {
    width: 12rem;
  }

  .shot-primary {
    top: 0.85rem;
    left: 0.55rem;
  }

  .shot-secondary {
    top: 0.1rem;
    right: 0.55rem;
  }

  .shot-tertiary {
    left: 4.1rem;
    top: 2.1rem;
  }

  .section {
    padding: 1.35rem 0 2.4rem;
  }

  .section-heading {
    margin-bottom: 1.25rem;
  }

  .section-heading h2,
  .workflow-copy h2,
  .final-cta h2 {
    font-size: clamp(2rem, 10vw, 2.8rem);
    line-height: 0.96;
  }

  .section-heading-compact {
    max-width: 21rem;
  }

  .section-heading-compact h2 {
    font-size: clamp(1.85rem, 9vw, 2.45rem);
  }

  .feature-grid {
    gap: 0.85rem;
  }

  .feature-card {
    min-height: 0;
    padding: 1.15rem 1rem;
    border-radius: 1.35rem;
  }

  .feature-kicker {
    margin-bottom: 0.7rem;
    font-size: 0.74rem;
  }

  .feature-card h3,
  .workflow-card-copy h3 {
    font-size: 1.38rem;
    line-height: 1.08;
  }

  .feature-card p,
  .workflow-copy p,
  .workflow-card-copy p,
  .final-cta p {
    font-size: 0.98rem;
    line-height: 1.62;
  }

  .workflow-band {
    gap: 0.95rem;
  }

  .workflow-summary {
    max-width: 100%;
    margin-top: 1rem;
    font-size: 1rem;
    line-height: 1.7;
  }

  .workflow-card {
    gap: 0.95rem;
    padding: 1rem;
    border-radius: 1.45rem;
  }

  .workflow-card-copy {
    align-self: start;
    max-width: none;
    padding: 0;
    text-align: center;
  }

  .workflow-card-copy h3,
  .workflow-card-copy p:last-child {
    max-width: none;
  }

  .workflow-card img {
    justify-self: center;
    align-self: start;
    max-width: min(100%, 15rem);
    margin-right: 0;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .gallery-card {
    padding: 0;
    min-height: 0;
  }

  .gallery-card img {
    width: 100%;
    height: auto;
    max-width: none;
    max-height: none;
  }

  .final-cta {
    padding: 2rem 1rem;
    border-radius: 1.45rem;
  }

  .legal-card {
    padding: 1.35rem;
  }
}

@media (max-width: 560px) {
  .marketing-shell,
  .marketing-main,
  .site-footer,
  .legal-shell {
    width: min(100% - 1rem, 1180px);
  }

  .hero {
    padding-top: 7.8rem;
  }

  .hero-collage {
    min-height: 16.5rem;
    max-width: 16.5rem;
  }

  .shot-tall {
    width: 7.95rem;
  }

  .shot-primary {
    left: 0.35rem;
    top: 0.75rem;
  }

  .shot-secondary {
    right: 0.35rem;
  }

  .shot-tertiary {
    left: 3.7rem;
    top: 1.85rem;
  }

  .metric {
    padding: 0.72rem 0.35rem;
  }

  .metric strong {
    font-size: 1.1rem;
  }

  .metric span {
    font-size: 0.68rem;
  }

  .workflow-card img {
    max-width: min(100%, 13.5rem);
  }
}
