:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --accent: #00f0ff;
  --accent-soft: rgba(0, 240, 255, 0.12);
  --growth: #00ff9d;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-strong: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.12);
  --muted: #8ea2b8;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  background:
    radial-gradient(circle at top left, rgba(0, 240, 255, 0.14), transparent 28%),
    radial-gradient(circle at 85% 12%, rgba(0, 255, 157, 0.08), transparent 24%),
    radial-gradient(circle at bottom right, rgba(0, 153, 255, 0.08), transparent 26%),
    var(--bg);
  max-width: 100%;
  overflow-x: hidden;
  line-height: 1.5;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

body.menu-open {
  overflow: hidden;
  height: 100vh;
  touch-action: none;
  overscroll-behavior: none;
}

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

[x-cloak] {
  display: none !important;
}

:where(.grid, .flex) > * {
  min-width: 0;
}

:where(h1, h2, h3, h4, h5, h6, p, a, span, li, button, input, textarea, label, small, strong) {
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

img,
svg,
video,
canvas,
iframe {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
textarea,
select,
button {
  font: inherit;
}

textarea {
  resize: vertical;
}

::selection {
  background: rgba(0, 240, 255, 0.22);
  color: white;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 88%);
}

.orb {
  position: absolute;
  border-radius: 9999px;
  filter: blur(50px);
  opacity: 0.45;
  animation: float-orb 12s ease-in-out infinite;
}

.orb-cyan {
  background: rgba(0, 240, 255, 0.2);
}

.orb-green {
  background: rgba(0, 255, 157, 0.12);
}

.glass-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--border);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
}

.glass-card-hover {
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    background 220ms ease;
}

.glass-card-hover:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 240, 255, 0.28);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.section-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
}

.section-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 240, 255, 0.07), transparent 28%);
  pointer-events: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(0, 240, 255, 0.22);
  background: rgba(0, 240, 255, 0.09);
  padding: 0.45rem 0.9rem;
  color: #c6fbff;
}

.btn-primary {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.98), rgba(0, 171, 255, 0.88));
  color: #03151c;
  box-shadow: 0 16px 40px rgba(0, 240, 255, 0.22);
}

.btn-primary:hover {
  box-shadow: 0 18px 48px rgba(0, 240, 255, 0.3);
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: white;
}

.btn-secondary:hover {
  border-color: rgba(0, 240, 255, 0.22);
  background: rgba(255, 255, 255, 0.05);
}

.btn-growth {
  background: linear-gradient(135deg, rgba(0, 255, 157, 0.98), rgba(0, 214, 130, 0.88));
  color: #02120d;
  box-shadow: 0 16px 42px rgba(0, 255, 157, 0.2);
}

.btn-growth:hover {
  box-shadow: 0 20px 48px rgba(0, 255, 157, 0.28);
}

.metric-number {
  background: linear-gradient(135deg, #ffffff, #9eeeff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.line-accent {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.5), transparent);
}

.text-muted {
  color: var(--muted);
}

.hero-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
}

.demo-frame {
  background:
    linear-gradient(180deg, rgba(0, 240, 255, 0.08), transparent 18%),
    rgba(6, 8, 15, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 26px 70px rgba(0, 0, 0, 0.42);
}

.timeline-line {
  background: linear-gradient(180deg, rgba(0, 240, 255, 0.55), rgba(0, 240, 255, 0));
}

.floating-cta {
  box-shadow: 0 18px 56px rgba(0, 240, 255, 0.26);
}

.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(10px);
}

.mobile-menu-panel {
  position: fixed;
  left: 0.75rem;
  right: 0.75rem;
  top: 0.75rem;
  z-index: 60;
  max-height: calc(100vh - 1.5rem);
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(9, 12, 19, 0.98), rgba(9, 12, 19, 0.94)),
    rgba(255, 255, 255, 0.03);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.mobile-lang-switch {
  display: flex;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.25rem;
}

.mobile-lang-switch button {
  flex: 1 1 0;
}

@keyframes float-orb {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, -14px, 0) scale(1.04);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  animation: fade-up 0.75s ease both;
}

@media (max-width: 640px) {
  body {
    line-height: 1.6;
  }

  h1,
  h2,
  h3 {
    line-height: 1.15;
  }

  .pill {
    max-width: 100%;
    padding: 0.45rem 0.8rem;
  }

  .floating-cta {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    text-align: center;
  }
}
