:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #5f6b7a;
  --line: #dfe5ee;
  --surface: #ffffff;
  --surface-soft: #f6f8fb;
  --sky: #d9eaff;
  --mint: #bcefdc;
  --coral: #ffb4a2;
  --blue: #3978f6;
  --shadow: 0 24px 80px rgba(17, 24, 39, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--surface);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

body {
  margin: 0;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 64px;
  padding: 0 clamp(18px, 4vw, 44px);
  border-bottom: 1px solid rgba(17, 24, 39, 0.06);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(20px);
}

.brand,
.nav-links,
.nav-cta {
  font-size: 0.98rem;
  font-weight: 750;
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
}

.brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background:
    linear-gradient(135deg, #111827 0 50%, transparent 50%),
    linear-gradient(315deg, #3978f6 0 50%, #9ee7ce 50%);
}

.nav-links {
  display: inline-flex;
  align-items: center;
  gap: clamp(22px, 3vw, 44px);
  justify-self: center;
  color: #374151;
}

.nav-links a,
.nav-cta {
  text-decoration: none;
}

.nav-cta {
  justify-self: end;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 999px;
  background: #111827;
  color: #ffffff;
}

.brand:focus-visible,
.nav-links a:focus-visible,
.nav-cta:focus-visible {
  outline: 3px solid rgba(57, 120, 246, 0.32);
  outline-offset: 4px;
}

main {
  overflow: hidden;
}

.hero {
  min-height: calc(100svh - 64px);
  display: grid;
  gap: clamp(44px, 6vw, 82px);
  align-content: start;
  padding: clamp(42px, 7vw, 82px) clamp(18px, 4vw, 44px) clamp(36px, 6vw, 72px);
  background: #fbfaf7;
}

.hero-copy {
  display: grid;
  justify-items: center;
  max-width: 980px;
  justify-self: center;
  text-align: center;
}

.eyebrow {
  margin: 0 0 16px;
  color: #1f6f62;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(3.3rem, 7.4vw, 7.9rem);
  line-height: 0.96;
  letter-spacing: 0;
  max-width: 1040px;
  text-align: center;
}

.hero-subcopy {
  margin: 26px auto 0;
  max-width: 720px;
  color: #334155;
  font-size: clamp(1.1rem, 1.8vw, 1.38rem);
  line-height: 1.48;
  text-align: center;
}

.primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 34px;
  padding: 0 22px;
  border: 1px solid #0f172a;
  border-radius: 8px;
  background: #0f172a;
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
}

.primary-cta:focus-visible {
  outline: 3px solid rgba(57, 120, 246, 0.38);
  outline-offset: 3px;
}

.flow-visual {
  position: relative;
  width: min(100%, 1680px);
  min-height: min(67vh, 720px);
  display: grid;
  grid-template-columns: minmax(180px, 0.62fr) minmax(220px, 0.68fr) minmax(460px, 1.7fr);
  gap: clamp(18px, 2.4vw, 34px);
  align-items: center;
  justify-self: center;
  padding: clamp(22px, 3.4vw, 46px);
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.9)),
    radial-gradient(circle at 18% 12%, rgba(188, 239, 220, 0.55), transparent 32%),
    radial-gradient(circle at 84% 8%, rgba(217, 234, 255, 0.94), transparent 38%),
    #f3f1eb;
  box-shadow: 0 30px 100px rgba(17, 24, 39, 0.15);
  backdrop-filter: blur(18px);
}

.flow-column {
  min-width: 0;
}

.flow-label {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
}

.raw-stack {
  position: relative;
  height: 470px;
}

.raw-shot {
  position: absolute;
  width: min(164px, 42vw);
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 14px 36px rgba(17, 24, 39, 0.16);
  animation: rawIn 9s ease-in-out infinite;
}

.raw-shot-one {
  top: 8px;
  left: 0;
  z-index: 3;
}

.raw-shot-two {
  top: 88px;
  left: 44px;
  z-index: 2;
  animation-delay: 0.2s;
}

.raw-shot-three {
  top: 168px;
  left: 12px;
  z-index: 1;
  animation-delay: 0.4s;
}

.decision-box {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(17, 24, 39, 0.09);
}

.decision-box span {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--surface-soft);
  color: #334155;
  font-size: 0.94rem;
  font-weight: 750;
  animation: decisionPulse 9s ease-in-out infinite;
}

.decision-box span:nth-child(2) {
  animation-delay: 0.35s;
}

.decision-box span:nth-child(3) {
  animation-delay: 0.7s;
}

