/* ═══════════════════════════════════════════════
   Trace1st — Global Styles
   ═══════════════════════════════════════════════ */

:root {
  --bg-deep:    #0b0718;
  --bg-surface: #110d24;
  --bg-card:    #16112e;
  --purple-500: #7c3aed;
  --purple-400: #a78bfa;
  --purple-300: #c4b5fd;
  --emerald-500:#10b981;
  --emerald-400:#34d399;
  --emerald-300:#6ee7b7;
  --coral:      #f97066;
  --teal-500:   #14b8a6;
  --teal-400:   #2dd4bf;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Geist', system-ui, -apple-system, sans-serif;
  background: var(--bg-deep);
  color: #fff;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── Typography ── */
.bric  { font-family: 'Bricolage Grotesque', sans-serif; }
.mono  { font-family: 'Geist Mono', monospace; }
.serif { font-family: 'Instrument Serif', serif; }

.grad-text {
  background: linear-gradient(135deg, #6ee7b7 0%, #a78bfa 50%, #c4b5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.grad-text-teal {
  background: linear-gradient(135deg, #2dd4bf 0%, #6ee7b7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* ── Buttons ── */
.btn-primary {
  background: linear-gradient(135deg, var(--emerald-500), var(--purple-500));
  color: #fff;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.2s, box-shadow 0.3s;
  box-shadow: 0 4px 24px rgba(124, 58, 237, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.45);
}

.btn-coral {
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #fff;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.2s, box-shadow 0.3s;
  box-shadow: 0 4px 24px rgba(239, 68, 68, 0.3);
}
.btn-coral:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(239, 68, 68, 0.45);
}

.btn-emerald {
  background: var(--emerald-500);
  color: #fff;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.2s, box-shadow 0.3s;
  box-shadow: 0 4px 24px rgba(16, 185, 129, 0.3);
}
.btn-emerald:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(16, 185, 129, 0.45);
}

.btn-ghost {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.12);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s, border-color 0.2s;
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
}

/* ── Decorative ── */
.blob {
  filter: blur(100px);
  opacity: 0.45;
  pointer-events: none;
}

.grid-overlay {
  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: 56px 56px;
}

.noise::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* ── Animations ── */
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(110, 231, 183, 0.6); }
  50%      { box-shadow: 0 0 0 8px rgba(110, 231, 183, 0); }
}
.pulse-dot { animation: pulse-dot 2.4s ease-out infinite; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
.float { animation: float 6s ease-in-out infinite; }

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.shimmer {
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.06) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── Cards ── */
.card {
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(8px);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: 0 16px 48px rgba(124, 58, 237, 0.12);
}
.card-emerald:hover {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 16px 48px rgba(16, 185, 129, 0.12);
}

/* ── Nav ── */
.nav-blur {
  backdrop-filter: blur(16px) saturate(1.8);
  -webkit-backdrop-filter: blur(16px) saturate(1.8);
}

/* ── Section label ── */
.section-label {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ── Trust badges ── */
.badge {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
}

/* ── Browser chrome mockup ── */
.browser-chrome {
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  box-shadow: 0 40px 100px -20px rgba(124, 58, 237, 0.35);
}
.browser-chrome-teal {
  box-shadow: 0 40px 100px -20px rgba(20, 184, 166, 0.35);
}
.browser-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.25);
}
.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

/* ── Utilities ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-lg {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ══════════════════════════════════════════════
   HERO — Premium visual system
   ══════════════════════════════════════════════ */

/* Animated mesh gradient background */
@keyframes mesh-move {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(30px, -50px) scale(1.1); }
  66%  { transform: translate(-20px, 20px) scale(0.95); }
  100% { transform: translate(0, 0) scale(1); }
}
@keyframes mesh-move-2 {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(-40px, 30px) scale(1.05); }
  66%  { transform: translate(25px, -35px) scale(1.1); }
  100% { transform: translate(0, 0) scale(1); }
}
@keyframes mesh-move-3 {
  0%   { transform: translate(0, 0) scale(1.05); }
  33%  { transform: translate(20px, 40px) scale(0.95); }
  66%  { transform: translate(-35px, -20px) scale(1.08); }
  100% { transform: translate(0, 0) scale(1.05); }
}
.hero-mesh-1 {
  position: absolute;
  width: 60%;
  height: 60%;
  top: -10%;
  left: -5%;
  background: radial-gradient(ellipse at center, rgba(124,58,237,0.4) 0%, transparent 70%);
  filter: blur(80px);
  animation: mesh-move 15s ease-in-out infinite;
  pointer-events: none;
}
.hero-mesh-2 {
  position: absolute;
  width: 50%;
  height: 50%;
  top: 20%;
  right: -10%;
  background: radial-gradient(ellipse at center, rgba(16,185,129,0.3) 0%, transparent 70%);
  filter: blur(80px);
  animation: mesh-move-2 18s ease-in-out infinite;
  pointer-events: none;
}
.hero-mesh-3 {
  position: absolute;
  width: 45%;
  height: 45%;
  bottom: 0;
  left: 25%;
  background: radial-gradient(ellipse at center, rgba(139,92,246,0.25) 0%, transparent 70%);
  filter: blur(100px);
  animation: mesh-move-3 20s ease-in-out infinite;
  pointer-events: none;
}

