/* ============================================================
   S N Enterprise — 3D LAYER v2 ("The Wealth Dimension")
   Loads after style.css and upgrades it: glassmorphism, depth,
   aurora gradients, tilt cards, 3D buttons, 3D nav, hero canvas,
   in-card WebGL growth chart. Fixed + extended (v1 was truncated).
   ============================================================ */

/* ---------- Aurora background ---------- */
body {
  background:
    radial-gradient(900px 500px at 85% -5%, rgba(201,162,39,0.07), transparent 60%),
    radial-gradient(800px 600px at -10% 30%, rgba(30,66,120,0.08), transparent 60%),
    linear-gradient(180deg, #f7f9fd 0%, #eef2f9 100%);
}
.section.alt {
  background:
    radial-gradient(700px 400px at 90% 10%, rgba(201,162,39,0.08), transparent 60%),
    linear-gradient(180deg, #eef2f9, #e7edf7);
}

/* ---------- Depth-aware sections (floater host) ---------- */
.section, .page-hero, .stats-band { position: relative; }
.section > .container, .page-hero > .container, .stats-band > .container { position: relative; z-index: 2; }
.fx-layer {
  position: absolute; inset: 0; overflow: hidden;
  pointer-events: none; z-index: 0;
}

/* ---------- Hero canvas (Three.js background) ---------- */
.hero { position: relative; }
#hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 1; pointer-events: none; opacity: 0.9;
}
.hero .container { position: relative; z-index: 3; }
.hero::after { z-index: 2; }

/* ---------- Glassmorphism cards ---------- */
.card, .cred-card, .testimonial, .info-tile, .faq-item {
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow:
    0 8px 32px rgba(10, 31, 60, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.card:hover, .cred-card:hover {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(201, 162, 39, 0.55);
  box-shadow:
    0 22px 50px rgba(10, 31, 60, 0.16),
    0 0 0 1px rgba(201, 162, 39, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

/* ---------- 3D tilt (JS sets --rx / --ry) ---------- */
.tilt {
  transform-style: preserve-3d;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0);
  transition: transform 0.18s ease-out, box-shadow 0.28s ease, background 0.28s ease, border-color 0.28s ease;
  will-change: transform;
}
.tilt:hover { transition: transform 0.06s ease-out, box-shadow 0.28s ease; }
.tilt > * { transform: translateZ(24px); }
.tilt .icon { transform: translateZ(42px); }

/* Soft tilt for large panels (hero dashboard, CTA) — no child pop */
.tilt-soft {
  transform-style: preserve-3d;
  transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.2s ease-out;
  will-change: transform;
}

/* ---------- Gold shine sweep ---------- */
.card::before, .cred-card::before {
  content: ""; position: absolute; top: 0; left: -80%;
  width: 55%; height: 100%; z-index: 1; pointer-events: none;
  background: linear-gradient(105deg, transparent, rgba(232, 201, 104, 0.28), transparent);
  transform: skewX(-20deg); transition: left 0.6s ease;
}
.card:hover::before, .cred-card:hover::before { left: 130%; }

/* ---------- 3D scroll reveal (upgrades style.css .reveal) ---------- */
.reveal {
  opacity: 0;
  transform: perspective(1000px) translateY(34px) rotateX(9deg) scale(0.985);
  transform-origin: center 80%;
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: perspective(1000px) translateY(0) rotateX(0deg) scale(1);
}

/* ---------- 3D buttons ---------- */
.btn {
  position: relative;
  transform: perspective(600px) translateZ(0);
  transition: transform 0.22s cubic-bezier(0.2, 0.7, 0.3, 1.4), box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease;
  will-change: transform;
}
.btn:hover {
  transform: perspective(600px) translateY(-3px) translateZ(12px);
}
.btn:active { transform: perspective(600px) translateY(0) translateZ(2px) scale(0.98); }
.btn-gold {
  box-shadow: 0 6px 18px rgba(201, 162, 39, 0.35), 0 2px 0 rgba(138, 106, 20, 0.55), inset 0 1px 0 rgba(255, 240, 190, 0.7);
}
.btn-gold:hover {
  box-shadow: 0 14px 30px rgba(201, 162, 39, 0.45), 0 3px 0 rgba(138, 106, 20, 0.55), inset 0 1px 0 rgba(255, 240, 190, 0.8);
}
.btn-navy {
  box-shadow: 0 6px 18px rgba(16, 41, 77, 0.35), 0 2px 0 rgba(6, 18, 36, 0.6);
}
.btn-navy:hover { box-shadow: 0 14px 30px rgba(16, 41, 77, 0.4), 0 3px 0 rgba(6, 18, 36, 0.6); }
.btn-outline:hover { box-shadow: 0 12px 26px rgba(10, 31, 60, 0.22); }

/* ---------- 3D navigation ---------- */
.site-header {
  background: rgba(10, 31, 60, 0.85);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 10px 30px rgba(4, 12, 28, 0.45);
}
.nav-links .dropdown { perspective: 900px; }
.dropdown-menu {
  transform: rotateX(-14deg) translateY(6px);
  transform-origin: top center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 50px rgba(10, 31, 60, 0.18), 0 0 0 1px rgba(201, 162, 39, 0.12);
  transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.28s cubic-bezier(0.2, 0.7, 0.3, 1.3);
}
.dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu {
  transform: rotateX(0deg) translateY(0);
}
.dropdown-menu a:hover { padding-left: 26px; transition: padding 0.18s ease, background 0.18s ease; }

/* ---------- Section headings: subtle depth ---------- */
.section-head h2 {
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6), 0 10px 26px rgba(10, 31, 60, 0.18);
}
.page-hero h1 { text-shadow: 0 2px 0 rgba(0, 0, 0, 0.18), 0 14px 34px rgba(0, 0, 0, 0.4); }
.divider-gold { box-shadow: 0 3px 10px rgba(201, 162, 39, 0.45); }

/* ---------- Page hero (inner pages): 3D grid floor ---------- */
.page-hero::before {
  content: ""; position: absolute; left: -20%; right: -20%; bottom: -12%;
  height: 62%; z-index: 0; pointer-events: none;
  background:
    linear-gradient(rgba(232, 201, 104, 0.16) 1.5px, transparent 1.5px),
    linear-gradient(90deg, rgba(232, 201, 104, 0.16) 1.5px, transparent 1.5px);
  background-size: 46px 46px;
  transform: perspective(480px) rotateX(58deg);
  transform-origin: center bottom;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 55%, rgba(0,0,0,0.5) 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 55%, rgba(0,0,0,0.5) 100%);
  animation: grid-drift 16s linear infinite;
}
@keyframes grid-drift { from { background-position: 0 0, 0 0; } to { background-position: 0 46px, 46px 0; } }
.page-hero .container { position: relative; z-index: 2; }
.breadcrumb {
  display: inline-block; padding: 6px 14px; border-radius: 50px;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}

/* ---------- Stats band: 3D glass chips ---------- */
.stats-band {
  background:
    radial-gradient(600px 300px at 15% 0%, rgba(201, 162, 39, 0.14), transparent 60%),
    radial-gradient(700px 340px at 90% 100%, rgba(30, 66, 120, 0.5), transparent 65%),
    var(--navy-900, #10294d);
}
.stats-band .grid > div {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px; padding: 22px 12px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.stats-band .stat-num { text-shadow: 0 4px 18px rgba(232, 201, 104, 0.5); }

/* ---------- FAQ: depth on hover / open ---------- */
.faq-item { transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.faq-item:hover, .faq-item.open {
  transform: translateY(-3px);
  border-color: rgba(201, 162, 39, 0.45);
  box-shadow: 0 18px 40px rgba(10, 31, 60, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* ---------- Note boxes ---------- */
.note-box {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 8px 26px rgba(10, 31, 60, 0.08);
}
.note-box:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(10, 31, 60, 0.14); }

/* ---------- CTA band: floating + gold aura ---------- */
.cta-band {
  box-shadow: 0 24px 60px rgba(10, 31, 60, 0.35), 0 0 0 1px rgba(201, 162, 39, 0.25), 0 0 44px rgba(201, 162, 39, 0.14);
}

/* ---------- Testimonials: avatar pop ---------- */
.testimonial .avatar {
  box-shadow: 0 8px 20px rgba(201, 162, 39, 0.4), inset 0 1px 0 rgba(255, 244, 200, 0.6);
}
.testimonial .stars { text-shadow: 0 4px 14px rgba(232, 201, 104, 0.55); }

/* ---------- Footer depth ---------- */
.site-footer { position: relative; box-shadow: inset 0 24px 40px -24px rgba(0, 0, 0, 0.55); }

/* ---------- WhatsApp float: 3D bob ---------- */
.wa-float {
  box-shadow: 0 12px 30px rgba(18, 140, 60, 0.45), 0 3px 0 rgba(9, 80, 33, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  animation: wa-bob 3.4s ease-in-out infinite;
}
.wa-float:hover { transform: scale(1.12) translateY(-3px); animation-play-state: paused; }
@keyframes wa-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ---------- Floating depth shapes (injected by JS) ---------- */
.floater {
  position: absolute; border-radius: 50%; pointer-events: none; z-index: 0;
  filter: blur(18px); opacity: 0.8; will-change: transform;
}
.floater.gold { background: radial-gradient(circle at 35% 35%, rgba(232,201,104,0.75), rgba(201,162,39,0.25) 70%, transparent); }
.floater.navy { background: radial-gradient(circle at 35% 35%, rgba(30,66,120,0.5), rgba(16,41,77,0.18) 70%, transparent); }
.floater.ring {
  background: transparent; filter: none; opacity: 0.6;
  border: 3px solid rgba(201,162,39,0.65);
  box-shadow: 0 0 30px rgba(201,162,39,0.35), 0 0 40px rgba(201,162,39,0.2) inset;
  animation: ring-spin 14s linear infinite;
}
.floater.coin3d {
  border-radius: 50%; filter: none; opacity: 0.9;
  background: radial-gradient(circle at 32% 30%, #f4df94, #d9b23a 45%, #a8821c 80%, #8a6a14);
  box-shadow: 0 10px 26px rgba(138, 106, 20, 0.45), inset 0 -4px 10px rgba(90, 68, 8, 0.5), inset 0 4px 8px rgba(255, 244, 200, 0.7);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: rgba(90, 68, 8, 0.85);
  border: 3px solid rgba(244, 223, 148, 0.9);
  animation: coin-bob 5s ease-in-out infinite;
}
.floater.coin3d::after { content: "\20B9"; font-size: 1.6em; font-family: var(--font-body); }
@keyframes ring-spin {
  0% { transform: rotate(0deg) translateY(0); }
  50% { transform: rotate(180deg) translateY(-14px); }
  100% { transform: rotate(360deg) translateY(0); }
}
@keyframes coin-bob {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50% { transform: translateY(-18px) rotate(8deg); }
}

/* ---------- Hero growth dashboard (foreground 3D graph) ---------- */
.hero-dashboard { padding: 26px 26px 20px; }
.chart-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.chart-head h3 { margin: 0; }
.chart-badge {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;
  color: var(--gold-300); background: rgba(201,162,39,0.16);
  border: 1px solid rgba(201,162,39,0.45); border-radius: 50px; padding: 4px 12px;
}

/* WebGL 3D chart canvas — replaces the SVG when it initializes */
#chart3d {
  display: none; width: 100%; height: 250px; border-radius: 12px;
  background:
    radial-gradient(320px 150px at 50% 100%, rgba(201, 162, 39, 0.14), transparent 70%),
    radial-gradient(400px 220px at 50% 0%, rgba(30, 66, 120, 0.35), transparent 75%);
}
.chart3d-on #chart3d { display: block; }
.chart3d-on .growth-chart { display: none; }

/* SVG fallback chart */
.growth-chart { width: 100%; height: auto; display: block; }
.gc-grid line { stroke: rgba(255,255,255,0.12); stroke-width: 1; }
.gc-bars rect { fill: rgba(120, 158, 215, 0.35); stroke: rgba(190, 214, 250, 0.5); stroke-width: 1; }
.reveal.visible .gc-bars rect, .hero .gc-bars rect { animation: bar-rise 1.2s cubic-bezier(0.2, 0.7, 0.3, 1) both; transform-origin: bottom; transform-box: fill-box; }
.gc-bars rect:nth-child(1) { animation-delay: 0.1s; } .gc-bars rect:nth-child(2) { animation-delay: 0.25s; }
.gc-bars rect:nth-child(3) { animation-delay: 0.4s; } .gc-bars rect:nth-child(4) { animation-delay: 0.55s; }
.gc-bars rect:nth-child(5) { animation-delay: 0.7s; } .gc-bars rect:nth-child(6) { animation-delay: 0.85s; }
.gc-bars rect:nth-child(7) { animation-delay: 1.0s; }
@keyframes bar-rise { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.gc-line {
  stroke: var(--gold-300); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 520; stroke-dashoffset: 520;
  animation: line-draw 2.2s ease-out 0.3s forwards;
  filter: drop-shadow(0 0 6px rgba(232, 201, 104, 0.8));
}
@keyframes line-draw { to { stroke-dashoffset: 0; } }
.gc-area { opacity: 0; animation: area-fade 1.2s ease-out 1.6s forwards; }
@keyframes area-fade { to { opacity: 1; } }
.gc-dot {
  fill: var(--gold-300); stroke: rgba(232, 201, 104, 0.4); stroke-width: 8;
  animation: dot-pulse 2s ease-in-out 2.4s infinite;
}
@keyframes dot-pulse {
  0%, 100% { stroke-width: 6; } 50% { stroke-width: 14; }
}
.chart-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.chart-stats .chip {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16);
  border-radius: 10px; padding: 10px 8px; text-align: center;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}
.chart-stats .chip:hover {
  transform: translateY(-3px);
  border-color: rgba(201, 162, 39, 0.5);
  background: rgba(201, 162, 39, 0.12);
}
.chart-stats .chip strong { display: block; color: var(--gold-300); font-size: 0.95rem; }
.chart-stats .chip span { font-size: 0.72rem; color: rgba(255, 255, 255, 0.72); }
.chart-note { font-size: 0.68rem; color: rgba(255, 255, 255, 0.55); margin: 12px 0 0; }

/* ---------- Accessibility & mobile guards ---------- */
@media (hover: none) {
  .tilt, .tilt-soft { transform: none !important; }
  .tilt > *, .tilt .icon { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .floater, .wa-float, .gc-line, .gc-area, .gc-dot, .gc-bars rect { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .tilt, .tilt-soft { transform: none !important; }
  #chart3d { display: none !important; }
  .chart3d-on .growth-chart { display: block; }
}
@media (max-width: 767px) {
  .page-hero::before { background-size: 34px 34px; height: 50%; }
  #chart3d { height: 210px; }
}
/* ---------- Typography polish ---------- */
h1, h2, h3 { letter-spacing: -0.018em; }
.eyebrow { letter-spacing: 0.14em; }

/* ---------- Mobile navigation: undo 3D dropdown inside drawer ---------- */
@media (max-width: 1020px) {
  .nav-links .dropdown { perspective: none; }
  .dropdown-menu {
    transform: none !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transition: none !important;
  }
}

/* ---------- Mobile: lighter, smaller decor ---------- */
@media (max-width: 767px) {
  .floater { max-width: 38vw; max-height: 38vw; }
  .floater.gold, .floater.navy { filter: blur(14px); opacity: 0.6; }
  .section-head h2 { text-shadow: 0 1px 0 rgba(255,255,255,0.6), 0 6px 16px rgba(10,31,60,0.14); }
}
@media (max-width: 480px) {
  .chart-stats { gap: 7px; }
  .chart-stats .chip { padding: 8px 5px; }
  .chart-stats .chip strong { font-size: 0.8rem; }
  .chart-stats .chip span { font-size: 0.6rem; }
  .chart-badge { font-size: 0.64rem; }
}
/* v2.1.1 */
