:root {
  --ink: #18211f;
  --muted: #62716c;
  --line: #dce4dc;
  --paper: #f6f5ee;
  --mint: #dceee5;
  --leaf: #1b7a5a;
  --leaf-dark: #0f4d3d;
  --amber: #f0b84b;
  --coral: #d96c52;
  --sky: #5b9bd5;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(19, 34, 31, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  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;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 28px;
  width: 100%;
  padding: 18px clamp(18px, 5vw, 72px);
  color: var(--white);
  transition: padding 180ms ease, background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.brand,
.nav-links,
.nav-cta {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.nav-links {
  gap: clamp(14px, 3vw, 34px);
  margin-left: auto;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.94rem;
  transition: color 180ms ease;
}

.nav-links a {
  transition: color 180ms ease;
}

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

.nav-cta {
  justify-content: center;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-weight: 800;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.site-header.is-scrolled {
  padding-top: 10px;
  padding-bottom: 10px;
  background: rgba(246, 245, 238, 0.96);
  box-shadow: 0 10px 28px rgba(19, 34, 31, 0.1);
  color: var(--ink);
}

.site-header.is-scrolled .brand-mark {
  border-color: rgba(27, 122, 90, 0.26);
  background: var(--leaf);
  color: var(--white);
}

.site-header.is-scrolled .nav-links {
  color: var(--muted);
}

.site-header.is-scrolled .nav-links a:hover {
  color: var(--leaf-dark);
}

.site-header.is-scrolled .nav-cta {
  border-color: var(--leaf-dark);
  background: var(--leaf-dark);
  color: var(--white);
}

.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: clamp(28px, 6vw, 96px);
  overflow: hidden;
  padding: clamp(128px, 17vh, 188px) clamp(18px, 5vw, 72px) 178px;
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(14, 47, 41, 0.98) 0%, rgba(16, 75, 60, 0.96) 48%, rgba(31, 94, 89, 0.92) 100%),
    #12332d;
}

.hero-background,
.hero-grid {
  position: absolute;
  inset: 0;
}

.hero-background {
  overflow: hidden;
}

.hero-grid {
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 56px 56px;
  transform: rotate(-3deg) scale(1.08);
}

.hero-content,
.app-preview,
.hero-stats {
  position: relative;
  z-index: 2;
}

.hero-content {
  align-self: center;
  max-width: 780px;
}

.eyebrow,
.section-label {
  margin: 0 0 14px;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 7vw, 6.35rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.02rem, 2vw, 1.25rem);
}

.hero-actions,
.contact {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 900;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.button.primary {
  background: var(--amber);
  color: #17201c;
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: var(--white);
}

.button.dark {
  background: var(--leaf-dark);
  color: var(--white);
}

.app-preview {
  align-self: center;
  display: flex;
  justify-content: center;
}

.app-preview picture {
  display: block;
  width: min(100%, 680px);
}

.hero-product {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.hero-stats {
  position: absolute;
  right: clamp(18px, 5vw, 72px);
  bottom: 0;
  left: clamp(18px, 5vw, 72px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(10, 36, 31, 0.88);
}

.hero-stats article {
  min-height: 150px;
  padding: 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-stats article:last-child {
  border-right: 0;
}

.hero-stats span,
.card-icon,
.timeline span {
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 900;
}

.hero-stats strong {
  display: block;
  margin: 6px 0 8px;
  font-size: 1rem;
}

.hero-stats p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.intro,
.features,
.workflow,
.use-cases,
.contact {
  padding: clamp(64px, 9vw, 116px) clamp(18px, 5vw, 72px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 1fr);
  gap: clamp(28px, 6vw, 96px);
  background: var(--white);
}

.intro h2,
.section-heading h2,
.workflow h2,
.contact h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

.intro > p,
.workflow-copy p,
.contact p {
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.16rem);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}

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

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

.feature-card,
.use-case-grid article {
  min-height: 245px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(19, 34, 31, 0.06);
}

.feature-card h3,
.use-case-grid h3 {
  margin: 22px 0 12px;
  font-size: 1.25rem;
}

.feature-card p,
.use-case-grid p {
  color: var(--muted);
}

.workflow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  gap: clamp(36px, 8vw, 118px);
  background: var(--mint);
}

.workflow-copy {
  max-width: 760px;
}

.workflow-copy h2 {
  margin-bottom: 24px;
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline div {
  padding: 24px;
  border-left: 4px solid var(--leaf);
  border-radius: 0 8px 8px 0;
  background: var(--white);
  box-shadow: var(--shadow);
}

.timeline p {
  margin: 8px 0 0;
  color: var(--muted);
}

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.use-case-grid article {
  min-height: 210px;
  border-top: 5px solid var(--coral);
}

.contact {
  justify-content: space-between;
  background: var(--white);
  border-top: 1px solid var(--line);
}

.contact > div {
  max-width: 760px;
}

.contact h2 {
  margin-bottom: 22px;
}

@media (max-width: 1020px) {
  .nav-links {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-bottom: 300px;
  }

  .app-preview {
    justify-content: flex-start;
  }

  .hero-stats,
  .intro,
  .workflow {
    grid-template-columns: 1fr;
  }

  .hero-stats article {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .hero-stats article:last-child {
    border-bottom: 0;
  }

  .feature-grid,
  .use-case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    gap: 12px;
    padding: 14px 16px;
  }

  .brand span:last-child {
    max-width: 112px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-cta {
    margin-left: auto;
    min-height: 38px;
    padding: 0 10px;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  .hero {
    display: block;
    padding: 104px 16px 0;
  }

  h1 {
    font-size: clamp(2.35rem, 12vw, 3.4rem);
    line-height: 1;
  }

  .eyebrow,
  .section-label {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
  }

  .hero-copy {
    margin-bottom: 24px;
    font-size: 1rem;
  }

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

  .button {
    width: 100%;
  }

  .app-preview {
    margin-top: 28px;
  }

  .hero-product {
    width: 100%;
    border-radius: 12px;
  }

  .hero-stats {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    grid-template-columns: 1fr;
    margin: 22px -16px 0;
  }

  .hero-stats article {
    padding: 16px;
  }

  .intro,
  .features,
  .workflow,
  .use-cases,
  .contact {
    padding: 52px 16px;
  }

  .intro h2,
  .section-heading h2,
  .workflow h2,
  .contact h2 {
    font-size: clamp(1.85rem, 10vw, 2.55rem);
    line-height: 1.05;
  }

  .section-heading {
    display: block;
    margin-bottom: 24px;
  }

  .feature-grid,
  .use-case-grid {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .use-case-grid article {
    min-height: auto;
    padding: 22px;
  }

  .timeline div {
    padding: 20px;
    box-shadow: 0 14px 34px rgba(19, 34, 31, 0.1);
  }

  .contact {
    align-items: stretch;
  }
}

@media (max-width: 380px) {
  .site-header {
    gap: 8px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand span:last-child {
    max-width: 94px;
  }

  .nav-cta {
    max-width: 118px;
    padding: 0 8px;
    font-size: 0.76rem;
  }
}
