@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg-0: #04060f;
  --bg-1: #08142a;
  --bg-2: #0d2139;
  --text-0: #ebf9ff;
  --text-1: #a7c6d9;
  --cyber-0: #45ffe7;
  --cyber-1: #00d3c2;
  --line: rgba(117, 212, 247, 0.46);
}

* {
  box-sizing: border-box;
}

body.capital-v2 {
  margin: 0;
  font-family: 'Outfit', 'Segoe UI', sans-serif;
  color: var(--text-0);
  background:
    radial-gradient(circle at 15% 12%, rgba(69, 255, 231, 0.12), transparent 32%),
    radial-gradient(circle at 80% 5%, rgba(70, 145, 250, 0.23), transparent 36%),
    linear-gradient(165deg, var(--bg-0), var(--bg-1), var(--bg-2));
  overflow-x: hidden;
  position: relative;
}

.navbar {
  position: fixed;
  top: 12px;
  left: 14px;
  right: 14px;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-radius: 14px;
  background: rgba(6, 12, 24, 0.74);
  border: 1px solid rgba(90, 190, 220, 0.33);
  backdrop-filter: blur(12px);
}

.logo {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.logo-turquoise {
  color: var(--cyber-0);
}

.logo-white {
  color: #fff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-links a {
  color: var(--text-1);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  transition: color 0.22s ease, transform 0.22s ease, text-shadow 0.22s ease;
  --magnet-x: 0px;
  --magnet-y: 0px;
  --magnet-hover-y: 0px;
  --magnet-scale: 1;
  transform: translate3d(var(--magnet-x), calc(var(--magnet-y) + var(--magnet-hover-y)), 0) scale(var(--magnet-scale));
  will-change: transform;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyber-0), transparent);
  transform: scaleX(0);
  transition: transform 0.22s ease;
}

.nav-links a:hover {
  color: #eaffff;
  --magnet-hover-y: -1px;
  --magnet-scale: 1.02;
  text-shadow: 0 0 14px rgba(69, 255, 231, 0.52);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.signup-btn,
.cta-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 12px;
  background: linear-gradient(120deg, var(--cyber-0), var(--cyber-1));
  color: #031018 !important;
  text-decoration: none;
  font-weight: 800 !important;
  box-shadow: 0 14px 35px rgba(69, 255, 231, 0.25);
  transition: box-shadow 0.22s ease, filter 0.22s ease;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  --magnet-x: 0px;
  --magnet-y: 0px;
  --magnet-hover-y: 0px;
  --magnet-scale: 1;
  transform: translate3d(var(--magnet-x), calc(var(--magnet-y) + var(--magnet-hover-y)), 0) scale(var(--magnet-scale));
  will-change: transform;
}

.signup-btn::before,
.cta-button::before,
.ghost-button::before {
  content: "";
  position: absolute;
  inset: -200% -60%;
  background: linear-gradient(120deg, transparent 36%, rgba(255, 255, 255, 0.6) 50%, transparent 64%);
  transform: translateX(-70%) rotate(10deg);
  animation: btnSweep 2.8s linear infinite;
  z-index: -1;
}

@keyframes btnSweep {
  0% { transform: translateX(-70%) rotate(10deg); }
  100% { transform: translateX(70%) rotate(10deg); }
}

.signup-btn:hover,
.cta-button:hover,
.ghost-button:hover {
  --magnet-hover-y: -3px;
  --magnet-scale: 1.03;
  filter: brightness(1.08);
  box-shadow: 0 20px 48px rgba(69, 255, 231, 0.34);
}

.signup-btn::after,
.cta-button::after,
.ghost-button::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 0%, rgba(69, 255, 231, 0.45), transparent 60%);
  opacity: 0;
  z-index: -1;
  pointer-events: none;
}

.signup-btn:hover::after,
.cta-button:hover::after,
.ghost-button:hover::after {
  opacity: 1;
  animation: glowPulse 1.2s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { transform: scale(1); filter: blur(0px); opacity: 0.55; }
  50% { transform: scale(1.03); filter: blur(0.8px); opacity: 0.9; }
}

