:root {
  --bg: #06060a;
  --bg-2: #0c0c12;
  --panel: #0e0e16;
  --card: #12121c;
  --fg: #f4f4ff;
  --muted: #9b9bb5;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(124, 124, 255, 0.3);
  --primary: #7c7cff;
  --primary2: #8a7cff;
  --primary-transparent: rgba(124, 124, 255, 0.15);
  --radius: 12px;
  --radius-lg: 20px;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

html, body {
  margin: 0;
  min-height: 100%;
}

html.lenis, html.lenis body {
  height: auto;
}

body {
  font-family: Inter, system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--muted);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

body.nav-drawer-open {
  overflow: hidden;
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
}

.m-0 { margin: 0; }

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

img {
  max-width: 100%;
  height: auto;
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% -15%, var(--primary-transparent), transparent 50%),
              var(--bg);
}

.site-grid {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  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: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 30%, black 20%, transparent 80%);
}

.container {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(6, 6, 10, 0.5);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(6, 6, 10, 0.85);
  border-bottom: 1px solid var(--border);
}

.header-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  min-height: 70px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--fg);
  font-weight: 800;
  font-family: "Plus Jakarta Sans", sans-serif;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 4px;
  background: var(--bg-2);
}

.nav-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.nav-link {
  position: relative;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav-link:hover {
  color: var(--fg);
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-link.is-active {
  color: var(--fg);
}

.nav-link.is-active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-uiverse {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.btn-uiverse::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--border);
  transform: translateY(100%);
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 0;
}

.btn-uiverse:hover::before {
  transform: translateY(0);
}

.btn-uiverse:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-uiverse:active {
  transform: scale(0.95);
}

.btn-uiverse .btn-text {
  position: relative;
  z-index: 1;
}

.btn-uiverse-primary {
  border-color: var(--primary);
  background: var(--primary-transparent);
  color: var(--fg);
}

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

.btn-uiverse-primary:hover::before {
  transform: translateY(0);
}

.btn-uiverse-primary:hover {
  color: var(--bg);
}

.btn-icon-ghost {
  display: none;
  background: transparent;
  border: none;
  color: var(--fg);
  font-size: 1.25rem;
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav-main, .nav-action-hide-sm { display: none; }
  .btn-icon-ghost { display: flex; }
  .header-bar { grid-template-columns: 1fr auto; }
}

.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 190;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-drawer.is-open {
  pointer-events: auto;
  opacity: 1;
}

.nav-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
}

.nav-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(300px, 80vw);
  height: 100%;
  background: var(--bg-2);
  border-left: 1px solid var(--border);
  padding: 6rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.nav-drawer.is-open .nav-drawer-panel {
  transform: translateX(0);
}

.nav-drawer-link {
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s ease;
}

.nav-drawer-link:hover, .nav-drawer-link.is-active {
  color: var(--fg);
}

.mt-drawer { margin-top: 2rem; }
.btn-block { width: 100%; }

.uiverse-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.uiverse-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(255,255,255,0.03) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.uiverse-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
}

.uiverse-card:hover::before {
  opacity: 1;
}

.uiverse-input-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.uiverse-input {
  width: 100%;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--fg);
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.3s ease;
  outline: none;
}

.uiverse-input:focus {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--primary);
}

.uiverse-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.hero-cinematic {
  padding: 6rem 0;
  position: relative;
}

.hero-cinematic-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 960px) {
  .hero-cinematic-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.hero-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--fg);
  margin-bottom: 1.5rem;
}

.display-title {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 1.5rem;
  color: var(--fg);
}

.display-title .grad {
  color: var(--primary);
}

.hero-lead {
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 2rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 960px) {
  .hero-ctas { justify-content: center; }
}

.uiverse-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.uiverse-stat-cell {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}

.uiverse-stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 0.5rem;
}

.uiverse-stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--fg);
  font-family: "Plus Jakarta Sans", sans-serif;
}

.section-spotlights {
  padding: 5rem 0;
}

.section-head {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--fg);
  margin-bottom: 1rem;
}

.section-desc {
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
}

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

.spotlight-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.uiverse-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--fg);
  margin: 0 0 0.75rem;
}

.uiverse-card p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
  margin: 0;
}

.panel-demo-wrapper {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  min-height: 400px;
}

.panel-sidebar {
  width: 200px;
  background: rgba(0, 0, 0, 0.2);
  border-right: 1px solid var(--border);
  padding: 1.5rem 1rem;
}

.panel-nav-item {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 0.5rem;
}

.panel-nav-item:hover, .panel-nav-item.active {
  background: rgba(255, 255, 255, 0.05);
  color: var(--fg);
}

.panel-main {
  flex: 1;
  padding: 2rem;
}

.panel-content {
  display: none;
}

.panel-content.active {
  display: block;
}

.panel-header {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 2rem;
}

.panel-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.panel-stat-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
}

.panel-stat-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 0.5rem;
}

.panel-stat-val {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--fg);
}

.auth-wrapper {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.auth-icon {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary);
  margin: 0 auto 1.5rem;
}

.auth-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--fg);
  margin: 0 0 0.5rem;
}

.auth-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 2rem;
}

.uiverse-accordion-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.uiverse-accordion-header {
  padding: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  color: var(--fg);
}

.uiverse-accordion-icon {
  transition: transform 0.3s ease;
}

.uiverse-accordion-item.active {
  border-color: var(--border-hover);
}

.uiverse-accordion-item.active .uiverse-accordion-icon {
  transform: rotate(180deg);
}

.uiverse-accordion-content {
  height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 1.25rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  line-height: 1.6;
}

.uiverse-accordion-item.active .uiverse-accordion-content {
  height: auto;
  opacity: 1;
  padding: 0 1.25rem 1.25rem;
}

.page-hero-compact {
  padding: 4rem 0 2rem;
  text-align: center;
}

.content-section {
  max-width: 800px;
  margin: 0 auto;
}

.content-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fg);
  margin: 2rem 0 1rem;
}

.content-section p, .content-section ul {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
}

.content-section li {
  margin-bottom: 0.5rem;
}

.error-stage {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.glitch-num {
  font-size: 6rem;
  font-weight: 900;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--fg);
  margin-bottom: 1rem;
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 600px) {
  .footer-inner {
    flex-direction: column;
    gap: 1rem;
  }
}

.footer-line {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-sep {
  margin: 0 0.5rem;
}

.uiverse-social {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 1.4rem;
  transition: color 0.3s ease, transform 0.3s ease;
  line-height: 1;
}

.uiverse-social:hover {
  color: var(--primary);
  transform: translateY(-2px);
}

.form-err {
  color: #ef4444;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.is-hidden {
  display: none !important;
}

.notify {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  color: var(--fg);
  font-size: 0.9rem;
  transform: translateY(200%);
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 999;
  pointer-events: none;
  opacity: 0;
}

.notify.show {
  transform: translateY(0);
  pointer-events: auto;
  opacity: 1;
}
