:root {
  --background: #f7f4ee;
  --surface: #ffffff;
  --surface-soft: #fbfaf7;
  --border: #d9d2c8;
  --border-strong: #cfc7bb;
  --foreground: #24282d;
  --muted: #626b78;
  --primary: #147f78;
  --primary-dark: #0f6863;
  --primary-soft: #e8f3f1;
  --warning: #b7791f;
  --success: #23845a;
  --danger: #c92a2a;
  --info: #2563a8;
  --shadow: 0 16px 40px rgba(36, 40, 45, 0.11);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 0 32px;
  border-bottom: 1px solid rgba(217, 210, 200, 0.82);
  background: rgba(247, 244, 238, 0.92);
  backdrop-filter: blur(16px);
}

.brand,
.nav-links,
.header-actions,
.hero-actions,
.site-footer,
.footer-links {
  display: flex;
  align-items: center;
}

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: var(--primary);
  color: white;
  font-size: 13px;
  font-weight: 800;
}

.nav-links {
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

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

.header-actions {
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

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

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

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

.button-secondary {
  border-color: var(--border);
  background: var(--surface);
  color: var(--foreground);
}

.button-secondary:hover {
  background: var(--surface-soft);
  border-color: var(--border-strong);
}

.hero {
  position: relative;
  min-height: calc(82vh - 68px);
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 74px 32px 88px;
  border-bottom: 1px solid var(--border);
  background: #efece6;
}

.hero-media {
  position: absolute;
  inset: auto 32px 58px auto;
  display: block;
  width: min(820px, 56vw);
  max-width: none;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  opacity: 0.94;
}

.hero-image {
  width: 100%;
  height: auto;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(640px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.cta-section h2 {
  margin: 0;
  color: var(--foreground);
  font-weight: 800;
  line-height: 1.04;
}

.hero h1 {
  font-size: clamp(52px, 8vw, 92px);
}

.hero-text {
  max-width: 540px;
  margin: 22px 0 0;
  color: #3f4750;
  font-size: clamp(19px, 2.4vw, 27px);
  line-height: 1.35;
  font-weight: 560;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  max-width: 1180px;
  margin: -48px auto 0;
  position: relative;
  z-index: 3;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--border);
  box-shadow: 0 10px 28px rgba(36, 40, 45, 0.08);
}

.metrics div {
  min-height: 118px;
  padding: 24px;
  background: var(--surface);
}

.metrics strong,
.metrics span {
  display: block;
}

.metrics strong {
  font-size: 17px;
}

.metrics span {
  margin-top: 9px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 96px 32px 0;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 28px;
}

.section-heading h2,
.cta-section h2 {
  font-size: clamp(34px, 4.4vw, 54px);
}

.section-heading p:not(.eyebrow),
.cta-section p:not(.eyebrow) {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.workflow-grid,
.feature-list {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.workflow-grid {
  grid-template-columns: repeat(4, 1fr);
}

.workflow-grid article,
.feature-list article,
.screenshot-card {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(36, 40, 45, 0.06);
}

.workflow-grid article {
  min-height: 214px;
  padding: 20px;
}

.workflow-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 30px;
  border-radius: 6px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
}

h3 {
  margin: 18px 0 8px;
  font-size: 19px;
}

.workflow-grid p,
.feature-list p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.58;
}

.product-section {
  padding-top: 108px;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  min-width: 0;
}

.screenshot-card {
  overflow: hidden;
  margin: 0;
}

.screenshot-card picture {
  width: 100%;
  min-width: 0;
}

.screenshot-card picture,
.screenshot-card img {
  display: block;
}

.screenshot-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: var(--surface-soft);
}

.screenshot-card figcaption {
  border-top: 1px solid var(--border);
  padding: 12px 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.screenshot-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  min-width: 0;
}

.features-section {
  padding-top: 104px;
}

.feature-list {
  grid-template-columns: repeat(3, 1fr);
}

.feature-list article {
  min-height: 164px;
  padding: 22px;
}

.feature-list h3 {
  margin-top: 0;
}

.cta-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  max-width: 1180px;
  margin: 104px auto 0;
  padding: 34px 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(36, 40, 45, 0.08);
}

.cta-section div {
  max-width: 740px;
}

.cta-section p:not(.eyebrow) {
  margin-bottom: 0;
}

.site-footer {
  justify-content: space-between;
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 32px 48px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer span:first-child {
  color: var(--foreground);
  font-weight: 800;
}

.footer-links {
  gap: 16px;
  color: var(--foreground);
  font-weight: 700;
}

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

.legal-main {
  max-width: 920px;
  margin: 0 auto;
  padding: 78px 32px 96px;
}

.legal-hero {
  margin-bottom: 30px;
}

.legal-hero h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1.02;
}

.legal-updated {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
}

.legal-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(36, 40, 45, 0.06);
}

