/* =========================================
   GhostShop — Theme CSS
   ========================================= */

:root {
  --bg: #080C15;
  --bg-2: #0D1525;
  --bg-3: #111D30;
  --fg: #E8EEF7;
  --fg-2: #8898AA;
  --fg-3: #4A5A6A;
  --cyan: #00D4FF;
  --cyan-dim: rgba(0, 212, 255, 0.12);
  --cyan-glow: rgba(0, 212, 255, 0.35);
  --violet: #A78BFA;
  --violet-dim: rgba(167, 139, 250, 0.12);
  --green: #34D399;
  --green-dim: rgba(52, 211, 153, 0.15);
  --red: #F87171;
  --border: rgba(255,255,255,0.07);
  --radius: 10px;
  --font-display: 'Sora', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  background: rgba(8,12,21,0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}
.nav-tagline {
  font-size: 0.8rem;
  color: var(--fg-3);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 40px 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,212,255,0.08) 0%, transparent 70%);
  top: -100px; right: -100px;
}
.orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(167,139,250,0.06) 0%, transparent 70%);
  bottom: 50px; left: 100px;
}
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-left { padding-top: 20px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--cyan);
  letter-spacing: 0.03em;
  margin-bottom: 28px;
  background: rgba(0,212,255,0.05);
}
.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4.5vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.headline-accent {
  color: var(--cyan);
  position: relative;
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--fg-2);
  max-width: 480px;
  margin-bottom: 40px;
  line-height: 1.7;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
}
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fg);
}
.stat-label { font-size: 0.72rem; color: var(--fg-3); margin-top: 2px; text-transform: uppercase; letter-spacing: 0.04em; }
.stat-sep {
  width: 1px; height: 36px;
  background: var(--border);
}

/* ── PIPELINE VIZ ── */
.pipeline-viz {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.pipeline-viz::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(0,212,255,0.04), transparent 60%);
  pointer-events: none;
}
.pipeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.pipeline-title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fg-2);
}
.pipeline-live {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 0.08em;
}
.live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 1.5s ease-in-out infinite;
}
.pipeline-nodes { display: flex; flex-direction: column; gap: 0; }
.node {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  position: relative;
  z-index: 1;
}
.node-icon {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--cyan-dim);
  color: var(--cyan);
  flex-shrink: 0;
}
.node-info { flex: 1; }
.node-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fg);
}
.node-status {
  display: block;
  font-size: 0.68rem;
  color: var(--fg-3);
  margin-top: 1px;
}
.node-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  opacity: 0.5;
  flex-shrink: 0;
}
.node-dot-green { background: var(--green); }
.pipe-line {
  width: 2px; height: 12px;
  background: linear-gradient(to bottom, rgba(0,212,255,0.4), rgba(0,212,255,0.1));
  margin-left: 34px;
}
.pipeline-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding: 10px 16px;
  border-radius: 8px;
  background: rgba(52,211,153,0.08);
  border: 1px solid rgba(52,211,153,0.15);
}
.pf-text { font-size: 0.72rem; color: var(--green); }

/* ── SECTION SHARED ── */
.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-desc {
  color: var(--fg-2);
  font-size: 1rem;
  max-width: 580px;
  line-height: 1.7;
  margin-bottom: 56px;
}

/* ── FLOW SECTION ── */
.pipeline-section {
  padding: 100px 40px;
  max-width: 1200px;
  margin: 0 auto;
}
.flow-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.flow-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: border-color 0.2s;
}
.flow-card:hover { border-color: rgba(0,212,255,0.2); }
.flow-card-wide { grid-column: 1 / -1; }
.flow-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: rgba(0,212,255,0.15);
  line-height: 1;
  flex-shrink: 0;
  width: 44px;
}
.flow-content { flex: 1; }
.flow-content h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.flow-content p { font-size: 0.875rem; color: var(--fg-2); line-height: 1.65; }
.flow-graphic {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* FG circles */
.fg-circles { position: relative; width: 80px; height: 80px; }
.fg-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
}
.fg-orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(0,212,255,0.2);
  animation: spin 8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.fg-sat {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
}
.sat-1 { top: -5px; left: 50%; transform: translateX(-50%); }
.sat-2 { bottom: -5px; left: 50%; transform: translateX(-50%); }
.sat-3 { left: -5px; top: 50%; transform: translateY(-50%); }
.sat-4 { right: -5px; top: 50%; transform: translateY(-50%); }

