/* ============================================
   DocKit Master — Landing Page Styles
   Matching UX Master design system
   ============================================ */

/* --- Reset & Base --- */
* {
  box-sizing: border-box;
}

html,
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #09090b;
  color: #fafafa;
  overflow-x: hidden;
  max-width: 100vw;
}

code,
pre {
  overflow-wrap: break-word;
  word-break: break-all;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: #09090b;
}

::-webkit-scrollbar-thumb {
  background: #27272a;
  border-radius: 3px;
}

/* --- Typography --- */
h1,
h2,
h3,
h4 {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

.stat-value {
  font-variant-numeric: tabular-nums;
}

.quote-mark {
  font-size: 4rem;
  line-height: 1;
  color: rgba(109, 93, 252, .2);
  font-family: Georgia, serif;
}

/* --- Navigation --- */
.nav-glass {
  background: rgba(9, 9, 11, .75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, .06);
}

.mobile-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all .35s cubic-bezier(.16, 1, .3, 1);
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* --- Hero --- */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  width: 900px;
  height: 900px;
  top: -300px;
  left: -200px;
  background: radial-gradient(circle, rgba(109, 93, 252, .15) 0%, transparent 70%);
  animation: f1 18s ease-in-out infinite;
}

.hero-bg::after {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  bottom: -200px;
  right: -150px;
  background: radial-gradient(circle, rgba(236, 72, 153, .1) 0%, transparent 70%);
  animation: f2 22s ease-in-out infinite;
}

.grid-pattern {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .015) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, black 30%, transparent 100%);
}

/* --- Decorative --- */
.glow-line {
  background: linear-gradient(90deg, transparent, rgba(109, 93, 252, .3), rgba(236, 72, 153, .2), transparent);
  height: 1px;
}

/* --- Cards --- */
.glass-card {
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .06);
  transition: all .4s cubic-bezier(.16, 1, .3, 1);
}

.glass-card:hover {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(109, 93, 252, .25);
  box-shadow: 0 8px 60px -12px rgba(109, 93, 252, .15);
  transform: translateY(-4px);
}

.before-card {
  background: rgba(239, 68, 68, .04);
  border: 1px solid rgba(239, 68, 68, .15);
}

.after-card {
  background: rgba(16, 185, 129, .04);
  border: 1px solid rgba(16, 185, 129, .2);
}

/* --- Pills & Buttons --- */
.persona-pill {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  transition: all .3s ease;
}

.persona-pill:hover {
  background: rgba(109, 93, 252, .1);
  border-color: rgba(109, 93, 252, .3);
  transform: scale(1.02);
}

.cta-primary {
  background: linear-gradient(135deg, #6d5dfc, #ec4899);
  position: relative;
  overflow: hidden;
}

.cta-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, .1), transparent);
  opacity: 0;
  transition: opacity .3s;
}

.cta-primary:hover::after {
  opacity: 1;
}

/* --- Steps --- */
.step-ring {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(109, 93, 252, .15), rgba(236, 72, 153, .1));
  border: 2px solid rgba(109, 93, 252, .3);
}

/* --- Glow Effects --- */
.glow-purple {
  box-shadow: 0 0 80px -20px rgba(109, 93, 252, .35);
}

/* --- Terminal --- */
.terminal-window {
  background: #0d1117;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .7);
}

.terminal-header {
  background: #161b22;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-body {
  padding: 1.5rem;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.85rem;
  line-height: 1.6;
  overflow-x: auto;
}

/* --- Animations --- */
@keyframes f1 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(80px, 60px) scale(1.1);
  }
}

@keyframes f2 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-60px, -40px) scale(1.05);
  }
}

@keyframes fb {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

.float-badge {
  animation: fb 3s ease-in-out infinite;
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all .7s cubic-bezier(.16, 1, .3, 1);
}

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

.reveal-delay-1 {
  transition-delay: .1s;
}

.reveal-delay-2 {
  transition-delay: .2s;
}

.reveal-delay-3 {
  transition-delay: .3s;
}

/* --- Responsive --- */
@media (max-width: 639px) {
  .section-pad {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .mobile-code-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-code-scroll code {
    white-space: nowrap;
    word-break: normal;
  }
}

@media (min-width: 640px) {
  .section-pad {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
}