/* ============================================================
   EARNER — Stock Market Trading Website
   Main Stylesheet
   Color System:
     Primary:    #3B8BEB  (Light Blue)
     Secondary:  #2ECC7A  (Soft Green)
     Highlight:  #F0B429  (Light Gold)
     Background: #F5F7FA / #FFFFFF
     Text:       #1A2233
============================================================ */

/* ── Google Fonts loaded via headerlink.php ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ──────────────────────────────────────────── */
/*  RESET & BASE                                */
/* ──────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary:      #3B8BEB;
  --primary-dark: #2a70cc;
  --primary-light:#EBF4FF;
  --secondary:    #2ECC7A;
  --secondary-dark:#22a362;
  --highlight:    #F0B429;
  --highlight-light:#FFF8E1;
  --bg:           #F5F7FA;
  --bg-white:     #FFFFFF;
  --text:         #1A2233;
  --text-muted:   #64748B;
  --text-light:   #94A3B8;
  --border:       #E2E8F0;
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.08);
  --shadow:       0 4px 16px rgba(59,139,235,0.10);
  --shadow-md:    0 8px 32px rgba(59,139,235,0.14);
  --radius:       10px;
  --radius-lg:    16px;
  --transition:   0.22s ease;
  --font:         'Inter', system-ui, -apple-system, sans-serif;
  --max-w:        1200px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-white);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--primary-dark); }

ul { list-style: none; }

img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* ──────────────────────────────────────────── */
/*  TYPOGRAPHY                                  */
/* ──────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

.section-label {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 12px;
}

.section-title {
  margin-bottom: 12px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 48px;
}

.text-center { text-align: center; }
.text-center .section-subtitle { margin-left: auto; margin-right: auto; }

/* ──────────────────────────────────────────── */
/*  BUTTONS                                     */
/* ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(59,139,235,0.3);
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(59,139,235,0.38);
}

.btn-secondary {
  background: var(--secondary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(46,204,122,0.28);
}
.btn-secondary:hover {
  background: var(--secondary-dark);
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}

.btn-light {
  background: #fff;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.btn-light:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 15px 36px;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

/* ──────────────────────────────────────────── */
/*  TOP ANNOUNCEMENT BAR                        */
/* ──────────────────────────────────────────── */
.top-bar {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 8px 20px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.top-bar a { color: var(--highlight); font-weight: 600; }
.top-bar a:hover { color: #fff; }

/* ──────────────────────────────────────────── */
/*  HEADER / NAVBAR                             */
/* ──────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 24px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.navbar-brand .brand-logo {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
}

.navbar-brand .brand-name {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.navbar-brand .brand-name span {
  color: var(--secondary);
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-link.active {
  font-weight: 600;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: background var(--transition);
  border: none;
  background: transparent;
}
.hamburger:hover { background: var(--primary-light); }
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 4px;
  transition: all 0.3s ease;
  display: block;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
  display: none;
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  padding: 16px;
}
.mobile-nav.open { display: block; }
.mobile-nav .nav-link {
  display: block;
  padding: 10px 16px;
  margin-bottom: 4px;
}
.mobile-nav .navbar-actions {
  padding: 12px 16px 4px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}

/* ──────────────────────────────────────────── */
/*  TRADINGVIEW TICKER                          */
/* ──────────────────────────────────────────── */
.tv-ticker-wrap {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
}

/* ──────────────────────────────────────────── */
/*  HERO SECTION                                */
/* ──────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #EBF4FF 0%, #F0F8FF 50%, #FAFFFE 100%);
  padding: 80px 0 64px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(59,139,235,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(46,204,122,0.07) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--highlight-light);
  color: #92600a;
  border: 1px solid rgba(240,180,41,0.3);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-badge i { color: var(--highlight); }

.hero-title {
  margin-bottom: 20px;
  line-height: 1.15;
}

.hero-title .accent { color: var(--primary); }
.hero-title .accent-green { color: var(--secondary); }

.hero-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.hero-stat strong {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
}

.hero-stat span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Hero visual */
.hero-visual {
  position: relative;
}

.hero-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.market-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.market-item:last-child { border-bottom: none; }

.market-name {
  font-weight: 600;
  font-size: 0.9rem;
}
.market-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.market-price {
  text-align: right;
}
.market-price strong { font-size: 0.92rem; }

.badge-up {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(46,204,122,0.12);
  color: var(--secondary-dark);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 50px;
}

.badge-down {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(239,68,68,0.1);
  color: #dc2626;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 50px;
}

/* Floating cards on hero */
.hero-float {
  position: absolute;
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 12px 16px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-float.f1 { top: -20px; right: -20px; }
.hero-float.f2 { bottom: -16px; left: -20px; }
.hero-float i { font-size: 1.1rem; }

/* ──────────────────────────────────────────── */
/*  STATS BAR                                   */
/* ──────────────────────────────────────────── */
.stats-bar {
  background: var(--primary);
  padding: 36px 0;
  color: #fff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stat-item strong {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.stat-item span {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-top: 4px;
  display: block;
}

.stat-divider {
  width: 1px;
  background: rgba(255,255,255,0.2);
}

/* ──────────────────────────────────────────── */
/*  SECTIONS                                    */
/* ──────────────────────────────────────────── */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg);
}

/* ──────────────────────────────────────────── */
/*  FEATURE CARDS                               */
/* ──────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.feature-card:hover::before { transform: scaleX(1); }
.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.icon-blue { background: var(--primary-light); color: var(--primary); }
.icon-green { background: rgba(46,204,122,0.12); color: var(--secondary-dark); }
.icon-gold { background: var(--highlight-light); color: #92600a; }
.icon-purple { background: rgba(139,92,246,0.1); color: #7c3aed; }
.icon-orange { background: rgba(249,115,22,0.1); color: #ea580c; }
.icon-teal { background: rgba(20,184,166,0.1); color: #0d9488; }

.feature-card h3 { margin-bottom: 10px; font-size: 1.1rem; }
.feature-card p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.6; }

/* ──────────────────────────────────────────── */
/*  HOW IT WORKS                                */
/* ──────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: calc(100% / 6);
  right: calc(100% / 6);
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.step-card {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--bg-white);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0 auto 20px;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.step-card:hover .step-number {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: scale(1.05);
}

.step-card h3 { margin-bottom: 8px; }
.step-card p { color: var(--text-muted); font-size: 0.9rem; }

/* ──────────────────────────────────────────── */
/*  SERVICE CARDS                               */
/* ──────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  transition: all var(--transition);
}

.service-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.service-card h3 { margin-bottom: 10px; font-size: 1.15rem; }
.service-card p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 14px; }

.service-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-tag {
  background: var(--bg);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 50px;
  border: 1px solid var(--border);
}

/* ──────────────────────────────────────────── */
/*  TESTIMONIALS                                */
/* ──────────────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all var(--transition);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.testimonial-stars {
  color: var(--highlight);
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.testimonial-text {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.author-name { font-weight: 600; font-size: 0.92rem; }
.author-city { font-size: 0.78rem; color: var(--text-muted); }

/* ──────────────────────────────────────────── */
/*  APP DOWNLOAD SECTION                        */
/* ──────────────────────────────────────────── */
.app-section {
  background: linear-gradient(135deg, var(--primary) 0%, #1e5fab 100%);
  color: #fff;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.app-section::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}

.app-section::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 350px; height: 350px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}

.app-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  position: relative;
  z-index: 1;
}

.app-content .section-label {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

.app-content h2 { color: #fff; margin-bottom: 16px; }
.app-content p { color: rgba(255,255,255,0.85); font-size: 1.02rem; margin-bottom: 32px; }

.app-features-list {
  margin-bottom: 36px;
}

.app-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.92);
}

.app-feature-item i {
  color: var(--secondary);
  font-size: 1rem;
  width: 20px;
  flex-shrink: 0;
}

.app-badges {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.app-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius);
  padding: 10px 18px;
  color: #fff;
  transition: all var(--transition);
  cursor: pointer;
  backdrop-filter: blur(4px);
}

