/* ============================================================
   SHRI BALAJI IMPERIALS — ELITE FINTECH STYLESHEET
   Production-Ready | Ultra-Premium Dark Aesthetic
   ============================================================ */

/* ---------- CSS RESET & BASE ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-void: #030303;
  --text-white: #ffffff;
  --accent-green: #00ff00;
  --accent-gold: rgba(212, 175, 55, 1);
  --accent-gold-dim: rgba(212, 175, 55, 0.6);
  --accent-gold-faint: rgba(212, 175, 55, 0.12);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.05);
  --glass-border-gold: rgba(212, 175, 55, 0.15);
  --error-red: #ff4444;
  --font-heading: 'Cinzel', serif;
  --font-body: 'Inter', sans-serif;
  --nav-height: 72px;
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-void);
  color: var(--text-white);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.6;
  min-height: 100vh;
  cursor: none;
}

/* Custom cursor */
*, *::before, *::after {
  cursor: none !important;
}

/* ---------- CUSTOM CURSOR DOT ---------- */
body::after {
  content: '';
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--accent-gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.8);
  left: var(--cursor-x, -100px);
  top: var(--cursor-y, -100px);
}

/* ---------- AURORA GLOW ---------- */
#aurora-glow {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, rgba(212, 175, 55, 0.04) 40%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  will-change: transform;
  transition: opacity 0.3s ease;
}

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: var(--bg-void);
}
::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.3);
  border-radius: 2px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 175, 55, 0.6);
}

.hidden {
    display: none !important;
}

/* ============================================================
   NAVBAR
   ============================================================ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(3, 3, 3, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border-gold);
  transition: var(--transition-smooth);
}

.nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  gap: 1rem;
}

/* Logo Wrapper */
.logo-wrapper {
  position: relative;
  display: inline-block;
  overflow: hidden;
  border-radius: 4px;
}

.nav-logo {
  height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: brightness(1.1);
}

/* Center: Ticker */
.nav-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green), 0 0 16px rgba(0, 255, 0, 0.4);
  animation: blink-dot 1.2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes blink-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--accent-green), 0 0 16px rgba(0, 255, 0, 0.4); }
  50%        { opacity: 0.3; box-shadow: none; }
}

.live-label {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
}

.ticker-rates {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ticker-item {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.ticker-label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ticker-value {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-green);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
}

.ticker-divider {
  width: 1px;
  height: 12px;
  background: rgba(212, 175, 55, 0.2);
}

/* Right: Language Toggle */
.nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.lang-toggle {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 6px 14px;
  letter-spacing: 0.05em;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.lang-toggle:hover {
  color: var(--accent-gold);
  border-color: var(--glass-border-gold);
  background: rgba(212, 175, 55, 0.06);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
#hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-height) + 4rem) 2rem 6rem;
  text-align: center;
  overflow: hidden;
}

.hero-inner {
  max-width: 900px;
  width: 100%;
  position: relative;
}

.hero-title-wrap {
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 7vw, 6rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.08em;
  color: var(--text-white);
  display: flex;
  flex-direction: column;
  gap: 0.1em;
}

.title-line {
  display: block;
  opacity: 0;
  transform: translateY(60px);
  animation: line-reveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.title-line:nth-child(1) { animation-delay: 0.2s; }
.title-line:nth-child(2) {
  animation-delay: 0.45s;
  background: linear-gradient(135deg, var(--text-white) 0%, rgba(212, 175, 55, 0.9) 50%, var(--text-white) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes line-reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-subtitle-wrap {
  margin-bottom: 2.5rem;
}

.hero-sub1 {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 2vw, 1.15rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  animation: fade-up 0.8s ease forwards 0.9s;
}

.hero-sub2 {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 400;
  color: var(--accent-gold-dim);
  letter-spacing: 0.06em;
  font-style: italic;
  animation: fade-up 0.8s ease forwards 1.1s;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-cta-wrap {
  animation: fade-up 0.8s ease forwards 1.4s;
}

.cta-button {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bg-void);
  background: linear-gradient(135deg, rgba(212, 175, 55, 1) 0%, rgba(255, 215, 100, 1) 50%, rgba(212, 175, 55, 1) 100%);
  padding: 1rem 2.5rem;
  border-radius: 2px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.2), 0 8px 32px rgba(0, 0, 0, 0.4);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 50px rgba(212, 175, 55, 0.35), 0 16px 48px rgba(0, 0, 0, 0.5);
}

/* ============================================================
   GLASS CARDS
   ============================================================ */
.glass-card {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 2rem 1.75rem;
  transition: var(--transition-smooth);
  overflow: hidden;
}

.glass-card:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 175, 55, 0.2);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(212, 175, 55, 0.06);
}

/* ============================================================
   SECTIONS & GRIDS
   ============================================================ */
.section-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-white);
  margin-bottom: 0.75rem;
}

.section-subtitle, .form-notice {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: rgba(212, 175, 55, 0.6);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.form-notice { color: var(--error-red); }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.card-icon {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  display: block;
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.3));
}

.card-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-gold);
  margin-bottom: 0.85rem;
  line-height: 1.3;
  text-transform: uppercase;
}

.card-text {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.75;
}

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  position: relative;
  z-index: 2;
  padding: 3rem 2rem;
  border-top: 1px solid var(--glass-border-gold);
  background: rgba(3, 3, 3, 0.95);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.footer-logo {
  height: 48px;
  width: auto;
  opacity: 0.85;
}

.footer-badges {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-badge {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(212, 175, 55, 0.6);
  letter-spacing: 0.1em;
  padding: 6px 14px;
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 20px;
  background: rgba(212, 175, 55, 0.04);
}

.footer-copy {
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 0.08em;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --nav-height: 60px; }
  body { cursor: auto; }
  *, *::before, *::after { cursor: auto !important; }
  body::after { display: none; }
  #aurora-glow { display: none; }
  
  .nav-inner { padding: 0 1rem; }
  .live-label { display: none; }
  .cards-grid { grid-template-columns: 1fr; }
}