/* ============================================
   VE Mapper Ghost Theme — style.css
   Ported from Next.js CSS Modules
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Page ── */
.page {
  min-height: 100vh;
  background: #000;
  color: #fff;
  overflow-x: hidden;
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 24px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(0,0,0,0.7);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-spacer { height: 48px; }
.brand-mark {
  display: flex; align-items: center;
  text-decoration: none; transition: opacity 0.2s ease;
}
.brand-mark:hover { opacity: 0.85; }
.nav-logo { height: 36px; width: auto; object-fit: contain; }
.nav-actions { display: flex; gap: 12px; align-items: center; }
.nav-button {
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.4);
  padding: 0.5rem 1.25rem;
  color: #fff; text-decoration: none;
  font-weight: 600; font-size: 0.85rem;
  transition: all 0.2s ease; background: transparent; cursor: pointer;
}
.nav-button:hover { background: #fff; color: #000; border-color: transparent; }
.nav-button-filled {
  border-radius: 999px; border: none;
  padding: 0.5rem 1.25rem; color: #000; background: #fff;
  font-weight: 600; font-size: 0.85rem; cursor: pointer;
  transition: all 0.2s ease; text-decoration: none;
}
.nav-button-filled:hover { background: rgba(255,255,255,0.9); transform: translateY(-1px); }

/* Nav links (Ghost-managed navigation) */
.nav-links { display: flex; gap: 8px; align-items: center; }
.nav-link {
  color: rgba(255,255,255,0.7); text-decoration: none;
  font-size: 0.85rem; font-weight: 500; padding: 0.4rem 0.75rem;
  border-radius: 6px; transition: all 0.2s ease;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.08); }
