/* ═══════════════════════════════════════════
   Web3 AI — Landing Page Styles
   ═══════════════════════════════════════════ */

/* ── Reset & Base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: #e0e0e6;
  line-height: 1.6;
  background: #0a0a0f;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.container { max-width: 1320px; margin: 0 auto; padding: 0 40px; }

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  white-space: nowrap;
}
.btn-sm { padding: 8px 20px; font-size: 14px; }
.btn-lg { padding: 16px 36px; font-size: 16px; border-radius: 12px; }
.btn-primary {
  background: linear-gradient(135deg, #6c5ce7, #5a4bd1);
  color: #fff;
  box-shadow: 0 4px 20px rgba(108, 92, 231, 0.3);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(108, 92, 231, 0.45);
}
.btn-primary .btn-arrow { transition: transform 0.2s; }
.btn-primary:hover .btn-arrow { transform: translateX(3px); }
.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #aaa;
}
.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.btn-ghost {
  background: transparent;
  color: #999;
  padding: 8px 16px;
}
.btn-ghost:hover { color: #fff; }

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  z-index: 100;
  backdrop-filter: blur(20px);
  background: rgba(10, 10, 15, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.logo {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-icon { color: #6c5ce7; font-size: 20px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
}
.nav-links > a:not(.btn) { color: #999; transition: color 0.2s; }
.nav-links > a:not(.btn):hover { color: #fff; }

/* Mobile toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #ccc;
  border-radius: 2px;
  transition: all 0.3s;
}
.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Hero ── */
.hero {
  position: relative;
  padding: 120px 0 48px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
}
.hero-glow-1 {
  top: -100px;
  left: -120px;
  width: 500px;
  height: 500px;
  background: rgba(108, 92, 231, 0.12);
  animation: glow-drift-1 12s ease-in-out infinite;
}
.hero-glow-2 {
  bottom: -60px;
  right: -80px;
  width: 400px;
  height: 400px;
  background: rgba(116, 185, 255, 0.08);
  animation: glow-drift-2 15s ease-in-out infinite;
}
@keyframes glow-drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, 40px) scale(1.1); }
  66% { transform: translate(-30px, 60px) scale(0.95); }
}
@keyframes glow-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-50px, -30px) scale(1.08); }
  66% { transform: translate(40px, -50px) scale(0.92); }
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 200px;
  align-items: center;
}
.hero-visual {
  width: 100%;
}
.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  background: rgba(108, 92, 231, 0.12);
  color: #a29bfe;
  border: 1px solid rgba(108, 92, 231, 0.2);
  margin-bottom: 24px;
}
.hero h1 {
  font-size: 62px;
  font-weight: 800;
  line-height: 1.35;
  color: #fff;
  margin-bottom: 28px;
}
.gradient-text {
  background: linear-gradient(135deg, #6c5ce7, #a29bfe, #74b9ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 17px;
  line-height: 2.2;
  color: #888;
  margin-bottom: 60px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 52px;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 22px;
}
.hero-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 48px;
}
.stat-value {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
}
.stat-label {
  font-size: 13px;
  color: #666;
  margin-top: 2px;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
}

