/* ================================================================
   PLATFORM PAGE STYLES — PREMIUM GLASS OVERHAUL
   ================================================================ */

:root {
  /* Colors */
  --vf-bg-deep: #02040a;
  --vf-bg-card: rgba(10, 14, 23, 0.6);
  --vf-glass: rgba(255, 255, 255, 0.03);
  --vf-glass-border: rgba(255, 255, 255, 0.08);
  --vf-glass-border-bright: rgba(255, 255, 255, 0.15);
  --vf-text-main: #f8fafc;
  --vf-text-muted: #94a3b8;
  --vf-text-dim: #64748b;
  
  /* Accents */
  --vf-accent-blue: #3b82f6;
  --vf-accent-purple: #8b5cf6;
  --vf-accent-cyan: #06b6d4;
  --vf-accent-glow-blue: rgba(59, 130, 246, 0.3);
  --vf-accent-glow-purple: rgba(139, 92, 246, 0.3);
  
  /* Effects */
  --vf-blur: blur(20px);
  --vf-blur-heavy: blur(40px);
  --vf-shadow-premium: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  --vf-inner-highlight: inset 0 1px 1px rgba(255, 255, 255, 0.1);
  
  /* Animations */
  --vf-anim-slow: 20s linear infinite;
  --vf-anim-float: 6s ease-in-out infinite;
  --vf-anim-pulse: 3s ease-in-out infinite;
}

/* Base Body Styling for Platform */
.vf-platform-page {
  background-color: var(--vf-bg-deep) !important;
  color: var(--vf-text-main);
  overflow-x: hidden;
  position: relative;
}

/* Noise Overlay */
.vf-platform-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3仿真%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.015;
  pointer-events: none;
  z-index: 9999;
}

/* --- Keyframes --- */
@keyframes floatDrift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(20px, -30px) rotate(2deg); }
  66% { transform: translate(-10px, 20px) rotate(-1deg); }
}

@keyframes orbPulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.1); }
}

@keyframes lightSweep {
  0% { transform: translateX(-100%) rotate(-45deg); }
  100% { transform: translateX(200%) rotate(-45deg); }
}

@keyframes shimmer {
  0% { opacity: 0.4; }
  50% { opacity: 0.8; }
  100% { opacity: 0.4; }
}

@keyframes rotateSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes dashPulse {
  0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(59, 130, 246, 0); }
  100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

@keyframes lineFlow {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes barRise {
  from { transform: scaleY(0.4); }
  to { transform: scaleY(1); }
}

/* --- Ambient Background Elements --- */
.platform-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.platform-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: floatDrift var(--vf-anim-slow), orbPulse var(--vf-anim-pulse);
}

.platform-orb--1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15), transparent);
  top: 10%;
  right: 5%;
}

.platform-orb--2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.1), transparent);
  top: 40%;
  left: -5%;
}

.platform-orb--3 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.1), transparent);
  bottom: 10%;
  right: 20%;
}

.platform-light-streak {
  position: absolute;
  width: 1px;
  height: 200px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: floatDrift 15s linear infinite;
}

.platform-light-streak--1 { left: 20%; top: -100px; transform: rotate(15deg); }
.platform-light-streak--2 { right: 15%; bottom: -50px; transform: rotate(-10deg); }

/* --- Premium Button System --- */
.vf-glass-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 18px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--vf-glass-border);
  background: var(--vf-glass);
  backdrop-filter: var(--vf-blur);
  -webkit-backdrop-filter: var(--vf-blur);
  color: #fff;
  box-shadow: var(--vf-inner-highlight);
}

.vf-glass-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--vf-glass-border-bright);
  box-shadow: var(--vf-inner-highlight), 0 10px 20px rgba(0, 0, 0, 0.4);
}

.vf-glass-btn:active {
  transform: translateY(0) scale(0.98);
}

.vf-glass-btn--primary {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: var(--vf-inner-highlight), 0 0 20px rgba(59, 130, 246, 0.15);
}

.vf-glass-btn--primary:hover {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: var(--vf-inner-highlight), 0 0 30px rgba(59, 130, 246, 0.3);
  border-color: rgba(59, 130, 246, 0.4);
}

.vf-glass-btn--secondary {
  background: rgba(255, 255, 255, 0.02);
}

.vf-glass-btn--ghost {
  background: transparent;
  border-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.vf-glass-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--vf-glass-border);
}

.vf-glass-btn--pill {
  border-radius: 999px;
}

/* SVG icons in buttons */
.vf-glass-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.vf-glass-btn:hover svg {
  transform: translateX(3px);
}

/* Light Sweep for Buttons */
.vf-glass-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: skewX(-25deg);
  transition: 0.5s;
}

