:root {
  color-scheme: light dark;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #ffffff;
  color: #07111f;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: #f8fafc;
  color: #07111f;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.site-shell,
.site-surface,
.site-header,
.hero-shell,
.light-section,
.site-footer,
.theme-card,
.theme-toggle,
.theme-button-ghost,
.theme-version-toggle,
.theme-card-figure,
.theme-subcard,
.cta-button,
.hero-media,
.hero-stat {
  transition:
    background-color 220ms ease,
    border-color 220ms ease,
    color 220ms ease,
    box-shadow 220ms ease;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.hero-shell {
  background:
    radial-gradient(circle at 74% 38%, rgba(19, 93, 248, 0.08), transparent 35%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.hero-media {
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 28px 84px rgba(7, 17, 31, 0.08);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(7, 17, 31, 0.08);
  border-radius: inherit;
  pointer-events: none;
}

.hero-media-image {
  display: block;
  transform: translateZ(0);
}

.hero-media-dark {
  display: none;
}

.dark-stage {
  background:
    linear-gradient(90deg, rgba(19, 93, 248, 0.08), transparent 34%, transparent 66%, rgba(16, 184, 199, 0.06)),
    linear-gradient(180deg, #050914 0%, #07101d 54%, #050811 100%);
}

.stage-dots {
  background-image: radial-gradient(rgba(125, 157, 255, 0.24) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.5;
  animation: stage-drift 34s linear infinite;
}

.stage-vignette {
  background:
    linear-gradient(180deg, rgba(7, 11, 20, 0.16), transparent 18%, transparent 78%, rgba(7, 11, 20, 0.48)),
    linear-gradient(90deg, rgba(7, 11, 20, 0.18), transparent 18%, transparent 82%, rgba(7, 11, 20, 0.18));
}

.dark-stage .text-slate-400 {
  color: #c1ccdc !important;
}

.dark-stage .text-slate-300 {
  color: #d8e0ec !important;
}

.lottie-layer svg {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.premium-panel {
  position: relative;
  isolation: isolate;
}

.premium-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.08) 42%, transparent 68%);
  opacity: 0;
  transform: translateX(-28%);
  transition:
    opacity 260ms ease,
    transform 900ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.premium-panel:hover::before {
  opacity: 1;
  transform: translateX(28%);
}

.premium-panel:hover .lottie-layer {
  filter: drop-shadow(0 0 22px rgba(16, 184, 199, 0.18));
}

html[data-theme="dark"] body,
html[data-theme="dark"] .site-shell,
html[data-theme="dark"] .site-surface {
  background: #050914 !important;
  color: #f8fbff !important;
}

html[data-theme="dark"] .site-header {
  background: rgba(5, 9, 20, 0.84) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .hero-shell {
  background:
    radial-gradient(circle at 72% 42%, rgba(19, 93, 248, 0.18), transparent 34%),
    radial-gradient(circle at 26% 42%, rgba(16, 184, 199, 0.12), transparent 32%),
    linear-gradient(180deg, #060b16 0%, #050914 100%);
}

html[data-theme="dark"] .light-section,
html[data-theme="dark"] .site-footer {
  background: #07101d !important;
  color: #f8fbff !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

html[data-theme="dark"] .theme-card,
html[data-theme="dark"] .hero-stat,
html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .theme-button-ghost,
html[data-theme="dark"] .theme-version-toggle,
html[data-theme="dark"] .theme-card-figure,
html[data-theme="dark"] .theme-subcard {
  background: rgba(12, 20, 34, 0.84) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: #f8fbff !important;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .hero-media {
  background: rgba(12, 20, 34, 0.64);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .hero-media::after {
  border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .hero-media-light {
  display: none;
}

html[data-theme="dark"] .hero-media-dark {
  display: block;
}

html[data-theme="dark"] .theme-version-active {
  background: #e7eefb !important;
  color: #07111f !important;
}

html[data-theme="dark"] .theme-version-inactive {
  color: #d8e0ec !important;
}

html[data-theme="dark"] .cta-dark {
  background: #f8fbff !important;
  color: #07111f !important;
  box-shadow: 0 18px 45px rgba(248, 251, 255, 0.12);
}

html[data-theme="dark"] .workflow-step-muted {
  background: rgba(255, 255, 255, 0.045) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #7f8da3 !important;
}

html[data-theme="dark"] .workflow-step-line {
  background: rgba(255, 255, 255, 0.14) !important;
}

html[data-theme="dark"] .bg-bone {
  background-color: #07101d !important;
}

html[data-theme="dark"] .text-ink,
html[data-theme="dark"] .light-section .text-slate-950 {
  color: #f8fbff !important;
}

html[data-theme="dark"] .text-slate-700,
html[data-theme="dark"] .text-slate-600,
html[data-theme="dark"] .text-slate-500 {
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .site-header .bg-ink,
html[data-theme="dark"] .theme-toggle:hover {
  background: #e7eefb !important;
  color: #07111f !important;
}

html[data-theme="dark"] input[type="range"] {
  accent-color: #10b8c7;
}

@keyframes stage-drift {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 44px 44px;
  }
}

.noise {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 28px 28px;
}

.dot-grid {
  background-image: radial-gradient(rgba(19, 93, 248, 0.11) 1px, transparent 1px);
  background-size: 22px 22px;
}

.dot-field-container {
  position: relative;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-copy {
  width: calc(100vw - 2rem);
  max-width: 24rem;
}

@media (min-width: 640px) {
  .hero-copy {
    max-width: 44rem;
  }
}

@media (min-width: 1024px) {
  .hero-copy {
    max-width: 37rem;
  }
}

.icon svg,
[data-lucide] {
  width: 1em;
  height: 1em;
  stroke-width: 2;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
