/* InvestWise — Risk Appetite Assessment */
:root {
  --blue-950: #0a1628;
  --blue-900: #0f2744;
  --blue-800: #1e3a5f;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-400: #60a5fa;
  --blue-300: #93c5fd;
  --blue-200: #bfdbfe;
  --blue-100: #dbeafe;
  --blue-50: #eff6ff;
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.15);
  --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.3);
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 16px;
  --radius-lg: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--blue-950);
  color: var(--blue-100);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Animated background mesh */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(37, 99, 235, 0.25), transparent),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(96, 165, 250, 0.15), transparent),
    radial-gradient(ellipse 50% 60% at 50% 90%, rgba(29, 78, 216, 0.2), transparent),
    var(--blue-950);
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

.gradient-text {
  background: linear-gradient(135deg, var(--blue-300), var(--blue-500), var(--blue-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Layout */
.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

section {
  padding: 5rem 0;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
}

.site-header.scrolled {
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 0.6rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  transition: transform var(--transition);
}

.logo:hover { transform: scale(1.03); }

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-400));
  border-radius: 10px;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-glow);
  transform-style: preserve-3d;
  animation: logoFloat 4s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0) rotateY(0deg); }
  50% { transform: translateY(-4px) rotateY(10deg); }
}

.logo-icon svg { width: 22px; height: 22px; fill: white; }

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  list-style: none;
}

.nav-desktop a {
  color: var(--blue-200);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-desktop a::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--blue-400);
  transition: var(--transition);
  transform: translateX(-50%);
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--white);
  background: var(--glass);
}

.nav-desktop a:hover::after,
.nav-desktop a.active::after { width: 60%; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border: none;
  border-radius: 12px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--blue-300);
  border: 1.5px solid var(--blue-500);
}

.btn-outline:hover {
  background: var(--glass);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }

/* Mobile nav */
.menu-toggle {
  display: none;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--white);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: var(--transition);
}

.nav-mobile {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(20px);
  padding: 1.5rem;
  border-bottom: 1px solid var(--glass-border);
  transform: translateY(-120%);
  transition: var(--transition);
  z-index: 999;
}

.nav-mobile.open {
  transform: translateY(0);
}

.nav-mobile ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-mobile a {
  display: block;
  color: var(--blue-200);
  text-decoration: none;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  transition: var(--transition);
}

.nav-mobile a:hover { background: var(--glass); color: var(--white); }

@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: block; }
  .nav-mobile { display: block; }
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content {
  animation: fadeSlideUp 1s ease forwards;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--blue-300);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero h1 { margin-bottom: 1.2rem; }

.hero p {
  font-size: 1.15rem;
  color: var(--blue-200);
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
}

.stat-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--white);
}

.stat-item span {
  font-size: 0.85rem;
  color: var(--blue-300);
}

/* 3D Canvas container */
.hero-3d {
  position: relative;
  height: 500px;
  animation: fadeSlideUp 1s 0.3s ease forwards;
  opacity: 0;
}

#hero-canvas {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
}

.hero-3d-glow {
  position: absolute;
  inset: 10%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.3), transparent 70%);
  filter: blur(40px);
  z-index: -1;
  animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero p { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-3d { height: 350px; order: -1; }
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2rem;
  backdrop-filter: blur(12px);
  transition: var(--transition);
  transform-style: preserve-3d;
  perspective: 1000px;
}

.feature-card:hover {
  transform: translateY(-8px) rotateX(2deg);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: var(--shadow-glow);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 1.2rem;
  font-size: 1.5rem;
  transform: translateZ(20px);
}

.feature-card h3 { margin-bottom: 0.6rem; color: var(--white); }
.feature-card p { color: var(--blue-200); font-size: 0.95rem; }

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3.5rem;
}

.section-header p {
  color: var(--blue-300);
  margin-top: 1rem;
  font-size: 1.05rem;
}

/* Quiz Section */
.quiz-section {
  position: relative;
}

.quiz-wrapper {
  max-width: 780px;
  margin: 0 auto;
}

.quiz-progress {
  margin-bottom: 2rem;
}

.progress-bar {
  height: 6px;
  background: var(--blue-900);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.8rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue-600), var(--blue-400));
  border-radius: 10px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0%;
}

.progress-text {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--blue-300);
}

.quiz-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  backdrop-filter: blur(16px);
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: quizFadeIn 0.5s ease;
}

@keyframes quizFadeIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.quiz-question {
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 2rem;
  font-family: var(--font-display);
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: rgba(15, 39, 68, 0.6);
  border: 1.5px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition);
  color: var(--blue-100);
  font-size: 0.95rem;
}

