:root {
  --bg-1: #0b1020;
  --bg-2: #111827;
  --panel: #111827;
  --panel-2: #0f172a;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --accent: #f97316;
  --accent-2: #fb923c;
  --danger: #ef4444;
  --ok: #22c55e;
  --border: rgba(148, 163, 184, 0.2);
  --shadow: 0 20px 50px rgba(2, 6, 23, 0.45);
}

* {
  box-sizing: border-box;
}

.hidden {
  display: none;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 700px at 10% -10%, #1f2937 0%, transparent 60%),
    radial-gradient(900px 600px at 90% 10%, #111827 0%, transparent 65%),
    linear-gradient(135deg, var(--bg-1), var(--bg-2));
  min-height: 100vh;
}

.bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(500px 300px at 80% 20%, rgba(249, 115, 22, 0.2), transparent 60%);
  animation: float 12s ease-in-out infinite;
}

.grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  opacity: 0.2;
}

.shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 64px;
  position: relative;
  z-index: 1;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 32px;
  animation: fadeUp 0.6s ease-out;
}

.hero-left h1 {
  font-family: "Fraunces", serif;
  font-size: clamp(28px, 4vw, 44px);
  margin: 12px 0;
}

.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.hero-actions-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-actions-group + .hero-actions-group {
  margin-left: 12px;
}

.header-select {
  display: flex;
  align-items: center;
}

.header-select select {
  height: 38px;
  padding: 6px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.6);
  color: var(--text);
  font-size: 12px;
  min-width: 180px;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.6);
  display: inline-grid;
  place-items: center;
  color: var(--text);
  overflow: hidden;
  line-height: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.notif-btn {
  position: relative;
}

.notif-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #ef4444;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.9);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: currentColor;
}

.icon-btn:hover {
  transform: translateY(-1px);
}

.eyebrow {
  letter-spacing: 0.25em;
  font-size: 12px;
  color: var(--accent-2);
}

.hero-title {
  font-size: clamp(30px, 4.4vw, 54px);
}

.brand-logo {
  height: clamp(52px, 6vw, 72px);
  width: auto;
  display: block;
  filter: drop-shadow(0 6px 12px rgba(249, 115, 22, 0.25));
}

.restaurant-name {
  margin: 10px 0 0;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.sub {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.portal-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 600;
}

.landing-shell {
  padding-bottom: 80px;
}

.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 48px;
}

.landing-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.contact-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1;
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.contact-icon svg {
  display: block;
}

.contact-link .contact-icon {
  margin-right: 0;
}

.btn.primary {
  color: #ffffff;
  text-decoration: none;
}

.btn.primary:visited {
  color: #ffffff;
}

.landing-hero {
  display: grid;
  gap: 32px;
  margin-bottom: 60px;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  align-items: center;
}

.hero-copy h1 {
  font-family: "Fraunces", serif;
  font-size: clamp(34px, 5vw, 62px);
  margin: 16px 0;
}

.landing-hero .eyebrow {
  margin-bottom: 6px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.hero-panel {
  display: grid;
  gap: 12px;
}

.hero-metric {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  padding: 16px;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hero-metric strong {
  font-size: 18px;
}

.landing-section {
  margin: 36px 0;
}

.section-card,
.split-card,
.cta-card {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 20px;
  padding: 28px;
  background: rgba(15, 23, 42, 0.55);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.feature {
  padding: 14px;
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.35);
}

.split-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  align-items: center;
}

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

.glass-list div {
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(2, 6, 23, 0.35);
  display: grid;
  gap: 4px;
}

.plan-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.plan-block {
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(2, 6, 23, 0.35);
  display: grid;
  gap: 8px;
}

.plan-block.highlight {
  border-color: rgba(249, 115, 22, 0.6);
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.12);
}

.plan-price {
  font-weight: 700;
  font-size: 18px;
}

.cta-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.portal-link:hover {
  text-decoration: underline;
}

.hero-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.agent-shell .hero {
  grid-template-columns: 1fr;
  position: relative;
}

