:root {
  --ink: #17252b;
  --muted: #687f87;
  --line: #e2ecef;
  --paper: #f5fbfc;
  --surface: #ffffff;
  --mint: #00c2e8;
  --mint-dark: #009bc0;
  --lime: #c4f03e;
  --tomato: #ff6047;
  --sun: #ffc845;
  --shadow: 0 18px 46px rgba(23, 37, 43, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(219, 230, 232, 0.8);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  left: 0;
  padding: 14px clamp(18px, 4vw, 56px);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 10;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 10px;
  min-width: 150px;
}

.brand-mark {
  align-items: center;
  aspect-ratio: 1;
  background: var(--mint);
  border-radius: 8px;
  color: white;
  display: inline-flex;
  font-size: 1.2rem;
  font-weight: 900;
  justify-content: center;
  width: 38px;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand small {
  color: var(--muted);
  font-size: 0.74rem;
  margin-top: 3px;
}

.nav {
  align-items: center;
  display: flex;
  gap: 8px;
}

.nav a,
.ghost-button,
.filter {
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  min-height: 40px;
  padding: 0 14px;
}

.nav a {
  align-items: center;
  display: inline-flex;
}

.nav a:hover,
.ghost-button:hover,
.filter:hover {
  color: var(--ink);
}

.cart-button,
.icon-button {
  align-items: center;
  background: var(--mint);
  border: 0;
  border-radius: 999px;
  color: white;
  cursor: pointer;
  display: inline-flex;
  gap: 8px;
  justify-content: center;
  min-height: 42px;
  min-width: 42px;
  padding: 0 14px;
}

svg {
  display: block;
  fill: none;
  height: 20px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 20px;
}

.hero {
  min-height: min(720px, calc(100vh - 44px));
  overflow: hidden;
  position: relative;
}

.hero img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.hero-scrim {
  background: linear-gradient(90deg, rgba(12, 26, 31, 0.88), rgba(12, 26, 31, 0.56) 46%, rgba(12, 26, 31, 0.05));
  inset: 0;
  position: absolute;
}

.hero-content {
  color: white;
  max-width: 700px;
  padding: clamp(70px, 10vw, 130px) clamp(20px, 5vw, 70px) 90px;
  position: relative;
}

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

.hero h1 {
  font-size: clamp(3rem, 8vw, 6.5rem);
  letter-spacing: 0;
  line-height: 0.9;
  margin: 0;
  max-width: 760px;
}

.hero p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  line-height: 1.55;
  max-width: 620px;
}

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

.primary-button,
.secondary-button {
  align-items: center;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 850;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
}

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

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

.secondary-button {
  background: rgba(255, 255, 255, 0.14);
  color: white;
  outline: 1px solid rgba(255, 255, 255, 0.35);
}

.full {
  width: 100%;
}

.status-strip,
.filters,
.menu-grid,
.info-band {
  margin: 0 auto;
  max-width: 1180px;
  padding-left: clamp(18px, 4vw, 40px);
  padding-right: clamp(18px, 4vw, 40px);
}

.status-strip {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: -42px;
  position: relative;
  z-index: 2;
}

.status-strip > div {
  background: var(--surface);
  border: 1px solid rgba(226, 236, 239, 0.9);
  min-height: 92px;
  padding: 20px;
}

.status-strip span,
.cart-summary span,
.fineprint {
  color: var(--muted);
}

.status-strip strong {
  display: block;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  margin-top: 6px;
}

.filters {
  align-items: end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding-top: 70px;
}

h2 {
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  line-height: 1;
  margin: 0;
}

.filter-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.filter {
  border: 1px solid var(--line);
}

.filter.active {
  background: var(--mint);
  border-color: var(--mint);
  color: white;
}

.menu-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-bottom: 70px;
  padding-top: 24px;
}