.quiz-option:hover {
  border-color: var(--blue-500);
  background: rgba(37, 99, 235, 0.15);
  transform: translateX(6px);
}

.quiz-option.selected {
  border-color: var(--blue-400);
  background: rgba(37, 99, 235, 0.25);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.quiz-option .option-letter {
  width: 32px;
  height: 32px;
  background: var(--blue-800);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.quiz-option.selected .option-letter {
  background: var(--blue-600);
}

.quiz-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  gap: 1rem;
}

/* Results */
.results-card {
  text-align: center;
  animation: quizFadeIn 0.6s ease;
}

.risk-meter {
  width: 200px;
  height: 200px;
  margin: 0 auto 2rem;
  position: relative;
}

.risk-meter svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.risk-meter-bg {
  fill: none;
  stroke: var(--blue-900);
  stroke-width: 12;
}

.risk-meter-fill {
  fill: none;
  stroke: url(#riskGradient);
  stroke-width: 12;
  stroke-linecap: round;
  stroke-dasharray: 502;
  stroke-dashoffset: 502;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.risk-meter-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.risk-meter-label span {
  font-size: 0.8rem;
  color: var(--blue-300);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.risk-meter-label strong {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--white);
}

.risk-type {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.risk-description {
  color: var(--blue-200);
  max-width: 550px;
  margin: 0 auto 2rem;
}

.recommendations {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  text-align: left;
  margin-top: 2rem;
}

.rec-column {
  background: rgba(15, 39, 68, 0.5);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.rec-column h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.rec-column ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.rec-column li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--blue-200);
}

.rec-column li::before {
  content: "→";
  color: var(--blue-400);
  font-weight: 700;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .recommendations { grid-template-columns: 1fr; }
  .quiz-card { padding: 1.5rem; }
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  counter-reset: step;
}

.step-item {
  text-align: center;
  position: relative;
  counter-increment: step;
}

.step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 1.2rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  box-shadow: var(--shadow-glow);
  animation: stepBounce 3s ease-in-out infinite;
}

.step-item:nth-child(2) .step-number { animation-delay: 0.5s; }
.step-item:nth-child(3) .step-number { animation-delay: 1s; }

@keyframes stepBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.step-item h3 { margin-bottom: 0.5rem; color: var(--white); }
.step-item p { color: var(--blue-300); font-size: 0.95rem; }

@media (max-width: 768px) {
  .steps { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* Page content (legal, about) */
.page-hero {
  padding: 8rem 0 3rem;
  text-align: center;
}

.page-hero h1 { margin-bottom: 0.8rem; }
.page-hero p { color: var(--blue-300); font-size: 1.1rem; }

.content-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 3rem;
  backdrop-filter: blur(12px);
  margin-bottom: 4rem;
}

.content-card h2 {
  color: var(--white);
  margin: 2rem 0 1rem;
  font-size: 1.4rem;
}

.content-card h2:first-child { margin-top: 0; }

.content-card p,
.content-card li {
  color: var(--blue-200);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.content-card ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.content-card a {
  color: var(--blue-400);
  transition: color var(--transition);
}

.content-card a:hover { color: var(--blue-300); }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
}

.contact-info-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2rem;
  backdrop-filter: blur(12px);
  transition: var(--transition);
}

.contact-info-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.4);
}

.contact-info-card .icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.contact-info-card h3 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.contact-info-card p,
.contact-info-card a {
  color: var(--blue-300);
  text-decoration: none;
  font-size: 0.95rem;
}

.contact-info-card a:hover { color: var(--blue-200); }

.contact-form {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  backdrop-filter: blur(12px);
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  color: var(--blue-300);
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(15, 39, 68, 0.6);
  border: 1.5px solid var(--glass-border);
  border-radius: 10px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-group textarea { resize: vertical; min-height: 120px; }

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
  .content-card { padding: 1.5rem; }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--glass-border);
  padding: 4rem 0 2rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--blue-300);
  font-size: 0.9rem;
  margin-top: 1rem;
  max-width: 300px;
}

.footer-col h4 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col a {
  color: var(--blue-300);
  text-decoration: none;
  font-size: 0.9rem;
  display: block;
  padding: 0.3rem 0;
  transition: var(--transition);
}

.footer-col a:hover { color: var(--white); padding-left: 4px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
  font-size: 0.85rem;
  color: var(--blue-400);
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Scroll animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Floating 3D shapes (CSS fallback) */
.floating-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
  animation: floatShape 8s ease-in-out infinite;
}

.shape-1 {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--blue-400), var(--blue-600));
  top: 60%;
  right: 15%;
  animation-delay: 2s;
  border-radius: 20%;
}

