/* NovaCMS Main Stylesheet */
:root {
  --bg: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f8fafc;
  --custom-font: '';
}

* {
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--custom-font), "Inter", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

.hero-grid {
  background-image:
    linear-gradient(to right, rgba(17,24,39,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17,24,39,0.03) 1px, transparent 1px);
  background-size: 36px 36px;
}

.noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .04;
  background-image:
    radial-gradient(circle at 20% 20%, #000 0.5px, transparent 0.6px),
    radial-gradient(circle at 80% 40%, #000 0.5px, transparent 0.6px),
    radial-gradient(circle at 50% 80%, #000 0.5px, transparent 0.6px);
  background-size: 18px 18px, 22px 22px, 20px 20px;
}

.glass-nav {
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.72);
  box-shadow:
    0 10px 30px rgba(17,24,39,0.04),
    inset 0 1px 0 rgba(255,255,255,0.7);
  transition:
    padding .35s cubic-bezier(.2,.8,.2,1),
    background-color .35s cubic-bezier(.2,.8,.2,1),
    box-shadow .35s cubic-bezier(.2,.8,.2,1),
    border-color .35s cubic-bezier(.2,.8,.2,1),
    backdrop-filter .35s cubic-bezier(.2,.8,.2,1),
    transform .35s cubic-bezier(.2,.8,.2,1);
}

.glass-nav.scrolled {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(229,231,235,0.88);
  box-shadow:
    0 16px 36px rgba(17,24,39,0.07),
    inset 0 1px 0 rgba(255,255,255,0.78);
  transform: translateY(-2px);
}

.nav-inner {
  transition: padding .35s cubic-bezier(.2,.8,.2,1);
}

.glass-nav.scrolled .nav-inner {
  padding-top: 10px;
  padding-bottom: 10px;
}

.glass-drawer {
  background: linear-gradient(180deg, rgba(255,255,255,0.82), rgba(255,255,255,0.66));
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-left: 1px solid rgba(255,255,255,0.65);
  box-shadow:
    -24px 0 70px rgba(17,24,39,0.12),
    inset 1px 0 0 rgba(255,255,255,0.35);
}

.drawer-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 24% 14%, rgba(255,255,255,0.95), transparent 28%),
    radial-gradient(circle at 80% 20%, rgba(226,232,240,0.6), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(243,244,246,0.88), transparent 38%);
  filter: blur(34px);
  opacity: .95;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 500;
  color: #4b5563;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

.thin-card {
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  background: rgba(255,255,255,0.98);
  box-shadow: 0 4px 18px rgba(17,24,39,0.035);
  transition:
    transform .45s cubic-bezier(.2,.8,.2,1),
    box-shadow .45s cubic-bezier(.2,.8,.2,1),
    border-color .45s ease;
  will-change: transform;
}

.thin-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 34px rgba(17,24,39,0.085);
  border-color: #dce3eb;
}

.thin-soft {
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  background: #fafafa;
  transition:
    transform .45s cubic-bezier(.2,.8,.2,1),
    box-shadow .45s cubic-bezier(.2,.8,.2,1),
    border-color .45s ease;
}

.thin-soft:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(17,24,39,0.05);
  border-color: #dce3eb;
}

.hero-panel {
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  background: rgba(255,255,255,0.98);
  box-shadow: 0 4px 18px rgba(17,24,39,0.035);
  transition:
    transform .55s cubic-bezier(.2,.8,.2,1),
    box-shadow .55s cubic-bezier(.2,.8,.2,1);
  will-change: transform;
}

.hero-panel:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(17,24,39,0.08);
}

.hero-float {
  transition: transform .18s linear;
  will-change: transform;
}

.hero-orb {
  position: absolute;
  border-radius: 9999px;
  filter: blur(44px);
  opacity: .9;
  will-change: transform;
  transition: transform .18s linear;
}

.orb-1 {
  width: 240px;
  height: 240px;
  top: -40px;
  left: -70px;
  background: radial-gradient(circle, rgba(243,244,246,0.95), rgba(243,244,246,0.1));
}

.orb-2 {
  width: 320px;
  height: 320px;
  right: -90px;
  top: 10%;
  background: radial-gradient(circle, rgba(229,231,235,0.95), rgba(229,231,235,0.08));
}

.orb-3 {
  width: 260px;
  height: 260px;
  bottom: -70px;
  left: 25%;
  background: radial-gradient(circle, rgba(249,250,251,0.95), rgba(249,250,251,0.08));
}

.btn-smooth {
  transition:
    transform .25s ease,
    box-shadow .25s ease,
    background-color .25s ease,
    border-color .25s ease,
    color .25s ease;
}

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

.drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 14px;
  color: #374151;
  font-size: 14px;
  transition: all .22s cubic-bezier(.2,.8,.2,1);
  border: 1px solid transparent;
  background: rgba(255,255,255,0.36);
}

.drawer-link:hover {
  color: #111827;
  background: rgba(255,255,255,0.74);
  border-color: rgba(229,231,235,0.95);
  transform: translateX(2px);
}

.menu-number {
  font-size: 11px;
  letter-spacing: .16em;
  color: #9ca3af;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity .9s cubic-bezier(.2,.8,.2,1),
    transform .9s cubic-bezier(.2,.8,.2,1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
.reveal-delay-4 { transition-delay: .32s; }

.stat-float {
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}

.stat-float:hover {
  transform: translateY(-3px);
}

.section-divider {
  position: relative;
}

.section-divider::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(92%, 1120px);
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(229,231,235,0.95), transparent);
}

/* Testimonials scroll animation */
@keyframes scrollLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes scrollRight {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.scroll-left { animation: scrollLeft 30s linear infinite; }
.scroll-right { animation: scrollRight 35s linear infinite; }
.scroll-left:hover, .scroll-right:hover { animation-play-state: paused; }