/* FG submit */
.fg-submit { display: flex; align-items: flex-end; gap: 4px; height: 60px; }
.fg-submit-bar {
  width: 8px;
  border-radius: 4px;
  background: rgba(0,212,255,0.2);
  animation: bar-pulse 1.5s ease-in-out infinite;
}
.fg-submit-bar:nth-child(1) { height: 30px; animation-delay: 0s; }
.fg-submit-bar:nth-child(2) { height: 45px; animation-delay: 0.2s; }
.fg-submit-bar:nth-child(3) { height: 60px; animation-delay: 0.4s; }
@keyframes bar-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}
.fg-bar-green { background: var(--green) !important; }
.fg-submit-send { display: flex; align-items: center; margin-left: 8px; }

/* ── COMPARE SECTION ── */
.compare-section {
  padding: 80px 40px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.compare-header { max-width: 1200px; margin: 0 auto 60px; }
.compare-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.compare-col { padding: 40px; background: var(--bg); }
.compare-col-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-3);
  margin-bottom: 28px;
}
.compare-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  color: var(--fg-2);
}
.ci-icon {
  width: 20px; height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.ci-icon-red { background: rgba(248,113,113,0.15); color: var(--red); }
.ci-icon-green { background: var(--green-dim); color: var(--green); }
.compare-hours {
  margin-top: 32px;
  padding: 16px 20px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}
.compare-col-before .compare-hours {
  background: rgba(248,113,113,0.08);
  border: 1px solid rgba(248,113,113,0.15);
  color: var(--red);
}
.compare-col-after .compare-hours {
  background: var(--green-dim);
  border: 1px solid rgba(52,211,153,0.2);
  color: var(--green);
}

/* ── DIFF SECTION ── */
.diff-section {
  padding: 100px 40px;
  background: var(--bg);
}
.diff-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.diff-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 24px;
}
.diff-body {
  color: var(--fg-2);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 16px;
}
.diff-features { display: flex; flex-direction: column; gap: 16px; }
.df-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.df-icon {
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--cyan-dim);
  color: var(--cyan);
  flex-shrink: 0;
}
.df-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.df-text span { font-size: 0.82rem; color: var(--fg-2); line-height: 1.6; }

/* ── CLOSING ── */
.closing-section {
  position: relative;
  padding: 120px 40px;
  text-align: center;
  overflow: hidden;
  border-top: 1px solid var(--border);
}
.closing-bg-orb {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse, rgba(0,212,255,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.closing-inner { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 24px;
}
.closing-accent { color: var(--cyan); }
.closing-sub {
  color: var(--fg-2);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.closing-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.closing-pill {
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid rgba(0,212,255,0.2);
  background: rgba(0,212,255,0.05);
  font-size: 0.78rem;
  color: var(--cyan);
  letter-spacing: 0.02em;
}

/* ── FOOTER ── */
.footer {
  padding: 32px 40px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
}
.footer-copy { font-size: 0.78rem; color: var(--fg-3); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .flow-grid { grid-template-columns: 1fr; }
  .flow-card-wide { grid-column: auto; }
  .compare-grid { grid-template-columns: 1fr; }
  .diff-inner { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 600px) {
  .navbar, .hero, .pipeline-section, .compare-section, .diff-section, .closing-section, .footer { padding-left: 20px; padding-right: 20px; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .compare-col { padding: 28px 20px; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
}