/* ================================================================
   ASCEND CREDIT AI — Design System
   Typography: DM Serif Display (display) + DM Sans (body)
   Palette: Deep navy core, electric blue accents
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300..700;1,9..40,300..700&family=DM+Serif+Display:ital@0;1&display=swap');

:root {
  --navy-950: #050e1a;
  --navy-900: #0a1f3a;
  --navy-800: #0d2e54;
  --navy-700: #0f3d6e;
  --navy-600: #1456a0;
  --blue-500: #2b7de9;
  --blue-400: #5a9ef5;
  --blue-300: #93bff8;
  --blue-100: #dbeafe;
  --blue-50: #eff6ff;
  --green-600: #16a34a;
  --green-500: #22c55e;
  --green-100: #dcfce7;
  --green-50: #f0fdf4;
  --amber-600: #d97706;
  --amber-100: #fef3c7;
  --red-600: #dc2626;
  --red-100: #fee2e2;
  --slate-900: #0f172a;
  --slate-700: #334155;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --surface: #f4f7fb;
  --card-bg: #ffffff;
  --card-border: #e8edf4;
  --card-shadow: 0 1px 3px rgba(5,14,26,0.04), 0 6px 24px rgba(5,14,26,0.06);
  --card-shadow-hover: 0 2px 6px rgba(5,14,26,0.06), 0 12px 36px rgba(5,14,26,0.10);
  --radius: 12px;
  --radius-lg: 16px;
  --radius-full: 999px;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
}

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

body {
  font-family: var(--font-body);
  background: var(--surface);
  color: var(--slate-900);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* === HEADER === */
header {
  background: var(--navy-950);
  color: white;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  height: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header-brand {
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  opacity: 0.95;
}
header nav { display: flex; gap: 2px; align-items: center; }
header nav a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  padding: 6px 11px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
}
header nav a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.nav-toggle {
  display: none; background: none; border: none;
  color: rgba(255,255,255,0.8); font-size: 20px;
  cursor: pointer; padding: 6px; border-radius: 8px;
  transition: background 0.2s;
}
.nav-toggle:hover { background: rgba(255,255,255,0.08); }

/* === MAIN === */
main {
  max-width: 1080px;
  margin: 28px auto;
  padding: 0 20px;
  flex: 1;
  width: 100%;
}

/* === FOOTER === */
footer {
  text-align: center; padding: 24px 20px;
  color: var(--slate-400); font-size: 12px;
  border-top: 1px solid var(--slate-200);
  margin-top: auto; letter-spacing: 0.01em;
}

/* === CARDS === */
.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--card-shadow);
  margin-bottom: 16px;
  border: 1px solid var(--card-border);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  animation: fadeInUp 0.35s ease both;
}
.card:nth-child(2) { animation-delay: 0.04s; }
.card:nth-child(3) { animation-delay: 0.08s; }
.card:nth-child(4) { animation-delay: 0.12s; }
.card:nth-child(5) { animation-delay: 0.16s; }
.card:hover { box-shadow: var(--card-shadow-hover); }
.card h1 { font-family: var(--font-display); font-size: 28px; margin-bottom: 8px; color: var(--navy-900); letter-spacing: -0.02em; }
.card h2 { font-family: var(--font-display); font-size: 22px; margin-bottom: 8px; color: var(--navy-900); letter-spacing: -0.01em; }
.card h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; color: var(--navy-800); }
.card p { color: var(--slate-700); }

/* === GRID === */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--navy-800); color: white;
  padding: 9px 18px; border-radius: 10px;
  text-decoration: none; border: none; cursor: pointer;
  font-family: var(--font-body); font-size: 13.5px; font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
