:root {
  --ink: #171717;
  --muted: #666a73;
  --line: #e7e3dc;
  --paper: #fbfaf7;
  --white: #fff;
  --green: #275d46;
  --gold: #c78b2c;
  --blue: #1e5a78;
  --red: #a8323a;
  --shadow: 0 18px 45px rgba(23, 23, 23, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 54px);
  background: rgba(251, 250, 247, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  font-weight: 800;
  letter-spacing: 0;
}

.nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.hero {
  min-height: 68vh;
  display: grid;
  align-items: center;
  padding: 72px clamp(18px, 5vw, 72px);
  background:
    linear-gradient(110deg, rgba(23, 23, 23, 0.78), rgba(23, 23, 23, 0.2)),
    url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1800&q=80");
  background-size: cover;
  background-position: center;
  color: white;
}

.hero-inner {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero p {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.5;
}

.section {
  padding: 70px clamp(18px, 5vw, 72px);
}

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

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: 0;
}

.section-title p {
  max-width: 470px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

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

.work-card {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  overflow: hidden;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.work-card figure {
  min-height: 180px;
  margin: 0;
  background-size: cover;
  background-position: center;
}

.card-body {
  padding: 20px;
}

.tag {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.work-card p,
.demo p {
  color: var(--muted);
  line-height: 1.55;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 12px;
  padding: 0 18px;
  border-radius: 6px;
  background: var(--ink);
  color: white;
  font-weight: 800;
}

.demo {
  border-top: 1px solid var(--line);
  background: white;
}

.demo-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 560px;
}

.demo-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 6vw, 80px);
}

.demo-copy h2 {
  max-width: 650px;
}

.demo-copy p {
  max-width: 560px;
  font-size: 17px;
}

.demo-image {
  min-height: 420px;
  background-size: cover;
  background-position: center;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 0 clamp(18px, 5vw, 72px) 60px;
}

.feature {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.feature strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.feature p {
  margin: 0;
}

.dark {
  background: #171717;
  color: white;
}

.dark p {
  color: rgba(255, 255, 255, 0.72);
}

.green .button,
.green-accent {
  background: var(--green);
}

.blue .button,
.blue-accent {
  background: var(--blue);
}

.red .button,
.red-accent {
  background: var(--red);
}

.gold .button,
.gold-accent {
  background: var(--gold);
  color: #171717;
}

.cta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 50px clamp(18px, 5vw, 72px);
  background: #171717;
  color: white;
}

.cta p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 980px) {
  .grid,
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .demo-hero {
    grid-template-columns: 1fr;
  }

  .section-title,
  .cta {
    align-items: start;
    grid-template-columns: 1fr;
    flex-direction: column;
  }
}

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

  .grid,
  .features {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 620px;
  }
}
