/* ═══════════════════════════════════
   NeuroTrade AI — Main Stylesheet
   Modern AI SaaS — v2.0
═══════════════════════════════════ */

:root {
  --bg:        #050814;
  --bg-panel:  #0d1229;
  --bg-widget: #111830;
  --text:      #e2e8f8;
  --text-muted:#7d8fba;
  --blue:      #4895ef;
  --blue-dim:  rgba(72,149,239,0.15);
  --green:     #06ffa5;
  --green-dim: rgba(6,255,165,0.12);
  --red:       #ff006e;
  --yellow:    #ffbe0b;
  --orange:    #ff9a00;
  --purple:    #b44ef8;
  --border:    rgba(72,149,239,0.14);
  --border-hi: rgba(72,149,239,0.35);
  --glass:     rgba(13,18,41,0.75);
  --radius:    12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow:    0 8px 32px rgba(0,0,0,0.5);
  --glow-blue: 0 0 40px rgba(72,149,239,0.25);
  --glow-green:0 0 40px rgba(6,255,165,0.18);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Cursor spotlight ─────────────── */
#cursor-glow {
  position: fixed;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(72,149,239,0.07) 0%, transparent 65%);
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  top: -999px; left: -999px;
}

/* ── Noise texture overlay ────────── */
body::before {
  content: '';
  position: fixed; inset: 0;
  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)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 0; opacity: 0.4;
}

/* ── Utilities ─────────────────────── */
.container    { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.container-sm { max-width: 820px;  margin: 0 auto; padding: 0 28px; }
.section      { padding: 110px 0; position: relative; }
.section-dark { background: var(--bg-panel); }

.glass {
  background: var(--glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
}
.glass-hi { border-color: var(--border-hi); }

.accent       { color: var(--blue); }
.green        { color: var(--green); }
.red          { color: var(--red); }
.text-muted   { color: var(--text-muted); font-size: 0.9rem; }

.gradient-text {
  background: linear-gradient(100deg, var(--blue) 0%, #7eb8ff 35%, var(--green) 70%, var(--blue) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: grad-move 6s ease infinite;
}
@keyframes grad-move {
  0%  { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100%{ background-position: 0% 50%; }
}

/* ── Buttons ────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 24px; border-radius: 10px;
  font-size: 0.95rem; font-weight: 600;
  cursor: pointer; text-decoration: none;
  border: none; transition: all 0.25s;
  position: relative; overflow: hidden;
}
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.2s;
}
.btn:hover::after { background: rgba(255,255,255,0.06); }

.btn-primary {
  background: linear-gradient(135deg, var(--blue) 0%, #5e60ce 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(72,149,239,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(72,149,239,0.55); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--border-hi); color: var(--blue); background: var(--blue-dim); }
.btn-lg   { padding: 14px 32px; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

/* ── Section Headers ─────────────── */
.section-header { text-align: center; margin-bottom: 70px; }
.section-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--blue);
  background: var(--blue-dim); border: 1px solid rgba(72,149,239,0.2);
  padding: 5px 16px; border-radius: 20px; margin-bottom: 20px;
}
.section-tag::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.5)} }

.section-title {
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  font-weight: 900; line-height: 1.15; letter-spacing: -0.5px;
  margin-bottom: 18px;
}
.section-desc { color: var(--text-muted); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }

/* ══════════════════════════════════
   NAVBAR
══════════════════════════════════ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 0;
  transition: background 0.4s, border-color 0.4s, padding 0.3s;
}
.navbar.scrolled {
  padding: 12px 0;
  background: rgba(5,8,20,0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}
.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; gap: 32px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon { font-size: 1.7rem; color: var(--blue); line-height: 1; filter: drop-shadow(0 0 8px rgba(72,149,239,0.5)); }
.logo-text { font-size: 1.1rem; font-weight: 800; color: var(--text); letter-spacing: -0.3px; }
.nav-links { display: flex; list-style: none; gap: 30px; margin-left: auto; }
.nav-links a {
  color: var(--text-muted); text-decoration: none;
  font-size: 0.88rem; font-weight: 500;
  transition: color 0.2s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0; right: 0; height: 1px;
  background: var(--blue); transform: scaleX(0); transition: transform 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { margin-left: 16px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s; }

/* ══════════════════════════════════
   HERO
══════════════════════════════════ */
#hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 130px 28px 90px;
  position: relative; overflow: hidden;
}

