/* ==========================================================
   Prime Capital — Futuristic AI / FinTech / Robotics landing page
   ========================================================== */

:root {
  --bg-primary: #050B14;
  --bg-secondary: #071321;
  --bg-tertiary: #0A1727;
  --primary: #00E5FF;
  --secondary: #6C5CFF;
  --success: #3DFFB0;
  --danger: #FF5C7A;
  --text: #E8F1F8;
  --muted: #7A8BA3;
  --border: rgba(0, 229, 255, 0.14);
  --border-soft: rgba(255, 255, 255, 0.08);

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius: 16px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg-primary);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea { font-family: inherit; }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Background FX ---------- */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 15% 0%, rgba(108, 92, 255, 0.14), transparent 60%),
    radial-gradient(ellipse 70% 50% at 100% 30%, rgba(0, 229, 255, 0.10), transparent 60%),
    linear-gradient(180deg, #050B14 0%, #071321 45%, #0A1727 100%);
}

#particles { position: absolute; inset: 0; width: 100%; height: 100%; }

.grid-overlay {
  position: absolute;
  inset: -2px;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.055) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, black 0%, transparent 75%);
}

.glow {
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
}
.glow-a { top: -180px; left: -120px; background: var(--secondary); }
.glow-b { top: 30%; right: -200px; background: var(--primary); opacity: 0.22; }

/* ---------- Navbar ---------- */
#site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; }

.navbar {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: rgba(5, 11, 20, 0.55);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--border-soft);
  transition: background .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}

