:root {
  color-scheme: light;
  --ink: #1d2733;
  --muted: #667281;
  --line: #dfe6ee;
  --paper: #fffaf0;
  --surface: #ffffff;
  --blue: #2777d9;
  --green: #23a66f;
  --coral: #ef6f61;
  --gold: #f4b942;
  --violet: #7657d8;
  --shadow: 0 18px 55px rgba(29, 39, 51, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #f5fbff 0%, var(--paper) 58%, #fff 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(39, 119, 217, 0.18);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(39, 119, 217, 0.12);
}

.mini-bottle {
  width: 16px;
  height: 27px;
  border: 2px solid var(--ink);
  border-radius: 5px 5px 8px 8px;
  background:
    linear-gradient(to top, var(--green) 0 35%, var(--gold) 35% 62%, var(--coral) 62% 100%);
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a {
  text-decoration: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
  align-items: center;
  gap: 42px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 66px 0 78px;
}

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 700px;
  font-size: clamp(2.55rem, 6vw, 5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

h3 {
  font-size: 1.15rem;
}

.lead {
  max-width: 630px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.15rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

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

.puzzle-art {
  min-height: 420px;
  border: 1px solid rgba(29, 39, 51, 0.08);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 14%, rgba(244, 185, 66, 0.34), transparent 29%),
    radial-gradient(circle at 78% 24%, rgba(35, 166, 111, 0.24), transparent 28%),
    linear-gradient(145deg, #ffffff 0%, #edf7ff 100%);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.shelf {
  position: absolute;
  left: 7%;
  right: 7%;
  bottom: 44px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(29, 39, 51, 0.16), rgba(29, 39, 51, 0.06));
}

.bottle-row {
  position: absolute;
  left: 9%;
  right: 9%;
  bottom: 58px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  gap: 16px;
}

.bottle {
  height: 210px;
  border: 4px solid rgba(29, 39, 51, 0.8);
  border-top-width: 3px;
  border-radius: 18px 18px 28px 28px;
  background: #ffffff;
  overflow: hidden;
  position: relative;
}

.bottle::before {
  content: "";
  position: absolute;
  left: 24%;
  right: 24%;
  top: -3px;
  height: 24px;
  border: 3px solid rgba(29, 39, 51, 0.8);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: #fff;
}

.fill {
  position: absolute;
  inset: 34px 0 0;
  background: var(--stack);
}

.tilted {
  transform: rotate(-15deg) translateY(-32px);
}

.section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0;
}

.section-heading {
  max-width: 720px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.card {
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(29, 39, 51, 0.06);
}

.card p,
.content-card p,
.content-card li {
  color: var(--muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
  counter-reset: step;
}

.step {
  border-left: 4px solid var(--blue);
  padding: 6px 0 6px 20px;
  counter-increment: step;
}

.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  color: var(--blue);
  font-weight: 900;
  margin-bottom: 8px;
}

.content-page {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 82px;
}

.content-card {
  margin-top: 26px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(29, 39, 51, 0.06);
}

.content-card h2 {
  margin-top: 34px;
  font-size: 1.45rem;
}

.content-card h2:first-child {
  margin-top: 0;
}

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

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

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

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

  .hero {
    padding-top: 36px;
  }

  .puzzle-art {
    min-height: 360px;
  }

  .bottle-row {
    gap: 10px;
  }

  .bottle {
    height: 174px;
  }
}