.btn:hover { background: var(--navy-700); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(13,46,84,0.25); }
.btn:active { transform: translateY(0); box-shadow: 0 1px 2px rgba(0,0,0,0.08); }
.btn.secondary { background: var(--blue-50); color: var(--navy-700); box-shadow: none; border: 1px solid var(--blue-100); }
.btn.secondary:hover { background: var(--blue-100); transform: translateY(-1px); box-shadow: 0 2px 8px rgba(43,125,233,0.1); }
.btn.danger { background: var(--red-600); }
.btn.danger:hover { background: #b91c1c; box-shadow: 0 4px 12px rgba(220,38,38,0.25); }

/* === FORMS === */
label { display: block; margin: 14px 0 5px; font-weight: 600; font-size: 13px; color: var(--slate-700); letter-spacing: 0.01em; }
input, select, textarea {
  width: 100%; padding: 10px 14px; border-radius: 10px;
  border: 1.5px solid var(--slate-200); outline: none;
  font-family: var(--font-body); font-size: 14px;
  color: var(--slate-900); background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, select:focus, textarea:focus { border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(43,125,233,0.1); }
input::placeholder, textarea::placeholder { color: var(--slate-400); }
input[type="file"] { padding: 8px 10px; }
textarea { min-height: 120px; resize: vertical; }

/* === ERROR / ALERT === */
.error { color: #9b1c1c; background: #fef2f2; border: 1px solid #fecaca; padding: 12px 16px; border-radius: var(--radius); margin-bottom: 14px; font-size: 14px; font-weight: 500; }
.alert-success { color: #166534; background: var(--green-50); border: 1px solid #bbf7d0; padding: 12px 16px; border-radius: var(--radius); margin-bottom: 14px; font-size: 14px; }

/* === TABLES === */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--slate-100); font-size: 13.5px; }
th { font-weight: 600; color: var(--slate-500); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; background: var(--slate-50); position: sticky; top: 0; }
th:first-child { border-radius: 8px 0 0 0; }
th:last-child { border-radius: 0 8px 0 0; }
tr:hover { background: rgba(43,125,233,0.02); }
tbody tr { transition: background 0.15s; }

/* === PILLS === */
.pill { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: var(--radius-full); background: var(--blue-50); color: var(--navy-700); font-weight: 600; font-size: 11.5px; white-space: nowrap; }
.pill-green { background: var(--green-100); color: #15803d; }
.pill-red { background: var(--red-100); color: #991b1b; }
.pill-orange { background: var(--amber-100); color: #92400e; }
.pill-gray { background: var(--slate-100); color: var(--slate-500); }

/* === SCORE CARDS === */
.score-card { text-align: center; padding: 20px 16px; }
.score-label { font-size: 11px; color: var(--slate-500); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.score-value { font-family: var(--font-display); font-size: 40px; margin-top: 4px; color: var(--navy-900); line-height: 1.1; }
.score-good { color: var(--green-500); }
.score-fair { color: var(--amber-600); }
.score-poor { color: var(--red-600); }

/* === STAT CARDS === */
.stat-card { text-align: center; padding: 22px 16px; transition: transform 0.2s, box-shadow 0.2s; }
.stat-card:hover { transform: translateY(-2px); }
.stat-value { font-family: var(--font-display); font-size: 34px; line-height: 1.1; }
.stat-label { font-size: 12px; color: var(--slate-500); margin-top: 6px; font-weight: 500; }
.stat-blue { color: var(--navy-700); }
.stat-green { color: var(--green-600); }
.stat-red { color: var(--red-600); }
.stat-orange { color: var(--amber-600); }

/* === ACCOUNT ROWS === */
.account-row { padding: 14px 0; border-bottom: 1px solid var(--slate-100); }
.account-row:last-child { border-bottom: none; }
.account-header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.account-details { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--slate-500); margin-top: 5px; }
.negative-row { border-left: 3px solid var(--red-600); padding-left: 14px; margin-left: -4px; }
.dispute-row { border-left: 3px solid var(--green-500); padding-left: 14px; margin-left: -4px; }
.dispute-reason { font-size: 13px; color: #15803d; background: var(--green-50); border: 1px solid #bbf7d0; border-radius: 10px; padding: 10px 14px; margin-top: 8px; line-height: 1.5; }

/* === TIMELINE === */
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(to bottom, var(--blue-300), var(--slate-200)); border-radius: 2px; }
.timeline-item { position: relative; padding-bottom: 18px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot { position: absolute; left: -23px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--blue-500); border: 2px solid white; box-shadow: 0 0 0 2px var(--blue-500); }
.timeline-dot.green { background: var(--green-500); box-shadow: 0 0 0 2px var(--green-500); }
.timeline-dot.red { background: var(--red-600); box-shadow: 0 0 0 2px var(--red-600); }
.timeline-dot.gray { background: var(--slate-300); box-shadow: 0 0 0 2px var(--slate-300); }
.timeline-date { font-size: 11.5px; color: var(--slate-400); font-weight: 500; }
.timeline-text { font-size: 13.5px; margin-top: 2px; color: var(--slate-700); }

/* === EMPTY STATE === */
.empty-state { text-align: center; padding: 56px 24px; color: var(--slate-400); }
.empty-state p { font-size: 15px; }

/* === ANIMATIONS === */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.6; } }
.processing { animation: pulse 1.5s ease-in-out infinite; }

/* === ONBOARDING WIZARD === */
.wizard-progress { display: flex; gap: 4px; margin-bottom: 28px; }
.wizard-step {
  flex: 1; height: 4px; border-radius: 4px;
  background: var(--slate-200); transition: background 0.4s ease;
}
.wizard-step.active { background: var(--blue-500); }
.wizard-step.done { background: var(--green-500); }
.wizard-panel { display: none; animation: fadeInUp 0.3s ease both; }
.wizard-panel.active { display: block; }
.wizard-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin-bottom: 16px;
}

/* === MOBILE === */
@media (max-width: 768px) {
  header { padding: 0 16px; height: 52px; }
  .header-brand { font-size: 15px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: block; }
  header nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--navy-950); flex-direction: column;
    padding: 8px 16px 16px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.3);
    border-top: 1px solid rgba(255,255,255,0.06);
    max-height: 70vh; overflow-y: auto;
  }
  header nav.open { display: flex; }
  header nav a { padding: 11px 14px; font-size: 14px; }
  main { margin: 16px auto; padding: 0 12px; }
  .card { padding: 18px; border-radius: var(--radius); }
  .score-value { font-size: 30px; }
  .stat-value { font-size: 26px; }
  table { font-size: 13px; }
  th, td { padding: 9px 8px; }
}
@media (max-width: 480px) {
  .grid { grid-template-columns: 1fr; }
  .card h1 { font-size: 22px; }
  .card h2 { font-size: 18px; }
}

