@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,400&display=swap');

:root {
  --bg: #0e0e0e;
  --surface: #161616;
  --surface-2: #1e1e1e;
  --border: #2a2a2a;
  --text: #f0ede8;
  --text-muted: #8a8680;
  --accent: #e8ff3c;
  --accent-dim: rgba(232, 255, 60, 0.12);
  --green: #3cffa0;
  --red: #ff5c5c;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: #000; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  backdrop-filter: blur(12px);
  background: rgba(14,14,14,0.7);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}
.nav-logo span { color: var(--accent); }
.nav-cta {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 20px;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(232,255,60,0.3); }

/* HERO */
.hero {
  padding: 160px 48px 80px;
  max-width: 900px;
  margin: 0 auto;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero-sub {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 48px;
  font-weight: 300;
}

/* DEMO SECTION */
.demo-section {
  padding: 0 48px 100px;
  max-width: 900px;
  margin: 0 auto;
}
.demo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.demo-label {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}
.demo-label span { color: var(--green); }

.demo-container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 340px;
  min-height: 520px;
}

/* Chat panel */
.chat-panel {
  padding: 28px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  position: relative;
}

.live-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(60, 255, 160, 0.1);
  border: 1px solid rgba(60, 255, 160, 0.25);
  border-radius: 20px;
  padding: 5px 10px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 0.04em;
}
.live-badge .pulse {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: blink 1.5s ease infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.demo-intro {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
}
.demo-intro h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.demo-intro p {
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 260px;
  line-height: 1.5;
}
.mic-btn {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow: 0 0 0 0 rgba(232,255,60,0.4);
}
.mic-btn:hover { transform: scale(1.08); }
.mic-btn.listening {
  background: var(--red);
  animation: ring 1.5s ease infinite;
  box-shadow: 0 0 0 8px rgba(255,92,92,0.15);
}
@keyframes ring {
  0% { box-shadow: 0 0 0 8px rgba(255,92,92,0.2); }
  50% { box-shadow: 0 0 0 16px rgba(255,92,92,0.1); }
  100% { box-shadow: 0 0 0 8px rgba(255,92,92,0.2); }
}

/* Transcript */
.transcript { display: none; flex-direction: column; gap: 12px; flex: 1; overflow-y: auto; }
.transcript.active { display: flex; }
.transcript::-webkit-scrollbar { width: 4px; }
.transcript::-webkit-scrollbar-thumb { background: var(--border); }

.msg {
  display: flex;
  gap: 10px;
  animation: msg-in 0.35s cubic-bezier(0.22,1,0.36,1) both;
  max-width: 85%;
}
.msg.user { align-self: flex-end; flex-direction: row-reverse; }
.msg.ai { align-self: flex-start; }
@keyframes msg-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.msg-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.msg.user .msg-icon { background: var(--accent); color: #000; }
.msg.ai .msg-icon { background: var(--surface-2); border: 1px solid var(--border); color: var(--accent); }
.msg-bubble {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.55;
  font-weight: 400;
}
.msg.user .msg-bubble {
  background: var(--accent);
  color: #000;
  border-bottom-right-radius: 4px;
}
.msg.ai .msg-bubble {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}
.msg-bubble .typing-dots { display: inline-flex; gap: 3px; }
.msg-bubble .typing-dots span {
  width: 5px; height: 5px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: dot 1.4s ease infinite;
}
.msg-bubble .typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.msg-bubble .typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dot { 0%,80%,100%{transform:scale(1);opacity:0.4} 40%{transform:scale(1.2);opacity:1} }

/* Booking panel */
.booking-panel {
  padding: 28px;
  background: var(--bg);
  overflow-y: auto;
}
.booking-panel::-webkit-scrollbar { width: 4px; }
.booking-panel::-webkit-scrollbar-thumb { background: var(--border); }

.panel-title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.date-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.date-nav button {
  background: none; border: none;
  color: var(--text-muted); cursor: pointer;
  font-size: 1rem;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s;
}
.date-nav button:hover { color: var(--text); background: var(--surface-2); }
.date-nav span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}

.days-grid {
  display: grid;
  grid-template-columns: repeat(7,1fr);
  gap: 4px;
  margin-bottom: 20px;
}
.day-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 4px 0;
}
.slot {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 4px;
  text-align: center;
  cursor: default;
  transition: all 0.2s;
  font-size: 0.75rem;
}
.slot .day { font-weight: 600; color: var(--text); font-size: 0.7rem; }
.slot .num { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--text); line-height: 1.2; }
.slot.booked {
  background: rgba(232,255,60,0.06);
  border-color: rgba(232,255,60,0.2);
}
.slot.booked .num { color: var(--accent); }
.slot.locked { opacity: 0.35; cursor: not-allowed; }
.slot.mine {
  background: rgba(60,255,160,0.08);
  border-color: rgba(60,255,160,0.4);
}
.slot.mine .num { color: var(--green); }