/* Ghost button (transparent) */
.ghost-button {
  background: rgba(8, 26, 44, 0.35);
  border: 1px solid var(--line);
  color: var(--text-0) !important;
}

.ghost-button:hover {
  border-color: rgba(89, 232, 255, 0.72);
}

.hero-section,
.section {
  position: relative;
  min-height: 76vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 72px;
  overflow: hidden;
}

.hero-section::after,
.section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 82px;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 35%, rgba(69, 255, 231, 0.35), transparent 30%),
    radial-gradient(circle at 78% 65%, rgba(115, 189, 255, 0.28), transparent 34%),
    linear-gradient(to bottom, rgba(69, 255, 231, 0.12), rgba(4, 8, 18, 0.94));
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0), #000 45%, #000);
  animation: sectionBridge 6s ease-in-out infinite;
}

.final-brand::after {
  display: none;
}

@keyframes sectionBridge {
  0%, 100% { opacity: 0.62; transform: translateY(0); }
  50% { opacity: 0.95; transform: translateY(2px); }
}

.bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* One shared canvas for the whole page */
.global-network {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
  mix-blend-mode: screen;
  filter: saturate(220%) contrast(165%) brightness(1.35);
}

/* Old per-section canvases are hidden; only global remains */
.network-canvas {
  display: none !important;
}

.content-wrap {
  position: relative;
  z-index: 1;
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 30px 24px;
  border-radius: 18px;
  border: 1px solid rgba(132, 206, 235, 0.24);
  background: linear-gradient(160deg, rgba(8, 24, 45, 0.22), rgba(2, 8, 20, 0.28));
  box-shadow: 0 22px 48px rgba(4, 12, 24, 0.3);
  overflow: hidden;
}

.content-wrap::before {
  content: "";
  position: absolute;
  inset: -40% -20%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 40%, rgba(69, 255, 231, 0.33), transparent 35%),
    radial-gradient(circle at 75% 70%, rgba(103, 173, 255, 0.3), transparent 38%),
    linear-gradient(90deg, rgba(69, 255, 231, 0.2) 1px, transparent 1px),
    linear-gradient(rgba(103, 173, 255, 0.2) 1px, transparent 1px);
  background-size: auto, auto, 36px 36px, 36px 36px;
  animation: panelPulse 7s ease-in-out infinite, panelGridMove 10s linear infinite;
}

.content-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 20%, rgba(69, 255, 231, 0.2) 50%, transparent 80%);
  transform: translateX(-120%);
  animation: panelSweep 4.5s linear infinite;
}

.content-wrap > * {
  position: relative;
  z-index: 1;
}

@keyframes panelPulse {
  0%, 100% { opacity: 0.55; filter: saturate(100%); }
  50% { opacity: 0.95; filter: saturate(130%); }
}

@keyframes panelGridMove {
  0% { background-position: center, center, 0 0, 0 0; }
  100% { background-position: center, center, 36px 36px, -36px -36px; }
}

@keyframes panelSweep {
  0% { transform: translateX(-120%); opacity: 0; }
  10% { opacity: 0.55; }
  60% { opacity: 0.35; }
  100% { transform: translateX(120%); opacity: 0; }
}

/* Subtle cyber scan lines across whole page */
body.capital-v2::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(105, 196, 255, 0.09) 0px,
    rgba(105, 196, 255, 0.09) 1px,
    transparent 2px,
    transparent 4px
  );
  mix-blend-mode: screen;
  opacity: 0.6;
  animation: scanDrift 6s linear infinite;
}

@keyframes scanDrift {
  0% { transform: translateY(0); }
  100% { transform: translateY(8px); }
}

.content-wrap.narrow {
  width: min(840px, 100%);
}

.section-kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--cyber-0);
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 12px;
  font-weight: 700;
}

.hero-badge {
  display: inline-block;
  margin-bottom: 20px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(80, 220, 225, 0.72);
  color: var(--cyber-0);
  background: rgba(69, 255, 231, 0.1);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
  font-weight: 700;
  animation: badgePulse 2.8s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 rgba(69, 255, 231, 0); transform: translateY(0); }
  50% { box-shadow: 0 0 24px rgba(69, 255, 231, 0.28); transform: translateY(-2px); }
}

