:root {
  --ink: #1e242b;
  --muted: #66717e;
  --paper: #fffaf2;
  --panel: #ffffff;
  --line: rgba(30, 36, 43, 0.12);
  --green: #238a63;
  --mint: #dff6e9;
  --saffron: #f5b84a;
  --coral: #e86f4d;
  --blue: #2f76b9;
  --shadow: 0 18px 55px rgba(30, 36, 43, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #fff7e6 0%, #f6fbf7 48%, #eef6ff 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 242, 0.88);
  backdrop-filter: blur(16px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 8px;
  color: #fff;
  font-weight: 950;
  background: linear-gradient(135deg, var(--green), var(--blue));
  box-shadow: 0 12px 28px rgba(35, 138, 99, 0.22);
}

.brand strong,
.brand small {
  display: block;
}

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

.nav {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.nav a,
.nav-link {
  padding: 10px 12px;
  border-radius: 8px;
  color: #2f3741;
  font-weight: 800;
}

.nav a:hover,
.nav-link:hover {
  background: rgba(255, 255, 255, 0.72);
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: min(760px, calc(100vh - 74px));
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.72fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding: clamp(34px, 7vh, 76px) 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero h1 {
  max-width: 840px;
  margin-bottom: 18px;
  font-size: clamp(2.45rem, 5.8vw, 5.45rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.lead {
  max-width: 720px;
  color: #3f4b57;
  font-size: clamp(1rem, 2vw, 1.24rem);
  line-height: 1.58;
}

.action-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 950;
}

.primary-btn {
  color: #fff;
  background: var(--green);
  box-shadow: 0 14px 30px rgba(35, 138, 99, 0.24);
}

.secondary-btn {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
}

.hero-photo {
  display: grid;
  gap: 14px;
  padding: 20px;
  min-height: 420px;
  align-content: end;
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(232, 111, 77, 0.22), rgba(245, 184, 74, 0.3)),
    linear-gradient(145deg, #fff, #ddf2e7);
  box-shadow: var(--shadow);
}

.plate,
.tea {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 86px;
  padding: 18px;
  border-radius: 8px;
  color: #fff;
}

.plate {
  background: linear-gradient(135deg, var(--coral), var(--saffron));
}

.tea {
  background: linear-gradient(135deg, var(--green), var(--blue));
}

.plate span,
.tea span,
.plate strong,
.tea strong {
  font-weight: 950;
}

.section,
.promo,
.contact-section,
.panel-hero,
.ops-card,
.stats-grid article {
  margin: 28px 0;
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.section-title p {
  margin: 0;
}

.section-title h2,
.promo h2,
.contact-section h2,
.panel-hero h1 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(1.7rem, 3.4vw, 2.8rem);
  line-height: 1.06;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.menu-grid article {
  min-height: 235px;
  padding: 22px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.menu-grid article.is-hovered {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(30, 36, 43, 0.12);
}

.dish-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 28px;
  border-radius: 50%;
  color: #fff;
  background: var(--coral);
  font-weight: 950;
}

.menu-grid p,
.promo p,
.contact-section p,
.panel-hero p {
  color: var(--muted);
  line-height: 1.55;
}

.promo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(135deg, var(--mint), #fff);
}

.promo > strong {
  flex: 0 0 auto;
  color: var(--green);
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.contact-section {
  margin-bottom: 18px;
}

.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 36px;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

.lab-demo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin: 16px 0 22px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
}

.lab-demo strong,
.lab-demo span {
  display: block;
}

.lab-demo strong {
  font-size: 0.9rem;
}

.lab-demo span,
.lab-actions span {
  color: var(--muted);
  font-size: 0.78rem;
}

.lab-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.tiny-btn {
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--green);
  font-weight: 900;
}

.tiny-btn.muted {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
}

.tiny-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.lab-actions span.is-active {
  color: var(--green);
  font-weight: 900;
}

.lab-demo video {
  width: 180px;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  object-fit: cover;
  transform: scaleX(-1);
}

[hidden] {
  display: none !important;
}

.contact-grid,
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.contact-grid article {
  padding: 18px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
}

.contact-grid span,
.contact-grid strong,
.stats-grid span,
.stats-grid strong {
  display: block;
}

.contact-grid span,
.stats-grid span {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
}

.panel-shell {
  width: min(1260px, calc(100% - 32px));
  margin: 28px auto 56px;
}

.panel-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 24px;
  align-items: center;
  margin-top: 0;
}

.token-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
}

.token-row {
  display: flex;
  gap: 10px;
}

.token-row input {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stats-grid article {
  margin: 0;
}

.stats-grid strong {
  color: var(--green);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
}

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

.ops-card {
  margin: 0;
}

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

.check-list li,
.stock-list p {
  margin: 0;
  padding: 12px;
  border-radius: 8px;
  color: #3f4b57;
  background: rgba(35, 138, 99, 0.08);
}

.check-list li::before {
  content: '>';
  margin-right: 10px;
  color: var(--blue);
  font-weight: 950;
}

.check-list li.done::before {
  content: '✓';
  color: var(--green);
}

.stock-list {
  display: grid;
  gap: 12px;
}

.stock-list p {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-page {
  min-height: 100vh;
  color: #eafff7;
  background:
    linear-gradient(135deg, rgba(36, 247, 168, 0.12), transparent 38%),
    linear-gradient(220deg, rgba(40, 216, 255, 0.12), transparent 42%),
    #04090d;
}

.console-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.46;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 20% 22%, rgba(36, 247, 168, 0.18), transparent 24rem),
    radial-gradient(circle at 82% 16%, rgba(40, 216, 255, 0.15), transparent 20rem);
  background-size: 100% 4px, 48px 48px, auto, auto;
}

.console-topbar {
  border-bottom-color: rgba(36, 247, 168, 0.24);
  background: rgba(4, 9, 13, 0.82);
}

.panel-page .brand-mark {
  color: #24f7a8;
  border: 1px solid rgba(36, 247, 168, 0.46);
  background: #071116;
  box-shadow: 0 0 24px rgba(36, 247, 168, 0.28);
}

.panel-page .brand small,
.panel-page .nav-link {
  color: #89b7aa;
}

.console-shell {
  width: min(1260px, calc(100% - 32px));
  margin: 28px auto 56px;
}

.access-panel,
.console-hero,
.console-stats article,
.terminal-panel,
.stream-panel,
.matrix-panel,
.task-panel {
  border: 1px solid rgba(36, 247, 168, 0.24);
  border-radius: 8px;
  background: rgba(8, 19, 25, 0.84);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.access-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 24px;
  align-items: center;
  padding: clamp(24px, 5vw, 46px);
}

.console-kicker {
  margin: 0 0 12px;
  color: #24f7a8;
  font: 900 0.78rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  text-transform: uppercase;
}

.access-panel h1,
.console-hero h1 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4.2vw, 4.2rem);
  line-height: 1;
}

.access-panel p,
.console-hero p,
.console-message {
  color: #89b7aa;
}

.password-form label {
  display: block;
  margin-bottom: 8px;
  color: #89b7aa;
  font-size: 0.86rem;
  font-weight: 900;
}

.password-row {
  display: flex;
  gap: 10px;
}

.password-row input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid rgba(36, 247, 168, 0.26);
  border-radius: 8px;
  color: #eafff7;
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.password-row input:focus {
  border-color: #24f7a8;
  box-shadow: 0 0 0 3px rgba(36, 247, 168, 0.14);
}

.console-btn {
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  color: #03110c;
  background: linear-gradient(135deg, #24f7a8, #28d8ff);
  font-weight: 950;
}

.console-grid {
  display: grid;
  gap: 18px;
}

.console-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(24px, 5vw, 42px);
}

.system-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(36, 247, 168, 0.28);
  border-radius: 999px;
  color: #24f7a8;
  background: rgba(36, 247, 168, 0.08);
  font: 950 0.82rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.system-pill span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #24f7a8;
  box-shadow: 0 0 18px #24f7a8;
}