.app-badge:hover {
  background: rgba(255,255,255,0.22);
  color: #fff;
  transform: translateY(-2px);
}

.app-badge i { font-size: 1.6rem; }
.app-badge-text small { display: block; font-size: 0.7rem; opacity: 0.8; }
.app-badge-text strong { font-size: 0.95rem; }

/* Mockup phones */
.app-visual {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 20px;
  position: relative;
}

.phone-mockup {
  width: 180px;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0,0,0,0.25);
}

.phone-mockup.main {
  width: 200px;
  transform: translateY(-20px);
}

.phone-screen {
  background: linear-gradient(160deg, #1a1a2e, #16213e);
  padding: 24px 16px;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.phone-notch {
  width: 60px;
  height: 6px;
  background: rgba(255,255,255,0.2);
  border-radius: 3px;
  margin: 0 auto 16px;
}

.phone-widget {
  background: rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 12px;
}

.phone-widget-title {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.phone-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.phone-change { font-size: 0.72rem; color: var(--secondary); margin-top: 2px; }

/* ──────────────────────────────────────────── */
/*  DOWNLOAD PAGE (Full)                        */
/* ──────────────────────────────────────────── */
.download-hero {
  background: linear-gradient(135deg, #EBF4FF 0%, #FAFFFE 100%);
  padding: 60px 0;
  border-bottom: 1px solid var(--border);
}

.download-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.download-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.rating-stars { color: var(--highlight); font-size: 1.1rem; }
.rating-count { font-size: 0.9rem; color: var(--text-muted); }

.download-badges-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.download-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--text);
  color: #fff;
  border-radius: var(--radius);
  padding: 12px 22px;
  transition: all var(--transition);
  cursor: pointer;
  min-width: 160px;
}

.download-badge:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.download-badge i { font-size: 1.8rem; }
.download-badge-text small { display: block; font-size: 0.68rem; opacity: 0.75; }
.download-badge-text strong { font-size: 1rem; }

.download-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.download-meta-item {
  text-align: center;
}
.download-meta-item strong { display: block; font-size: 1.1rem; color: var(--primary); font-weight: 700; }
.download-meta-item span { font-size: 0.78rem; color: var(--text-muted); }

/* Screenshots */
.screenshots-section {
  padding: 64px 0;
  background: var(--bg);
}

.screenshots-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 20px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.screenshot-item {
  flex-shrink: 0;
  width: 180px;
  background: #1a1a2e;
  border-radius: 28px;
  padding: 16px 12px;
  border: 2px solid rgba(59,139,235,0.2);
  box-shadow: var(--shadow-md);
}

.screenshot-screen {
  background: linear-gradient(160deg, #1e2d4a, #16213e);
  border-radius: 16px;
  padding: 16px 12px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ss-header {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.5);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.ss-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}

.ss-change {
  font-size: 0.7rem;
  color: var(--secondary);
}

.ss-bar {
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  margin: 4px 0;
  overflow: hidden;
}
.ss-bar-fill { height: 100%; background: var(--secondary); border-radius: 2px; }

.ss-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.65rem;
  color: rgba(255,255,255,0.7);
}

/* App Features (download page) */
.app-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition);
}