.vf-glass-btn:hover::after {
  left: 150%;
}

/* --- Hero Section --- */
.platform-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  background: var(--vf-bg-deep);
  padding: clamp(24px, 4vw, 56px) 24px 80px;
  text-align: center;
  min-height: auto;
  overflow: visible;
}

.platform-hero__stage {
  position: relative;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  background: #000;
  border-radius: 48px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 
    0 40px 100px -20px rgba(0, 0, 0, 0.8),
    0 0 40px rgba(59, 130, 246, 0.05);
  overflow: hidden;
  padding: 80px 24px 0;
}

/* --- Space Warp Background --- */
.platform-space-warp {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.platform-stars {
  position: absolute;
  inset: 0;
  background-repeat: repeat;
}

.platform-stars--near {
  background-image: 
    radial-gradient(1.5px 1.5px at 20px 30px, #fff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 50px 100px, #fff, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 90px 40px, #fff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 130px 80px, #fff, rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 160px 120px, #fff, rgba(0,0,0,0));
  background-size: 200px 200px;
  opacity: 0.3;
  animation: starDrift 60s linear infinite;
}

.platform-stars--far {
  background-image: 
    radial-gradient(1px 1px at 10px 10px, #fff, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 150px 150px, #fff, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 300px 50px, #fff, rgba(0,0,0,0));
  background-size: 400px 400px;
  opacity: 0.15;
  animation: starDrift 100s linear infinite reverse;
}

.platform-warp-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, 
    rgba(59, 130, 246, 0.15) 0%, 
    rgba(139, 92, 246, 0.05) 40%, 
    transparent 70%);
  animation: warpPulse 8s ease-in-out infinite;
}

.platform-warp-lines {
  position: absolute;
  inset: -50%;
  background-image: repeating-conic-gradient(
    from 0deg,
    transparent 0deg 1deg,
    rgba(255, 255, 255, 0.02) 1.5deg 2deg,
    transparent 2.5deg 10deg
  );
  mask-image: radial-gradient(circle at center, transparent 20%, black 80%);
  -webkit-mask-image: radial-gradient(circle at center, transparent 20%, black 80%);
  opacity: 0.4;
  animation: rotateSlow 120s linear infinite;
}

.platform-cosmic-glow {
  position: absolute;
  width: 60%;
  height: 60%;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
}

.platform-cosmic-glow--left {
  top: -10%;
  left: -10%;
  background: var(--vf-accent-blue);
  animation: orbPulse 12s infinite alternate;
}

.platform-cosmic-glow--right {
  bottom: -10%;
  right: -10%;
  background: var(--vf-accent-purple);
  animation: orbPulse 15s infinite alternate-reverse;
}

.platform-comet {
  position: absolute;
  width: 150px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  opacity: 0;
  transform: rotate(-35deg);
}

.platform-comet--1 {
  top: 10%;
  left: -20%;
  animation: cometSweep 12s linear infinite;
}

.platform-comet--2 {
  top: 40%;
  left: -20%;
  animation: cometSweep 18s linear infinite 5s;
}

/* --- AI Prompt Card --- */
.platform-ai-prompt {
  margin: 40px auto;
  max-width: 540px;
  position: relative;
  z-index: 10;
}

.platform-ai-prompt__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 8px 8px 16px;
  border-radius: 999px;
  transition: all 0.3s ease;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

.platform-ai-prompt__inner:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.platform-ai-prompt__icon {
  width: 18px;
  height: 18px;
  color: var(--vf-accent-blue);
}

.platform-ai-prompt__text {
  flex: 1;
  font-size: 14px;
  color: var(--vf-text-muted);
  text-align: left;
}

.platform-ai-prompt__btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--vf-accent-blue);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.platform-ai-prompt__btn:hover {
  transform: scale(1.1);
  background: #2563eb;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}

.platform-ai-prompt__btn svg {
  width: 16px;
  height: 16px;
}

/* --- New Animations --- */
@keyframes starDrift {
  from { background-position: 0 0; }
  to { background-position: 200px 200px; }
}

@keyframes warpPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
  50% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

@keyframes cometSweep {
  0% { transform: translateX(0) translateY(0) rotate(-35deg); opacity: 0; }
  10% { opacity: 0.6; }
  30% { transform: translateX(120vw) translateY(80vh) rotate(-35deg); opacity: 0; }
  100% { transform: translateX(120vw) translateY(80vh) rotate(-35deg); opacity: 0; }
}

.platform-hero__inner {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.platform-hero h1 {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.platform-hero p {
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.6;
  color: var(--vf-text-muted);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.platform-hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 48px;
}

/* --- Floating Product Bar --- */
.vf-product-bar {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--vf-glass-border);
  padding: 6px;
  border-radius: 999px;
  margin-bottom: 40px;
  box-shadow: var(--vf-inner-highlight);
  animation: floatDrift 10s ease-in-out infinite;
}

.vf-product-bar__item {
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--vf-text-muted);
  text-decoration: none;
  border-radius: 999px;
  transition: all 0.3s ease;
}

.vf-product-bar__item:hover {
  color: #fff;
}

.vf-product-bar__item.is-active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

/* --- Premium Feature Chips --- */
.platform-hero__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 60px;
}