.console-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.console-stats article {
  padding: 18px;
}

.console-stats span,
.console-stats strong,
.console-stats small {
  display: block;
}

.console-stats span {
  margin-bottom: 8px;
  color: #89b7aa;
  font-weight: 900;
}

.console-stats strong {
  color: #24f7a8;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.console-stats small {
  margin-top: 8px;
  color: #5f8f83;
}

.console-main {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(340px, 1.15fr);
  gap: 18px;
}

.terminal-panel,
.stream-panel,
.matrix-panel,
.task-panel {
  padding: 20px;
}

.stream-panel {
  grid-row: span 2;
}

.console-card-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.console-card-head h2 {
  margin: 0;
  font-size: 1.12rem;
}

.console-card-head span {
  color: #28d8ff;
  font: 900 0.86rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.terminal-lines {
  display: grid;
  gap: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.terminal-lines p {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  color: #24f7a8;
  background: rgba(36, 247, 168, 0.07);
}

.stream-panel .live-stage {
  min-height: 430px;
  border: 1px solid rgba(40, 216, 255, 0.2);
  background:
    linear-gradient(135deg, rgba(20, 33, 42, 0.94), rgba(10, 28, 35, 0.94)),
    #14212a;
}

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

.matrix-grid div {
  padding: 14px;
  border: 1px solid rgba(40, 216, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.matrix-grid span,
.matrix-grid strong {
  display: block;
}

.matrix-grid span {
  color: #89b7aa;
  font-size: 0.78rem;
  font-weight: 900;
}

.matrix-grid strong {
  margin-top: 8px;
  color: #28d8ff;
  font-size: 1.45rem;
}

.check-list.dark li {
  color: #d8fff2;
  background: rgba(36, 247, 168, 0.07);
}

.live-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 300px;
  overflow: hidden;
  border-radius: 8px;
  background: #14212a;
}

.live-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scaleX(-1);
}

#emptyState {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  color: rgba(255, 255, 255, 0.82);
  text-align: center;
  font-weight: 900;
}

.mini-status {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
}

@media (max-width: 900px) {
  .hero,
  .panel-hero,
  .access-panel,
  .console-main,
  .ops-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid,
  .console-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 680px) {
  .topbar,
  .section-title,
  .promo,
  .lab-demo,
  .password-row {
    align-items: flex-start;
    flex-direction: column;
  }

  main,
  .panel-shell,
  .console-shell {
    width: min(100% - 20px, 1180px);
  }

  .hero {
    min-height: auto;
  }

  .hero h1 {
    font-size: 2.35rem;
  }

  .menu-grid,
  .contact-grid,
  .stats-grid,
  .console-stats,
  .matrix-grid {
    grid-template-columns: 1fr;
  }

  .action-row {
    align-items: stretch;
    flex-direction: column;
  }

  .lab-demo {
    grid-template-columns: 1fr;
  }

  .lab-actions,
  .token-row,
  .password-row {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .primary-btn,
  .secondary-btn,
  .tiny-btn,
  .console-btn {
    width: 100%;
  }
}
