:root {
  --ink: #111827;
  --muted: #5b6472;
  --line: rgba(17, 24, 39, 0.12);
  --paper: #ffffff;
  --soft: #f5f8fb;
  --blue: #4d55ff;
  --cyan: #0ea5e9;
  --mint: #15b981;
  --coral: #ff6b4a;
  --dark: #101423;
  --shadow: 0 24px 80px rgba(16, 20, 35, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

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

button,
input {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 22px;
  width: min(1180px, calc(100% - 32px));
  height: 76px;
  margin: 14px auto 0;
  padding: 10px 12px 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 60px rgba(16, 20, 35, 0.12);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 1 0 auto;
  width: 260px;
  height: 52px;
  min-width: 0;
}

.brand-mark {
  display: block;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.brand-text {
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

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

.site-nav a {
  padding: 10px 13px;
  border-radius: 999px;
  color: #2f3747;
  font-size: 14px;
  font-weight: 700;
}

.site-nav a:hover {
  background: rgba(77, 85, 255, 0.08);
  color: var(--blue);
}

.header-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.header-cta,
.btn.primary {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 16px 35px rgba(77, 85, 255, 0.3);
}

.btn.ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

.btn.dark {
  color: #fff;
  background: var(--dark);
}

.btn.dark-text {
  color: var(--dark);
  border-color: var(--line);
  background: #fff;
}

.header-cta:hover,
.btn:hover {
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #eef1ff;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: min(820px, calc(100svh - 42px));
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(430px, 1.08fr);
  gap: 56px;
  align-items: center;
  padding: 128px max(24px, calc((100vw - 1180px) / 2)) 84px;
  color: #fff;
  background:
    radial-gradient(circle at 14% 18%, rgba(21, 185, 129, 0.38), transparent 28%),
    radial-gradient(circle at 86% 12%, rgba(255, 107, 74, 0.3), transparent 30%),
    linear-gradient(135deg, #0d1021 0%, #171b31 48%, #18204a 100%);
}

.hero-scene {
  position: relative;
  z-index: 1;
  order: 2;
  min-height: 560px;
}

.ambient-grid {
  position: absolute;
  inset: -220px -60vw -130px -100vw;
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 76%, transparent);
}

.scene-panel,
.qr-card {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.scene-chat {
  top: 40px;
  right: 0;
  width: min(440px, 84%);
  padding: 18px;
  animation: floatOne 7s ease-in-out infinite;
}

.scene-pos {
  right: 76px;
  bottom: 72px;
  width: min(560px, 86%);
  padding: 22px;
  animation: floatTwo 8s ease-in-out infinite;
}

.panel-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.red { background: var(--coral); }
.yellow { background: #f6c84c; }
.green { background: var(--mint); }

.chat-row {
  width: fit-content;
  max-width: 92%;
  margin: 10px 0;
  padding: 12px 14px;
  border-radius: 16px;
  color: #eef2ff;
  background: rgba(255, 255, 255, 0.12);
  font-size: 13px;
  line-height: 1.45;
}

.chat-row.guest {
  margin-left: auto;
  background: rgba(77, 85, 255, 0.82);
}

.chat-row.accent {
  background: rgba(21, 185, 129, 0.22);
}

.pos-bar {
  width: 54%;
  height: 16px;
  margin-bottom: 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
}

.pos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.pos-grid span {
  aspect-ratio: 1.45;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.08));
}

.kitchen-ticket {
  position: absolute;
  right: 28px;
  bottom: -32px;
  display: grid;
  gap: 5px;
  min-width: 180px;
  padding: 16px;
  border-radius: 18px;
  color: var(--dark);
  background: #fff;
}

.kitchen-ticket small {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--coral);
  border-radius: 10px;
  background: rgba(255, 107, 74, 0.12);
}

.kitchen-ticket small svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.kitchen-ticket span {
  color: var(--muted);
  font-size: 12px;
}

.qr-card {
  left: 0;
  bottom: 132px;
  display: grid;
  place-items: center;
  gap: 10px;
  width: 176px;
  min-height: 204px;
  padding: 14px;
  color: #fff;
  font-weight: 800;
  transform: rotate(-4deg);
}

.qr-card img {
  width: 126px;
  height: 126px;
  padding: 8px;
  border-radius: 14px;
  background: #fff;
}

.qr-card span {
  max-width: 100%;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  line-height: 1.2;
  text-align: center;
  word-break: break-word;
}

.hero-content {
  position: relative;
  z-index: 2;
  order: 1;
  width: min(720px, 100%);
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--mint);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 560px;
  margin: 0;
  font-size: clamp(46px, 5.7vw, 78px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.55;
}

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

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.strip-item {
  padding: 26px max(22px, calc((100vw - 1180px) / 2 / 3));
  background: #fff;
}

.strip-item strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.strip-item span {
  color: var(--muted);
  line-height: 1.55;
}

.section {
  padding: 94px max(24px, calc((100vw - 1180px) / 2));
}

.section-heading {
  max-width: 760px;
  margin-bottom: 38px;
}

.section-heading.compact {
  max-width: 680px;
}

.section h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.02;
  letter-spacing: 0;
}

.section-heading p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.solution-grid,
.feature-grid,
.demo-grid {
  display: grid;
  gap: 18px;
}

.solution-grid {
  grid-template-columns: repeat(3, 1fr);
}

.solution-card,
.feature-grid article,
.order-demo,
.chat-demo {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(16, 20, 35, 0.08);
}

.solution-card {
  min-height: 288px;
  padding: 26px;
}

.solution-card.highlight {
  color: #fff;
  border-color: transparent;
  background:
    linear-gradient(135deg, rgba(77, 85, 255, 0.96), rgba(14, 165, 233, 0.94)),
    var(--blue);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 28px;
  border-radius: 18px;
  color: #fff;
  background: var(--dark);
}

.card-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.highlight .card-icon {
  color: var(--blue);
  background: #fff;
}

.solution-card h3,
.feature-grid h3 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.2;
}

.solution-card p,
.feature-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.highlight p {
  color: rgba(255, 255, 255, 0.78);
}

.workflow-section {
  background: var(--soft);
}

.workflow {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 22px;
}

.workflow-steps {
  display: grid;
  gap: 10px;
}

.workflow-step {
  min-height: 58px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.workflow-step.active {
  color: #fff;
  border-color: var(--blue);
  background: var(--blue);
}

.workflow-display {
  min-height: 360px;
  padding: 34px;
  border-radius: 8px;
  color: #fff;
  background:
    radial-gradient(circle at 72% 24%, rgba(21, 185, 129, 0.35), transparent 32%),
    linear-gradient(135deg, #151928, #283064);
  box-shadow: var(--shadow);
}

.workflow-label {
  margin: 0 0 12px;
  color: var(--mint);
  font-weight: 900;
}

.workflow-display h3 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
}

.workflow-display p:not(.workflow-label) {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
  line-height: 1.65;
}

.workflow-visual {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 520px;
  margin-top: 34px;
}

.workflow-visual span {
  height: 88px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
}

.feature-grid {
  grid-template-columns: repeat(3, 1fr);
}

.feature-grid article {
  min-height: 190px;
  padding: 24px;
}

.demo-section {
  background: #fff;
}

.demo-grid {
  grid-template-columns: 1.2fr 0.8fr;
}

.chat-demo {
  overflow: hidden;
  background: var(--dark);
}

.demo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 22px;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.demo-header span {
  color: var(--mint);
  font-size: 13px;
  font-weight: 800;
}

.demo-messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 330px;
  max-height: 430px;
  overflow-y: auto;
  padding: 24px;
}

.bubble {
  max-width: 78%;
  padding: 13px 15px;
  border-radius: 18px;
  color: #fff;
  line-height: 1.5;
}

.bubble.ai {
  background: rgba(255, 255, 255, 0.12);
}

.bubble.user {
  align-self: flex-end;
  background: var(--blue);
}

.demo-choice-panel {
  padding: 0 24px 16px;
}

.demo-choice-panel p {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-weight: 800;
}

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

.demo-options button {
  min-height: 46px;
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  text-align: left;
}

.demo-options button:hover {
  border-color: rgba(77, 85, 255, 0.7);
  background: rgba(77, 85, 255, 0.24);
}

.demo-options button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.demo-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 24px 24px;
}