.navbar.scrolled {
  background: rgba(5, 11, 20, 0.85);
  border-bottom-color: var(--border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { display: flex; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.brand-accent { color: var(--primary); }

.nav-menu { display: flex; align-items: center; gap: 8px; }

.nav-link {
  position: relative;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  padding: 10px 16px;
  border-radius: 999px;
  transition: color .25s var(--ease), background .25s var(--ease);
}
.nav-link:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.nav-link.active { color: var(--text); }
.nav-link.active::after {
  content: '';
  position: absolute;
  left: 16px; right: 16px; bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.nav-login {
  border: 1px solid var(--border);
  margin-left: 6px;
}
.nav-cta {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #04121C;
  font-weight: 600;
  padding: 10px 20px;
}
.nav-cta:hover { color: #04121C; filter: brightness(1.08); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  z-index: 200;
}
.hamburger span {
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), filter .25s var(--ease), background .25s var(--ease);
  white-space: nowrap;
}
.btn i { font-size: 0.8rem; transition: transform .25s var(--ease); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #04121C;
  box-shadow: 0 8px 30px rgba(0, 229, 255, 0.22);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(0, 229, 255, 0.32); }
.btn-primary:hover i { transform: translateX(3px); }

.btn-outline {
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(255,255,255,0.02);
}
.btn-outline:hover { background: rgba(0, 229, 255, 0.08); border-color: rgba(0, 229, 255, 0.4); transform: translateY(-2px); }

.btn-block { width: 100%; justify-content: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
}

.hero-inner {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 60px 32px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--primary);
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(0, 229, 255, 0.05);
  margin-bottom: 26px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.6vw, 3.9rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 480px;
  margin-bottom: 34px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-actions.center { justify-content: center; }

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 56px;
  padding-top: 30px;
  border-top: 1px solid var(--border-soft);
}
.stat { display: flex; flex-direction: column; }
.stat-num, .stat-suffix {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  display: inline;
}
.stat-suffix { color: var(--primary); }
.stat-label { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }

.hero-visual { position: relative; }
.visual-frame { position: relative; }
.float-anim { animation: floaty 6s ease-in-out infinite; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

.robot-svg .spin-slow { transform-origin: center; animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.pulse-soft { animation: pulseSoft 2.2s ease-in-out infinite; }
@keyframes pulseSoft { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.holo { animation: holoFloat 5s ease-in-out infinite; transform-origin: center; }
.holo-1 { animation-delay: .2s; }
.holo-2 { animation-delay: .8s; }
.holo-3 { animation-delay: 1.4s; }
.holo-4 { animation-delay: 2s; }
@keyframes holoFloat {
  0%, 100% { transform: translateY(0); opacity: 0.9; }
  50% { transform: translateY(-10px); opacity: 1; }
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid var(--border);
  border-radius: 20px;
}
.scroll-cue span {
  display: block;
  width: 4px;
  height: 8px;
  margin: 6px auto 0;
  border-radius: 3px;
  background: var(--primary);
  animation: scrollCue 1.8s ease-in-out infinite;
}
@keyframes scrollCue {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { opacity: 0; }
}

/* ---------- Sections (generic) ---------- */
.section { position: relative; padding: 120px 0; }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-head h2, .robot-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.section-desc { color: var(--muted); font-size: 1.02rem; }

/* ---------- Card grids ---------- */
.card-grid { display: grid; gap: 24px; }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.card-grid.six { grid-template-columns: repeat(3, 1fr); }

.info-card, .tech-card, .feature-card {
  position: relative;
  background: linear-gradient(160deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 34px 28px;
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease);
}
.info-card:hover, .tech-card:hover, .feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 229, 255, 0.35);
  box-shadow: 0 20px 50px rgba(0, 229, 255, 0.08);
  background: linear-gradient(160deg, rgba(0, 229, 255, 0.06), rgba(108, 92, 255, 0.03));
}

.card-index {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--muted);
  display: block;
  margin-bottom: 18px;
}

.card-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid var(--border);
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.info-card h3, .tech-card h3, .feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.info-card p, .tech-card p, .feature-card p { color: var(--muted); font-size: 0.94rem; }

/* ---------- AI Trading Dashboard ---------- */
.dashboard {
  background: linear-gradient(160deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.3);
}

.dash-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.dash-tabs { display: flex; gap: 8px; }
.dash-tab {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  cursor: pointer;
  transition: all .25s var(--ease);
}
.dash-tab.active { color: var(--primary); border-color: var(--border); background: rgba(0,229,255,0.06); }

.dash-signal {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.dash-signal strong { color: var(--success); }
.signal-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success);
  animation: pulseSoft 1.6s ease-in-out infinite;
}

.dash-main { display: grid; grid-template-columns: 1fr 260px; gap: 24px; }
.dash-chart {
  background: rgba(5,11,20,0.5);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 12px;
}
.chart-svg { width: 100%; height: auto; }
.chart-grid line { stroke: rgba(255,255,255,0.05); stroke-width: 1; }

.candle-up rect { fill: rgba(61,255,176,0.85); }
.candle-up line { stroke: rgba(61,255,176,0.85); }
.candle-down rect { fill: rgba(255,92,122,0.85); }
.candle-down line { stroke: rgba(255,92,122,0.85); }

.dash-side { display: flex; flex-direction: column; gap: 16px; }
.dash-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}
.d-label { color: var(--muted); }
.d-value { font-family: var(--font-mono); font-weight: 500; }
.d-value.up { color: var(--success); }

.dash-actions { display: flex; gap: 10px; }
.pill {
  flex: 1;
  text-align: center;
  padding: 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
}
.pill-buy { background: rgba(61,255,176,0.12); color: var(--success); border: 1px solid rgba(61,255,176,0.3); }
.pill-sell { background: rgba(255,92,122,0.12); color: var(--danger); border: 1px solid rgba(255,92,122,0.3); }

.dash-ticker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  border-top: 1px dashed var(--border-soft);
  padding-top: 14px;
  overflow: hidden;
  white-space: nowrap;
}
.dash-ticker span { display: inline-block; }

.disclaimer {
  margin-top: 22px;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ---------- Robotics ---------- */
.robot-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}
.robot-frame { position: relative; animation: floaty 7s ease-in-out infinite; }

