:root {
  color-scheme: dark;
  --background: #070914;
  --surface: #101426;
  --surface-secondary: #171c33;
  --surface-soft: rgba(255, 255, 255, .06);
  --text-primary: #ffffff;
  --text-secondary: #b8c0dc;
  --text-muted: #7f8aad;
  --primary: #7c5cff;
  --secondary: #27c2ff;
  --accent: #ff4fd8;
  --success: #3ddc97;
  --warning: #ffd166;
  --border: rgba(255, 255, 255, .12);
  --shadow: 0 24px 80px rgba(0, 0, 0, .35);
  --glow: 0 0 46px rgba(124, 92, 255, .34);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1180px;
  --header-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-primary);
  background:
    radial-gradient(circle at 20% 5%, rgba(124, 92, 255, .24), transparent 32rem),
    radial-gradient(circle at 90% 12%, rgba(255, 79, 216, .14), transparent 30rem),
    linear-gradient(180deg, #070914 0%, #0a0d19 52%, #070914 100%);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid rgba(39, 194, 255, .8); outline-offset: 3px; }

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 200;
  transform: translateY(-140%);
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--text-primary);
  color: var(--background);
}
.skip-link:focus { transform: translateY(0); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: rgba(7, 9, 20, .72);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled {
  background: rgba(7, 9, 20, .9);
  border-color: var(--border);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .2);
}
.nav-wrap {
  height: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
  letter-spacing: 0;
}
.logo img { flex: 0 0 auto; }
.site-menu {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--text-secondary);
  font-size: 14px;
}
.site-menu a:hover { color: var(--text-primary); }
.nav-login {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
}
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}
.menu-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 99px;
  background: var(--text-primary);
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 96px 22px;
}
.hero {
  min-height: 100svh;
  padding-top: calc(var(--header-h) + 68px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, .95fr);
  align-items: center;
  gap: 46px;
}
.hero h1, .section-heading h2, .live h2, .final-cta h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: .98;
}
.hero h1 {
  max-width: 680px;
  font-size: clamp(48px, 8vw, 88px);
}
.hero p {
  max-width: 650px;
  color: var(--text-secondary);
  font-size: 19px;
  line-height: 1.65;
}
.badge, .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 18px;
  padding: 8px 12px;
  border: 1px solid rgba(124, 92, 255, .35);
  border-radius: 999px;
  background: rgba(124, 92, 255, .13);
  color: #dcd6ff;
  font-size: 13px;
  font-weight: 700;
}
.actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary) 55%, var(--accent));
  box-shadow: var(--glow);
}
.btn-secondary {
  color: var(--text-primary);
  border-color: var(--border);
  background: rgba(255, 255, 255, .07);
}
.microcopy {
  font-size: 14px !important;
  color: var(--text-muted) !important;
}

.hero-product { position: relative; min-height: 560px; }
.product-shell {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .75fr;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255,255,255,.1), rgba(255,255,255,.035));
  box-shadow: var(--shadow);
}
.mock-admin, .mock-public, .card, .step, .demo-card, .price-card, .stats-dashboard, .contact-form, .live-screen {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(16, 20, 38, .82);
  box-shadow: 0 14px 50px rgba(0,0,0,.22);
}
.mock-admin { padding: 16px; }
.mock-top { display: flex; gap: 6px; margin-bottom: 14px; }
.mock-top span { width: 10px; height: 10px; border-radius: 50%; background: var(--text-muted); }
.mock-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
}
.mock-toolbar small { color: var(--success); }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0; }
.photo-grid div, .demo-photo {
  aspect-ratio: 1 / 1;
  border: 0;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(39,194,255,.75), rgba(124,92,255,.22)),
    url("../images/event-placeholder.svg") center / cover;
}
.photo-grid div:nth-child(2), .demo-photo.alt { background: linear-gradient(135deg, rgba(255,79,216,.72), rgba(39,194,255,.24)); }
.photo-grid div:nth-child(3), .demo-photo.warm { background: linear-gradient(135deg, rgba(255,209,102,.78), rgba(124,92,255,.28)); }
.mock-form {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 10px;
  align-items: center;
}
.mock-form label { color: var(--text-muted); font-size: 13px; }
.mock-form span {
  padding: 10px;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
}
.mock-form button {
  grid-column: 1 / -1;
  border: 0;
  border-radius: 12px;
  padding: 12px;
  font-weight: 850;
  color: #061019;
  background: var(--success);
}
.mock-public {
  padding: 22px;
  align-self: end;
  text-align: center;
  background: linear-gradient(180deg, rgba(124,92,255,.18), rgba(16,20,38,.92));
}
.mock-public img, .live-screen img, .qr-box img {
  padding: 12px;
  border-radius: 18px;
  background: #fff;
}
.mock-public strong, .live-screen strong { display: block; margin-top: 16px; }
.mock-public small { color: var(--text-secondary); }
.floating-pill {
  position: absolute;
  z-index: 2;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(7, 9, 20, .84);
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 800;
}
.pill-a { left: -8px; top: 24px; }
.pill-b { right: 20px; top: 78px; }
.pill-c { left: 42px; bottom: 80px; }
.pill-d { right: -10px; bottom: 36px; }