/* Floating card system */
@keyframes hero-float-1 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-18px) rotate(1deg); }
}
@keyframes hero-float-2 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-14px) rotate(-1.5deg); }
}
@keyframes hero-float-3 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-20px) rotate(0.8deg); }
}
@keyframes hero-float-4 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-10px) rotate(-0.5deg); }
}

.hero-float-1 { animation: hero-float-1 7s ease-in-out infinite; }
.hero-float-2 { animation: hero-float-2 8s ease-in-out infinite 0.5s; }
.hero-float-3 { animation: hero-float-3 6s ease-in-out infinite 1s; }
.hero-float-4 { animation: hero-float-4 9s ease-in-out infinite 1.5s; }

/* Glass card for hero floating elements */
.glass-card {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  box-shadow:
    0 8px 32px rgba(0,0,0,0.3),
    0 0 0 1px rgba(255,255,255,0.05) inset;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.glass-card:hover {
  border-color: rgba(255,255,255,0.15);
  box-shadow:
    0 16px 48px rgba(0,0,0,0.4),
    0 0 0 1px rgba(255,255,255,0.08) inset;
}

/* Circular score ring */
.score-ring {
  position: relative;
  width: 140px;
  height: 140px;
}
.score-ring svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}
.score-ring-track {
  fill: none;
  stroke: rgba(255,255,255,0.06);
  stroke-width: 8;
}
.score-ring-fill {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 408;
  stroke-dashoffset: 16;
  transition: stroke-dashoffset 1.5s ease;
}
.score-ring-value {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Glow behind score ring */
@keyframes score-glow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%      { opacity: 0.8; transform: scale(1.08); }
}
.score-glow {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16,185,129,0.25) 0%, transparent 70%);
  animation: score-glow 4s ease-in-out infinite;
  pointer-events: none;
}

/* Notification toast animation */
@keyframes toast-slide {
  0%   { opacity: 0; transform: translateX(20px); }
  10%  { opacity: 1; transform: translateX(0); }
  90%  { opacity: 1; transform: translateX(0); }
  100% { opacity: 1; transform: translateX(0); }
}

/* Hero showcase area */
.hero-showcase {
  position: relative;
  min-height: 380px;
  margin-top: 48px;
}