.demo-controls button {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.demo-controls button:hover {
  background: rgba(255, 255, 255, 0.14);
}

.demo-controls button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.order-demo {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 26px;
}

.order-status {
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--blue);
  background: rgba(77, 85, 255, 0.08);
  font-size: 13px;
  font-weight: 900;
}

.order-demo h3 {
  margin: 0;
  font-size: 24px;
}

.order-items {
  display: grid;
  gap: 10px;
}

.order-items p,
.order-demo p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.order-items div,
.order-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border-radius: 8px;
  background: var(--soft);
}

.order-items span,
.order-total span {
  color: var(--muted);
  line-height: 1.35;
}

.order-items strong,
.order-total strong {
  color: var(--ink);
  white-space: nowrap;
}

.order-total {
  margin-top: auto;
  border: 1px solid rgba(77, 85, 255, 0.14);
  background: rgba(77, 85, 255, 0.06);
}

.order-total strong {
  color: var(--blue);
  font-size: 22px;
}

.contact-section {
  background: var(--soft);
}

.contact-panel {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 34px;
  align-items: center;
  padding: 42px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(16, 20, 35, 0.08);
}

.contact-panel h2 {
  font-size: clamp(32px, 4.5vw, 54px);
}

.contact-panel p {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.contact-actions {
  display: grid;
  gap: 12px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px max(24px, calc((100vw - 1180px) / 2));
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@keyframes floatOne {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}

@keyframes floatTwo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(14px); }
}