/* ── Marquee (Integrations) ── */
.section-marquee {
  padding: 48px 0 32px;
  overflow: hidden;
}
.section-marquee .section-header { margin-bottom: 28px; }
.marquee-wrap {
  position: relative;
  padding: 8px 0;
}
.marquee-wrap::before,
.marquee-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.marquee-wrap::before {
  left: 0;
  background: linear-gradient(90deg, #0a0a0f 0%, transparent 100%);
}
.marquee-wrap::after {
  right: 0;
  background: linear-gradient(270deg, #0a0a0f 0%, transparent 100%);
}
.marquee { overflow: hidden; }
.marquee-track {
  display: flex;
  width: max-content;
  gap: 12px;
}
.marquee-left .marquee-track {
  animation: scroll-left 40s linear infinite;
}
.marquee-right .marquee-track {
  animation: scroll-right 45s linear infinite;
}
@keyframes scroll-left {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes scroll-right {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}
.marquee-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color 0.3s, background 0.3s;
}
.marquee-item:hover {
  border-color: rgba(108, 92, 231, 0.3);
  background: rgba(108, 92, 231, 0.06);
}
.m-icon {
  width: 28px;
  height: 28px;
  color: #6c5ce7;
  flex-shrink: 0;
}
.marquee-item span {
  font-size: 14px;
  font-weight: 600;
  color: #999;
  letter-spacing: 0.3px;
}
.marquee-item:hover span { color: #ccc; }

.marquee-slow .marquee-track { animation-duration: 50s; }

/* pause on hover */
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ── Terminal (Hero visual) ── */
.terminal {
  background: #13131a;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(108, 92, 231, 0.06);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-r { background: #ff5f57; }
.dot-y { background: #ffbd2e; }
.dot-g { background: #28c840; }

/* Terminal indicator dots */
.terminal-dots {
  display: flex;
  gap: 6px;
  margin-left: auto;
}
.term-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: all 0.3s;
}
.term-dot:hover { background: rgba(255, 255, 255, 0.3); }
.term-dot.active {
  background: #6c5ce7;
  box-shadow: 0 0 6px rgba(108, 92, 231, 0.5);
}

/* Terminal scene transitions */
.terminal-viewport {
  position: relative;
  overflow: hidden;
  transition: height 0.4s ease;
}
.terminal-scene {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}
.terminal-scene.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.terminal-title {
  margin-left: 8px;
  font-size: 13px;
  color: #555;
}
.chat-msg {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.6;
  max-width: 92%;
}
.chat-user {
  background: rgba(108, 92, 231, 0.15);
  color: #c8c3f7;
  align-self: flex-end;
  border: 1px solid rgba(108, 92, 231, 0.2);
}
.chat-agent {
  background: rgba(255, 255, 255, 0.04);
  color: #bbb;
  align-self: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.chat-agent p { margin: 0; }
.chat-agent p + p { margin-top: 5px; }
.tool-tag {
  display: inline-block;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(108, 92, 231, 0.12);
  color: #a29bfe;
  margin-bottom: 8px;
}
.text-green { color: #00b894; font-weight: 600; }
.text-red { color: #e17055; font-weight: 600; }

/* ── Sections (shared) ── */
.section { padding: 72px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(108, 92, 231, 0.1);
  color: #a29bfe;
  margin-bottom: 16px;
}
.section-header h2 {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}
.section-header p {
  font-size: 16px;
  color: #777;
}

/* ── Features ── */
.features {
  background: linear-gradient(180deg, #0a0a0f 0%, #0f0f18 50%, #0a0a0f 100%);
}
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.feature-panel {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 40px 48px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.3s;
}
.feature-panel:hover {
  border-color: rgba(108, 92, 231, 0.25);
  background: rgba(108, 92, 231, 0.04);
}
.feature-panel.reverse { flex-direction: row-reverse; }
.fp-icon {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border-radius: 20px;
  background: rgba(108, 92, 231, 0.08);
  border: 1px solid rgba(108, 92, 231, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}
.fp-icon span { font-size: 44px; }
.fp-body { flex: 1; }
.fp-num {
  font-size: 13px;
  font-weight: 700;
  color: #6c5ce7;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.feature-panel h3 {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}
.feature-panel p {
  font-size: 15px;
  line-height: 1.8;
  color: #888;
  max-width: 560px;
}
.feature-panel.reverse .fp-body { text-align: right; }
.feature-panel.reverse p { margin-left: auto; }

/* ── Steps ── */
.how-it-works { background: #0a0a0f; }
.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.step-card {
  text-align: center;
  padding: 32px 28px;
  flex: 1;
  max-width: 240px;
}
.step-num {
  font-size: 48px;
  font-weight: 900;
  background: linear-gradient(180deg, rgba(108, 92, 231, 0.5), rgba(108, 92, 231, 0.05));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  line-height: 1;
}
.step-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.step-card p {
  font-size: 14px;
  color: #777;
  line-height: 1.6;
}
.step-connector {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, rgba(108, 92, 231, 0.3), rgba(108, 92, 231, 0.08));
  flex-shrink: 0;
  margin-top: -20px;
}

/* ── Solution (Before & After) ── */
.solution { background: linear-gradient(180deg, #0a0a0f 0%, #0d0d16 100%); }
.solution-grid {
  display: flex;
  align-items: stretch;
  gap: 0;
  max-width: 1050px;
  margin: 0 auto 36px;
}
.solution-col {
  flex: 1;
  padding: 32px 36px;
  border-radius: 16px;
}
.solution-pain {
  background: rgba(231, 76, 60, 0.06);
  border: 1px solid rgba(231, 76, 60, 0.15);
}
.solution-fix {
  background: rgba(108, 92, 231, 0.06);
  border: 1px solid rgba(108, 92, 231, 0.2);
}
.solution-label {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}
.solution-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.solution-col li {
  font-size: 14px;
  line-height: 1.7;
  color: #999;
  padding-left: 20px;
  position: relative;
}
.solution-pain li::before {
  content: '✗';
  position: absolute;
  left: 0;
  color: #e74c3c;
  font-weight: 700;
}
.solution-fix li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #6c5ce7;
  font-weight: 700;
}
.solution-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #444;
  padding: 0 24px;
  flex-shrink: 0;
}
.solution-result {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.solution-result p {
  font-size: 15px;
  line-height: 1.7;
  color: #888;
}
.solution-result strong { color: #fff; }

/* ── CTA ── */
.cta {
  padding: 72px 0;
}
.cta-inner {
  text-align: center;
  padding: 80px 48px;
  border-radius: 20px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(108, 92, 231, 0.15), transparent 60%),
    rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(108, 92, 231, 0.12);
}
.cta-inner h2 {
  font-size: 38px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
}
.cta-inner p {
  font-size: 17px;
  color: #777;
  margin-bottom: 36px;
}

/* ── Footer ── */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-brand {
  font-weight: 700;
  font-size: 15px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-copy { font-size: 13px; color: #444; }
.footer-contact { font-size: 13px; color: #444; }
.footer-contact a { color: #6c5ce7; transition: color 0.3s; }
.footer-contact a:hover { color: #a29bfe; }

/* ═══════════════════════════════════════════
   Dynamic Background FX
   ═══════════════════════════════════════════ */
.bg-fx {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
/* Floating particles */
.particle {
  position: absolute;
  left: var(--x);
  bottom: -10px;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: rgba(108, 92, 231, 0.6);
  box-shadow: 0 0 6px rgba(108, 92, 231, 0.4), 0 0 12px rgba(108, 92, 231, 0.15);
  animation: particle-rise var(--d) linear var(--delay) infinite;
}
.particle:nth-child(even) {
  background: rgba(116, 185, 255, 0.5);
  box-shadow: 0 0 6px rgba(116, 185, 255, 0.35), 0 0 12px rgba(116, 185, 255, 0.12);
}
@keyframes particle-rise {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% {
    transform: translateY(-100vh) translateX(30px);
    opacity: 0;
  }
}
/* Ensure page content sits above bg-fx */
.nav, .hero, .section-marquee, .section, .footer {
  position: relative;
  z-index: 1;
}

/* ═══════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero h1 { font-size: 42px; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-desc br { display: none; }
  .feature-panel { gap: 32px; padding: 32px 36px; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.96);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .nav-links.open { display: flex; }
  .mobile-toggle { display: flex; }

  .hero { padding: 100px 0 60px; min-height: auto; }
  .hero h1 { font-size: 34px; }
  .hero-desc { font-size: 15px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .stat-divider { display: none; }

  .section { padding: 56px 0; }
  .section-header h2 { font-size: 28px; }
  .feature-panel,
  .feature-panel.reverse {
    flex-direction: column;
    text-align: center;
    padding: 28px 24px;
    gap: 20px;
  }
  .feature-panel.reverse .fp-body { text-align: center; }
  .feature-panel.reverse p { margin-left: 0; }
  .fp-icon { width: 80px; height: 80px; }
  .fp-icon span { font-size: 36px; }
  .feature-panel h3 { font-size: 19px; }

  .steps { flex-direction: column; gap: 0; }
  .step-connector {
    width: 2px;
    height: 32px;
    background: linear-gradient(180deg, rgba(108, 92, 231, 0.3), rgba(108, 92, 231, 0.08));
    margin: 0;
  }


  .solution-grid { flex-direction: column; gap: 16px; }
  .solution-arrow { transform: rotate(90deg); padding: 8px 0; }
  .solution-col { padding: 24px 20px; }

  .cta { padding: 72px 0; }
  .cta-inner { padding: 48px 24px; }
  .cta-inner h2 { font-size: 28px; }

  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 24px; }
}