.shape-3 {
  width: 60px;
  height: 60px;
  background: var(--blue-300);
  bottom: 20%;
  left: 30%;
  animation-delay: 4s;
  border-radius: 30%;
}

@keyframes floatShape {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(120deg); }
  66% { transform: translateY(10px) rotate(240deg); }
}

/* Disclaimer banner */
.disclaimer-banner {
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  font-size: 0.85rem;
  color: var(--blue-300);
  margin-top: 2rem;
  text-align: center;
}

.disclaimer-banner strong { color: var(--blue-200); }

/* ── Market Ticker ── */
.market-ticker {
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  overflow: hidden;
  height: 38px;
  display: flex;
  align-items: center;
}

.site-header.scrolled + .market-ticker,
.site-header.scrolled ~ .market-ticker {
  top: 58px;
}

.ticker-label {
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-600));
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0 1rem;
  height: 100%;
  display: flex;
  align-items: center;
  z-index: 2;
}

.ticker-wrap {
  overflow: hidden;
  flex: 1;
  mask-image: linear-gradient(90deg, transparent, black 2%, black 98%, transparent);
}

.ticker-track {
  display: flex;
  gap: 2.5rem;
  animation: tickerScroll 35s linear infinite;
  white-space: nowrap;
}

.ticker-track:hover { animation-play-state: paused; }

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--blue-200);
  flex-shrink: 0;
}

.ticker-item .symbol {
  font-weight: 700;
  color: var(--white);
}

.ticker-item .price { color: var(--blue-300); }

.ticker-item .change {
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

.ticker-item .change.up {
  color: #34d399;
  background: rgba(52, 211, 153, 0.12);
}

.ticker-item .change.down {
  color: #f87171;
  background: rgba(248, 113, 113, 0.12);
}

body.has-ticker .hero { padding-top: 118px; }

/* ── Market Dashboard ── */
.market-dashboard {
  position: relative;
}

.market-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.market-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.4rem;
  backdrop-filter: blur(12px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.market-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-600), var(--blue-400));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s ease;
}

.market-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: var(--shadow-glow);
}

.market-card:hover::before { transform: scaleX(1); }

.market-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.8rem;
}

.market-card-header .flag { font-size: 1.3rem; }

.market-card-header .index-name {
  font-size: 0.8rem;
  color: var(--blue-300);
  font-weight: 500;
}

.market-card .index-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.3rem;
}

.market-card .index-change {
  font-size: 0.85rem;
  font-weight: 600;
}

