:root {
  --ui-bg-1: #060816;
  --ui-bg-2: #0a1022;
  --ui-bg-3: #101935;
  --ui-text: #f8fbff;
  --ui-muted: #aab8d3;
  --ui-border: rgba(255, 255, 255, 0.12);
  --ui-glass: rgba(255, 255, 255, 0.06);
  --ui-glass-strong: rgba(255, 255, 255, 0.1);
  --ui-blue: #5b8cff;
  --ui-cyan: #49d6ff;
  --ui-violet: #8b5cf6;
  --ui-shadow: 0 20px 60px rgba(0, 0, 0, 0.38);
  --ui-shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.22);
  --ui-radius: 24px;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at top left, rgba(91, 140, 255, 0.16), transparent 28%),
    radial-gradient(circle at 85% 15%, rgba(73, 214, 255, 0.13), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(139, 92, 246, 0.14), transparent 30%),
    linear-gradient(135deg, var(--ui-bg-1), var(--ui-bg-2) 45%, var(--ui-bg-3));
  color: var(--ui-text);
  overflow-x: hidden;
}

body.ui-loaded .preloader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.022;
  background-image:
    radial-gradient(circle at 20% 20%, #fff 0.7px, transparent 0.8px),
    radial-gradient(circle at 80% 30%, #fff 0.7px, transparent 0.8px),
    radial-gradient(circle at 40% 80%, #fff 0.7px, transparent 0.8px);
  background-size: 180px 180px;
  z-index: 1;
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.36;
}

.orb-1 {
  width: 280px;
  height: 280px;
  top: 90px;
  left: -60px;
  background: rgba(91, 140, 255, 0.2);
  animation: orbFloat1 10s ease-in-out infinite;
}

.orb-2 {
  width: 260px;
  height: 260px;
  top: 420px;
  right: -40px;
  background: rgba(73, 214, 255, 0.14);
  animation: orbFloat2 12s ease-in-out infinite;
}

.orb-3 {
  width: 220px;
  height: 220px;
  bottom: 90px;
  left: 35%;
  background: rgba(139, 92, 246, 0.14);
  animation: orbFloat3 11s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(24px) translateX(10px); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-20px) translateX(-14px); }
}

@keyframes orbFloat3 {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(16px) scale(1.06); }
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(4, 7, 16, 0.95), rgba(8, 12, 26, 0.98));
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.preloader-inner {
  text-align: center;
  width: min(320px, 86vw);
}

.preloader-logo {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
  color: white;
}

.preloader-line {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  position: relative;
}

.preloader-line::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 40%;
  background: linear-gradient(90deg, var(--ui-blue), var(--ui-cyan), var(--ui-violet));
  border-radius: inherit;
  animation: loaderMove 1.2s ease-in-out infinite;
}

@keyframes loaderMove {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(280%); }
}

.site-header.premium-header {
  background: rgba(7, 11, 24, 0.6);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  z-index: 50;
}

.site-header.premium-header.scrolled {
  background: rgba(7, 11, 24, 0.84);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.premium-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.logo-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ui-cyan), var(--ui-blue), var(--ui-violet));
  box-shadow: 0 0 20px rgba(91, 140, 255, 0.7);
}

.premium-nav a {
  position: relative;
  padding: 8px 0;
}

.premium-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ui-cyan), var(--ui-blue));
  transition: width 0.25s ease;
}

.premium-nav a:hover::after,
.premium-nav a.active::after {
  width: 100%;
}

.premium-hero {
  position: relative;
  z-index: 2;
  padding-top: 72px;
  padding-bottom: 10px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 34px;
  align-items: center;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  line-height: 1.05;
  margin-bottom: 18px;
  letter-spacing: -0.04em;
}

.gradient-text {
  display: block;
  background: linear-gradient(90deg, #ffffff, #c9dcff 30%, #78cfff 65%, #ab8cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.premium-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e7f1ff;
  backdrop-filter: blur(10px);
  box-shadow: var(--ui-shadow-soft);
}

.premium-points span {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #d9e7ff;
  box-shadow: var(--ui-shadow-soft);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  text-decoration: none;
  border-radius: 16px;
  padding: 14px 20px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.2s ease, background 0.25s ease;
}

.hero-btn:hover {
  transform: translateY(-2px);
}

.primary-btn {
  background: linear-gradient(135deg, var(--ui-blue), var(--ui-cyan));
  color: white;
  box-shadow: 0 12px 30px rgba(73, 214, 255, 0.22);
}

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

.secondary-btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
}

.hero-mini-stats {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.mini-stat {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  padding: 16px;
  backdrop-filter: blur(12px);
}

.mini-stat strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 5px;
}

.mini-stat span {
  color: var(--ui-muted);
  font-size: 0.92rem;
}

.hero-showcase {
  position: relative;
  padding: 18px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: var(--ui-shadow);
  overflow: hidden;
}

.hero-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(91, 140, 255, 0.22), transparent 28%),
    radial-gradient(circle at bottom left, rgba(73, 214, 255, 0.14), transparent 24%);
  pointer-events: none;
}

.showcase-topbar {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.showcase-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
}

.showcase-content {
  position: relative;
  min-height: 360px;
}

.mock-upload-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 26px;
}

.mock-upload-card h3 {
  margin-bottom: 4px;
}