h1, h2, h3, p {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

h1 {
  margin-top: 0;
  margin-bottom: 18px;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(120deg, #fff, #abffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  margin-top: 0;
  margin-bottom: 16px;
  max-width: 940px;
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  line-height: 1.1;
  color: #e9fbff;
}

h2 strong {
  color: var(--cyber-0);
}

h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.2rem;
  color: var(--cyber-0);
}

p {
  max-width: 860px;
  color: var(--text-1);
  line-height: 1.65;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
}

.hero-actions {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid var(--line);
  color: var(--text-0);
  text-decoration: none;
  font-weight: 700;
  background: rgba(8, 26, 44, 0.52);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.ghost-button:hover {
  transform: translateY(-3px);
  border-color: rgba(89, 232, 255, 0.72);
  box-shadow: 0 16px 30px rgba(7, 28, 46, 0.5);
}

.sub-head {
  margin-top: 20px;
}

.stats-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 14px;
}

.stats-grid.four {
  grid-template-columns: repeat(4, minmax(130px, 1fr));
}

.info-card {
  padding: 16px;
  border-radius: 14px;
  background: rgba(8, 25, 44, 0.72);
  border: 1px solid var(--line);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(10, 37, 64, 0.48);
}

.info-card b {
  display: block;
  font-size: 2rem;
  color: var(--cyber-0);
  text-shadow: 0 0 22px rgba(69, 255, 231, 0.43);
}

.info-card span {
  color: var(--text-1);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.logo-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 14px;
}

.logo-card {
  min-height: 92px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(9, 23, 40, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.logo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(9, 38, 66, 0.45);
}

.logo-card img {
  max-width: 120px;
  max-height: 48px;
  object-fit: contain;
}

.card-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 14px;
}

.card-grid.three {
  grid-template-columns: repeat(3, minmax(220px, 1fr));
}

.bullet-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 14px;
}

.integrations-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(6, minmax(110px, 1fr));
  gap: 10px;
}

.integrations-grid span {
  padding: 12px 8px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(9, 23, 40, 0.76);
  color: var(--text-0);
  font-weight: 600;
  font-size: 0.95rem;
}

.feature-card {
  padding: 20px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(10, 26, 45, 0.72);
  box-shadow: 0 14px 30px rgba(2, 7, 14, 0.34);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: -100% 30%;
  background: radial-gradient(circle, rgba(69, 255, 231, 0.25), transparent 62%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(89, 232, 255, 0.72);
  box-shadow: 0 22px 44px rgba(10, 39, 67, 0.52);
}

.feature-card:hover::after {
  opacity: 1;
}

.feature-card p {
  margin-bottom: 0;
  font-size: 1rem;
}

.final-brand h2 {
  font-size: clamp(2.7rem, 7vw, 6rem);
  letter-spacing: -0.04em;
}

.reveal-section {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .logo-grid {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }

  .card-grid,
  .card-grid.three,
  .bullet-grid,
  .stats-grid.four {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }

  .integrations-grid {
    grid-template-columns: repeat(3, minmax(110px, 1fr));
  }
}

@media (max-width: 720px) {
  .navbar {
    flex-direction: column;
    gap: 8px;
  }

  .hero-section,
  .section {
    min-height: auto;
    padding-top: 136px;
    padding-bottom: 56px;
  }

  .content-wrap {
    padding: 22px 14px;
  }

  .logo-grid,
  .card-grid,
  .card-grid.three,
  .bullet-grid,
  .stats-grid,
  .stats-grid.four {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .integrations-grid {
    grid-template-columns: repeat(2, minmax(110px, 1fr));
  }
}

/* ===== Unified page look (no block bridges / transitions) ===== */
.hero-section::after,
.section::after {
  display: none !important;
  content: none !important;
  opacity: 0 !important;
  background: none !important;
  height: 0 !important;
  animation: none !important;
}

.reveal-section {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

.reveal-section.is-visible {
  opacity: 1 !important;
  transform: none !important;
}