/* Mesh gradient background */
#hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 10% 40%, rgba(72,149,239,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(6,255,165,0.06) 0%, transparent 50%),
    radial-gradient(ellipse 50% 60% at 50% 80%, rgba(180,78,248,0.05) 0%, transparent 60%);
  animation: mesh-drift 12s ease-in-out infinite alternate;
}
@keyframes mesh-drift {
  from { background-position: 0% 0%, 0% 0%, 0% 0%; }
  to   { background-position: 2% 3%, -3% -2%, 1% -2%; }
}

#neural-canvas { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

.hero-content {
  max-width: 1200px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 70px; align-items: center;
  position: relative; z-index: 1;
}
.hero-left { display: flex; flex-direction: column; gap: 28px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(6,255,165,0.08); border: 1px solid rgba(6,255,165,0.25);
  color: var(--green); padding: 7px 18px; border-radius: 30px;
  font-size: 0.8rem; font-weight: 600; width: fit-content;
  box-shadow: 0 0 24px rgba(6,255,165,0.08);
  animation: badge-glow 3s ease-in-out infinite;
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: pulse 1.5s infinite;
}
@keyframes badge-glow {
  0%,100%{ box-shadow: 0 0 16px rgba(6,255,165,0.08); }
  50%    { box-shadow: 0 0 28px rgba(6,255,165,0.16); }
}

.hero-title {
  font-size: clamp(2.6rem, 5.5vw, 4.4rem); font-weight: 900; line-height: 1.08;
  letter-spacing: -2px;
}
.hero-subtitle {
  color: var(--text-muted); font-size: 1.1rem; line-height: 1.75;
  max-width: 520px;
}
/* Typing cursor */
.type-cursor {
  display: inline-block; width: 2px; height: 1em;
  background: var(--blue); vertical-align: text-bottom;
  margin-left: 2px; animation: blink 0.9s steps(1) infinite;
}
@keyframes blink { 0%,50%{opacity:1} 51%,100%{opacity:0} }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  display: flex; align-items: center;
  background: rgba(13,18,41,0.6); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 24px; width: fit-content;
  backdrop-filter: blur(16px); gap: 0;
  position: relative;
}
.hero-stats::before {
  content: ''; position: absolute; inset: -1px; border-radius: calc(var(--radius) + 1px);
  background: linear-gradient(90deg, rgba(72,149,239,0.25), rgba(6,255,165,0.12), rgba(72,149,239,0.25));
  background-size: 200% 100%; z-index: -1;
  animation: border-flow 4s ease infinite;
}
@keyframes border-flow {
  0%  { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100%{ background-position: 0% 50%; }
}
.hero-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0 22px; }
.hero-stat:first-child { padding-left: 0; }
.stat-num { font-size: 1.75rem; font-weight: 900; font-family: 'JetBrains Mono', monospace; color: var(--text); }
.stat-label { font-size: 0.72rem; color: var(--text-muted); white-space: nowrap; letter-spacing: 0.3px; }
.stat-divider { width: 1px; height: 38px; background: var(--border); }

/* ── Hero right — live panel ──────── */
.hero-right { position: relative; }

.hero-card {
  padding: 24px;
  box-shadow: var(--glow-blue);
  position: relative; overflow: hidden;
}
.hero-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(72,149,239,0.5), transparent);
}

.chart-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.chart-title { font-size: 0.9rem; font-weight: 700; }
.badge-live {
  background: rgba(255,0,110,0.12); color: var(--red);
  border: 1px solid rgba(255,0,110,0.25);
  padding: 3px 9px; border-radius: 5px; font-size: 0.68rem;
  font-weight: 800; letter-spacing: 0.5px;
  animation: live-blink 1.2s ease-in-out infinite;
}
@keyframes live-blink { 0%,100%{opacity:1} 50%{opacity:0.6} }