.output-strip {
  position: relative;
  min-height: 570px;
}

.generated-shot {
  position: absolute;
  top: 0;
  width: min(255px, 27vw);
  aspect-ratio: 1320 / 2868;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(17, 24, 39, 0.18);
  animation: generatedIn 9s ease-in-out infinite;
}

.generated-shot-one {
  left: 0;
  z-index: 2;
}

.generated-shot-two {
  left: 30%;
  top: 30px;
  z-index: 3;
  animation-delay: 0.25s;
}

.generated-shot-three {
  right: 0;
  top: 62px;
  z-index: 1;
  animation-delay: 0.5s;
}

.output-caption {
  margin: 18px 0 0;
  color: #1f6f62;
  font-weight: 850;
}

.content-band {
  padding: clamp(64px, 10vw, 120px) clamp(24px, 6vw, 84px);
  background: var(--surface);
}

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

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.6rem);
  line-height: 1;
  letter-spacing: 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 42px;
}

.steps-grid article {
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.steps-grid span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: var(--mint);
  color: #0f513f;
  font-weight: 900;
}

h3 {
  margin: 24px 0 10px;
  font-size: 1.42rem;
  line-height: 1.1;
}

.steps-grid p,
.zero-copy p,
.final-cta p {
  color: var(--muted);
  line-height: 1.55;
}

.split-band {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(300px, 1fr);
  gap: clamp(28px, 5vw, 80px);
  background: #111827;
  color: #ffffff;
}

.split-band .eyebrow {
  color: var(--mint);
}

.zero-copy {
  max-width: 680px;
}

.zero-copy p {
  margin: 0;
  color: #dbe6f3;
  font-size: clamp(1.05rem, 1.4vw, 1.24rem);
}

.zero-copy ul {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.zero-copy li {
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  font-weight: 800;
}

.final-cta {
  min-height: 62vh;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: clamp(64px, 10vw, 120px) 24px;
  text-align: center;
  background:
    linear-gradient(130deg, rgba(255, 180, 162, 0.34), rgba(217, 234, 255, 0.82)),
    #ffffff;
}

.final-cta h2 {
  max-width: 820px;
}

.final-cta p {
  max-width: 560px;
  margin: 22px 0 0;
}

@keyframes rawIn {
  0%,
  100% {
    opacity: 0.74;
    transform: translate3d(-14px, 10px, 0) rotate(-3deg) scale(0.96);
  }
  16%,
  78% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
}

@keyframes decisionPulse {
  0%,
  18%,
  100% {
    background: var(--surface-soft);
    color: #64748b;
  }
  32%,
  72% {
    background: #e8f6ef;
    color: #0f513f;
  }
}

@keyframes generatedIn {
  0%,
  32%,
  100% {
    opacity: 0;
    transform: translate3d(24px, 28px, 0) scale(0.94);
  }
  46%,
  86% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@media (max-width: 1180px) {
  .flow-visual {
    min-height: 640px;
    grid-template-columns: minmax(150px, 0.58fr) minmax(190px, 0.64fr) minmax(360px, 1.42fr);
  }

  .raw-shot {
    width: 142px;
  }

  .generated-shot {
    width: min(210px, 27vw);
  }
}

@media (max-width: 780px) {
  .site-header {
    grid-template-columns: 1fr auto;
    min-height: 58px;
    padding: 0 16px;
  }

  .nav-links {
    display: none;
  }

  .nav-cta {
    min-height: 34px;
    padding: 0 13px;
    font-size: 0.9rem;
  }

  .hero {
    min-height: auto;
    gap: 34px;
    padding: 34px 16px 40px;
  }

  h1 {
    font-size: clamp(3rem, 14vw, 4.8rem);
  }

  .hero-subcopy {
    font-size: 1.04rem;
  }

  .flow-visual {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 16px;
  }

  .raw-stack {
    height: 260px;
  }

  .raw-shot {
    width: 118px;
  }

  .raw-shot-one {
    left: 10%;
  }

  .raw-shot-two {
    top: 44px;
    left: calc(50% - 58px);
  }

  .raw-shot-three {
    top: 88px;
    left: auto;
    right: 10%;
  }

  .output-strip {
    min-height: 340px;
  }

  .generated-shot {
    width: 32%;
  }

  .generated-shot-two {
    left: 34%;
    top: 20px;
  }

  .generated-shot-three {
    top: 40px;
  }

  .steps-grid,
  .split-band {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .generated-shot {
    opacity: 1;
    transform: none;
  }
}