.review-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.reviewer-info { display: flex; align-items: center; gap: 10px; }
.reviewer-name { font-weight: 600; font-size: 0.9rem; }
.reviewer-date { font-size: 0.75rem; color: var(--text-muted); }
.review-stars { color: var(--highlight); font-size: 0.85rem; }
.review-text { color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; }

/* QR Section */
.qr-section {
  padding: 60px 0;
  background: var(--primary);
  color: #fff;
  text-align: center;
}

.qr-section h2 { color: #fff; margin-bottom: 12px; }
.qr-section p { color: rgba(255,255,255,0.8); margin-bottom: 36px; }

.qr-box {
  display: inline-block;
  background: #fff;
  padding: 16px;
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
}

.qr-box .qr-inner {
  width: 140px;
  height: 140px;
  background: var(--text);
  border-radius: 8px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  padding: 8px;
}

.qr-pixel {
  background: var(--text);
  border-radius: 1px;
}

.qr-desc { font-size: 0.85rem; color: rgba(255,255,255,0.7); }

/* ──────────────────────────────────────────── */
/*  ABOUT PAGE                                  */
/* ──────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, #EBF4FF 0%, #F0F8FF 100%);
  padding: 64px 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 { margin-bottom: 14px; }
.page-hero p { color: var(--text-muted); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }

.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.mission-text h2 { margin-bottom: 16px; }
.mission-text p { color: var(--text-muted); margin-bottom: 16px; line-height: 1.75; }

.mission-visual {
  background: linear-gradient(135deg, var(--primary-light), rgba(46,204,122,0.08));
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
}

.mission-icon {
  width: 80px;
  height: 80px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: #fff;
  font-size: 2rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.value-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.value-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--primary);
}

.value-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.value-card h3 { font-size: 1rem; margin-bottom: 8px; }
.value-card p { font-size: 0.87rem; color: var(--text-muted); }

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.team-card {
  text-align: center;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 20px;
  transition: all var(--transition);
}

.team-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin: 0 auto 16px;
  font-family: var(--font);
}

.team-name { font-weight: 700; margin-bottom: 4px; }
.team-role { font-size: 0.85rem; color: var(--primary); font-weight: 500; margin-bottom: 12px; }
.team-bio { font-size: 0.82rem; color: var(--text-muted); line-height: 1.6; }

/* Timeline */
.timeline {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--border);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 48px;
  display: grid;
  grid-template-columns: 1fr 48px 1fr;
  align-items: center;
  gap: 20px;
}