.feature-list { display: flex; flex-direction: column; gap: 22px; margin-top: 30px; }
.feature-list li, .info-row { display: flex; gap: 16px; align-items: flex-start; }
.f-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid var(--border);
  color: var(--primary);
}
.feature-list strong, .info-row strong { font-family: var(--font-display); font-size: 1.02rem; }
.feature-list p, .info-row p { color: var(--muted); font-size: 0.92rem; margin-top: 4px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 60px; }
.contact-info .info-row { margin-bottom: 26px; }

.contact-form {
  background: linear-gradient(160deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 34px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 0.82rem; color: var(--muted); }
.field input, .field textarea {
  background: rgba(5,11,20,0.6);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--text);
  font-size: 0.94rem;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field input:focus, .field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.12);
}
.field.invalid input, .field.invalid textarea { border-color: var(--danger); }
.error-msg { font-size: 0.76rem; color: var(--danger); min-height: 14px; }

/* ---------- Final CTA ---------- */
.final-cta { padding-bottom: 140px; }
.cta-box {
  text-align: center;
  padding: 70px 40px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(0,229,255,0.08), rgba(108,92,255,0.05));
  position: relative;
  overflow: hidden;
}
.cta-box h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  margin-bottom: 16px;
}
.cta-box p { color: var(--muted); max-width: 560px; margin: 0 auto 34px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-soft);
  padding-top: 70px;
  position: relative;
  z-index: 1;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; padding-bottom: 50px; }
.footer-brand p { color: var(--muted); margin: 18px 0 22px; max-width: 360px; font-size: 0.92rem; }
.social-icons { display: flex; gap: 12px; }
.social-icons a {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  color: var(--muted);
  transition: all .25s var(--ease);
}
.social-icons a:hover { color: var(--primary); border-color: var(--border); background: rgba(0,229,255,0.06); transform: translateY(-3px); }

.footer-links h4 { font-family: var(--font-display); font-size: 0.95rem; margin-bottom: 20px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.footer-links a { display: block; color: var(--muted); padding: 7px 0; font-size: 0.92rem; transition: color .2s var(--ease); }
.footer-links a:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid var(--border-soft);
  padding: 22px 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
}

/* ---------- Scroll to top ---------- */
.scroll-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #04121C;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(0,229,255,0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all .3s var(--ease);
  z-index: 90;
}
.scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  top: 26px;
  right: 26px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(10,23,39,0.95);
  border: 1px solid rgba(61,255,176,0.35);
  color: var(--text);
  padding: 16px 22px;
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  transform: translateX(120%);
  transition: transform .4s var(--ease);
  z-index: 999;
  font-size: 0.92rem;
}
.toast.show { transform: translateX(0); }
.toast i { color: var(--success); font-size: 1.1rem; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; text-align: left; padding-top: 40px; }
  .hero-visual { order: -1; max-width: 420px; margin: 0 auto 20px; }
  .robot-grid, .contact-grid { grid-template-columns: 1fr; }
  .robot-visual { max-width: 380px; margin: 0 auto; }
  .dash-main { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .card-grid.three, .card-grid.six { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 780px) {
  .navbar { padding: 0 20px; }
  .hamburger { display: flex; }
  .nav-menu {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(78vw, 320px);
    height: 100vh;
    background: rgba(7,19,33,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    padding: 40px;
    transform: translateX(100%);
    transition: transform .4s var(--ease);
    border-left: 1px solid var(--border);
  }
  .nav-menu.open { transform: translateX(0); }
  .nav-menu li { width: 100%; }
  .nav-link { display: block; width: 100%; padding: 14px 16px; }
  .nav-cta, .nav-login { text-align: center; margin-left: 0; margin-top: 10px; }

  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-stats { flex-wrap: wrap; gap: 26px; }

  .section { padding: 80px 0; }
  .card-grid.three, .card-grid.six { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .toast { left: 16px; right: 16px; top: 16px; }
}

@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .hero-title { font-size: 2rem; }
  .btn { width: 100%; justify-content: center; }
  .hero-actions.center { flex-direction: column; }
  .cta-box { padding: 44px 22px; }
}