@media (max-width: 980px) {
  .site-header {
    height: 68px;
  }

  .brand-mark img {
    width: 100%;
    height: 100%;
  }

  .brand {
    width: auto;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 50px rgba(16, 20, 35, 0.12);
  }

  .site-nav.open {
    display: grid;
  }

  .site-nav a {
    padding: 14px 16px;
  }

  .header-cta {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 34px;
    min-height: auto;
  }

  .scene-chat {
    top: 0;
    right: 0;
    bottom: auto;
    width: min(420px, 82vw);
    opacity: 0.92;
  }

  .scene-pos {
    right: 24px;
    bottom: 20px;
    width: min(520px, 82vw);
    opacity: 0.86;
  }

  .qr-card {
    left: 0;
    right: auto;
    bottom: 66px;
    width: 136px;
    min-height: 164px;
    opacity: 0.9;
  }

  .qr-card img {
    width: 92px;
    height: 92px;
    padding: 6px;
  }

  .qr-card span {
    font-size: 12px;
  }

  .trust-strip,
  .solution-grid,
  .feature-grid,
  .demo-grid,
  .contact-panel,
  .workflow {
    grid-template-columns: 1fr;
  }

  .workflow-steps {
    grid-template-columns: repeat(5, minmax(132px, 1fr));
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .workflow-step {
    text-align: center;
  }
}

@media (max-width: 640px) {
  .site-header {
    width: calc(100% - 20px);
    margin-top: 10px;
    padding-left: 14px;
  }

  .hero {
    align-items: flex-start;
    padding-top: 126px;
    padding-bottom: 70px;
  }

  .hero-scene {
    min-height: 380px;
  }

  .hero h1 {
    font-size: clamp(42px, 13vw, 60px);
  }

  .brand-text {
    font-size: 15px;
  }

  .hero-actions,
  .contact-actions,
  .site-footer {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .section {
    padding-top: 68px;
    padding-bottom: 68px;
  }

  .solution-card,
  .feature-grid article,
  .workflow-display,
  .order-demo,
  .contact-panel {
    padding: 22px;
  }

  .workflow-visual {
    grid-template-columns: repeat(2, 1fr);
  }

  .order-items div,
  .order-total {
    align-items: flex-start;
    flex-direction: column;
  }

  .bubble {
    max-width: 92%;
  }

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

  .site-footer {
    display: grid;
  }
}