.chart-footer { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.signal-row { display: flex; align-items: center; gap: 10px; }
.signal-label { font-size: 0.78rem; color: var(--text-muted); width: 80px; }
.signal-val { font-size: 0.84rem; font-weight: 700; font-family: 'JetBrains Mono', monospace; margin-left: auto; }
.confidence-bar { flex: 1; height: 5px; background: rgba(255,255,255,0.07); border-radius: 3px; overflow: hidden; }
.confidence-fill { height: 100%; background: linear-gradient(90deg, var(--blue), var(--green)); border-radius: 3px; transition: width 1s ease; }

/* Live activity feed */
.live-feed { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 16px; }
.feed-title { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 10px; }
.feed-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 8px;
  font-size: 0.8rem; margin-bottom: 5px;
  background: rgba(255,255,255,0.02); border: 1px solid transparent;
  animation: feed-in 0.4s ease;
}
@keyframes feed-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.feed-dir {
  font-size: 0.68rem; font-weight: 800; padding: 2px 6px; border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
}
.feed-dir.long  { background: rgba(6,255,165,0.12); color: var(--green); }
.feed-dir.short { background: rgba(255,0,110,0.12); color: var(--red); }
.feed-pair { font-weight: 600; flex: 1; }
.feed-pnl { font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 0.8rem; }
.feed-pnl.pos { color: var(--green); }
.feed-pnl.neg { color: var(--red); }
.feed-time { font-size: 0.7rem; color: var(--text-muted); }

/* Floating decoration behind card */
.hero-float-1, .hero-float-2 {
  position: absolute; border-radius: 50%;
  pointer-events: none; z-index: -1;
  filter: blur(60px);
  animation: float-drift 8s ease-in-out infinite alternate;
}
.hero-float-1 {
  width: 300px; height: 300px;
  background: rgba(72,149,239,0.12);
  top: -60px; right: -80px;
}
.hero-float-2 {
  width: 200px; height: 200px;
  background: rgba(6,255,165,0.07);
  bottom: -40px; left: -60px;
  animation-direction: alternate-reverse;
  animation-duration: 11s;
}
@keyframes float-drift {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(20px,15px) scale(1.1); }
}

/* ══════════════════════════════════
   TICKER
══════════════════════════════════ */
.ticker-bar {
  background: rgba(13,18,41,0.9);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden; padding: 11px 0; position: relative;
  backdrop-filter: blur(10px);
}
.ticker-bar::before,.ticker-bar::after {
  content:''; position:absolute; top:0; width:120px; height:100%; z-index:2;
}
.ticker-bar::before { left:0; background: linear-gradient(90deg, rgba(5,8,20,0.95), transparent); }
.ticker-bar::after  { right:0; background: linear-gradient(-90deg, rgba(5,8,20,0.95), transparent); }
.ticker-track {
  display: flex; gap: 52px; white-space: nowrap;
  animation: ticker 35s linear infinite;
  width: max-content;
}
.ticker-track:hover { animation-play-state: paused; }
@keyframes ticker { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }
.tick { font-size: 0.8rem; font-weight: 700; font-family: 'JetBrains Mono', monospace; opacity: 0.9; letter-spacing: 0.3px; }
.tick.green { color: var(--green); }
.tick.red   { color: var(--red); }
.tick-sep { color: var(--border-hi); }

/* ══════════════════════════════════
   FEATURES
══════════════════════════════════ */
.features-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
@media (max-width: 1100px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }

.feature-card {
  padding: 28px 24px;
  transition: transform 0.3s cubic-bezier(.175,.885,.32,1.275), border-color 0.25s, box-shadow 0.25s;
  cursor: default;
  transform-style: preserve-3d;
  will-change: transform;
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hi);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4), 0 0 30px rgba(72,149,239,0.1);
}
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 18px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.feature-card:hover .feature-icon { transform: scale(1.1) rotate(-5deg); }
.feature-icon.blue   { background: rgba(72,149,239,0.12);  box-shadow: 0 0 0 1px rgba(72,149,239,0.1); }
.feature-icon.green  { background: rgba(6,255,165,0.10);   box-shadow: 0 0 0 1px rgba(6,255,165,0.08); }
.feature-icon.orange { background: rgba(255,154,0,0.12);   box-shadow: 0 0 0 1px rgba(255,154,0,0.08); }
.feature-icon.purple { background: rgba(180,78,248,0.12);  box-shadow: 0 0 0 1px rgba(180,78,248,0.08); }
.feature-icon.yellow { background: rgba(255,190,11,0.12);  box-shadow: 0 0 0 1px rgba(255,190,11,0.08); }
.feature-icon.red    { background: rgba(255,0,110,0.10);   box-shadow: 0 0 0 1px rgba(255,0,110,0.08); }
.feature-card:hover .feature-icon.blue   { box-shadow: 0 0 18px rgba(72,149,239,0.3); }
.feature-card:hover .feature-icon.green  { box-shadow: 0 0 18px rgba(6,255,165,0.22); }
.feature-card:hover .feature-icon.purple { box-shadow: 0 0 18px rgba(180,78,248,0.22); }
.feature-card:hover .feature-icon.orange { box-shadow: 0 0 18px rgba(255,154,0,0.22); }
.feature-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 10px; }
.feature-card p  { font-size: 0.84rem; color: var(--text-muted); line-height: 1.65; }