/* === PRINT === */
@media print {
  .sidebar, .topbar, footer, .btn, .sidebar-toggle { display: none !important; }
  body { background: white; }
  .app-shell { margin-left: 0 !important; }
  .card { box-shadow: none; border: 1px solid #ddd; break-inside: avoid; animation: none; }
  main { max-width: 100%; margin: 0; padding: 0; }
}

/* =====================================================================
   APP SHELL — Left sidebar + topbar layout
   ===================================================================== */
body { display: block; }

.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 240px;
  background: linear-gradient(180deg, #050e1a 0%, #0a1f3a 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255,255,255,0.06);
  z-index: 200;
  overflow-y: auto;
}
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 3px; }

.sidebar-brand {
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sidebar-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: #fff;
}
.sidebar-logo-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, #2b7de9, #5a9ef5);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 20px; font-weight: 700;
  box-shadow: 0 6px 18px rgba(43,125,233,0.35);
}
.sidebar-logo-text {
  font-family: var(--font-display);
  font-size: 15px; line-height: 1.05;
  letter-spacing: -0.01em;
}
.sidebar-logo-text em { font-style: normal; font-size: 11px; opacity: 0.6; letter-spacing: 0.08em; text-transform: uppercase; }

.sidebar-nav { flex: 1; padding: 14px 10px 8px; }
.sidebar-section { margin-bottom: 18px; }
.sidebar-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(255,255,255,0.35);
  padding: 4px 12px 8px;
}
.sidebar-link {
  display: flex; align-items: center; gap: 11px;
  padding: 8px 12px; margin: 1px 0;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 13.5px; font-weight: 500;
  border-radius: 9px;
  transition: all 0.15s ease;
}
.sidebar-link:hover { background: rgba(255,255,255,0.06); color: #fff; }
.sidebar-link.active {
  background: linear-gradient(90deg, rgba(43,125,233,0.22), rgba(43,125,233,0.05));
  color: #fff;
  box-shadow: inset 2px 0 0 #2b7de9;
}
.sidebar-link .ic { font-size: 15px; width: 18px; text-align: center; }

.sidebar-foot {
  padding: 14px 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.35);
  font-size: 11px;
}

.sidebar-toggle {
  display: none;
  background: none; border: none;
  color: var(--navy-800); font-size: 22px;
  cursor: pointer; padding: 6px 10px; border-radius: 8px;
}

/* --- App shell (right of sidebar) --- */
.app-shell {
  margin-left: 240px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky; top: 0; z-index: 50;
  height: 60px;
  background: #fff;
  border-bottom: 1px solid var(--slate-200);
  padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  backdrop-filter: saturate(150%) blur(6px);
}
.topbar-title {
  flex: 1;
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--navy-900);
  letter-spacing: -0.01em;
}
.topbar-right { display: flex; align-items: center; gap: 10px; }

