:root {
  --background: hsl(210 20% 98%);
  --foreground: hsl(222 47% 11%);
  --primary: hsl(222 47% 11%);
  --secondary: hsl(173 58% 39%);
  --eyebrow: hsl(178 70% 24%);
  --surface: hsl(0 0% 100%);
  --border: hsl(214 32% 91%);
  --muted: hsl(215 16% 47%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(circle at top right, hsl(173 58% 95%), var(--background) 30%);
  color: var(--foreground);
  line-height: 1.5;
}

a {
  color: inherit;
}

.container {
  width: min(72rem, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav {
  min-height: 4.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.hero {
  padding: 4rem 0 3rem;
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--eyebrow);
  margin: 0 0 0.75rem;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
}

.lead {
  color: var(--muted);
  max-width: 45ch;
  margin: 1rem 0 1.5rem;
}

.button {
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-weight: 600;
  border-radius: 0.625rem;
  padding: 0.7rem 1rem;
  border: 1px solid transparent;
  transition: transform 150ms ease, opacity 150ms ease;
}

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

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

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

.hero-panel {
  background: linear-gradient(160deg, hsl(222 47% 15%), hsl(173 58% 34%));
  min-height: 16rem;
  border-radius: 1rem;
  position: relative;
  border: 1px solid color-mix(in srgb, white 15%, transparent);
  overflow: hidden;
}

.stack-card {
  width: 70%;
  height: 4.5rem;
  background: color-mix(in srgb, white 92%, transparent);
  border-radius: 0.75rem;
  position: absolute;
  left: 15%;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.18);
}

.stack-card-one {
  top: 2.2rem;
  transform: rotate(-4deg);
}

.stack-card-two {
  top: 5.7rem;
}

.stack-card-three {
  top: 9.3rem;
  transform: rotate(4deg);
}

.feature-section {
  padding: 2rem 0 4.25rem;
}

h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
}

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

.feature {
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  background: var(--surface);
  padding: 1.1rem;
}

.feature h3 {
  margin: 0 0 0.5rem;
}

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

.document-main {
  padding: 2.5rem 0 4rem;
}

.document-card {
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.document-card p {
  color: var(--muted);
}

.document-card h2 {
  margin-top: 1.4rem;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-row {
  min-height: 4.25rem;
  display: flex;
  gap: 0.75rem;
  flex-direction: column;
  justify-content: center;
  padding: 0.8rem 0;
}

.footer-copy {
  margin: 0;
  color: var(--muted);
}

.footer-nav {
  display: inline-flex;
  gap: 0.9rem;
}

.footer-nav a {
  text-decoration: none;
  color: var(--foreground);
}

.footer-nav a:hover {
  text-decoration: underline;
}

@media (min-width: 700px) {
  .hero-grid {
    grid-template-columns: 1.1fr 1fr;
    gap: 2.4rem;
  }

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

  .footer-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
