:root {
  --max: 1200px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --transition: 180ms ease;
}

body.theme-night {
  --bg: #0a0d12;
  --bg-2: #0f1319;
  --panel: rgba(20, 24, 31, 0.82);
  --panel-2: rgba(255, 255, 255, 0.03);
  --text: #eef2f7;
  --muted: #a3adb9;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.12);
  --primary: #9eb6ff;
  --primary-hover: #b5c7ff;
  --primary-text: #08101c;
  --secondary-bg: rgba(255, 255, 255, 0.035);
  --secondary-hover: rgba(255, 255, 255, 0.07);
  --accent: #8ee6cf;
  --glow-a: rgba(158, 182, 255, 0.12);
  --glow-b: rgba(142, 230, 207, 0.08);
}

body.theme-day {
  --bg: #eef2f6;
  --bg-2: #f7f9fc;
  --panel: rgba(255, 255, 255, 0.86);
  --panel-2: rgba(10, 16, 28, 0.03);
  --text: #111827;
  --muted: #5f6b7a;
  --line: rgba(17, 24, 39, 0.10);
  --line-strong: rgba(17, 24, 39, 0.14);
  --primary: #4f6fff;
  --primary-hover: #3f61f4;
  --primary-text: #ffffff;
  --secondary-bg: rgba(17, 24, 39, 0.04);
  --secondary-hover: rgba(17, 24, 39, 0.08);
  --accent: #0f9f7f;
  --glow-a: rgba(79, 111, 255, 0.10);
  --glow-b: rgba(15, 159, 127, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 10%, var(--glow-a), transparent 28%),
    radial-gradient(circle at 88% 26%, var(--glow-b), transparent 22%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.4;
  transition: background var(--transition), color var(--transition);
}

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

.shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 24px;
}

.hero {
  width: 100%;
  max-width: var(--max);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  border-radius: var(--radius-pill);
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.02em;
  margin-bottom: 22px;
  backdrop-filter: blur(8px);
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 65%, transparent);
  flex: 0 0 auto;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  max-width: 12ch;
}

.subheadline {
  margin: 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  line-height: 1.6;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 15px;
  transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
  white-space: nowrap;
}

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

.btn-primary {
  background: var(--primary);
  color: var(--primary-text);
  box-shadow: 0 10px 30px color-mix(in srgb, var(--primary) 24%, transparent);
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-secondary {
  background: var(--secondary-bg);
  color: var(--text);
  border-color: var(--line);
}

.btn-secondary:hover {
  background: var(--secondary-hover);
}

.trust {
  margin-top: 22px;
  color: var(--muted);
  font-size: 14px;
}

.card {
  background: linear-gradient(180deg, color-mix(in srgb, var(--panel) 88%, transparent), color-mix(in srgb, var(--panel) 72%, transparent));
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.card-title {
  margin: 0 0 18px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

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

.bullet-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.bullet-list li:first-child {
  border-top: none;
  padding-top: 0;
}

.bullet-icon {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 14px;
  flex: 0 0 auto;
  margin-top: 1px;
}

.bullet-text {
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
}

.bullet-text strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
  color: var(--text);
}

.mini-panel {
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.mini-panel span {
  color: var(--text);
  font-weight: 600;
}

.footer {
  width: 100%;
  border-top: 1px solid var(--line);
  padding: 14px 24px 18px;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
}

.footer-brand {
  opacity: 0.9;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  user-select: none;
  cursor: pointer;
  color: var(--muted);
}

.theme-toggle-text {
  font-size: 12px;
  letter-spacing: 0.02em;
}

.theme-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle-ui {
  position: relative;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: var(--secondary-bg);
  border: 1px solid var(--line-strong);
  transition: background var(--transition), border-color var(--transition);
}

.toggle-ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text);
  transition: transform var(--transition), background var(--transition);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.theme-toggle input:checked + .toggle-ui::after {
  transform: translateX(18px);
}

.theme-toggle input:focus-visible + .toggle-ui {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

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

  h1 {
    max-width: 14ch;
  }
}

@media (max-width: 640px) {
  .page {
    padding: 28px 18px 18px;
  }

  .card {
    padding: 22px;
    border-radius: 20px;
  }

  .actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

.page-demo {
  align-items: flex-start;
  padding-top: 40px;
}

.demo-card {
  width: min(var(--max), 100%);
  max-width: 1080px;
  margin: 0 auto;
  padding: 34px;
  line-height: 1.6;
}

.back-home {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 14px;
  color: var(--muted);
}

.demo-title {
  margin: 0 0 10px;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  letter-spacing: -0.02em;
  line-height: 1.08;
  max-width: 22ch;
}

.demo-gap {
  height: 30px;
}

.demo-lead {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.72;
  max-width: 78ch;
}

.demo-card h2 {
  margin: 28px 0 12px;
  font-size: 1.18rem;
  letter-spacing: 0.01em;
}

.demo-list {
  margin: 0 0 6px;
  padding: 0 0 0 22px;
  display: grid;
  gap: 14px;
  color: var(--text);
  max-width: 88ch;
}

.demo-list li {
  line-height: 1.65;
  color: color-mix(in srgb, var(--text) 92%, var(--muted) 8%);
}

.demo-form {
  margin-top: 22px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--line-strong) 88%, var(--primary) 12%);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--panel) 82%, #05070b 18%), color-mix(in srgb, var(--panel) 90%, #010205 10%));
  border-radius: var(--radius-lg);
  width: min(70%, 760px);
  margin-left: auto;
  margin-right: auto;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--line) 65%, transparent), 0 16px 34px rgba(0, 0, 0, 0.28);
}