.food-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(23, 37, 43, 0.06);
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.food-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.food-photo {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.food-photo img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.food-card-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.food-meta {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.food-meta h3 {
  font-size: 1.08rem;
  line-height: 1.18;
  margin: 0;
}

.food-meta strong {
  color: var(--ink);
  font-size: 0.98rem;
  white-space: nowrap;
}

.food-card p {
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

.add-button {
  align-items: center;
  background: #e8f9fd;
  border: 1px solid #c3f0f8;
  border-radius: 8px;
  color: #006982;
  cursor: pointer;
  display: inline-flex;
  font-weight: 820;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
}

.add-button:hover {
  background: var(--mint);
  border-color: var(--mint);
  color: white;
}

.info-band {
  align-items: start;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 36px;
  grid-template-columns: 0.82fr 1fr;
  padding-bottom: 86px;
  padding-top: 70px;
}

.steps {
  display: grid;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps li {
  background: #ecfaff;
  border: 1px solid #c9f1f8;
  border-radius: 8px;
  display: grid;
  gap: 5px;
  padding: 18px;
}

.steps span {
  color: var(--muted);
  line-height: 1.5;
}

.drawer {
  background: rgba(7, 18, 21, 0.48);
  display: none;
  inset: 0;
  justify-content: end;
  position: fixed;
  z-index: 30;
}

.drawer.open {
  display: flex;
}

.drawer-panel {
  background: var(--surface);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto auto;
  height: 100%;
  max-width: 440px;
  padding: 22px;
  width: min(100%, 440px);
}

.drawer-head {
  align-items: start;
  display: flex;
  justify-content: space-between;
}

.drawer .icon-button,
.modal .icon-button {
  background: #eef3f3;
  color: var(--ink);
}

.cart-items {
  display: grid;
  gap: 12px;
  overflow: auto;
  padding: 18px 0;
}

.cart-line {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 14px;
}

.cart-line-top,
.qty {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.qty button {
  align-items: center;
  aspect-ratio: 1;
  background: #eef3f3;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  width: 32px;
}

.cart-summary {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  padding: 18px 0;
}

.cart-summary div {
  display: flex;
  justify-content: space-between;
}

.cart-summary .total {
  color: var(--ink);
  font-size: 1.2rem;
}

.modal {
  background: transparent;
  border: 0;
  padding: 0;
  width: min(92vw, 440px);
}

.order-modal {
  width: min(92vw, 620px);
}

.modal::backdrop {
  background: rgba(7, 18, 21, 0.48);
}

.modal-card {
  background: var(--surface);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  padding: 26px;
  position: relative;
}

.close-modal {
  position: absolute;
  right: 18px;
  top: 18px;
}

.modal-card h2 {
  font-size: 2rem;
  padding-right: 44px;
}

.auth-toggle {
  background: #eef8fa;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 4px;
}

.auth-toggle button {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
  min-height: 38px;
}

.auth-toggle button.active {
  background: white;
  box-shadow: 0 6px 16px rgba(23, 37, 43, 0.08);
  color: var(--ink);
}

.order-card {
  gap: 18px;
}

.order-facts {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.order-facts div {
  background: #ecfaff;
  border: 1px solid #c9f1f8;
  border-radius: 8px;
  padding: 16px;
}

.order-facts span {
  color: var(--muted);
  display: block;
  font-size: 0.88rem;
  margin-bottom: 6px;
}

.order-facts strong {
  font-size: clamp(1.15rem, 3vw, 1.7rem);
}

.order-progress {
  counter-reset: order;
  display: grid;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 4px 0;
}

.order-progress li {
  display: grid;
  gap: 14px;
  grid-template-columns: 34px 1fr;
  min-height: 76px;
  position: relative;
}

.order-progress li:not(:last-child)::before {
  background: #c9f1f8;
  content: "";
  inset: 35px auto -3px 16px;
  position: absolute;
  width: 2px;
}

.progress-dot {
  align-items: center;
  background: var(--mint);
  border-radius: 999px;
  color: white;
  display: inline-flex;
  font-size: 0.85rem;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  position: relative;
  width: 34px;
  z-index: 1;
}

.order-progress .current .progress-dot {
  background: var(--ink);
}

.order-progress strong,
.order-progress span {
  display: block;
}

.order-progress strong {
  margin-top: 4px;
}

.order-progress span {
  color: var(--muted);
  line-height: 1.42;
  margin-top: 4px;
}

label {
  color: var(--muted);
  display: grid;
  gap: 7px;
  font-size: 0.92rem;
  font-weight: 700;
}

input {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  min-height: 48px;
  padding: 0 14px;
}

input:focus {
  border-color: var(--mint-dark);
  outline: 3px solid rgba(20, 200, 189, 0.2);
}

.toast {
  background: var(--ink);
  border-radius: 8px;
  bottom: 22px;
  box-shadow: var(--shadow);
  color: white;
  left: 50%;
  max-width: min(92vw, 560px);
  opacity: 0;
  padding: 14px 18px;
  pointer-events: none;
  position: fixed;
  transform: translate(-50%, 18px);
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 60;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 860px) {
  .topbar {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }

  .nav {
    overflow-x: auto;
    padding-bottom: 2px;
    width: 100%;
  }

  .hero {
    min-height: 720px;
  }

  .hero-scrim {
    background: linear-gradient(180deg, rgba(12, 26, 31, 0.9), rgba(12, 26, 31, 0.48) 62%, rgba(12, 26, 31, 0.12));
  }

  .hero-content {
    padding-top: 76px;
  }

  .status-strip,
  .menu-grid,
  .info-band {
    grid-template-columns: 1fr;
  }

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

  .filter-controls {
    justify-content: start;
  }
}

@media (max-width: 560px) {
  .nav a {
    display: none;
  }

  .hero {
    min-height: 610px;
  }

  .hero h1 {
    font-size: 2.85rem;
    line-height: 0.94;
  }

  .status-strip {
    margin-top: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .status-strip > div {
    border-left: 0;
    border-right: 0;
  }

  .order-facts {
    grid-template-columns: 1fr;
  }

  .order-progress li {
    min-height: 88px;
  }
}