.agent-shell .hero-card {
  margin-top: 18px;
  max-width: 520px;
  width: 100%;
}

.agent-shell .hero-actions {
  position: absolute;
  top: 0;
  right: 0;
}

.status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-weight: 600;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #475569;
  box-shadow: 0 0 12px rgba(148, 163, 184, 0.6);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

label {
  color: var(--muted);
  font-size: 13px;
}

input {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
}

select {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
}

textarea {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  resize: vertical;
}

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

.btn {
  border: 1px solid transparent;
  background: rgba(148, 163, 184, 0.12);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn.secondary {
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #cbd5f5;
  box-shadow: none;
}

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

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.3);
}

.btn.ghost {
  border: 1px solid var(--border);
  background: transparent;
}

.btn.danger {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fecaca;
}

.btn.tiny {
  padding: 6px 12px;
  font-size: 12px;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.hint {
  color: var(--muted);
  font-size: 12px;
  margin-top: 12px;
  line-height: 1.4;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.card h2 {
  margin: 0;
  font-size: 18px;
}

.card h3 {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

.tag {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
}

.transcript {
  min-height: 200px;
  max-height: 300px;
  overflow: auto;
  padding-right: 6px;
}

.line {
  padding: 8px 10px;
  border-radius: 12px;
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.5;
}

.line.user {
  background: rgba(249, 115, 22, 0.15);
  border: 1px solid rgba(249, 115, 22, 0.35);
}

.line.assistant {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.line.pending {
  opacity: 0.7;
}

.input-row {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

pre {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  font-size: 12px;
  color: #cbd5f5;
  overflow: auto;
  min-height: 120px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.stat {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
}

.stat .label {
  color: var(--muted);
  font-size: 12px;
}

.stat .value {
  font-size: 18px;
  font-weight: 600;
  margin-top: 4px;
}

.list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}

.list li {
  padding: 6px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  font-size: 13px;
}

.list li:last-child {
  border-bottom: none;
}

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

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  html,
  body {
    overflow-x: hidden;
    width: 100%;
  }

  .landing-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  .shell {
    max-width: 100%;
    width: 100%;
    overflow-x: hidden;
  }

  .landing-nav {
    align-items: center;
    gap: 12px;
  }

  .landing-actions {
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
  }

  .contact-link {
    padding: 0;
    width: 38px;
    height: 38px;
  }

  .contact-link .contact-text {
    display: none;
  }

  .contact-link .contact-icon {
    margin-right: 0;
  }

  .landing-actions .btn {
    padding: 8px 12px;
    font-size: 12px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-actions {
    flex-direction: row;
    align-items: stretch;
    flex-wrap: nowrap;
  }

  .hero-cta .btn {
    width: 100%;
    text-align: center;
  }

  .cta-actions .btn,
  .cta-actions .contact-link {
    width: auto;
    text-align: center;
    flex: 1 1 0;
    min-width: 0;
  }

  .cta-actions .contact-link {
    padding: 10px 12px;
    justify-content: center;
  }

  .cta-actions .contact-text {
    display: inline;
  }
}

@media (max-width: 600px) {
  .shell {
    padding: 36px 16px 48px;
  }

  .hero {
    gap: 20px;
  }

  .hero-copy h1 {
    font-size: clamp(28px, 8vw, 40px);
  }

  .hero-cta,
  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

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

  .section-card,
  .split-card,
  .cta-card {
    padding: 20px;
  }

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

  .feature-grid,
  .hero-grid,
  .plan-preview {
    grid-template-columns: 1fr;
  }

  .hero-card {
    padding: 16px;
  }
}

@media (max-width: 420px) {
  .shell {
    padding: 28px 12px 40px;
  }

  .brand-logo {
    height: 44px;
  }

  .landing-shell .btn,
  .landing-shell .contact-link {
    width: 100%;
    justify-content: center;
  }
}

.landing-shell .btn.primary {
  color: #ffffff;
}

.landing-shell .btn.primary:visited {
  color: #ffffff;
}
