/* Expert Vending — design tokens */
:root {
  --graphite: #1B1E21;
  --paper: #EDEAE4;
  --steel: #4C5760;
  --amber: #E8A33D;
  --ink: #14171A;

  --font-display: 'Oswald', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --wrap: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0;
}

p { margin: 0; }

a { color: inherit; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}

.btn-primary {
  background: var(--amber);
  color: var(--graphite);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #f0af4f;
}

/* Header */
.site-header {
  background: var(--graphite);
  border-bottom: 1px solid #2c3034;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}

.wordmark {
  font-family: var(--font-display);
  color: var(--paper);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.12em;
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  color: var(--paper);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  opacity: 0.85;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.nav a:hover,
.nav a:focus-visible {
  opacity: 1;
  border-bottom-color: var(--amber);
}

/* Hero */
.hero {
  background: radial-gradient(95% 130% at 82% 8%, #24282D 0%, var(--graphite) 55%);
  color: var(--paper);
  padding: 64px 0 80px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  font-family: var(--font-mono);
  color: var(--amber);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.hero-copy h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
  color: var(--paper);
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.05rem;
  color: #C7C2B8;
  max-width: 46ch;
  margin-bottom: 28px;
}

/* Vending machine illustration */
.machine {
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.012) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, #34393F 0%, #24282D 8%, #202428 60%, #1A1D21 100%);
  border: 1px solid #3A4046;
  border-radius: 10px;
  padding: 14px 14px 12px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.07),
    0 24px 48px -18px rgba(0,0,0,0.6);
}

.machine-fascia {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 4px 12px;
}

.fascia-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 8px rgba(232, 163, 61, 0.7);
}

.fascia-label {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  color: #B8C0C8;
}

.fascia-unit {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: #6B7680;
}

.machine-body {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 12px;
}

/* Glass window */
.machine-window {
  position: relative;
  background: linear-gradient(170deg, #17191C 0%, #101214 100%);
  border: 1px solid #3A4046;
  border-radius: 6px;
  overflow: hidden;
}

.window-art {
  display: block;
  width: 100%;
  height: 100%;
}

.window-glare {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 42%, rgba(255,255,255,0.045) 46%, rgba(255,255,255,0.01) 55%, transparent 58%);
  pointer-events: none;
}

.shelf-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  fill: #6B7680;
}

.shelf-line {
  stroke: #3A4046;
  stroke-width: 1.5;
}

.coil ellipse {
  fill: none;
  stroke: #4C5760;
  stroke-width: 1.2;
}

.prod {
  fill: #2E343A;
  stroke: #4C5760;
  stroke-width: 1;
}

.prod-lid {
  fill: #3A4046;
  stroke: none;
}

.prod-mark {
  fill: none;
  stroke: #6B7680;
  stroke-width: 1.2;
  stroke-linejoin: round;
}

.prod-seam {
  stroke: #4C5760;
  stroke-width: 1;
}

.shelf {
  transition: opacity 0.3s ease;
}

.shelf.is-lit .prod {
  stroke: var(--amber);
}

.shelf.is-lit .prod-mark {
  stroke: var(--amber);
}

.shelf.is-lit .shelf-tag {
  fill: var(--amber);
}

.machine.has-selection .shelf:not(.is-lit) {
  opacity: 0.45;
}

@media (prefers-reduced-motion: reduce) {
  .shelf { transition: none; }
}