.market-card .index-change.up { color: #34d399; }
.market-card .index-change.down { color: #f87171; }

.market-card .mini-chart {
  margin-top: 0.8rem;
  height: 40px;
}

.market-card .mini-chart svg {
  width: 100%;
  height: 100%;
}

.chart-line {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  transition: stroke-dashoffset 2s ease;
}

.chart-line.animated { stroke-dashoffset: 0; }

.chart-line.green { stroke: #34d399; }
.chart-line.red { stroke: #f87171; }
.chart-line.blue { stroke: var(--blue-400); }

.chart-area {
  opacity: 0;
  transition: opacity 1.5s ease 0.5s;
}

.chart-line.animated + .chart-area,
.mini-chart:has(.chart-line.animated) .chart-area {
  opacity: 0.15;
}

/* Live chart panel */
.chart-panel {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.chart-panel-main {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(12px);
  min-height: 320px;
  display: flex;
  flex-direction: column;
}

.chart-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.chart-panel-header h3 {
  color: var(--white);
  font-size: 1.1rem;
}

.chart-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: #34d399;
  background: rgba(52, 211, 153, 0.1);
  padding: 0.25rem 0.7rem;
  border-radius: 50px;
  font-weight: 600;
}

.chart-live-badge .live-dot {
  width: 6px;
  height: 6px;
  background: #34d399;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

#candlestick-chart {
  flex: 1;
  width: 100%;
  min-height: 240px;
}

.chart-panel-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sector-item {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition);
}

.sector-item:hover {
  border-color: rgba(59, 130, 246, 0.35);
  transform: translateX(4px);
}

.sector-icon {
  width: 40px;
  height: 40px;
  background: rgba(37, 99, 235, 0.2);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.sector-info { flex: 1; }

.sector-info h4 {
  color: var(--white);
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.sector-bar-wrap {
  height: 4px;
  background: var(--blue-900);
  border-radius: 4px;
  overflow: hidden;
}

.sector-bar {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--blue-600), var(--blue-400));
  width: 0;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.sector-item.visible .sector-bar { width: var(--bar-width); }

.sector-change {
  font-size: 0.85rem;
  font-weight: 600;
  flex-shrink: 0;
}

.sector-change.up { color: #34d399; }
.sector-change.down { color: #f87171; }

@media (max-width: 900px) {
  .market-cards { grid-template-columns: repeat(2, 1fr); }
  .chart-panel { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .market-cards { grid-template-columns: 1fr; }
  .market-ticker { top: 62px; }
}

/* ── Informative Sections ── */
.info-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.info-visual {
  position: relative;
}

.risk-pyramid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 2rem;
}

.pyramid-level {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--white);
  border-radius: 8px;
  transition: var(--transition);
  cursor: default;
  position: relative;
}

.pyramid-level:hover {
  transform: scale(1.05);
  z-index: 2;
}

.pyramid-level .level-label {
  position: absolute;
  right: -130px;
  font-size: 0.75rem;
  color: var(--blue-300);
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  transition: opacity var(--transition);
}

.pyramid-level:hover .level-label { opacity: 1; }

.level-4 {
  width: 30%;
  padding: 0.7rem;
  background: linear-gradient(135deg, #dc2626, #ef4444);
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.3);
}

.level-3 {
  width: 45%;
  padding: 0.7rem;
  background: linear-gradient(135deg, #d97706, #f59e0b);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}

.level-2 {
  width: 60%;
  padding: 0.7rem;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
}

.level-1 {
  width: 75%;
  padding: 0.7rem;
  background: linear-gradient(135deg, #059669, #34d399);
  box-shadow: 0 4px 20px rgba(52, 211, 153, 0.3);
}

.info-content h2 { margin-bottom: 1rem; }

.info-content p {
  color: var(--blue-200);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.info-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: var(--blue-200);
  font-size: 0.9rem;
}

.info-list li .check {
  width: 22px;
  height: 22px;
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  flex-shrink: 0;
  margin-top: 2px;
}

@media (max-width: 768px) {
  .info-split { grid-template-columns: 1fr; }
  .pyramid-level .level-label { display: none; }
}

/* Investment types grid */
.invest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.invest-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.8rem;
  backdrop-filter: blur(12px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.invest-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(37, 99, 235, 0.08), transparent);
  pointer-events: none;
}

.invest-card:hover {
  transform: translateY(-6px);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: var(--shadow-glow);
}

.invest-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.invest-card h3 {
  color: var(--white);
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

.invest-card p {
  color: var(--blue-300);
  font-size: 0.88rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.risk-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
}

.risk-tag.low { background: rgba(52, 211, 153, 0.15); color: #34d399; }
.risk-tag.medium { background: rgba(59, 130, 246, 0.15); color: var(--blue-400); }
.risk-tag.high { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.risk-tag.very-high { background: rgba(239, 68, 68, 0.15); color: #f87171; }

.invest-card .markets {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.8rem;
}

.market-badge {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--blue-300);
  border: 1px solid var(--glass-border);
}

@media (max-width: 900px) {
  .invest-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .invest-grid { grid-template-columns: 1fr; }
}

/* Compare markets */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.compare-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(12px);
  transition: var(--transition);
}

.compare-card:hover {
  border-color: rgba(59, 130, 246, 0.35);
  transform: translateY(-4px);
}

.compare-card .country-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--glass-border);
}

.compare-card .country-header span { font-size: 2rem; }

.compare-card .country-header h3 {
  color: var(--white);
  font-size: 1.3rem;
}

.compare-card .country-header p {
  color: var(--blue-400);
  font-size: 0.8rem;
}

.compare-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.compare-stat:last-child { border-bottom: none; }

.compare-stat .label {
  color: var(--blue-300);
  font-size: 0.85rem;
}

.compare-stat .value {
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
}

.compare-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blue-500);
  opacity: 0.5;
}

@media (max-width: 768px) {
  .compare-grid {
    grid-template-columns: 1fr;
  }
  .compare-vs { padding: 0.5rem 0; }
}

/* Global stats bar */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(12px);
}

.stat-block {
  text-align: center;
  position: relative;
}

.stat-block:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -0.75rem;
  top: 15%;
  height: 70%;
  width: 1px;
  background: var(--glass-border);
}

.stat-block .stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  display: block;
}

.stat-block .stat-label {
  font-size: 0.8rem;
  color: var(--blue-400);
  margin-top: 0.3rem;
}

@media (max-width: 768px) {
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat-block:not(:last-child)::after { display: none; }
}

/* FAQ */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.faq-item {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: var(--transition);
}

.faq-item.open {
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.15);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1.5rem;
  background: none;
  border: none;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
}

.faq-question:hover { color: var(--blue-300); }

.faq-question .faq-icon {
  font-size: 1.2rem;
  color: var(--blue-400);
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 1.5rem 1.2rem;
  color: var(--blue-300);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Section alt background */
.section-alt {
  background: rgba(15, 39, 68, 0.3);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}