/* ══════════════════════════════════
   PLATFORMS
══════════════════════════════════ */
.platforms-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.platform-card {
  padding: 36px; position: relative;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.25s;
}
.platform-card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0,0,0,0.4); }
.platform-featured { border-color: rgba(6,255,165,0.3); box-shadow: 0 0 0 1px rgba(6,255,165,0.1); }
.platform-featured:hover { box-shadow: 0 20px 50px rgba(0,0,0,0.4), var(--glow-green); }
.platform-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--green) 0%, var(--blue) 100%);
  color: var(--bg); font-size: 0.7rem; font-weight: 800;
  padding: 4px 14px; border-radius: 20px; white-space: nowrap;
  letter-spacing: 0.5px;
}
.platform-header { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.platform-logo {
  width: 54px; height: 54px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem; font-weight: 900; color: #fff;
  flex-shrink: 0;
}
.platform-logo.mt5   { background: linear-gradient(135deg, #1e5aff, #5e60ce); box-shadow: 0 4px 16px rgba(30,90,255,0.35); }
.platform-logo.bingx { background: linear-gradient(135deg, #ff6b35, #ff006e); box-shadow: 0 4px 16px rgba(255,0,110,0.35); }
.platform-header h3 { font-size: 1.1rem; font-weight: 700; }
.platform-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.platform-features li { font-size: 0.86rem; color: var(--text-muted); display: flex; align-items: flex-start; gap: 8px; }
.platform-features li::before { content: '✓'; color: var(--green); font-weight: 800; flex-shrink: 0; }
.platform-pairs { display: flex; flex-wrap: wrap; gap: 7px; }
.pair-tag {
  background: var(--blue-dim); border: 1px solid rgba(72,149,239,0.2);
  color: var(--blue); font-size: 0.72rem; font-weight: 700;
  padding: 3px 10px; border-radius: 6px; font-family: 'JetBrains Mono', monospace;
}

/* ══════════════════════════════════
   HOW IT WORKS
══════════════════════════════════ */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr 40px 1fr 40px 1fr 40px 1fr;
  align-items: center; gap: 0;
}
.step-card {
  background: var(--glass); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px 24px;
  text-align: center;
  transition: transform 0.3s, border-color 0.25s, box-shadow 0.25s;
}
.step-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hi);
  box-shadow: 0 12px 36px rgba(0,0,0,0.4), var(--glow-blue);
}
.step-number {
  font-size: 2.6rem; font-weight: 900; font-family: 'JetBrains Mono', monospace;
  background: linear-gradient(135deg, var(--blue), var(--green));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 16px; line-height: 1;
}
.step-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 10px; }
.step-card p  { font-size: 0.83rem; color: var(--text-muted); line-height: 1.65; }
.step-arrow {
  display: flex; align-items: center; justify-content: center;
  color: var(--border-hi); font-size: 1.2rem; padding: 0 4px;
}

/* ══════════════════════════════════
   RISK ENGINE
══════════════════════════════════ */
.risk-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.risk-rules { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.risk-rule {
  background: var(--bg-widget); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px;
  transition: all 0.2s; cursor: default;
}
.risk-rule:hover {
  border-color: rgba(6,255,165,0.3);
  box-shadow: 0 0 20px rgba(6,255,165,0.06);
  transform: scale(1.03);
}
.rule-val { display: block; font-size: 1.7rem; font-weight: 900; font-family: 'JetBrains Mono', monospace; color: var(--green); line-height: 1.2; }
.rule-label { font-size: 0.76rem; color: var(--text-muted); margin-top: 4px; }
.risk-visual { padding: 28px; }
.risk-pipeline { display: flex; flex-direction: column; }
.pipe-step {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-radius: var(--radius);
  font-size: 0.87rem; font-weight: 500;
  transition: background 0.2s;
}
.pipe-step.active { background: rgba(6,255,165,0.06); }
.pipe-step.fail   { background: rgba(255,0,110,0.07); }
.pipe-step:hover.active { background: rgba(6,255,165,0.1); }
.pipe-icon { font-size: 1.1rem; }
.pipe-ok   { margin-left: auto; color: var(--green); font-weight: 800; font-size: 0.82rem; }
.pipe-fail { margin-left: auto; color: var(--red); font-weight: 800; font-size: 0.78rem; }
.pipe-line { width: 2px; height: 14px; background: var(--border); margin-left: 29px; }

/* ══════════════════════════════════
   PRICING
══════════════════════════════════ */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.pricing-card {
  padding: 34px 28px; position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}
.pricing-card:hover { transform: translateY(-5px); }
.pricing-featured {
  border-color: rgba(72,149,239,0.4);
  box-shadow: var(--glow-blue);
  transform: scale(1.03);
}
.pricing-featured:hover { transform: scale(1.03) translateY(-5px); }
.plan-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--blue), #5e60ce);
  color: #fff; font-size: 0.7rem; font-weight: 800;
  padding: 4px 14px; border-radius: 20px; white-space: nowrap; letter-spacing: 0.5px;
}
.plan-name { font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; color: var(--text-muted); margin-bottom: 14px; }
.pricing-featured .plan-name { color: var(--blue); }
.plan-price { margin-bottom: 24px; }
.price-num { font-size: 2.9rem; font-weight: 900; font-family: 'JetBrains Mono', monospace; }
.price-cur { font-size: 0.88rem; color: var(--text-muted); margin-left: 3px; }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.plan-features li { font-size: 0.86rem; color: var(--text-muted); display: flex; gap: 8px; }
.plan-features li:not(.disabled) { color: var(--text); }
.plan-features li:not(.disabled)::before { content: '✓'; color: var(--green); font-weight: 800; flex-shrink: 0; }
.plan-features li.disabled { opacity: 0.35; }
.plan-features li.disabled::before { content: '✗'; color: var(--red); font-weight: 800; flex-shrink: 0; }

/* ══════════════════════════════════
   3D CARD SYSTEM
══════════════════════════════════ */
/* Gloss highlight that follows mouse */
.card-gloss {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 10;
  transition: opacity .3s;
}

/* preserve-3d on all interactive cards */
.feature-card, .platform-card, .pricing-card, .step-card, .contact-card {
  transform-style: preserve-3d;
  position: relative;
  transition: transform .55s cubic-bezier(.25,.46,.45,.94), box-shadow .55s ease;
}

/* Inner elements lift in 3D space */
.feature-icon, .platform-logo, .step-number {
  transform-style: preserve-3d;
  transition: transform .3s ease;
  display: inline-block;
}

/* Background canvas for subpages */
#bg-canvas-3d {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: -1;
  opacity: .8;
}

/* Section headers 3D depth reveal */
.section-header {
  transform-style: preserve-3d;
}

/* FAQ items lift slightly */
.faq-item {
  transform-style: preserve-3d;
  transition: transform .5s cubic-bezier(.25,.46,.45,.94), box-shadow .5s ease;
}