/* Animated gradient text for hero */
@keyframes grad-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.grad-text-animated {
  background: linear-gradient(135deg, #6ee7b7, #a78bfa, #c4b5fd, #34d399, #a78bfa);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: grad-shift 8s ease infinite;
}

/* Horizontal scrolling logos/badges */
@keyframes scroll-x {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.scroll-strip {
  animation: scroll-x 30s linear infinite;
}

/* Line connector */
.hero-line {
  position: absolute;
  background: linear-gradient(180deg, rgba(124,58,237,0.3), rgba(16,185,129,0.3));
  width: 1px;
  pointer-events: none;
}

/* Perspective */
.perspective-wrap {
  perspective: 1200px;
}
.tilt-card {
  transform: rotateX(2deg);
  transition: transform 0.5s ease;
}
.tilt-card:hover {
  transform: rotateX(0deg);
}

/* Gradient border animation */
@keyframes border-flow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.gradient-border {
  position: relative;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(90deg, rgba(124,58,237,0.5), rgba(16,185,129,0.5), rgba(124,58,237,0.5));
  background-size: 200% auto;
  animation: border-flow 4s ease infinite;
}
.gradient-border > * {
  border-radius: 19px;
}

/* Star field */
.stars {
  background-image:
    radial-gradient(1px 1px at 10% 15%, rgba(255,255,255,.7), transparent),
    radial-gradient(1px 1px at 25% 45%, rgba(255,255,255,.5), transparent),
    radial-gradient(1.5px 1.5px at 40% 10%, rgba(255,255,255,.6), transparent),
    radial-gradient(1px 1px at 55% 60%, rgba(255,255,255,.4), transparent),
    radial-gradient(1px 1px at 70% 25%, rgba(255,255,255,.5), transparent),
    radial-gradient(1.5px 1.5px at 85% 50%, rgba(255,255,255,.3), transparent),
    radial-gradient(1px 1px at 15% 75%, rgba(255,255,255,.4), transparent),
    radial-gradient(1px 1px at 60% 85%, rgba(255,255,255,.3), transparent),
    radial-gradient(1px 1px at 90% 70%, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 35% 35%, rgba(255,255,255,.4), transparent),
    radial-gradient(1px 1px at 80% 15%, rgba(255,255,255,.35), transparent),
    radial-gradient(1px 1px at 5% 55%, rgba(255,255,255,.3), transparent),
    radial-gradient(1.5px 1.5px at 50% 40%, rgba(255,255,255,.45), transparent),
    radial-gradient(1px 1px at 95% 90%, rgba(255,255,255,.3), transparent);
  pointer-events: none;
}

/* Social proof */
@keyframes count-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Glow ring */
@keyframes glow-rotate {
  0%   { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}
.glow-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, rgba(124,58,237,0.15), transparent, rgba(16,185,129,0.1), transparent);
  animation: glow-rotate 20s linear infinite;
  pointer-events: none;
  filter: blur(40px);
}

/* ══════════════════════════════════════════════
   SECTION — Premium enhancements
   ══════════════════════════════════════════════ */

/* Animated icon glow on hover */
.icon-box {
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.icon-box::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.icon-box-emerald::after { background: radial-gradient(circle, rgba(16,185,129,0.4) 0%, transparent 70%); }
.icon-box-violet::after { background: radial-gradient(circle, rgba(124,58,237,0.4) 0%, transparent 70%); }
.icon-box:hover { transform: scale(1.1); }
.icon-box:hover::after { opacity: 1; }

/* Feature card with top glow line */
.feature-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, background 0.3s ease;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124,58,237,0.5), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.feature-card:hover {
  background: rgba(255,255,255,0.03);
  transform: translateY(-2px);
}
.feature-card:hover::before { opacity: 1; }

/* Step card connector line (between cards) */
.step-connector {
  position: relative;
}
.step-connector::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -13px;
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, rgba(124,58,237,0.3), rgba(16,185,129,0.3));
}

/* Spotlight screenshot glow */
.screenshot-glow {
  position: relative;
}
.screenshot-glow::before {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 24px;
  background: radial-gradient(ellipse at center, rgba(16,185,129,0.15) 0%, transparent 70%);
  filter: blur(30px);
  z-index: -1;
  animation: screenshot-pulse 4s ease-in-out infinite;
}
@keyframes screenshot-pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.02); }
}

/* Pricing card shimmer sweep */
@keyframes pricing-shimmer {
  0% { transform: translateX(-100%) rotate(25deg); }
  100% { transform: translateX(200%) rotate(25deg); }
}
.pricing-shimmer {
  position: absolute;
  top: 0;
  left: 0;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
  animation: pricing-shimmer 5s ease-in-out infinite;
  pointer-events: none;
}

/* Footer gradient top line */
.footer-glow {
  position: relative;
}
.footer-glow::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124,58,237,0.4), rgba(16,185,129,0.4), transparent);
}

/* Product card animated border on live card */
@keyframes card-border-glow {
  0%, 100% { border-color: rgba(16,185,129,0.25); box-shadow: 0 0 20px rgba(16,185,129,0.05); }
  50% { border-color: rgba(16,185,129,0.5); box-shadow: 0 0 30px rgba(16,185,129,0.15); }
}
.card-live { animation: card-border-glow 3s ease-in-out infinite; }

/* Number counter glow */
.stat-number {
  text-shadow: 0 0 30px rgba(16,185,129,0.3);
}

/* Checklist item hover */
.check-item {
  transition: transform 0.2s ease, background 0.2s ease;
  border-radius: 12px;
  padding: 12px 14px;
  margin: -12px -14px;
}
.check-item:hover {
  background: rgba(16,185,129,0.04);
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
  .glow-ring { width: 300px; height: 300px; }
  .hero-showcase { min-height: 280px; margin-top: 32px; }
  .step-connector::after { display: none; }
}
@media (min-width: 769px) {
  .show-mobile-only { display: none !important; }
}