.mock-upload-card p {
  color: var(--ui-muted);
  line-height: 1.5;
}

.mock-icon {
  font-size: 2rem;
}

.mock-stack {
  position: relative;
  height: 170px;
}

.mock-paper {
  position: absolute;
  left: 50%;
  top: 0;
  width: 200px;
  height: 150px;
  border-radius: 18px;
  transform-origin: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(219,231,255,0.82));
  box-shadow: 0 20px 30px rgba(0,0,0,0.18);
}

.paper-1 {
  transform: translateX(-50%) rotate(-8deg);
}

.paper-2 {
  transform: translateX(-50%) translateY(10px) rotate(4deg);
}

.paper-3 {
  transform: translateX(-50%) translateY(20px) rotate(0deg);
}

.mock-badges {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}

.mock-badges span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  color: #e6f0ff;
}

.premium-tool-card,
.premium-card,
.premium-faq .faq-item {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.05));
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: var(--ui-shadow);
  backdrop-filter: blur(16px);
}

.premium-tool-card {
  overflow: hidden;
  transition: none !important;
  transform: none !important;
}

.premium-tool-card:hover {
  transform: none !important;
  box-shadow: var(--ui-shadow) !important;
  border-color: rgba(255,255,255,0.1) !important;
}

.premium-tool-card::before,
.premium-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.06), transparent 35%, transparent 60%, rgba(255,255,255,0.03));
  pointer-events: none;
}

.premium-upload-box {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  transition: border-color 0.25s ease, background 0.25s ease;
}

.premium-upload-box:hover {
  transform: none;
  box-shadow: none;
  border-color: rgba(255,255,255,0.14);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.04));
}

.upload-glow {
  display: none;
}

.premium-input-group input,
.premium-input-group select {
  background: rgba(255,255,255,0.92);
  color: #10203f;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
}

.premium-input-group input:focus,
.premium-input-group select:focus {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(91, 140, 255, 0.18),
    0 10px 26px rgba(0, 0, 0, 0.1);
}

.premium-buttons button,
.glow-btn {
  border-radius: 14px;
}

.glow-btn {
  background: linear-gradient(135deg, var(--ui-blue), var(--ui-cyan));
  box-shadow: 0 12px 30px rgba(73, 214, 255, 0.22);
}

.glow-btn:hover {
  box-shadow: 0 16px 34px rgba(73, 214, 255, 0.3);
}

.premium-note {
  color: #dce7fa;
}

.premium-section-top span {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 8px 14px;
  border-radius: 999px;
}

.preview-item {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: var(--ui-shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.preview-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--ui-shadow);
}

.card-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  margin-bottom: 16px;
  font-size: 1.35rem;
  background: linear-gradient(135deg, rgba(91,140,255,0.25), rgba(73,214,255,0.2));
  border: 1px solid rgba(255,255,255,0.12);
}

.premium-grid .premium-card,
.premium-card {
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease,
    background 0.28s ease;
}

.premium-grid .premium-card:hover,
.premium-card:hover {
  transform: translateY(-4px);
  border-color: rgba(130, 190, 255, 0.22);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.28);
}

.step-card,
.info-card,
.audience-card,
.article-card,
.faq-item {
  border-radius: 22px;
}

.article-card {
  text-decoration: none;
  color: inherit;
}

.audience-card {
  font-weight: 700;
  text-align: center;
}

.premium-faq {
  display: grid;
  gap: 18px;
}

.premium-faq .faq-item {
  border-bottom: none;
  padding: 22px;
}

.section-heading h2 {
  letter-spacing: -0.03em;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.section-heading p {
  max-width: 760px;
  margin: 0 auto;
}

.site-footer.premium-footer {
  background: rgba(7, 11, 24, 0.78);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-links a {
  position: relative;
}

.footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: rgba(255,255,255,0.8);
  transition: width 0.2s ease;
}

.footer-links a:hover::after {
  width: 100%;
}

body {
  position: relative;
  overflow-x: hidden;
}

.page-path-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

#pagePathSvg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

#pagePathBase {
  fill: none;
  stroke: rgba(120, 170, 255, 0.07);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#pagePathGlow {
  fill: none;
  stroke: url(#pathGlowGradient);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.95;
  filter: url(#pathGlowFilter);
}

.site-header,
main,
.site-footer,
.container,
.premium-hero,
.premium-tool-card,
.content-section {
  position: relative;
  z-index: 2;
}

main,
.site-header,
.site-footer,
.container,
.premium-hero,
.premium-tool-card,
.content-section {
  position: relative;
  z-index: 2;
}

/* reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(46px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal="left"] {
  transform: translateX(44px);
}

[data-reveal="right"] {
  transform: translateX(-44px);
}

[data-reveal="up"] {
  transform: translateY(46px);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translate(0, 0);
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .preloader,
  .page-path-bg {
    display: none !important;
  }
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-right {
    order: -1;
  }

  .page-path-bg {
    opacity: 0.7;
  }
}

@media (max-width: 700px) {
  .premium-hero {
    padding-top: 44px;
  }

  .hero-title {
    font-size: 2.3rem;
  }

  .hero-mini-stats {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-btn {
    width: 100%;
  }

  .mock-paper {
    width: 160px;
    height: 120px;
  }

  .page-path-bg {
    display: none;
  }
}