:root {
  --ink: #141414;
  --paper: #f6f4f0;
  --sand: #efe7dc;
  --orange: #d46b2a;
  --sky: #2b5a8f;
  --slate: #3c3f46;
  --white: #ffffff;
  --shadow: rgba(20, 20, 20, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Source Serif 4", "Georgia", serif;
  color: var(--ink);
  background: radial-gradient(circle at top, #ffffff 0%, var(--paper) 48%, var(--sand) 100%);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 12px 24px var(--shadow);
  background: var(--white);
}

.brand-name {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  margin: 0;
}

.brand-tagline {
  margin: 2px 0 0;
  color: var(--slate);
  font-size: 0.9rem;
}

.site-nav {
  display: flex;
  gap: 18px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  align-items: center;
}

.site-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.site-nav a:hover {
  background: rgba(43, 90, 143, 0.1);
  transform: translateY(-1px);
}

.nav-cta {
  background: var(--ink);
  color: var(--white);
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 36px 0 56px;
}

.hero-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: center;
}

.eyebrow {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--sky);
  margin-bottom: 12px;
}

.hero h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.2rem, 3vw, 3rem);
  margin: 0 0 16px;
}

.lead {
  font-size: 1.15rem;
  color: var(--slate);
  margin: 0 0 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

.btn {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 12px 30px rgba(20, 20, 20, 0.18);
}

.btn.ghost {
  border-color: var(--ink);
  color: var(--ink);
}

.btn:hover {
  transform: translateY(-2px);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  color: var(--slate);
  font-size: 0.95rem;
  align-items: stretch;
}

.metric-card {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 12px 24px var(--shadow);
  line-height: 1.4;
}

.metric {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--ink);
}

.hero-card {
  background: var(--white);
  border-radius: 22px;
  box-shadow: 0 20px 50px var(--shadow);
  padding: 18px;
}

.hero-gallery {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.hero-gallery img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: heroCycle 18s infinite;
}

.hero-gallery img:nth-child(1) {
  animation-delay: 0s;
}

.hero-gallery img:nth-child(2) {
  animation-delay: 6s;
}

.hero-gallery img:nth-child(3) {
  animation-delay: 12s;
}

.hero-card-caption {
  margin-top: 14px;
  font-size: 0.95rem;
  color: var(--slate);
}

@keyframes heroCycle {
  0% {
    opacity: 0;
    transform: scale(1.02);
  }
  8% {
    opacity: 1;
    transform: scale(1);
  }
  30% {
    opacity: 1;
  }
  38% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.8rem, 2.4vw, 2.4rem);
  margin: 0;
}

.feature-grid {
  padding: 40px 0;
}

.feature-grid .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.feature-grid article {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  padding: 20px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  margin-top: 14px;
  box-shadow: 0 12px 24px var(--shadow);
}

.feature-grid h3 {
  margin-top: 0;
  font-family: "Space Grotesk", sans-serif;
}

.feature-note {
  margin: 18px 0 0;
  color: var(--slate);
  font-size: 0.95rem;
  max-width: 880px;
}

.workflow {
  padding: 40px 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.step {
  background: var(--white);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 16px 40px var(--shadow);
}

.step-image {
  margin-top: 16px;
  border-radius: 16px;
  width: 100%;
  height: auto;
  box-shadow: 0 12px 24px var(--shadow);
}

.step-number {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  color: var(--orange);
  display: inline-block;
  margin-bottom: 10px;
}

.screens {
  padding: 40px 0;
}

.screens-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.screens figure {
  margin: 0;
  background: var(--white);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 18px 40px var(--shadow);
}

.screen-button {
  border: none;
  padding: 0;
  margin: 0;
  background: transparent;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  display: block;
  width: 100%;
}

.screen-button img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.25s ease;
}

.screen-button:hover img {
  transform: scale(1.02);
}

.screens figcaption {
  margin-top: 12px;
  font-size: 0.95rem;
  color: var(--slate);
}

.download {
  padding: 40px 0 20px;
}

.download-card {
  background: linear-gradient(135deg, rgba(212, 107, 42, 0.14), rgba(43, 90, 143, 0.14));
  border-radius: 24px;
  padding: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  align-items: center;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin-top: 40px;
  padding-top: 20px;
  color: var(--slate);
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-family: "Space Grotesk", sans-serif;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(12, 12, 12, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 50;
  padding: 24px;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-image {
  max-width: min(90vw, 1200px);
  max-height: 75vh;
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  font-family: "Space Grotesk", sans-serif;
  background: var(--white);
  color: var(--ink);
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  .hero-gallery img {
    animation: none;
    opacity: 0;
  }

  .hero-gallery img:first-child {
    opacity: 1;
  }
}

@media (max-width: 860px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    flex-wrap: wrap;
  }
}

@media (max-width: 600px) {
  .page {
    padding: 24px 16px 50px;
  }

  .hero {
    padding-top: 12px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (min-width: 900px) {
  .hero-metrics {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
  }
}