.slots-list { display: none; flex-direction: column; gap: 6px; margin-top: 16px; }
.slots-list.active { display: flex; }
.slot-time-btn {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.85rem;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.slot-time-btn:hover:not(.taken) { border-color: var(--accent); color: var(--accent); }
.slot-time-btn.taken {
  opacity: 0.3; cursor: not-allowed;
  background: transparent;
  border-color: var(--border);
  color: var(--text-muted);
}
.slot-time-btn.mine {
  background: rgba(60,255,160,0.1);
  border-color: rgba(60,255,160,0.4);
  color: var(--green);
}

.confirmed-banner {
  margin-top: 20px;
  padding: 16px;
  background: rgba(60,255,160,0.08);
  border: 1px solid rgba(60,255,160,0.3);
  border-radius: 10px;
  text-align: center;
  display: none;
}
.confirmed-banner.active { display: block; animation: msg-in 0.4s ease; }
.confirmed-banner .check {
  width: 40px; height: 40px;
  background: var(--green);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 10px;
  font-size: 1.1rem;
}
.confirmed-banner h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 4px; }
.confirmed-banner p { font-size: 0.78rem; color: var(--text-muted); }

/* ACTION BAR */
.action-bar {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.action-btn {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  font-family: var(--font-body);
}
.action-btn.primary {
  background: var(--accent);
  color: #000;
}
.action-btn.primary:hover { background: #d4eb00; }
.action-btn.primary:disabled { opacity: 0.4; cursor: not-allowed; }
.action-btn.secondary {
  background: var(--surface-2);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.action-btn.secondary:hover { color: var(--text); border-color: var(--text-muted); }

/* STATUS LOG */
.status-log {
  margin-top: 16px;
  padding: 12px;
  background: var(--surface);
  border-radius: 8px;
  font-size: 0.72rem;
  color: var(--text-muted);
  display: none;
}
.status-log.active { display: block; }
.status-log .log-entry { display: flex; gap: 8px; padding: 3px 0; align-items: center; }
.status-log .log-entry::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
}
.status-log .log-entry.ok::before { background: var(--green); }
.status-log .log-entry.acc::before { background: var(--accent); }

/* FEATURES */
.features {
  padding: 80px 48px;
  max-width: 900px;
  margin: 0 auto;
}
.features h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.25s;
}
.feature-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.feature-icon {
  width: 40px; height: 40px;
  background: var(--accent-dim);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 14px;
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* CTA SECTION */
.cta-section {
  padding: 80px 48px 120px;
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(232,255,60,0.03));
}
.cta-section h2 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.cta-section p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 36px;
}
.cta-btn {
  display: inline-block;
  padding: 14px 36px;
  background: var(--accent);
  color: #000;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,255,60,0.3); }

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
}
footer a { color: var(--text-muted); text-decoration: none; }
footer a:hover { color: var(--text); }

/* RESPONSIVE */
@media (max-width: 768px) {
  nav { padding: 16px 24px; }
  .hero { padding: 120px 24px 60px; }
  .demo-section { padding: 0 24px 80px; }
  .demo-container { grid-template-columns: 1fr; }
  .booking-panel { border-top: 1px solid var(--border); border-right: none; }
  .features { padding: 60px 24px; }
  .features-grid { grid-template-columns: 1fr; }
  .cta-section { padding: 60px 24px 80px; }
  footer { padding: 20px 24px; flex-direction: column; gap: 8px; }
}