.platform-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--vf-glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--vf-glass-border);
  color: var(--vf-text-muted);
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--vf-inner-highlight);
}

.platform-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--vf-inner-highlight), 0 10px 20px rgba(59, 130, 246, 0.15);
  color: #fff;
}

.platform-chip:hover svg {
  filter: drop-shadow(0 0 5px var(--vf-accent-blue));
}

.platform-chip svg {
  width: 16px;
  height: 16px;
  color: var(--vf-accent-blue);
  transition: all 0.3s ease;
}

/* --- Premium Dashboard Mockup --- */
.platform-hero__mockup {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 60px auto 0;
  padding: 0 20px;
  z-index: 20;
}

.dashboard-container {
  background: var(--vf-bg-card);
  backdrop-filter: var(--vf-blur-heavy);
  -webkit-backdrop-filter: var(--vf-blur-heavy);
  border: 1px solid var(--vf-glass-border-bright);
  border-radius: 32px;
  padding: 32px;
  box-shadow: 0 100px 150px -50px rgba(0, 0, 0, 0.8), var(--vf-inner-highlight);
  text-align: left;
  position: relative;
  overflow: hidden;
  animation: floatDrift 15s ease-in-out infinite;
}

.dashboard-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dashboard-nav {
  display: flex;
  gap: 24px;
}