.band {
  max-width: none;
  padding: 34px 22px;
  border-block: 1px solid var(--border);
  background: rgba(255,255,255,.035);
}
.band h2 {
  margin: 0 auto 18px;
  max-width: var(--max);
  color: var(--text-secondary);
  font-size: 16px;
  text-align: center;
}
.category-row {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.category-row span, .integration-grid span {
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-secondary);
  background: rgba(255,255,255,.04);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 36px;
}
.section-heading.center { margin-inline: auto; text-align: center; }
.section-heading h2, .live h2, .final-cta h2 {
  font-size: clamp(34px, 5vw, 62px);
}
.section-heading p, .live p, .final-cta p {
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1.65;
}
.problem-grid, .benefit-grid, .case-grid, .pricing-grid, .testimonial-grid, .compare-cards, .product-grid {
  display: grid;
  gap: 16px;
}
.problem-grid { grid-template-columns: repeat(7, minmax(180px, 1fr)); overflow-x: auto; padding-bottom: 10px; }
.benefit-grid { grid-template-columns: repeat(4, 1fr); }
.case-grid { grid-template-columns: repeat(3, 1fr); }
.pricing-grid, .compare-cards { grid-template-columns: repeat(3, 1fr); }
.product-grid { grid-template-columns: repeat(4, 1fr); }
.testimonial-grid { grid-template-columns: repeat(2, 1fr); }
.card, .step, .price-card, .product-card { padding: 22px; }
.card h3, .price-card h3, .product-card h3 { margin: 0 0 10px; font-size: 21px; }
.card p, .step p, .price-card p, .product-card p, .card li, .price-card li, .product-card li {
  color: var(--text-secondary);
  line-height: 1.58;
}
.product-card {
  min-height: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255,255,255,.075), rgba(16,20,38,.82)),
    rgba(16,20,38,.82);
  box-shadow: 0 14px 50px rgba(0,0,0,.22);
}
.product-card > span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 16px;
  padding: 8px 10px;
  border-radius: 999px;
  color: #bfeeff;
  background: rgba(39, 194, 255, .13);
  font-size: 13px;
  font-weight: 850;
}
.product-card h3 { font-size: 26px; }
.product-card ul {
  display: grid;
  gap: 9px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.product-card li {
  padding: 10px 11px;
  border-radius: 12px;
  background: rgba(255,255,255,.055);
}
.featured-product {
  border-color: rgba(255,79,216,.42);
  box-shadow: var(--glow);
}
.module-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.module-grid span {
  padding: 10px 13px;
  border: 1px solid rgba(61,220,151,.24);
  border-radius: 999px;
  color: #d8fff0;
  background: rgba(61,220,151,.08);
  font-weight: 750;
}
.transition-line {
  margin-top: 26px;
  padding: 20px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(124,92,255,.16), rgba(39,194,255,.11));
  color: #dfe7ff;
  font-weight: 800;
}