/* --- Avatar dropdown --- */
.avatar-menu { position: relative; }
.avatar-btn {
  display: flex; align-items: center; gap: 6px;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s;
}
.avatar-btn:hover { background: var(--blue-50); border-color: var(--blue-100); }
.avatar-circle {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-800), var(--blue-500));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  box-shadow: 0 2px 6px rgba(13,46,84,0.25);
}
.avatar-caret { font-size: 11px; color: var(--slate-500); }
.avatar-dropdown {
  display: none;
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(5,14,26,0.14);
  padding: 6px;
  overflow: hidden;
}
.avatar-menu.open .avatar-dropdown { display: block; animation: fadeInUp 0.18s ease both; }
.avatar-dropdown a {
  display: block;
  padding: 9px 12px;
  color: var(--slate-700);
  text-decoration: none;
  font-size: 13.5px; font-weight: 500;
  border-radius: 8px;
}
.avatar-dropdown a:hover { background: var(--slate-50); color: var(--navy-800); }
.avatar-dropdown a.danger { color: var(--red-600); }
.avatar-dropdown a.danger:hover { background: #fef2f2; }
.avatar-divider { height: 1px; background: var(--slate-200); margin: 4px 0; }

/* --- Main + footer adjustments for shell --- */
.app-shell main {
  max-width: 1180px;
  margin: 28px auto;
  padding: 0 28px;
  flex: 1;
  width: 100%;
}
.app-shell footer {
  text-align: center; padding: 24px 20px;
  color: var(--slate-400); font-size: 12px;
  border-top: 1px solid var(--slate-200);
  letter-spacing: 0.01em;
}
.app-shell footer a { text-decoration: none; }

/* --- Mobile sidebar --- */
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); transition: transform 0.25s ease; }
  .sidebar.open { transform: translateX(0); box-shadow: 0 24px 48px rgba(0,0,0,0.4); }
  .app-shell { margin-left: 0; }
  .sidebar-toggle { display: inline-flex; }
  .topbar { padding: 0 16px; }
  .app-shell main { padding: 0 16px; margin: 16px auto; }
}

/* =====================================================================
   HOME HERO — Animated 3D
   ===================================================================== */
.hero-3d {
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 20% 0%, #0a2b55 0%, transparent 55%),
              radial-gradient(ellipse at 80% 100%, #1456a0 0%, transparent 50%),
              linear-gradient(135deg, #050e1a 0%, #0a1f3a 60%, #0d2e54 100%);
  color: #fff;
  border-radius: 24px;
  padding: 76px 40px 90px;
  margin-bottom: 22px;
  text-align: center;
  isolation: isolate;
}
.hero-3d::before {
  /* floating grid */
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(91,158,245,0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91,158,245,0.12) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse at center, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, transparent 75%);
  animation: heroGridDrift 22s linear infinite;
  z-index: 0;
}
.hero-3d::after {
  /* orbiting glow */
  content: "";
  position: absolute; top: -60px; left: 50%;
  width: 560px; height: 560px;
  margin-left: -280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(43,125,233,0.35) 0%, transparent 60%);
  filter: blur(20px);
  animation: heroPulse 6s ease-in-out infinite;
  z-index: 0;
}
.hero-3d > * { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: rgba(91,158,245,0.12);
  border: 1px solid rgba(91,158,245,0.3);
  border-radius: 999px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #93bff8;
  margin-bottom: 22px;
}
.hero-badge::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,0.25);
  animation: pulse 1.5s ease-in-out infinite;
}
.hero-3d h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 18px;
}
.hero-3d h1 .accent {
  background: linear-gradient(135deg, #5a9ef5 0%, #93bff8 50%, #dbeafe 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  animation: heroShimmer 5s ease-in-out infinite;
}
.hero-3d .hero-sub {
  font-size: 17px; line-height: 1.6;
  color: rgba(255,255,255,0.72);
  max-width: 620px;
  margin: 0 auto 32px;
}
.hero-3d .hero-cta {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.hero-3d .hero-cta .btn {
  padding: 14px 30px;
  font-size: 14.5px;
  box-shadow: 0 12px 32px rgba(43,125,233,0.35);
}
.hero-3d .hero-cta .btn.primary {
  background: linear-gradient(135deg, #2b7de9, #5a9ef5);
  color: #fff;
}
.hero-3d .hero-cta .btn.ghost {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  box-shadow: none;
}
.hero-3d .hero-cta .btn.ghost:hover { background: rgba(255,255,255,0.14); }

.hero-stats {
  display: flex; gap: 28px; justify-content: center; flex-wrap: wrap;
  margin-top: 42px; padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.hero-stat { text-align: center; }
.hero-stat-value {
  font-family: var(--font-display);
  font-size: 30px;
  color: #fff;
  line-height: 1;
}
.hero-stat-label {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-top: 6px;
}

@keyframes heroPulse {
  0%, 100% { transform: scale(1) translateY(0); opacity: 0.75; }
  50%      { transform: scale(1.08) translateY(-20px); opacity: 1; }
}
@keyframes heroGridDrift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-42px, -42px, 0); }
}
@keyframes heroShimmer {
  0%, 100% { filter: brightness(1); }
  50%      { filter: brightness(1.3); }
}

@media (max-width: 640px) {
  .hero-3d { padding: 52px 20px 62px; border-radius: 18px; }
  .hero-stats { gap: 20px; }
  .hero-stat-value { font-size: 24px; }
}