/* Feed item entrance */
.feed-new {
  animation: feedIn .38s cubic-bezier(.34,1.56,.64,1) forwards;
}
@keyframes feedIn {
  from { opacity:0; transform: translateY(-10px) scale(.92); }
  to   { opacity:1; transform: translateY(0)    scale(1); }
}

/* Floating geometric accents for hero */
.hero-float-1, .hero-float-2 {
  transform-style: preserve-3d;
  will-change: transform;
}

/* 3D depth on step arrows */
.step-arrow {
  transform-style: preserve-3d;
  transition: transform .3s ease;
}

/* ══════════════════════════════════
   PRICING EXTRAS
══════════════════════════════════ */
.plan-desc { font-size: 0.82rem; color: var(--text-muted); margin: -12px 0 20px; line-height: 1.5; }

/* Comparison table (precios.html) */
.pricing-table { width: 100%; border-collapse: collapse; color: var(--text); font-size: 0.86rem; }
.pricing-table th { padding: 12px 16px; text-align: left; font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.pricing-table td { padding: 11px 16px; border-bottom: 1px solid rgba(255,255,255,0.04); }
.pricing-table tr:last-child td { border-bottom: none; }
.pricing-table .group-row td { background: rgba(72,149,239,0.06); color: var(--blue); font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.5px; padding: 8px 16px; }
.pricing-table .val-yes { color: var(--green); font-weight: 700; }
.pricing-table .val-no  { color: var(--text-muted); opacity: 0.4; }

/* Status indicators (estado.html) */
.status-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 8px; vertical-align: middle; }
.status-dot.green  { background: var(--green); box-shadow: 0 0 8px rgba(6,255,165,0.5); }
.status-dot.orange { background: #f59e0b; box-shadow: 0 0 8px rgba(245,158,11,0.5); }
.status-dot.red    { background: var(--red); box-shadow: 0 0 8px rgba(255,0,110,0.5); }

/* Page hero (subpages) */
.page-hero { padding: 140px 0 60px; text-align: center; }

/* ══════════════════════════════════
   FAQ
══════════════════════════════════ */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: border-color 0.2s;
}
.faq-item:hover { border-color: var(--border-hi); }
.faq-item.open  { border-color: rgba(72,149,239,0.3); }
.faq-question {
  width: 100%; text-align: left; background: var(--glass);
  color: var(--text); font-size: 0.93rem; font-weight: 600;
  padding: 18px 22px; cursor: pointer; border: none;
  display: flex; justify-content: space-between; align-items: center;
  transition: background 0.2s; gap: 16px;
}
.faq-question::after {
  content: '+'; font-size: 1.3rem; color: var(--blue);
  transition: transform 0.3s; flex-shrink: 0; font-weight: 300;
}
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-question:hover { background: rgba(72,149,239,0.05); }
.faq-answer {
  max-height: 0; overflow: hidden; padding: 0 22px;
  color: var(--text-muted); font-size: 0.88rem; line-height: 1.75;
  transition: max-height 0.4s ease, padding 0.3s;
  background: var(--bg-widget);
}
.faq-item.open .faq-answer { max-height: 220px; padding: 18px 22px; }

/* ══════════════════════════════════
   CONTACT
══════════════════════════════════ */
.contact-card { padding: 44px; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: var(--text-muted); }
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-widget); border: 1px solid var(--border);
  color: var(--text); border-radius: 9px; padding: 12px 16px;
  font-size: 0.91rem; font-family: 'Inter', sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s; resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); opacity: 0.6; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(72,149,239,0.12);
}
.form-group select option { background: var(--bg-panel); }
.form-check { display: flex; align-items: center; gap: 10px; }
.form-check input { width: 16px; height: 16px; accent-color: var(--blue); cursor: pointer; }
.form-check label { font-size: 0.86rem; color: var(--text-muted); cursor: pointer; }
.form-message { text-align: center; font-size: 0.88rem; padding: 12px; border-radius: 9px; display: none; }
.form-message.success { background: rgba(6,255,165,0.08); color: var(--green); border: 1px solid rgba(6,255,165,0.25); display: block; }
.form-message.error   { background: rgba(255,0,110,0.08); color: var(--red);   border: 1px solid rgba(255,0,110,0.25); display: block; }

