/* === Vitta Vriksha Stylesheet === */
:root {
  --bg-main: #0B131E;
  --bg-surface: #131F2E;
  --bg-surface-elevated: #1B2B3F;
  --bg-card: rgba(27, 43, 63, 0.75);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(74, 222, 128, 0.25);
  
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  
  --leaf-emerald: #10B981;
  --leaf-bright: #34D399;
  --leaf-glow: rgba(52, 211, 153, 0.35);
  --trunk-wood: #B45309;
  --trunk-core: #78350F;
  --gold-accent: #F59E0B;
  --indigo-accent: #6366F1;
  --terracotta: #E05638;
  --cyan-accent: #06B6D4;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-lg: 0 16px 40px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(52, 211, 153, 0.15);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--leaf-bright);
  text-decoration: none;
  transition: color 180ms ease;
}
a:hover {
  color: #6EE7B7;
}

/* === Top Nav === */
.vv-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 19, 30, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.vv-nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vv-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.vv-brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #059669, #10B981);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.vv-nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.vv-back-link {
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 150ms ease;
}
.vv-back-link:hover {
  color: var(--text-primary);
}

.vv-cta-btn {
  background: linear-gradient(135deg, #10B981, #059669);
  color: #FFFFFF !important;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
  transition: transform 150ms ease, box-shadow 150ms ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.vv-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.5);
}

/* === Layout & Containers === */
.vv-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* === Hero Section === */
.vv-hero {
  padding: 4.5rem 0 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.vv-hero-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, rgba(11, 19, 30, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.vv-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 9999px;
  color: var(--leaf-bright);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}

.vv-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--leaf-bright);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--leaf-bright);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.vv-hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 auto 1.25rem;
  max-width: 860px;
}

.vv-gradient-text {
  background: linear-gradient(135deg, #F8FAFC 20%, #34D399 70%, #F59E0B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.vv-hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 2.25rem;
  line-height: 1.6;
}

.vv-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.vv-secondary-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary) !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-sm);
  transition: all 180ms ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.vv-secondary-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* === Live Interactive App Demo Shell === */
.vv-demo-wrapper {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  padding: 1.75rem;
  margin-bottom: 5rem;
  overflow: hidden;
}

.vv-demo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 1rem;
}

.vv-demo-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vv-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #10B981, #06B6D4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.vv-profile-info h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}
.vv-profile-info span {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.vv-demo-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.vv-pill-btn {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 150ms ease;
}
.vv-pill-btn:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}
.vv-pill-btn.active {
  background: rgba(16, 185, 129, 0.2);
  color: var(--leaf-bright);
  border-color: var(--leaf-bright);
}

/* App Grid Layout */
.vv-app-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 1024px) {
  .vv-app-grid {
    grid-template-columns: 1fr;
  }
}

/* Metric Cards */
.vv-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  backdrop-filter: blur(12px);
  position: relative;
  transition: border-color 200ms ease;
}
.vv-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

.vv-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.vv-card-title {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.vv-metric-value {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.vv-metric-trend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--leaf-bright);
  background: rgba(16, 185, 129, 0.12);
  padding: 2px 8px;
  border-radius: 4px;
}

.vv-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Asset Breakdown */
.vv-asset-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.vv-asset-row:last-child {
  border-bottom: none;
}

.vv-asset-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 500;
}

.vv-color-pip {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.vv-asset-amount {
  font-size: 0.88rem;
  font-weight: 600;
  text-align: right;
}
.vv-asset-pct {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Wealth Tree Stage (Center Piece) */
.vv-tree-stage {
  background: radial-gradient(circle at center, rgba(16, 185, 129, 0.08) 0%, rgba(19, 31, 46, 0.6) 80%);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  min-height: 420px;
}

.vv-tree-canvas-wrap {
  width: 100%;
  max-width: 380px;
  height: 320px;
  position: relative;
}

.vv-tree-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 16px rgba(52, 211, 153, 0.25));
}

