:root {
  color-scheme: light;
  --ink: #18202a;
  --muted: #627084;
  --paper: #f8fafc;
  --surface: #ffffff;
  --line: #dbe3ee;
  --green: #0f8a5f;
  --green-dark: #096746;
  --blue: #246bfe;
  --coral: #ec7357;
  --shadow: 0 22px 70px rgba(24, 32, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(36, 107, 254, 0.09), transparent 36%),
    linear-gradient(315deg, rgba(15, 138, 95, 0.12), transparent 34%),
    var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header,
main,
footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
}

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

.brand {
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font-size: 1rem;
}

nav {
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

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

nav a:hover,
.text-link:hover,
footer a:hover {
  color: var(--blue);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.65fr);
  align-items: center;
  gap: 56px;
  min-height: calc(100vh - 160px);
  padding: 34px 0 46px;
}

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

.eyebrow {
  margin: 0 0 14px;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.lede {
  max-width: 650px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 1.25rem;
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 800;
  text-decoration: none;
}

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

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

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.button.secondary:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.hero-panel,
.product-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 22px;
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.panel-grid span {
  aspect-ratio: 1;
  border-radius: 8px;
  background: var(--line);
}

.panel-grid span:nth-child(1),
.panel-grid span:nth-child(5) {
  background: var(--green);
}

.panel-grid span:nth-child(3) {
  background: var(--blue);
}

.panel-grid span:nth-child(4) {
  background: var(--coral);
}

.hero-panel p {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 600;
}

.products {
  display: grid;
  grid-template-columns: 0.7fr 1fr;
  gap: 36px;
  padding: 64px 0 90px;
  border-top: 1px solid var(--line);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

.product-card {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding: 28px;
}

.product-card h3 {
  margin-bottom: 10px;
  font-size: 1.55rem;
  line-height: 1.16;
}

.product-card p {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
}

.text-link {
  flex: 0 0 auto;
  color: var(--green-dark);
  font-weight: 800;
}

footer {
  justify-content: space-between;
  gap: 18px;
  padding: 28px 0 34px;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 780px) {
  .site-header,
  main,
  footer {
    width: min(100% - 28px, 1120px);
  }

  .site-header,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    flex-wrap: wrap;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: auto;
    padding: 32px 0 42px;
  }

  .hero-panel {
    display: none;
  }

  h1 {
    font-size: clamp(2.35rem, 11vw, 3.8rem);
  }

  .lede {
    font-size: 1.08rem;
  }

  .products {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 46px 0 64px;
  }

  .product-card {
    align-items: flex-start;
    flex-direction: column;
  }
}
