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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font, 'DM Sans', system-ui, sans-serif);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: min(1140px, 100% - 2rem);
  margin-inline: auto;
}

/* Demo badge */
.demo-badge {
  position: fixed;
  top: 80px;
  right: 1rem;
  z-index: 99;
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: #fbbf24;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  letter-spacing: 0.03em;
}

.demo-badge a {
  color: inherit;
  text-decoration: none;
}

.demo-badge a:hover {
  text-decoration: underline;
}

/* Header */
.demo-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 15, 26, 0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.1));
}

.demo-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.demo-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-weight: 700;
  font-size: 1.2rem;
}

.demo-logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-gradient, linear-gradient(135deg, var(--accent), var(--accent-light)));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 20px var(--accent-glow, rgba(59, 130, 246, 0.3));
}

.demo-nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.demo-nav-links a {
  color: var(--text-muted, #94a3b8);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.demo-nav-links a:hover {
  color: var(--text);
}

.demo-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.demo-nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.demo-nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.demo-nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.demo-nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

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

.btn-primary {
  background: var(--accent-gradient, linear-gradient(135deg, var(--accent-light, #60a5fa), var(--accent, #3b82f6)));
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow, rgba(59, 130, 246, 0.35));
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.15));
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.35);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

/* Glass cards */
.glass {
  background: var(--glass-bg, rgba(255, 255, 255, 0.05));
  backdrop-filter: blur(16px);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  border-radius: var(--radius-lg, 20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.glass-card {
  padding: 1.75rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Section */
section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-muted, #94a3b8);
  max-width: 560px;
  margin-inline: auto;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-light, #60a5fa);
  margin-bottom: 0.75rem;
}

/* Hero */
.demo-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  overflow: hidden;
}

.demo-hero-bg {
  position: absolute;
  inset: 0;
  background: var(--hero-bg, radial-gradient(ellipse at 30% 20%, var(--accent-glow) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(124, 58, 237, 0.15) 0%, transparent 50%),
    var(--bg));
  z-index: 0;
}

.demo-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: float 8s ease-in-out infinite;
}

.demo-hero-orb-1 {
  width: 400px;
  height: 400px;
  background: var(--accent, #3b82f6);
  top: 10%;
  right: -10%;
}

.demo-hero-orb-2 {
  width: 300px;
  height: 300px;
  background: var(--accent-secondary, #8b5cf6);
  bottom: 10%;
  left: -5%;
  animation-delay: -4s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-20px, 20px) scale(1.05); }
}

.demo-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}

.demo-hero-content h1 {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.demo-hero-content h1 span {
  background: var(--accent-gradient, linear-gradient(135deg, var(--accent-light), var(--accent)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.demo-hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted, #94a3b8);
  margin-bottom: 2rem;
}

.demo-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Forms */
.form-grid {
  display: grid;
  gap: 1.25rem;
}

.form-row label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--text-muted, #94a3b8);
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.12));
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent, #3b82f6);
  box-shadow: 0 0 0 3px var(--accent-glow, rgba(59, 130, 246, 0.2));
}

.form-row textarea {
  resize: vertical;
  min-height: 80px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Time slots */
.time-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.time-slot {
  padding: 0.5rem 1rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.12));
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.time-slot:hover:not(.booked) {
  border-color: var(--accent);
  background: var(--accent-glow, rgba(59, 130, 246, 0.15));
}

.time-slot.selected {
  background: var(--accent, #3b82f6);
  border-color: var(--accent);
  color: #fff;
}

.time-slot.booked {
  opacity: 0.4;
  cursor: not-allowed;
  text-decoration: line-through;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--glass-bg, rgba(17, 24, 39, 0.95));
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  z-index: 1000;
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
  max-width: 90%;
  text-align: center;
}

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

/* MBD CTA Banner */
.mbd-cta {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(124, 58, 237, 0.15));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 4rem 0;
  text-align: center;
}

.mbd-cta h3 {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.75rem;
}

.mbd-cta p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.mbd-cta-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.mbd-cta-contacts a {
  color: var(--accent-light, #60a5fa);
  text-decoration: none;
  font-weight: 500;
}

.mbd-cta-contacts a:hover {
  text-decoration: underline;
}

.mbd-powered {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

.mbd-powered a {
  color: var(--accent-light);
  text-decoration: none;
}

/* Footer */
.demo-footer {
  padding: 2rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.demo-footer a {
  color: var(--accent-light);
  text-decoration: none;
}

/* Floating actions */
.demo-floats {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.demo-float {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s;
}

.demo-float:hover {
  transform: scale(1.1);
}

.demo-float-wa {
  background: #25d366;
}

.demo-float-emergency {
  background: #ef4444;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
  50% { box-shadow: 0 0 0 12px rgba(239, 68, 68, 0); }
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Stars */
.stars {
  color: #fbbf24;
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
}

/* Grid helpers */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-card, #111827);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 20px);
  padding: 2rem;
  max-width: 480px;
  width: 100%;
  transform: scale(0.9);
  transition: transform 0.3s;
}

.modal-overlay.open .modal-content {
  transform: scale(1);
}

.modal-close {
  float: right;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: var(--text);
}

@media (max-width: 768px) {
  .demo-nav-toggle {
    display: flex;
  }

  .demo-nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 15, 26, 0.98);
    backdrop-filter: blur(16px);
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s, opacity 0.3s, visibility 0.3s;
  }

  .demo-nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .form-row-2 {
    grid-template-columns: 1fr;
  }

  .demo-badge {
    top: auto;
    bottom: 5.5rem;
    right: 0.75rem;
    font-size: 0.65rem;
  }
}