.vv-tree-status {
  margin-top: 0.5rem;
  background: rgba(11, 19, 30, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  padding: 6px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--leaf-bright);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.vv-tree-interactive-bar {
  margin-top: 1rem;
  width: 100%;
  display: flex;
  gap: 8px;
  justify-content: center;
}

.vv-water-btn {
  background: linear-gradient(135deg, #0284C7, #0369A1);
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.vv-water-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.4);
}

/* Goals & Milestones */
.vv-goal-item {
  margin-bottom: 0.9rem;
}
.vv-goal-item:last-child {
  margin-bottom: 0;
}
.vv-goal-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.vv-progress-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
}
.vv-progress-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Habit Streak */
.vv-streak-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.75rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-sm);
}
.vv-streak-icon {
  font-size: 1.5rem;
}
.vv-streak-text h4 {
  margin: 0;
  font-size: 0.9rem;
  color: var(--gold-accent);
}
.vv-streak-text p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* === Feature Pillars Section === */
.vv-features-section {
  padding: 5rem 0;
  border-top: 1px solid var(--border-subtle);
}

.vv-section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem;
}

.vv-section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.vv-section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin: 0;
}

.vv-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.vv-feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 250ms ease;
  position: relative;
}
.vv-feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(52, 211, 153, 0.3);
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.4);
}

.vv-feature-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  color: var(--leaf-bright);
}

.vv-feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.6rem;
}

.vv-feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* === Comparison / Anti-Bloat Section === */
.vv-comparison-section {
  padding: 4rem 0 6rem;
}

.vv-comparison-box {
  background: linear-gradient(145deg, #131F2E, #0E1724);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

@media (max-width: 768px) {
  .vv-comparison-box {
    grid-template-columns: 1fr;
  }
}

.vv-comp-col h3 {
  font-size: 1.25rem;
  margin-top: 0;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.vv-comp-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.vv-comp-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.vv-comp-list li svg {
  flex-shrink: 0;
  margin-top: 3px;
}

/* === Early Access CTA Banner === */
.vv-cta-banner {
  background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.2) 0%, rgba(19, 31, 46, 0.9) 70%);
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: var(--radius-xl);
  padding: 4rem 2rem;
  text-align: center;
  margin-bottom: 6rem;
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.6), var(--shadow-glow);
}

.vv-cta-banner h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.vv-cta-banner p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.vv-cta-banner .vv-cta-btn {
  font-size: 1.05rem;
  padding: 0.85rem 2rem;
}

/* === Footer === */
.vv-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.vv-footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.vv-footer-links {
  display: flex;
  gap: 1.5rem;
}
.vv-footer-links a {
  color: var(--text-secondary);
}
.vv-footer-links a:hover {
  color: var(--text-primary);
}

/* === Interactive Sandbox & Dynamic Views === */
.vv-sandbox-container {
  padding: 1.5rem;
}

.vv-sandbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.vv-card-interactive {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  text-align: left;
}

.vv-balance-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.vv-overline {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.vv-balance-amount {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.15;
  white-space: nowrap;
}

.vv-balance-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 4px 0 12px;
}

.vv-badge-gain {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 99px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--leaf-bright);
}

.vv-tab-bar {
  display: flex;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 99px;
  padding: 3px;
  gap: 3px;
}

.vv-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 0;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.vv-tab-btn.active {
  background: var(--leaf-emerald);
  color: #fff;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

/* Heatmap mini cells */
.vv-heat-c {
  aspect-ratio: 1;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}
.vv-heat-c.l1 { background: rgba(52, 211, 153, 0.2); color: #A7F3D0; }
.vv-heat-c.l2 { background: rgba(52, 211, 153, 0.55); color: #fff; font-weight: 700; }
.vv-heat-c.l3 { background: rgba(245, 158, 11, 0.65); color: #fff; font-weight: 700; }

.vv-nav-link {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 150ms ease;
}
.vv-nav-link:hover {
  color: var(--text-primary);
}