/* Keypad column */
.machine-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.sel-btn {
  font-family: var(--font-body);
  background: linear-gradient(180deg, #2E343A 0%, #262B30 100%);
  border: 1px solid #3A4046;
  border-radius: 4px;
  padding: 10px 10px 9px;
  color: #9BA3AB;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

@media (prefers-reduced-motion: reduce) {
  .sel-btn { transition: none; }
}

.sel-btn:hover {
  border-color: #5C6770;
}

.sel-btn:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

.sel-code {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1rem;
  color: #B8C0C8;
}

.sel-label {
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

.sel-btn.is-active {
  background: #3A2E19;
  border-color: var(--amber);
  color: var(--paper);
  box-shadow: 0 0 0 1px var(--amber), 0 0 18px rgba(232, 163, 61, 0.35);
}

.sel-btn.is-active .sel-code {
  color: var(--amber);
}

.sel-btn.is-dim {
  opacity: 0.55;
}

/* Display screen */
.display-screen {
  position: relative;
  background: radial-gradient(120% 140% at 50% 0%, #1A1E22 0%, var(--ink) 70%);
  border: 1px solid #2c3034;
  border-radius: 4px;
  padding: 14px 16px;
  min-height: 118px;
  box-shadow: inset 0 0 24px rgba(0,0,0,0.55);
}

.display-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 22px;
  height: 22px;
  color: var(--amber);
  opacity: 0.9;
}

.display-icon svg {
  width: 100%;
  height: 100%;
}

.display-icon svg[hidden] {
  display: none;
}

.display-code,
.display-text {
  margin-right: 30px;
}

.display-code {
  display: block;
  font-family: var(--font-mono);
  color: var(--amber);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin-bottom: 7px;
  text-shadow: 0 0 10px rgba(232, 163, 61, 0.45);
}

.display-text {
  color: var(--paper);
  font-size: 0.83rem;
  line-height: 1.45;
}

/* Coin slot hardware */
.machine-hardware {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 2px 4px 0;
  margin-top: auto;
}

.coin-slot {
  width: 5px;
  height: 22px;
  border-radius: 2px;
  background: #101214;
  border: 1px solid #3A4046;
  box-shadow: inset 0 0 4px rgba(0,0,0,0.8);
}

.coin-return {
  width: 26px;
  height: 12px;
  border-radius: 3px;
  background: #101214;
  border: 1px solid #3A4046;
}

/* Delivery tray */
.machine-tray {
  margin-top: 12px;
  background: linear-gradient(180deg, #16181B 0%, #101214 100%);
  border: 1px solid #33383D;
  border-radius: 5px;
  padding: 9px;
  display: flex;
  justify-content: center;
}

.tray-flap {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #6B7680;
  border: 1px solid #33383D;
  border-radius: 3px;
  padding: 5px 38px;
  background: linear-gradient(180deg, #24282D 0%, #1B1E21 100%);
}

/* Process */
.process {
  padding: 88px 0;
}

.process h2 {
  font-size: 1.9rem;
  color: var(--ink);
  margin-bottom: 40px;
}

.process-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.process-item {
  border-top: 2px solid var(--steel);
  padding-top: 20px;
}

.process-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.process-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 4px;
  background: var(--graphite);
  color: var(--amber);
  flex-shrink: 0;
}

.process-icon svg {
  width: 22px;
  height: 22px;
}

.process-num {
  font-family: var(--font-mono);
  color: var(--steel);
  font-size: 0.9rem;
}

.process-item h3 {
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 12px;
}

.process-item p {
  color: var(--steel);
  font-size: 0.98rem;
}

/* Stock variety */
.stock {
  background: linear-gradient(180deg, #1E2226 0%, var(--graphite) 30%, #17191C 100%);
  color: var(--paper);
  padding: 80px 0;
}

.stock h2 {
  font-size: 1.9rem;
  color: var(--paper);
  margin-bottom: 32px;
}

.coil-rows {
  border-top: 1px solid #33383D;
}

.coil-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 8px;
  border-bottom: 1px solid #33383D;
  transition: background-color 0.2s ease;
}

.coil-row:hover {
  background: rgba(232, 163, 61, 0.06);
}

.coil-row:hover .coil-name {
  color: var(--amber);
}

.coil-name {
  transition: color 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
  .coil-row,
  .coil-name { transition: none; }
}

.coil-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: var(--amber);
  flex-shrink: 0;
}

.coil-icon svg {
  width: 22px;
  height: 22px;
}

.coil-tag {
  font-family: var(--font-mono);
  color: var(--amber);
  font-size: 0.85rem;
  width: 2.5ch;
}

.coil-name {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.stock-note {
  color: #A7ADB3;
  margin-top: 24px;
  font-size: 0.95rem;
}

/* Coverage */
.coverage {
  padding: 88px 0;
}

.coverage-inner {
  display: flex;
  align-items: flex-start;
  gap: 28px;
}

.coverage-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  color: var(--amber);
  flex-shrink: 0;
  margin-top: 6px;
}

.coverage-icon svg {
  width: 100%;
  height: 100%;
}

.coverage h2 {
  font-size: 1.9rem;
  color: var(--ink);
  margin-bottom: 20px;
}

.coverage p {
  color: var(--steel);
  font-size: 1.05rem;
  max-width: 62ch;
}

/* CTA */
.cta {
  background: var(--paper);
  border-top: 1px solid #DBD6CC;
  padding: 80px 0;
  text-align: center;
}

.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.cta h2 {
  font-size: 1.9rem;
  color: var(--ink);
}

.cta p {
  color: var(--steel);
  font-size: 1.05rem;
  margin-bottom: 8px;
}

/* Footer */
.site-footer {
  background: var(--graphite);
  color: #A7ADB3;
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
}

.footer-inner a {
  color: var(--amber);
  text-decoration: none;
}

/* Scroll reveal (class added by JS; no-JS visitors see everything) */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Responsive */
@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .machine {
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
  }

  .process-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .header-inner {
    flex-direction: column;
    gap: 14px;
  }

  .coverage-inner {
    flex-direction: column;
    gap: 16px;
  }

  .machine-body {
    grid-template-columns: 1fr;
  }
}
