/* ==========================================================================
   vStyles.css — Master Design System & Component Library
   Rapido InfraTel LLP & IPO Kart Web Platform
   Wp2Fh Phase 3 CSS Standardization
   ========================================================================== */

:root {
  /* Brand Palettes — Aligned with Official IPO Kart Logo & App */
  --bg-dark: #0C1015;
  --bg-card: rgba(18, 56, 91, 0.25);
  --bg-card-hover: rgba(18, 56, 91, 0.45);
  --bg-surface: #0E1622;
  --bg-surface-elevated: #162232;

  /* IPO Kart Core Accents */
  --primary-navy: #12385B;
  --navy-light: #1E4E7A;
  --candlestick-green: #269E5E;
  --bullish-green: #34C759;
  --candlestick-red: #E24B36;
  --slate-blue: #4A8FD8;

  /* Semantic Status */
  --emerald-500: #269E5E;
  --emerald-400: #34C759;
  --emerald-glow: rgba(38, 158, 94, 0.3);

  /* Text & Borders */
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --border-subtle: rgba(74, 143, 216, 0.15);
  --border-active: rgba(52, 199, 89, 0.4);

  /* Glassmorphism & Shadow */
  --glass-bg: rgba(14, 22, 34, 0.85);
  --glass-border: 1px solid rgba(74, 143, 216, 0.18);
  --glass-shadow: 0 20px 45px -15px rgba(0, 0, 0, 0.7);
  --glow-green: 0 0 35px rgba(38, 158, 94, 0.25);
  --glow-blue: 0 0 35px rgba(74, 143, 216, 0.22);
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  overflow-x: hidden;
}

img, svg, picture {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Utility Containers */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.container-narrow {
  max-width: 1000px;
}

/* Top Banner Header Notice */
.top-bar {
  background: var(--bg-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.75rem;
  color: var(--text-secondary);
  padding: 0.45rem 0;
}

.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.statutory-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-sm);
  background: rgba(52, 199, 89, 0.12);
  border: 1px solid rgba(52, 199, 89, 0.25);
  color: var(--bullish-green);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.top-bar-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.top-bar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-secondary);
}

.top-bar-link:hover {
  color: var(--bullish-green);
}

/* Master Header Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(3, 7, 18, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: padding var(--transition-normal);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(38, 158, 94, 0.35));
}

.brand-meta {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  line-height: 1;
}

.brand-title .highlight {
  color: var(--bullish-green);
}

.brand-llp-tag {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.1rem 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

.brand-tagline {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-top: 0.25rem;
}

/* Navigation Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  color: var(--bullish-green);
  background: rgba(38, 158, 94, 0.1);
  font-weight: 600;
}

.nav-cta {
  background: linear-gradient(135deg, var(--candlestick-green), #c2410c);
  color: #ffffff !important;
  font-weight: 600;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 15px rgba(38, 158, 94, 0.35);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(38, 158, 94, 0.5);
}

/* Mega / Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 320px;
  background: rgba(11, 17, 32, 0.97);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 0.75rem;
  box-shadow: var(--glass-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.dropdown-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(38, 158, 94, 0.15);
  color: var(--bullish-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dropdown-content .title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
}

.dropdown-content .desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
  margin-top: 0.15rem;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  color: #ffffff;
  cursor: pointer;
}

/* Typography & Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
}

h1 {
  font-size: 2.75rem;
  letter-spacing: -0.03em;
}

h2 {
  font-size: 2.1rem;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.45rem;
  letter-spacing: -0.01em;
}

.text-gradient {
  background: linear-gradient(135deg, #ffffff 40%, var(--bullish-green) 80%, var(--bullish-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--bullish-green);
  margin-bottom: 0.75rem;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem auto;
}

.section-lead {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-top: 1rem;
  line-height: 1.7;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 4.5rem 0 5rem 0;
  overflow: hidden;
}

.hero-backdrop {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(38, 158, 94, 0.15) 0%, rgba(3, 7, 18, 0) 70%);
  z-index: 0;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.pill-badge.highlight {
  background: rgba(38, 158, 94, 0.12);
  border-color: rgba(38, 158, 94, 0.35);
  color: var(--bullish-green);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-500);
  box-shadow: 0 0 10px var(--emerald-500);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-title {
  font-size: 3.25rem;
  line-height: 1.12;
  margin-bottom: 1.25rem;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2.25rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.65rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition-normal);
}

.btn-primary {
  background: linear-gradient(135deg, var(--candlestick-green), #c2410c);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(38, 158, 94, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(38, 158, 94, 0.55);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-item .num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
}

.stat-item .label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.hero-visual-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--glass-shadow), var(--glow-green);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-visual-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  transform: scale(1.01);
  transition: transform var(--transition-slow);
}

.hero-visual-card:hover .hero-visual-img {
  transform: scale(1.03);
}

/* Glassmorphic Cards & Grid */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.card-glass {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--glass-shadow);
  transition: all var(--transition-normal);
}