/* ══════════════════════════════════
   FOOTER
══════════════════════════════════ */
.footer {
  background: var(--bg-panel);
  border-top: 1px solid var(--border);
  padding: 64px 0 36px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 52px; }
.footer-brand .nav-logo { margin-bottom: 14px; }
.footer-desc { font-size: 0.86rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 20px; max-width: 280px; }
.footer-social { display: flex; gap: 10px; }
.social-link {
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--bg-widget); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); text-decoration: none; font-size: 0.82rem; font-weight: 800;
  transition: all 0.2s;
}
.social-link:hover { border-color: var(--blue); color: var(--blue); box-shadow: 0 0 12px rgba(72,149,239,0.2); }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 { font-size: 0.83rem; font-weight: 700; letter-spacing: 0.5px; margin-bottom: 4px; }
.footer-col a { color: var(--text-muted); text-decoration: none; font-size: 0.86rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--blue); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 28px;
  display: flex; flex-direction: column; gap: 6px; align-items: center; text-align: center;
}
.footer-bottom p { font-size: 0.8rem; color: var(--text-muted); }
.footer-disclaimer { font-size: 0.73rem !important; opacity: 0.5; }

/* ══════════════════════════════════
   SCROLL REVEAL
══════════════════════════════════ */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ══════════════════════════════════
   RESPONSIVE
══════════════════════════════════ */
@media (max-width: 1100px) {
  .hero-content    { grid-template-columns: 1fr; gap: 48px; }
  .hero-right      { display: none; }
  .steps-grid      { grid-template-columns: 1fr; }
  .step-arrow      { transform: rotate(90deg); justify-content: flex-start; padding-left: 22px; }
}
@media (max-width: 900px) {
  .platforms-grid,
  .pricing-grid,
  .risk-layout     { grid-template-columns: 1fr; }
  .pricing-featured{ transform: scale(1); }
  .footer-grid     { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .section         { padding: 72px 0; }
  .nav-links       { display: none; }
  .nav-toggle      { display: flex; }
  .nav-cta .btn    { font-size: 0.78rem; padding: 7px 14px; }
  .form-row        { grid-template-columns: 1fr; }
  .footer-grid     { grid-template-columns: 1fr; }
  .hero-stats      { flex-wrap: wrap; justify-content: center; }
  .stat-divider    { display: none; }
  .hero-stat       { padding: 10px 16px; }
  .hero-title      { letter-spacing: -1px; }
  .features-grid   { grid-template-columns: 1fr; }
  #cursor-glow     { display: none; }
  .pricing-grid    { gap: 16px; }
  .pricing-card    { padding: 28px 20px; }
}

/* ── Cookie consent banner ─────────────────────────── */
#nt-cookie-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9998;
  background: rgba(10,12,30,0.97);
  border-top: 1px solid rgba(72,149,239,0.22);
  backdrop-filter: blur(16px);
  padding: 18px 24px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  transition: transform .4s ease, opacity .4s ease;
}
#nt-cookie-bar.nt-hidden { transform: translateY(100%); opacity: 0; pointer-events: none; }
#nt-cookie-bar p {
  flex: 1; min-width: 220px; font-size: 0.85rem;
  color: var(--text-muted); margin: 0; line-height: 1.55;
}
#nt-cookie-bar p a { color: var(--blue); text-decoration: none; }
#nt-cookie-bar p a:hover { text-decoration: underline; }
.nt-cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }
.nt-cookie-btn {
  padding: 8px 20px; border-radius: 8px; border: none; cursor: pointer;
  font-size: 0.84rem; font-weight: 700; transition: opacity .2s;
}
.nt-cookie-btn:hover { opacity: 0.85; }
.nt-cookie-accept { background: var(--blue); color: #fff; }
.nt-cookie-reject {
  background: transparent; color: var(--text-muted);
  border: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 500px) {
  #nt-cookie-bar { padding: 14px 16px; }
  .nt-cookie-btns { width: 100%; }
  .nt-cookie-btn  { flex: 1; text-align: center; }
}