.flow-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.flow-line span {
  padding: 11px 13px;
  border-radius: 12px;
  background: rgba(255,255,255,.07);
  font-weight: 800;
}
.flow-line i {
  width: 38px;
  height: 2px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
}
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.step strong { display: block; margin-bottom: 8px; color: #fff; }

.demo-card {
  display: grid;
  grid-template-columns: .9fr 1fr .8fr;
  gap: 20px;
  align-items: center;
  padding: 24px;
}
.demo-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.demo-photo { min-height: 118px; border: 2px solid transparent; }
.demo-photo.is-selected { border-color: var(--success); box-shadow: 0 0 0 4px rgba(61,220,151,.14); }
.demo-form, .contact-form { display: grid; gap: 12px; }
label { color: var(--text-secondary); font-weight: 700; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 14px;
  color: var(--text-primary);
  background: rgba(255,255,255,.06);
}
textarea { resize: vertical; }
.form-message { min-height: 22px; margin: 4px 0 0; color: var(--text-secondary); }
.form-message.is-error { color: #ff9eb6; }
.form-message.is-success { color: var(--success); }
.demo-result { text-align: center; }
.qr-box { min-height: 188px; display: grid; place-items: center; }
.qr-box.is-active { animation: pop .45s ease both; }
.demo-result a { color: #bfeeff; text-decoration: underline; }

.live {
  display: grid;
  grid-template-columns: 1fr .78fr;
  align-items: center;
  gap: 28px;
}
.live ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 0;
  list-style: none;
}
.live li {
  padding: 12px;
  border-radius: 12px;
  color: var(--text-secondary);
  background: rgba(255,255,255,.06);
}
.live-screen {
  display: grid;
  place-items: center;
  min-height: 420px;
  padding: 30px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 30%, rgba(39,194,255,.2), transparent 18rem),
    rgba(16,20,38,.9);
}
.live-screen span { color: var(--text-secondary); font-weight: 800; }

.glow-card { box-shadow: var(--glow); border-color: rgba(124,92,255,.36); }
.muted-card { opacity: .76; }
.stats-dashboard {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  padding: 22px;
}
.stat {
  min-height: 120px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(255,255,255,.055);
}
.stat strong { display: block; font-size: 34px; }
.stat span { color: var(--text-secondary); }
.chart { grid-column: 1 / -1; width: 100%; min-height: 150px; }

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: rgba(16,20,38,.82);
}
th, td {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  color: var(--text-secondary);
}
th { color: var(--text-primary); background: rgba(255,255,255,.055); }
th:last-child, td:last-child { color: #fff; background: rgba(124,92,255,.11); font-weight: 850; }

.price-card { display: flex; flex-direction: column; gap: 10px; }
.price-card ul { padding-left: 20px; flex: 1; }
.featured {
  transform: translateY(-10px);
  border-color: rgba(255,79,216,.42);
  background: linear-gradient(180deg, rgba(124,92,255,.22), rgba(16,20,38,.92));
}
.featured > span {
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(61,220,151,.16);
  color: var(--success);
  font-weight: 800;
}

.integration-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.faq-list {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(16,20,38,.82);
}
.faq-list button {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--border);
  padding: 18px 20px;
  color: var(--text-primary);
  background: transparent;
  text-align: left;
  font-weight: 850;
}
.faq-list button::after { content: "+"; float: right; color: var(--secondary); }
.faq-list button[aria-expanded="true"]::after { content: "-"; }
.faq-list div {
  display: none;
  padding: 0 20px 18px;
  color: var(--text-secondary);
}
.faq-list div.is-open { display: block; }

.final-cta {
  max-width: none;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(124,92,255,.18), rgba(39,194,255,.1), rgba(255,79,216,.14));
}
.final-cta > div { max-width: 850px; margin: 0 auto; }
.final-cta small { display: block; margin-top: 22px; color: var(--text-muted); }

.contact-form {
  max-width: 760px;
  padding: 24px;
}
.checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.5;
}
.checkbox input { width: auto; margin-top: 4px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 22px 32px;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 28px;
  border-top: 1px solid var(--border);
}
.footer p, .footer a, .footer small { color: var(--text-secondary); }
.footer h2 { margin: 0 0 12px; font-size: 15px; }
.footer nav { display: grid; gap: 10px; align-content: start; }
.footer small { grid-column: 1 / -1; }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@keyframes pop {
  0% { transform: scale(.92); opacity: .55; }
  100% { transform: scale(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 1060px) {
  .hero { grid-template-columns: 1fr; }
  .hero-product { min-height: auto; }
  .benefit-grid, .case-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stats-dashboard { grid-template-columns: repeat(3, 1fr); }
  .demo-card, .live { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .site-menu {
    position: fixed;
    left: 16px;
    right: 16px;
    top: calc(var(--header-h) - 2px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(10, 13, 25, .98);
    box-shadow: var(--shadow);
  }
  .site-menu.is-open { display: flex; }
  .site-menu a { padding: 10px 12px; }
  .hero { padding-top: calc(var(--header-h) + 40px); }
  .hero h1 { font-size: clamp(42px, 13vw, 64px); }
  .product-shell { grid-template-columns: 1fr; }
  .floating-pill { display: none; }
  .pricing-grid, .testimonial-grid, .compare-cards, .product-grid, .footer { grid-template-columns: 1fr; }
  .featured { transform: none; }
  .stats-dashboard { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .section { padding: 72px 16px; }
  .nav-wrap { padding: 0 16px; }
  .hero { padding-inline: 16px; }
  .hero p, .section-heading p { font-size: 16px; }
  .actions .btn, .contact-form .btn { width: 100%; }
  .benefit-grid, .case-grid, .steps, .live ul, .stats-dashboard, .demo-photos { grid-template-columns: 1fr; }
  .demo-card, .contact-form { padding: 18px; }
  .stat strong { font-size: 28px; }
  .flow-line i { width: 22px; }
  .flow-line { align-items: stretch; }
  .flow-line span { flex: 1 1 100%; }
  .flow-line i { display: none; }
}