.nav-link-active { color: #fff; }

/* Mobile menu toggle */
.nav-mobile-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 8px; flex-direction: column; gap: 4px;
}
.hamburger-line {
  display: block; width: 20px; height: 2px;
  background: #fff; border-radius: 2px; transition: all 0.2s ease;
}
.nav-mobile-menu {
  display: none; position: fixed; top: 48px; left: 0; right: 0;
  background: rgba(0,0,0,0.95); backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 16px 24px; flex-direction: column; gap: 4px; z-index: 999;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-link {
  color: rgba(255,255,255,0.7); text-decoration: none;
  font-size: 0.95rem; font-weight: 500; padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06); transition: color 0.2s ease;
}
.nav-mobile-link:last-child { border-bottom: none; }
.nav-mobile-link:hover { color: #fff; }
.nav-mobile-login { color: #10a37f; font-weight: 600; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-actions { display: none; }
  .nav-mobile-toggle { display: flex; }
}

/* ── Hero ── */
.hero {
  position: relative; min-height: 85vh;
  display: flex; flex-direction: column;
  background: #000; overflow: hidden;
}
.glow-top {
  position: absolute; top: -150px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 500px;
  background: radial-gradient(ellipse at center, rgba(16,163,127,0.25) 0%, rgba(99,102,241,0.15) 40%, transparent 70%);
  filter: blur(60px); pointer-events: none; z-index: 0;
}
.hero-content {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 48px 24px 80px; max-width: 800px; margin: 0 auto;
}
.headline {
  font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700;
  color: #fff; margin: 0 0 24px; line-height: 1.15; letter-spacing: -0.02em;
}
.subheadline {
  font-size: 1rem; color: rgba(255,255,255,0.75);
  line-height: 1.7; margin: 0 0 40px; max-width: 600px;
}
.ctas { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.cta-primary {
  border-radius: 999px; padding: 0.75rem 2rem;
  background: #10a37f; color: #fff; font-weight: 600; font-size: 0.95rem;
  text-decoration: none; border: none; cursor: pointer;
  transition: all 0.2s ease; box-shadow: 0 0 30px rgba(16,163,127,0.3);
}
.cta-primary:hover { background: #0d8a6a; transform: translateY(-2px); box-shadow: 0 0 40px rgba(16,163,127,0.4); }
.cta-secondary {
  border-radius: 999px; padding: 0.75rem 2rem;
  background: transparent; color: #fff; font-weight: 600; font-size: 0.95rem;
  text-decoration: none; border: 1px solid rgba(255,255,255,0.5);
  transition: all 0.2s ease;
}
.cta-secondary:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.8); }

/* ── Laser Line ── */
.laser-container { width: 100%; padding: 0 24px; }
.laser-line {
  width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent 0%, #10a37f 20%, #6366f1 50%, #f59e0b 80%, transparent 100%);
  background-size: 200% 100%;
  animation: laserSweep 4s ease-in-out infinite; border-radius: 2px;
}
@keyframes laserSweep { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── Section shared ── */
.section-header { text-align: center; margin-bottom: 48px; }
.section-title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; color: #fff; margin: 0 0 12px; }
.section-subtitle { font-size: 1rem; color: rgba(255,255,255,0.7); margin: 0; }

/* ── Value Cards ── */
.value-cards-section { padding: 80px 24px; max-width: 1100px; margin: 0 auto; }
.cards-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  border-radius: 20px; padding: 28px; min-height: 180px;
  display: flex; flex-direction: column;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 45px 90px rgba(12,12,12,0.65);
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.5s ease;
  opacity: 0; transform: translateY(40px);
}
.card.visible { opacity: 1; transform: translateY(0); }
.card:hover { transform: translateY(-6px) scale(1.01); box-shadow: 0 60px 110px rgba(0,0,0,0.75); }
.card-blue { background: linear-gradient(135deg, #0f172a, #1d4ed8); }
.card-purple { background: linear-gradient(135deg, #1e1b4b, #7c3aed); }
.card-green { background: linear-gradient(135deg, #052e16, #16a34a); }
.card-amber { background: linear-gradient(135deg, #3b1d01, #f59e0b); }
.card-icon { font-size: 2rem; margin-bottom: 16px; }
.card-title { font-size: 1.25rem; font-weight: 600; color: #fff; margin: 0 0 12px; }
.card-description { font-size: 0.9rem; color: rgba(255,255,255,0.8); line-height: 1.6; margin: 0; }

/* ── How It Works ── */
.how-it-works-section { padding: 80px 24px; max-width: 1100px; margin: 0 auto; }
.how-it-works-section .section-header { margin-bottom: 56px; }
.steps-container { position: relative; }
.connector-line {
  position: absolute; top: 32px; left: 50%; transform: translateX(-50%);
  width: 80%; height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.2) 10%, rgba(255,255,255,0.2) 90%, transparent 100%);
}
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.step.visible { opacity: 1; transform: translateY(0); }
.step-number {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, #10a37f, #059669);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 700; color: #fff;
  margin-bottom: 20px; box-shadow: 0 0 30px rgba(16,163,127,0.3);
  position: relative; z-index: 1;
}
.step-content { max-width: 220px; }
.step-title { font-size: 1.1rem; font-weight: 600; color: #fff; margin: 0 0 8px; }
.step-description { font-size: 0.85rem; color: rgba(255,255,255,0.7); line-height: 1.5; margin: 0; }

/* ── White Paper ── */
.whitepaper-section { padding: 80px 24px; background: linear-gradient(180deg, rgba(16,163,127,0.05) 0%, transparent 100%); }
.whitepaper-container {
  max-width: 1000px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center;
}
.whitepaper-content { max-width: 500px; }
.whitepaper-badge {
  display: inline-block; padding: 6px 12px;
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  color: #10a37f; background: rgba(16,163,127,0.15); border-radius: 4px; margin-bottom: 16px;
}
.whitepaper-title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; color: #fff; margin: 0 0 16px; }
.whitepaper-description { font-size: 1rem; color: rgba(255,255,255,0.7); line-height: 1.6; margin: 0 0 24px; }
.download-button {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; font-size: 1rem; font-weight: 600;
  color: #000; background: linear-gradient(135deg, #10a37f 0%, #0d8a6a 100%);
  border-radius: 8px; text-decoration: none; border: none; cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.download-button:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(16,163,127,0.3); }
.download-icon { width: 20px; height: 20px; }
.whitepaper-visual { display: flex; justify-content: center; }
.paper-preview {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 180px; height: 220px;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  border: 1px solid rgba(255,255,255,0.15); border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.paper-icon { font-size: 3rem; margin-bottom: 12px; }
.paper-label { font-size: 0.85rem; font-weight: 600; color: rgba(255,255,255,0.8); text-align: center; line-height: 1.3; }

/* ── Testimonials ── */
.testimonials-section { padding: 80px 24px; max-width: 900px; margin: 0 auto; }
.carousel { position: relative; min-height: 220px; }
.slide {
  position: absolute; top: 0; left: 0; right: 0;
  opacity: 0; transform: translateX(30px);
  transition: opacity 0.5s ease, transform 0.5s ease; pointer-events: none;
}
.slide.active { opacity: 1; transform: translateX(0); pointer-events: auto; }
.quote {
  font-size: clamp(1rem, 2vw, 1.2rem); color: rgba(255,255,255,0.9);
  line-height: 1.7; font-style: italic; margin: 0 0 32px;
  text-align: center; max-width: 700px; margin-left: auto; margin-right: auto;
}
.attribution { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.author { font-size: 1rem; font-weight: 600; color: #fff; }
.role { font-size: 0.85rem; color: rgba(255,255,255,0.6); }
.dots { display: flex; justify-content: center; gap: 10px; margin-top: 40px; }
.dot {
  width: 10px; height: 10px; border-radius: 50%; border: none;
  background: rgba(255,255,255,0.3); cursor: pointer;
  transition: all 0.2s ease; padding: 0;
}
.dot:hover { background: rgba(255,255,255,0.5); }
.active-dot { background: #10a37f; transform: scale(1.2); }

/* ── Logo Marquee ── */
.marquee-section {
  padding: 40px 24px; overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.marquee-header { text-align: center; margin-bottom: 32px; }
.marquee-label { font-size: 0.85rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.05em; }
.marquee-container {
  position: relative; width: 100%; overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}
.marquee { display: flex; gap: 64px; animation: scroll 30s linear infinite; width: max-content; }
.marquee-container:hover .marquee,
.marquee-container:focus-within .marquee { animation-play-state: paused; }
.logo-item {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  padding: 12px 24px; opacity: 0.75; transition: opacity 0.2s ease;
}
.logo-item:hover { opacity: 1; }
.logo-img { max-height: 44px; width: auto; max-width: 180px; object-fit: contain; }
.logo-small { max-height: 36px; max-width: 150px; }
.logo-large { max-height: 56px; max-width: 220px; }
.logo-xl { max-height: 64px; max-width: 260px; }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ── CTA Section ── */
.cta-section { position: relative; padding: 120px 24px; overflow: hidden; }
.cta-content { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; text-align: center; }
.cta-title { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 700; color: #fff; margin: 0 0 16px; line-height: 1.2; }
.cta-subtitle { font-size: clamp(1rem, 2vw, 1.15rem); color: rgba(255,255,255,0.7); margin: 0 0 40px; line-height: 1.6; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta-primary-button {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 32px; font-size: 1rem; font-weight: 600;
  color: #000; background: linear-gradient(135deg, #10a37f 0%, #0d8a6a 100%);
  border-radius: 8px; text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cta-primary-button:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(16,163,127,0.3); }
.cta-secondary-button {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 32px; font-size: 1rem; font-weight: 600;
  color: #fff; background: transparent;
  border: 1px solid rgba(255,255,255,0.3); border-radius: 8px; text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.cta-secondary-button:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.05); }
.cta-blob {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle at center, rgba(16,163,127,0.15) 0%, rgba(16,163,127,0.05) 40%, transparent 70%);
  border-radius: 50%; pointer-events: none; filter: blur(60px);
}

/* ── Footer ── */
.footer { border-top: 1px solid rgba(255,255,255,0.08); padding: 64px 24px 32px; background: #000; }
.footer-container { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 48px; margin-bottom: 48px; }
.footer-brand { max-width: 280px; }
.footer-logo { height: 42px; width: auto; object-fit: contain; margin-bottom: 12px; }
.footer-tagline { font-size: 0.9rem; font-style: italic; color: rgba(255,255,255,0.5); line-height: 1.5; margin: 0; }
.footer-column { display: flex; flex-direction: column; }
.footer-column-title {
  font-size: 0.85rem; font-weight: 600; color: #fff;
  text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 16px;
}
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { font-size: 0.9rem; color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.2s ease; }
.footer-nav a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; text-align: center; }
.footer-copyright { font-size: 0.85rem; color: rgba(255,255,255,0.4); margin: 0; }

/* ── Post/Page content ── */
.post-content { max-width: 800px; margin: 0 auto; padding: 80px 24px; }
.post-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; color: #fff; margin: 0 0 32px; line-height: 1.2; }
.post-body { font-size: 1.05rem; color: rgba(255,255,255,0.85); line-height: 1.8; }
.post-body a { color: #10a37f; }
.post-body img { max-width: 100%; border-radius: 8px; margin: 24px 0; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .connector-line { display: none; }
}
@media (max-width: 768px) {
  .cards-grid { grid-template-columns: 1fr; }
  .whitepaper-container { grid-template-columns: 1fr; text-align: center; }
  .whitepaper-content { max-width: none; }
  .whitepaper-visual { order: -1; }
  .paper-preview { width: 140px; height: 170px; }
  .paper-icon { font-size: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; max-width: none; text-align: center; }
}
@media (max-width: 600px) {
  .nav { padding: 6px 16px; }
  .nav-logo { height: 28px; }
  .nav-actions { gap: 8px; }
  .nav-button, .nav-button-filled { padding: 0.4rem 0.9rem; font-size: 0.75rem; }
  .hero-content { padding: 32px 16px 60px; }
  .headline { font-size: 1.8rem; }
  .subheadline { font-size: 0.9rem; }
  .ctas { flex-direction: column; width: 100%; }
  .cta-primary, .cta-secondary { width: 100%; text-align: center; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 480px) {
  .cta-section { padding: 80px 24px; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-primary-button, .cta-secondary-button { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-column { align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
  .card { opacity: 1; transform: none; transition: none; }
  .card:hover { transform: none; }
  .step { opacity: 1; transform: none; transition: none; }
  .laser-line { animation: none; background-size: 100% 100%; }
  .marquee { animation: none; justify-content: center; flex-wrap: wrap; }
  .slide { transition: opacity 0.3s ease; transform: none; }
  .slide.active { transform: none; }
}

/* ── Hide Ghost default injected elements ── */
.gh-head, .gh-foot, .gh-navigation { display: none !important; }
#ghost-portal-root { display: none !important; }