.dashboard-nav__item {
  font-size: 13px;
  font-weight: 600;
  color: var(--vf-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
}

.dashboard-main {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.dashboard-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Dashboard Cards */
.glass-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 24px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
  animation: lightSweep 10s infinite;
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

.card-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--vf-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
}

.card-value {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.card-trend {
  font-size: 14px;
  font-weight: 600;
  color: #10b981;
  display: flex;
  align-items: center;
  gap: 4px;
  animation: shimmer 3s infinite;
}

.card-trend--down {
  color: #ef4444;
}

/* Market Strip */
.market-strip {
  display: flex;
  gap: 32px;
  margin-bottom: 32px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.market-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
}

.market-item span:first-child { color: var(--vf-text-muted); }
.market-item span:last-child { animation: shimmer 4s infinite; }

/* List Items in cards */
.list-item {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  gap: 12px;
}

.list-item:last-child { border: none; }

.item-name { font-weight: 600; color: #fff; }
.item-sub { font-size: 12px; color: var(--vf-text-dim); }

.alert-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: dashPulse 2s infinite;
}

/* Mini UI Details */
.mini-chart-canvas {
  width: 100%;
  height: 80px;
  margin-top: 20px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
}

.chart-bar {
  flex: 1;
  background: linear-gradient(to top, var(--vf-accent-blue), transparent);
  opacity: 0.6;
  border-radius: 4px 4px 0 0;
  animation: barRise 1s ease-out forwards;
  transform-origin: bottom;
}

.glass-card:hover .chart-bar {
  animation: barRise 1s ease-in-out infinite alternate;
}

.dashboard-preview-label {
  position: absolute;
  bottom: 20px;
  right: 32px;
  font-size: 11px;
  font-weight: 600;
  color: var(--vf-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* --- Section Styling --- */
.platform-section {
  padding: 120px 24px;
  background: var(--vf-bg-deep);
  position: relative;
  overflow: hidden;
}

.platform-section::before {
  content: "";
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 40%;
  background: radial-gradient(circle at center, rgba(59, 130, 246, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.platform-section::after {
  content: "";
  position: absolute;
  bottom: -5%;
  right: 5%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.02), transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  animation: floatDrift 15s infinite alternate;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 80px;
}

.section-header h2 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.section-header p {
  font-size: 18px;
  color: var(--vf-text-muted);
  line-height: 1.6;
}

/* --- Feature Grid / Cards --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--vf-glass-border);
  border-radius: 28px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--vf-inner-highlight);
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
  pointer-events: none;
  transition: 0.8s;
}

.feature-card:hover::after {
  left: 100%;
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-8px);
  box-shadow: var(--vf-inner-highlight), 0 20px 40px rgba(0, 0, 0, 0.4);
}

.feature-card__icon {
  width: 52px;
  height: 52px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--vf-accent-blue);
  transition: all 0.3s ease;
}

.feature-card:hover .feature-card__icon {
  background: rgba(59, 130, 246, 0.2);
  box-shadow: 0 0 15px var(--vf-accent-glow-blue);
}

.feature-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}

.feature-card p {
  color: var(--vf-text-muted);
  font-size: 15px;
  line-height: 1.6;
}

.feature-card__visual {
  height: 120px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 16px;
  margin-top: auto;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

/* --- Research Workflow --- */
.workflow-container {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.workflow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

.workflow-step:hover {
  transform: translateY(-5px);
}

.workflow-step__num {
  width: 64px;
  height: 64px;
  background: var(--vf-bg-card);
  border: 1px solid var(--vf-accent-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 24px;
  box-shadow: 0 0 20px var(--vf-accent-glow-blue);
  animation: orbPulse 3s infinite ease-in-out;
}

.workflow-line {
  position: absolute;
  top: 32px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--vf-accent-blue), var(--vf-accent-cyan), transparent);
  background-size: 200% 100%;
  animation: lineFlow 5s linear infinite;
  opacity: 0.3;
  z-index: 1;
}

.workflow-step:last-child .workflow-line { display: none; }

/* --- Portfolio + Risk Visual Section --- */
.portfolio-risk-panel {
  background: var(--vf-bg-card);
  backdrop-filter: var(--vf-blur-heavy);
  -webkit-backdrop-filter: var(--vf-blur-heavy);
  border: 1px solid var(--vf-glass-border-bright);
  border-radius: 40px;
  padding: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  max-width: 1200px;
  margin: 0 auto;
  box-shadow: var(--vf-shadow-premium), var(--vf-inner-highlight);
  position: relative;
  overflow: hidden;
}

.risk-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 40px;
}

.risk-metric-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 24px;
  transition: all 0.3s ease;
}

.risk-metric-box:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.risk-visual-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.risk-ring {
  position: absolute;
  border-radius: 50%;
  border: 4px solid transparent;
  animation: rotateSlow var(--vf-anim-slow);
}

.risk-ring--1 {
  width: 80%;
  height: 80%;
  border-top-color: var(--vf-accent-blue);
  animation-duration: 25s;
}

.risk-ring--2 {
  width: 70%;
  height: 70%;
  border-bottom-color: var(--vf-accent-purple);
  animation-duration: 20s;
  animation-direction: reverse;
}

.risk-visual-glow {
  width: 40%;
  height: 40%;
  background: radial-gradient(circle, var(--vf-accent-glow-blue), transparent);
  filter: blur(20px);
  animation: orbPulse 4s infinite alternate;
}

/* --- Final CTA --- */
.final-cta-panel {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(30, 41, 59, 0.8) 100%);
  backdrop-filter: var(--vf-blur-heavy);
  -webkit-backdrop-filter: var(--vf-blur-heavy);
  border: 1px solid var(--vf-glass-border-bright);
  border-radius: 48px;
  padding: 80px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  max-width: 1100px;
  margin: 0 auto;
  box-shadow: var(--vf-shadow-premium);
}

.final-cta-glow {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
  pointer-events: none;
  animation: orbPulse 10s infinite alternate;
}

/* --- Theme Overrides for Global Elements (Nav/Footer) --- */
.vf-platform-page nav {
  background: rgba(2, 4, 10, 0.8) !important;
  backdrop-filter: blur(15px) !important;
  -webkit-backdrop-filter: blur(15px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.vf-platform-page .nav-logo { color: #fff !important; }
.vf-platform-page .nav-links a { color: var(--vf-text-muted) !important; }
.vf-platform-page .nav-links a:hover,
.vf-platform-page .nav-links a.is-active { 
  color: #fff !important; 
}

.vf-platform-page .nav-cta {
  background: var(--vf-glass) !important;
  border: 1px solid var(--vf-glass-border) !important;
  backdrop-filter: blur(10px) !important;
  border-radius: 999px !important;
  color: #fff !important;
  padding: 10px 24px !important;
  font-size: 13px !important;
  box-shadow: var(--vf-inner-highlight) !important;
  transition: all 0.3s ease !important;
}

.vf-platform-page .nav-cta:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  transform: translateY(-1px) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Footer Overrides */
.vf-platform-page .vf-footer {
  background: #02040a !important;
  border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.vf-platform-page .vf-footer__brand strong { color: #fff !important; }
.vf-platform-page .vf-footer__list a { color: var(--vf-text-muted) !important; text-decoration: none !important; }
.vf-platform-page .vf-footer__list a:hover { color: #fff !important; }
.vf-platform-page .vf-footer__group h3 { color: #fff !important; }
.vf-platform-page .vf-footer__disclaimer p { color: var(--vf-text-dim) !important; }

/* Reveal Animation */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Accessibility: Reduced Motion */
@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;
  }
  .platform-stars,
  .platform-warp-core,
  .platform-warp-lines,
  .platform-comet,
  .platform-cosmic-glow {
    animation: none !important;
  }
}

/* --- Mobile Responsiveness --- */
@media (max-width: 1024px) {
  .dashboard-grid, 
  .portfolio-risk-panel, 
  .workflow-steps {
    grid-template-columns: 1fr;
  }
  
  .workflow-line { display: none; }
  
  .dashboard-sidebar { margin-top: 32px; }
  
  .platform-hero h1 { font-size: clamp(40px, 8vw, 56px); }
  
  .platform-hero__stage {
    padding-top: 60px;
    border-radius: 32px;
  }
}

@media (max-width: 768px) {
  .platform-hero { padding-top: clamp(16px, 3vw, 28px); padding-bottom: 40px; }
  .dashboard-container { padding: 20px; border-radius: 24px; }
  .feature-grid { grid-template-columns: 1fr; }
  .vf-product-bar { display: none; }
  .platform-hero__chips { gap: 8px; }
  .platform-chip { padding: 8px 16px; font-size: 13px; }
  .platform-comet { display: none; }
  .platform-stars--near { opacity: 0.15; }
  .platform-warp-lines { opacity: 0.2; }

  .platform-ai-prompt {
    margin: 32px 0;
  }

  .platform-ai-prompt__text {
    font-size: 12px;
  }
}

@media (max-width: 480px) {

  /* ── Sections ── */
  .platform-section { padding: 56px 16px; }

  .section-header { margin-bottom: 40px; }
  .section-header h2 { font-size: 26px; }
  .section-header p { font-size: 15px; }

  /* ── Dashboard mockup ── */
  .platform-hero__mockup { padding: 0 8px; }

  .dashboard-container { padding: 16px; border-radius: 20px; }

  .dashboard-header { margin-bottom: 14px; padding-bottom: 12px; }
  .dashboard-nav { gap: 10px; }
  .dashboard-nav__item { font-size: 11px; letter-spacing: 0.03em; }
  /* hide the avatar / pill widgets in the header */
  .dashboard-header > div:last-child { display: none; }

  .market-strip {
    gap: 12px;
    padding: 9px 14px;
    overflow-x: auto;
    scrollbar-width: none;
    margin-bottom: 16px;
  }
  .market-strip::-webkit-scrollbar { display: none; }

  /* Main area only — hide sidebar to cut dashboard height by ~40% */
  .dashboard-grid { display: block; }
  .dashboard-sidebar { display: none; }
  .dashboard-main { gap: 12px; }

  .glass-card { padding: 14px; border-radius: 14px; }

  /* Portfolio value card — hide chart, keep value readable */
  .card-value { font-size: 22px; }
  .mini-chart-canvas { display: none; }

  /* Watchlist + AI Insights: stay side-by-side at small size */
  .dashboard-cards-row {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }
  .item-name { font-size: 12px; }
  .item-sub { font-size: 10px; }

  /* ── Feature cards ── */
  .feature-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .feature-card {
    padding: 18px 14px;
    gap: 10px;
    border-radius: 18px;
  }

  /* Hide the decorative visual block — saves 120 px per card */
  .feature-card__visual { display: none; }

  .feature-card__icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }
  .feature-card__icon svg { width: 18px; height: 18px; }

  .feature-card h3 { font-size: 15px; }
  .feature-card p { font-size: 13px; line-height: 1.5; }

  /* ── Workflow steps ── */
  .workflow-steps { gap: 20px; }

  .workflow-step__num {
    width: 48px;
    height: 48px;
    font-size: 16px;
    margin-bottom: 16px;
  }

  /* ── Risk Analytics panel ── */
  .portfolio-risk-panel {
    padding: 32px 20px;
    border-radius: 24px;
    gap: 28px;
  }

  /* Hide the decorative ring visual on phones */
  .risk-visual { display: none; }

  .risk-metrics-grid { gap: 12px; margin-top: 20px; }
  .risk-metric-box { padding: 14px; border-radius: 12px; }
  .risk-metric-box > div:last-child { font-size: 24px !important; }

  /* ── Final CTA ── */
  .final-cta-panel {
    padding: 44px 20px;
    border-radius: 28px;
  }
}