.legal-section {
  padding: 28px 30px;
  border-top: 1px solid var(--border);
}

.legal-section:first-child {
  border-top: 0;
}

.legal-section h2 {
  margin: 0 0 14px;
  font-size: 24px;
  line-height: 1.15;
}

.legal-section h3 {
  margin: 24px 0 8px;
  font-size: 18px;
}

.legal-section p,
.legal-section li {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.68;
}

.legal-section p {
  margin: 0 0 14px;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section ul {
  margin: 0 0 16px;
  padding-left: 22px;
}

.legal-section a {
  color: var(--primary);
  font-weight: 750;
}

@media (max-width: 980px) {
  .site-header {
    padding: 0 20px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: auto;
    display: flex;
    flex-direction: column;
    padding: 38px 20px 34px;
  }

  .hero-media {
    position: relative;
    inset: auto;
    align-self: center;
    order: 2;
    width: min(100%, 520px);
    max-width: calc(100vw - 40px);
    margin-top: 28px;
  }

  .hero-copy {
    order: 1;
    width: 100%;
    max-width: 100%;
  }

  .hero-text {
    max-width: calc(100vw - 40px);
  }

  .metrics,
  .workflow-grid,
  .screenshot-grid,
  .screenshot-pair,
  .feature-list {
    grid-template-columns: 1fr;
  }

  .metrics {
    margin: -24px 20px 0;
  }

  .section {
    padding: 72px 20px 0;
  }

  .section-heading h2,
  .cta-section h2 {
    font-size: 34px;
    line-height: 1.08;
  }

  .cta-section {
    flex-direction: column;
    align-items: flex-start;
    margin: 72px 20px 0;
    padding: 24px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 20px 42px;
  }

  .legal-main {
    padding: 58px 20px 72px;
    overflow-x: hidden;
  }

  .legal-section {
    padding: 24px 22px;
  }

  .legal-card {
    max-width: 100%;
    overflow: hidden;
  }
}

@media (max-width: 560px) {
  .site-header {
    display: grid;
    grid-template-columns: minmax(0, max-content) minmax(0, 1fr);
    justify-content: stretch;
    gap: 12px;
    min-height: 56px;
    padding: 0 16px;
    width: 100%;
  }

  .header-actions {
    justify-self: end;
    margin-left: 0;
  }

  .site-header .button-primary {
    display: none;
  }

  .brand {
    gap: 8px;
    font-size: 16px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }

  .hero {
    padding: 30px 16px 28px;
  }

  .product-section {
    padding-top: 64px;
  }

  .section-heading {
    margin-bottom: 22px;
  }

  .section-heading h2,
  .cta-section h2 {
    font-size: 29px;
  }

  .section-heading p:not(.eyebrow),
  .cta-section p:not(.eyebrow) {
    font-size: 16px;
    line-height: 1.5;
  }

  .legal-main {
    padding: 48px 16px 64px;
  }

  .legal-hero h1 {
    font-size: 34px;
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  .legal-section {
    padding: 22px 18px;
  }

  .legal-section h2 {
    font-size: 22px;
  }

  .legal-section p,
  .legal-section li {
    overflow-wrap: anywhere;
  }

  .hero-media {
    align-self: center;
    width: min(340px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    margin-top: 24px;
  }

  .button {
    width: 100%;
  }

  .site-header .button {
    min-height: 36px;
    padding: 0 14px;
    width: auto;
    font-size: 14px;
  }

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

  .hero-text {
    font-size: 19px;
  }

  .hero-actions {
    align-items: stretch;
  }

  .metrics div {
    min-height: auto;
  }
}
