:root {
  --background: #f7f6f3;
  --surface: #ffffff;
  --surface-muted: #fbfbfa;
  --text: #171717;
  --muted: #6d6a63;
  --border: #e5e2dc;
  --border-strong: #d6d2ca;
  --accent: #111111;
  --blue-bg: #e1f3fe;
  --blue-text: #1f6c9f;
  --green-bg: #edf3ec;
  --green-text: #346538;
  --yellow-bg: #fbf3db;
  --yellow-text: #956400;
  --red-bg: #fdebec;
  --red-text: #9f2f2d;
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family:
    "SF Pro Display",
    "Geist Sans",
    "Helvetica Neue",
    Arial,
    sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

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

.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px max(20px, calc((100vw - var(--max-width)) / 2));
  background: rgba(247, 246, 243, 0.9);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  background: var(--text);
  color: #fff;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 800;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.nav a,
.footer-inner a {
  text-decoration: none;
}

.nav a:hover,
.footer-inner a:hover,
.legal-content a:hover,
.cta-panel a:hover,
.contact-card a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero {
  position: relative;
  min-height: 620px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #111111;
}

.hero-background {
  position: absolute;
  inset: 0;
  background-image: url("./assets/app-preview.png");
  background-position: center;
  background-size: cover;
  opacity: 0.32;
  transform: scale(1.02);
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(10, 10, 9, 0.62);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  color: #ffffff;
  padding: 86px 0 72px;
}

.eyebrow {
  margin: 0 0 18px;
  color: inherit;
  font-family: "SF Mono", "Geist Mono", Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: rgba(255, 255, 255, 0.74);
}

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

h1,
h2 {
  font-family:
    "Newsreader",
    "Playfair Display",
    Georgia,
    serif;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 880px;
  margin-bottom: 24px;
  font-size: clamp(44px, 7.2vw, 82px);
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(34px, 5vw, 60px);
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.25;
}

.lead {
  max-width: 700px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(18px, 2.4vw, 24px);
  line-height: 1.45;
}

.hero-actions,
.cta-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.button:active {
  transform: scale(0.98);
}

.button-primary {
  background: var(--accent);
  color: #fff;
}

.hero .button-primary {
  background: #fff;
  color: #111;
}

.button-primary:hover {
  background: #333333;
}

.hero .button-primary:hover {
  background: #ece8de;
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
}

.button-secondary:hover {
  border-color: rgba(255, 255, 255, 0.64);
}

.section {
  padding: 108px 0;
}

.section-muted {
  background: var(--surface-muted);
  border-block: 1px solid var(--border);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(32px, 7vw, 92px);
  align-items: start;
}

.section-copy .eyebrow,
.legal-content .eyebrow,
.contact-hero .eyebrow,
.cta-panel .eyebrow {
  color: var(--muted);
}

.section-text,
.use-cases,
.contact-hero p,
.legal-content p,
.cta-panel p,
.contact-card p,
.contact-card li {
  color: var(--muted);
  font-size: 17px;
}

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

.feature-card,
.contact-card,
.cta-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.feature-card {
  min-height: 240px;
  padding: 28px;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
}

.feature-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  font-family: "SF Mono", "Geist Mono", Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge-blue {
  background: var(--blue-bg);
  color: var(--blue-text);
}

.badge-green {
  background: var(--green-bg);
  color: var(--green-text);
}

.badge-yellow {
  background: var(--yellow-bg);
  color: var(--yellow-text);
}

.badge-red {
  background: var(--red-bg);
  color: var(--red-text);
}

.product-shot {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.product-shot img {
  width: 100%;
  height: auto;
}

.use-cases {
  display: grid;
  gap: 24px;
}

.use-cases div {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.use-cases div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.cta-section {
  padding-top: 0;
}

.cta-panel {
  display: block;
  padding: clamp(30px, 5vw, 52px);
}

.cta-panel h2 {
  max-width: 860px;
}

.cta-panel p {
  max-width: 720px;
}

.cta-panel .button {
  margin-top: 8px;
}

.legal-page,
.contact-page {
  padding: 96px 0 112px;
}

.legal-content,
.contact-hero {
  max-width: 860px;
}

.legal-content h1,
.contact-hero h1 {
  color: var(--text);
  font-size: clamp(42px, 6vw, 72px);
}

.legal-content h2 {
  margin-top: 42px;
  font-family:
    "SF Pro Display",
    "Geist Sans",
    "Helvetica Neue",
    Arial,
    sans-serif;
  font-size: 22px;
  line-height: 1.25;
}

.legal-date {
  color: var(--muted);
  font-family: "SF Mono", "Geist Mono", Consolas, monospace;
  font-size: 13px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 16px;
  margin-top: 48px;
}

.contact-card {
  padding: 32px;
}

.contact-card ul {
  margin: 0;
  padding-left: 20px;
}

.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

.footer-inner p {
  margin: 0;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 600ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .feature-card,
  .button {
    transition: none;
  }
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: 600px;
  }

  .two-column,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .site-header {
    padding: 14px;
  }

  .nav {
    gap: 12px;
    font-size: 13px;
  }

  .hero-content {
    padding: 90px 0 76px;
  }

  h1 {
    font-size: 43px;
  }

  h2 {
    font-size: 34px;
  }

  .section {
    padding: 72px 0;
  }

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

  .feature-card {
    min-height: auto;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
