:root {
  --bg: #15120e;
  --bg-2: #1c1813;
  --surface: #221d17;
  --border: #3a3329;
  --text: #f3ead9;
  --muted: #b3a58f;
  --amber: #e2a52b;
  --amber-2: #c98a1b;
  --blue: #1c7ed6;
  --radius: 14px;
  color-scheme: dark;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: radial-gradient(1200px 600px at 80% -10%, #3a2a14 0%, transparent 60%), var(--bg);
  line-height: 1.55;
}
a {
  color: var(--amber);
}
h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0 0 0.6em;
}
main,
.nav,
.footer {
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: 20px;
}

/* nav */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 18px;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text);
  text-decoration: none;
}
.nav nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav nav a:not(.btn) {
  color: var(--muted);
  text-decoration: none;
}
.nav nav a:not(.btn):hover {
  color: var(--text);
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.3rem;
  border-radius: 10px;
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--amber);
  color: #1b1408;
}
.btn-primary:hover {
  background: #f0b53d;
}
.btn-primary:disabled {
  opacity: 0.6;
}
.btn-ghost {
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover {
  background: var(--surface);
}

/* hero */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding-block: 56px 40px;
}
.eyebrow {
  color: var(--amber);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin: 0 0 12px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  letter-spacing: -0.02em;
}
.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 34em;
}
.cta {
  display: flex;
  gap: 12px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.hero-art {
  position: relative;
  min-height: 380px;
}
.mock {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 30px 60px rgb(0 0 0 / 0.45);
}
.mock-scan {
  width: 260px;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mock-kegid {
  font-family: ui-monospace, Menlo, monospace;
  font-weight: 800;
  font-size: 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mock-row {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.95rem;
}
.mock-row b {
  color: var(--text);
}
.mock-btn {
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  font-size: 1.05rem;
}
.mock-btn.ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  padding: 12px;
}
.mock-tank {
  width: 260px;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tank-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.tank-top span {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.tank-beer {
  font-weight: 700;
  font-size: 1.1rem;
}
.tank-meta {
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  gap: 8px;
  align-items: center;
}
.pill {
  background: #1098ad;
  color: #fff;
  border-radius: 999px;
  padding: 1px 9px;
  font-size: 0.75rem;
  font-weight: 700;
}
.bar {
  height: 10px;
  background: var(--bg-2);
  border-radius: 99px;
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--amber), var(--amber-2));
}
.tank-vol span {
  color: var(--muted);
}

/* keg cycle */
.states {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 26px;
  margin-block: 10px 30px;
  border-block: 1px solid var(--border);
}
.state {
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.95rem;
}
.mock-kegid .state {
  font-family: system-ui, sans-serif;
  font-size: 0.8rem;
  padding: 4px 12px;
}
.s-clean {
  background: #2f9e44;
}
.s-full {
  background: #1c7ed6;
}
.s-tap {
  background: #f59f00;
}
.s-dirty {
  background: #868e96;
}
.arrow {
  color: var(--muted);
  font-size: 1.3rem;
}

/* features */
.features,
.how,
.access {
  padding-block: 50px;
}
.features h2,
.how h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  text-align: center;
  margin-bottom: 32px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.grid article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.grid h3 {
  font-size: 1.1rem;
  color: var(--amber);
}
.grid p {
  margin: 0;
  color: var(--muted);
}

.how ol {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0 auto;
  max-width: 720px;
  display: grid;
  gap: 16px;
}
.how li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
  color: var(--muted);
  font-size: 1.05rem;
}
.how li::before {
  content: counter(step);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--amber);
  color: #1b1408;
  font-weight: 800;
}
.how li p {
  margin: 0;
  padding-top: 0.55rem;
}
.how li b {
  color: var(--text);
}

/* access form */
.access {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  margin-bottom: 50px;
}
.access h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}
.access p {
  color: var(--muted);
}
.form {
  display: grid;
  gap: 14px;
}
.form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
}
.opt {
  color: var(--muted);
  font-weight: 400;
}
.form input,
.form textarea {
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  width: 100%;
}
.form input:focus,
.form textarea:focus {
  outline: 2px solid var(--amber);
  outline-offset: 1px;
}
.form .btn {
  justify-self: start;
}
.hp {
  position: absolute;
  left: -9999px;
}
.form-status {
  margin: 0;
  min-height: 1.4em;
}
.form-status.ok {
  color: #69db7c;
}
.form-status.err {
  color: #ff8787;
}

.footer {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  padding-block: 28px 40px;
  border-top: 1px solid var(--border);
}

@media (max-width: 860px) {
  .hero,
  .access {
    grid-template-columns: 1fr;
  }
  .hero-art {
    min-height: 420px;
    max-width: 420px;
    width: 100%;
    margin-inline: auto;
  }
  .grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .nav nav a:not(.btn) {
    display: none;
  }
  .grid,
  .form .row {
    grid-template-columns: 1fr;
  }
  .access {
    padding: 22px;
  }
  .mock-scan,
  .mock-tank {
    width: 230px;
  }
}