.demo-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.demo-field {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.demo-field span {
  font-size: 13px;
  color: var(--muted);
}

.demo-field input,
.demo-field textarea {
  width: 100%;
  border: 1px solid color-mix(in srgb, var(--line-strong) 82%, var(--primary) 18%);
  border-radius: 10px;
  background: color-mix(in srgb, var(--panel) 76%, #03050a 24%);
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
}

.demo-field textarea {
  resize: vertical;
  min-height: 140px;
}

.demo-field input:focus-visible,
.demo-field textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

.demo-feedback {
  margin: 10px 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
}

.demo-feedback-success {
  border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
  background: color-mix(in srgb, var(--accent) 16%, transparent);
}

.demo-feedback-error {
  border: 1px solid rgba(255, 120, 120, 0.55);
  background: rgba(255, 120, 120, 0.08);
}

.demo-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.demo-contact-email {
  margin: 4px 0 6px;
  display: inline-flex;
}

.demo-contact-email a {
  color: color-mix(in srgb, white 94%, var(--text) 6%);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid color-mix(in srgb, white 42%, transparent);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, white 9%, #070a12 91%),
    color-mix(in srgb, white 5%, #04070e 95%)
  );
  padding: 8px 12px;
  border-radius: 10px;
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, white 20%, transparent),
    inset 0 -1px 0 color-mix(in srgb, black 35%, transparent),
    0 10px 24px rgba(0, 0, 0, 0.42);
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.demo-contact-email a:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, white 58%, transparent);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, white 13%, #070a12 87%),
    color-mix(in srgb, white 7%, #04070e 93%)
  );
}

.calendar-panel {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  width: min(70%, 760px);
  margin-left: auto;
  margin-right: auto;
}

.calendar-header {
  margin-bottom: 12px;
}

.calendar-title {
  margin: 0;
  font-size: 1.16rem;
  letter-spacing: 0.01em;
}

.calendar-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.calendar-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.calendar-day-label {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.03em;
}

.calendar-day {
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 82%, transparent);
  color: var(--text);
  font: inherit;
}

.calendar-empty {
  border-style: dashed;
  opacity: 0.4;
}

.calendar-day:not(:disabled):hover {
  border-color: var(--line-strong);
}

.calendar-day.is-selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary) 28%, transparent);
}

.calendar-day:disabled,
.calendar-day.calendar-past {
  opacity: 0.45;
  color: color-mix(in srgb, var(--muted) 85%, var(--text) 15%);
  border-color: color-mix(in srgb, var(--line) 88%, transparent);
  cursor: not-allowed;
}

.slot-panel {
  margin-top: 18px;
}

.slot-title {
  margin: 0;
  font-size: 1rem;
}

.slot-selected {
  margin: 6px 0 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.slot-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, 126px);
  gap: 10px;
  justify-content: center;
  overflow: hidden;
  max-height: 0;
  transition: max-height 340ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.slot-btn {
  width: 126px;
  height: 126px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--line-strong) 85%, var(--primary) 15%);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--panel) 85%, #04060b 15%), color-mix(in srgb, var(--panel) 92%, #010205 8%));
  color: var(--text);
  font: inherit;
  font-size: 0.78rem;
  line-height: 1.35;
  letter-spacing: 0.01em;
  text-align: center;
  padding: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--line) 55%, transparent);
  transition: transform var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.slot-btn:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--line-strong) 72%, var(--primary) 28%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 24%, transparent), 0 8px 18px rgba(0, 0, 0, 0.2);
}

.slot-btn.is-selected {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 14%, var(--panel) 86%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 36%, transparent), 0 10px 22px color-mix(in srgb, var(--primary) 16%, transparent);
}

.slot-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  grid-column: 1 / -1;
  width: 100%;
  text-align: left;
}

.booking-form {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-2);
  overflow: hidden;
  max-height: 320px;
  transition:
    opacity 220ms ease,
    transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 260ms ease,
    max-height 320ms cubic-bezier(0.2, 0.8, 0.2, 1),
    margin-top 320ms cubic-bezier(0.2, 0.8, 0.2, 1),
    padding 320ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-width 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
  transform-origin: top center;
}

.booking-form.is-hidden {
  opacity: 0;
  transform: translateY(8px) scale(0.985);
  filter: blur(3px);
  pointer-events: none;
  max-height: 0;
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-width: 0;
  overflow: hidden;
}

.booking-form.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  animation: bookingReveal 340ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes bookingReveal {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .booking-form,
  .booking-form.is-visible {
    transition: none;
    animation: none;
  }
}

.booking-confirm-copy {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 760px) {
  .demo-field-row {
    grid-template-columns: 1fr;
  }

  .demo-form {
    width: 100%;
  }

  .calendar-panel {
    width: 100%;
  }

  .demo-card {
    padding: 24px;
  }

  .calendar-grid {
    gap: 6px;
  }

  .slot-list {
    grid-template-columns: repeat(auto-fill, 110px);
    gap: 8px;
  }

  .slot-btn {
    width: 110px;
    height: 110px;
    font-size: 0.74rem;
  }
}