.card-glass:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-active);
  transform: translateY(-4px);
}

.feature-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(38, 158, 94, 0.12);
  border: 1px solid rgba(38, 158, 94, 0.25);
  color: var(--bullish-green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.feature-title {
  font-size: 1.25rem;
  margin-bottom: 0.65rem;
}

.feature-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Live Market Ticker & Feed Preview */
.market-ticker-section {
  padding: 3rem 0;
  background: var(--bg-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ticker-tabs {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.ticker-tab-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.ticker-tab-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.ticker-tab-btn.active {
  background: var(--candlestick-green);
  border-color: var(--candlestick-green);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(38, 158, 94, 0.4);
}

.ipo-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--bg-surface);
}

.ipo-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.ipo-table th {
  background: rgba(15, 23, 42, 0.9);
  padding: 0.95rem 1.25rem;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.ipo-table td {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.ipo-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.gmp-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.82rem;
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-400);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Device Proofs Screenshot Gallery */
.gallery-section {
  padding: 5rem 0;
}

.screenshot-card {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.screenshot-card:hover {
  transform: translateY(-5px);
  border-color: rgba(38, 158, 94, 0.4);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.screenshot-thumb-wrapper {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  background: var(--bg-dark);
  overflow: hidden;
  position: relative;
}

.screenshot-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform var(--transition-slow);
}

.screenshot-card:hover .screenshot-thumb {
  transform: scale(1.05);
}

.screenshot-info {
  padding: 1.25rem;
}

.screenshot-title {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
}

.screenshot-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

/* Director's Critique Section */
.critique-section {
  padding: 5rem 0;
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-surface) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.critique-box {
  background: rgba(15, 23, 42, 0.85);
  border-left: 4px solid var(--candlestick-green);
  border-radius: var(--radius-md);
  padding: 2rem;
  margin-bottom: 2rem;
}

.critique-quote {
  font-size: 1.1rem;
  font-style: italic;
  color: #f1f5f9;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.critique-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--candlestick-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #ffffff;
}

.author-details .name {
  font-weight: 700;
  font-size: 0.95rem;
}

.author-details .role {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Statutory Footer */
.site-footer {
  background: #010409;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4.5rem 0 2.5rem 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-col-title {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-link {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--bullish-green);
}

.statutory-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  font-size: 0.8rem;
  line-height: 1.6;
}

.statutory-card strong {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }
  
  .nav-menu {
    display: none;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero-stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Liquid Background Mesh */
.liquid-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: -1;
  background: #0C1015;
}

.liquid-blob-1, .liquid-blob-2, .liquid-blob-3 {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.35;
  will-change: transform;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  animation-iteration-count: infinite;
}

.liquid-blob-1 {
  top: -15%;
  left: -10%;
  width: 60vw;
  height: 60vw;
  background: #12385B;
  animation: liquidMorph1 18s alternate;
}

.liquid-blob-2 {
  bottom: -20%;
  right: -15%;
  width: 55vw;
  height: 55vw;
  background: #0C281E;
  animation: liquidMorph2 22s alternate;
}

.liquid-blob-3 {
  top: 40%;
  right: 25%;
  width: 40vw;
  height: 40vw;
  background: #18334D;
  animation: liquidMorph3 16s alternate;
}

@keyframes liquidMorph1 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(8vw, 12vh, 0) scale(1.15); }
}

@keyframes liquidMorph2 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-10vw, -10vh, 0) scale(1.2); }
}

@keyframes liquidMorph3 {
  0% { transform: translate3d(0, 0, 0) scale(0.9); }
  100% { transform: translate3d(-6vw, 8vh, 0) scale(1.1); }
}