.timeline-item:nth-child(odd) .timeline-content {
  grid-column: 1;
  text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
  grid-column: 3;
  text-align: left;
}

.timeline-dot {
  grid-column: 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: var(--shadow);
  z-index: 1;
  justify-self: center;
}

.timeline-year {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.timeline-content h4 { margin-bottom: 6px; }
.timeline-content p { font-size: 0.88rem; color: var(--text-muted); }

/* ──────────────────────────────────────────── */
/*  CONTACT PAGE                                */
/* ──────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
}

.contact-info h3 { margin-bottom: 24px; }

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 28px;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-item strong { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 3px; }
.contact-item span, .contact-item a { font-size: 0.95rem; font-weight: 500; }

/* Form */
.contact-form {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
}

.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.92rem;
  color: var(--text);
  background: var(--bg-white);
  transition: all var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59,139,235,0.12);
}

.form-control::placeholder { color: var(--text-light); }

textarea.form-control {
  resize: vertical;
  min-height: 130px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ──────────────────────────────────────────── */
/*  LEGAL PAGES (Privacy / Terms)               */
/* ──────────────────────────────────────────── */
.legal-container {
  max-width: 840px;
  margin: 0 auto;
  padding: 60px 20px;
}

.legal-container h1 { margin-bottom: 8px; }
.legal-date { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 40px; }

.legal-section { margin-bottom: 36px; }
.legal-section h2 {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.legal-section p { color: var(--text-muted); line-height: 1.8; margin-bottom: 12px; }
.legal-section ul { padding-left: 20px; }
.legal-section ul li { color: var(--text-muted); line-height: 1.7; margin-bottom: 6px; list-style: disc; }

/* ──────────────────────────────────────────── */
/*  FOOTER                                      */
/* ──────────────────────────────────────────── */
.site-footer {
  background: #0F172A;
  color: rgba(255,255,255,0.75);
}

.footer-main {
  padding: 64px 0 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-brand .brand-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  display: block;
  margin-bottom: 12px;
}
.footer-brand .brand-name span { color: var(--secondary); }

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: all var(--transition);
  font-size: 0.9rem;
}

.social-link:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.footer-col h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-link:hover { color: var(--primary); }
.footer-link i { font-size: 0.75rem; }

/* SEBI Disclaimer */
.footer-disclaimer {
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 0.78rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.45);
  border: 1px solid rgba(255,255,255,0.08);
  margin-top: 32px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-link {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}

.footer-bottom-link:hover { color: var(--primary); }

.footer-copy {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

/* ──────────────────────────────────────────── */
/*  BREADCRUMB                                  */
/* ──────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 16px;
}

.breadcrumb a { color: var(--primary); }
.breadcrumb i { font-size: 0.6rem; }

/* ──────────────────────────────────────────── */
/*  HIGHLIGHT CARD                              */
/* ──────────────────────────────────────────── */
.highlight-card {
  background: var(--highlight-light);
  border: 1px solid rgba(240,180,41,0.3);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.highlight-card h4 { color: #92600a; margin-bottom: 8px; }
.highlight-card p { color: #78500a; font-size: 0.9rem; line-height: 1.65; }

/* ──────────────────────────────────────────── */
/*  SCROLL TO TOP                               */
/* ──────────────────────────────────────────── */
.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
  box-shadow: var(--shadow-md);
  border: none;
  z-index: 999;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* ──────────────────────────────────────────── */
/*  RESPONSIVE                                  */
/* ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; }
  .steps-grid::before { display: none; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .app-inner { grid-template-columns: 1fr; }
  .app-visual { display: none; }
  .download-hero-inner { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .app-features-grid { grid-template-columns: repeat(2, 1fr); }
  .mission-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .navbar-nav, .navbar-actions { display: none; }
  .hamburger { display: flex; }
  .features-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-stats { gap: 20px; }
  .reviews-grid { grid-template-columns: 1fr; }
  .app-features-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 24px 20px; }
  .timeline::before { display: none; }
  .timeline-item { grid-template-columns: 1fr; }
  .timeline-dot { display: none; }
  .timeline-item .timeline-content { grid-column: 1; text-align: left; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 40px; }
  .section { padding: 56px 0; }
  .app-badges { flex-direction: column; }
}

/* ──────────────────────────────────────────── */
/*  ANIMATIONS                                  */
/* ──────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.animate-fadeup {
  animation: fadeInUp 0.5s ease both;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ──────────────────────────────────────────── */
/*  UTILS                                       */
/* ──────────────────────────────────────────── */
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-40 { margin-bottom: 40px; }
.w-100 { width: 100%; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-highlight { color: var(--highlight); }
.text-muted { color: var(--text-muted); }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fs-sm { font-size: 0.88rem; }

/* ──────────────────────────────────────────── */
/*  BRANDING IMAGE STYLES                       */
/* ──────────────────────────────────────────── */
.navbar-brand .brand-logo-img {
  height: 108px !important;
  width: 200px !important;
  display: block;
  transition: transform var(--transition);
}

.navbar-brand .brand-logo-img:hover {
  transform: scale(1.03);
}

.footer-brand .footer-logo-img {
  height: 42px;
  width: auto;
  display: block;
  margin-bottom: 24px;
  transition: transform var(--transition);
}

.footer-brand .footer-logo-img:hover {
  transform: scale(1.02);
}

/* ──────────────────────────────────────────── */
/*  USER PORTAL / LOGIN STYLES                  */
/* ──────────────────────────────────────────── */
.auth-body {
  background: linear-gradient(135deg, #EBF4FF 0%, #F0F8FF 50%, #FAFFFE 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.auth-page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.auth-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-md);
  animation: fadeInUp 0.6s ease both;
}

.auth-logo {
  text-align: center;
  margin-bottom: 24px;
}

.auth-logo img {
  height: 44px;
  width: auto;
  margin: 0 auto;
  display: block;
  transition: transform var(--transition);
}

.auth-logo img:hover {
  transform: scale(1.04);
}

.auth-header {
  text-align: center;
  margin-bottom: 28px;
}

.auth-header h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

.auth-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-group label i {
  color: var(--primary);
  font-size: 0.85rem;
}

/* Custom styles for auth inputs */
.auth-page .form-control {
  font-family: var(--font);
  font-size: 0.92rem;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-white);
  color: var(--text);
  transition: all var(--transition);
}

.auth-page .form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 139, 235, 0.15);
}

/* Custom alerts for login page */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.alert-danger {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.alert-danger i {
  color: #ef4444;
  margin-top: 3px;
}

.auth-footer {
  text-align: center;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.back-link {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition);
}

.back-link:hover {
  color: var(--primary);
}

