:root {
  --bg: #070d1a;
  --bg-elevated: #0b1220;
  --bg-card: #0f172a;
  --bg-card-alt: #111c33;
  --border: rgba(148, 163, 184, 0.16);
  --border-bright: rgba(56, 189, 248, 0.34);
  --text: #f8fafc;
  --text-dim: #cbd5e1;
  --text-muted: #94a3b8;
  --cyan: #38bdf8;
  --cyan-dim: rgba(56, 189, 248, 0.12);
  --emerald: #10b981;
  --emerald-dim: rgba(16, 185, 129, 0.14);
  --amber: #f59e0b;
  --amber-dim: rgba(245, 158, 11, 0.14);
  --violet: #a78bfa;
  --violet-dim: rgba(167, 139, 250, 0.14);
  --radius: 14px;
  --max-width: 1160px;
}

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

html {
  background-color: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: radial-gradient(circle at 15% 0%, rgba(56, 189, 248, 0.08), transparent 42%),
              radial-gradient(circle at 85% 10%, rgba(167, 139, 250, 0.07), transparent 40%),
              var(--bg);
  color: var(--text);
  overflow-x: hidden;
  font-variant-numeric: tabular-nums;
}

a {
  color: var(--cyan);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

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

/* Sticky Top Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 13, 26, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
  flex-wrap: wrap;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand-link:hover {
  text-decoration: none;
}

.brand-logo {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: block;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.top-nav a {
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.top-nav a:hover {
  background: rgba(148, 163, 184, 0.1);
  color: var(--text);
  text-decoration: none;
}

.top-nav a[aria-current="page"] {
  background: var(--cyan-dim);
  color: var(--cyan);
  border: 1px solid var(--border-bright);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 9px;
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid rgba(56, 189, 248, 0.4);
  white-space: nowrap;
}

.header-cta:hover {
  filter: brightness(1.1);
  text-decoration: none;
}

/* Breadcrumb */
.breadcrumb {
  padding: 18px 0 8px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.breadcrumb li[aria-current="page"] {
  color: var(--text-dim);
  font-weight: 600;
}

/* Hero Section */
.hero {
  padding: 20px 0 36px;
}

.hero-card {
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.96), rgba(11, 18, 32, 0.96));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 36px 32px;
  box-shadow: 0 20px 50px rgba(2, 6, 23, 0.55);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--cyan-dim);
  color: var(--cyan);
  border: 1px solid var(--border-bright);
  margin-bottom: 16px;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text);
}

.hero-lead {
  margin: 0 0 22px;
  max-width: 780px;
  font-size: 16.5px;
  color: var(--text-dim);
}

.spec-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.spec-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dim);
}

.spec-pill strong {
  color: var(--emerald);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  color: #ffffff;
  font-weight: 800;
  font-size: 14.5px;
  border: 1px solid rgba(56, 189, 248, 0.45);
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.25);
}

.btn-primary:hover {
  filter: brightness(1.08);
  text-decoration: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 10px;
  background: var(--bg-card-alt);
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--cyan);
  text-decoration: none;
}

/* Sections */
.section {
  padding: 26px 0;
}

.section-header {
  margin-bottom: 20px;
}

.section-header h2 {
  margin: 0 0 8px;
  font-size: clamp(22px, 2.8vw, 28px);
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--text);
}

.section-header p {
  margin: 0;
  color: var(--text-dim);
  font-size: 15px;
  max-width: 780px;
}

/* Methodology Grid */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-tag {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--violet-dim);
  color: var(--violet);
  border: 1px solid rgba(167, 139, 250, 0.28);
}

.card h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
}

.card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-dim);
}

.card-formula {
  margin-top: auto;
  padding: 9px 11px;
  border-radius: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  color: var(--cyan);
  word-break: break-word;
}

/* Data Table */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
  text-align: left;
  font-size: 13.5px;
}

.data-table th {
  background: var(--bg-elevated);
  color: var(--text);
  font-weight: 700;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  color: var(--text-dim);
  vertical-align: top;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.table-note {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--text-muted);
}

/* Related Screeners */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.related-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.related-card:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
  text-decoration: none;
}

.related-card h3 {
  margin: 0;
  font-size: 15.5px;
  font-weight: 800;
  color: var(--cyan);
}

.related-card p {
  margin: 0;
  font-size: 13px;
  color: var(--text-dim);
}

/* FAQ Accordion (zero JS) */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 18px;
  font-weight: 700;
  color: var(--cyan);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-answer {
  padding: 0 20px 18px;
  font-size: 14px;
  color: var(--text-dim);
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  padding-top: 12px;
}

/* SEBI Disclaimer Banner */
.sebi-banner {
  margin: 28px 0 12px;
  padding: 20px 24px;
  border-radius: var(--radius);
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.sebi-banner h2 {
  margin: 0 0 8px;
  font-size: 15.5px;
  font-weight: 800;
  color: var(--amber);
}

.sebi-banner p {
  margin: 0;
  font-size: 13px;
  color: var(--text-dim);
}

/* Footer */
.site-footer {
  margin-top: 32px;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 32px 0 40px;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 14px;
}

.footer-group-label {
  color: var(--text-dim);
  font-weight: 700;
  margin-right: 4px;
}

.footer-legal {
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .container {
    padding: 0 14px;
  }

  .header-inner {
    padding: 10px 14px;
    gap: 10px;
  }

  .brand-link {
    font-size: 14px;
    gap: 8px;
  }

  .header-cta {
    padding: 7px 11px;
    font-size: 12px;
  }

  .top-nav {
    order: 3;
    width: 100%;
    padding-top: 8px;
    padding-bottom: 2px;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .top-nav::-webkit-scrollbar {
    display: none;
  }

  .top-nav a {
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 12px;
    padding: 5px 10px;
  }

  .hero {
    padding: 14px 0 24px;
  }

  .hero-card {
    padding: 20px 16px;
    border-radius: 14px;
  }

  .hero h1 {
    font-size: clamp(23px, 6.5vw, 32px);
  }

  .hero-lead {
    font-size: 14.5px;
    margin-bottom: 16px;
  }

  .spec-pills {
    gap: 8px;
    margin-bottom: 18px;
  }

  .spec-pill {
    font-size: 11.5px;
    padding: 5px 10px;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }

  .grid-cards,
  .related-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .card {
    padding: 16px;
  }

  .data-table th:first-child,
  .data-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background: var(--bg-card);
    box-shadow: 2px 0 6px rgba(0, 0, 0, 0.35);
  }

  .data-table th:first-child {
    background: var(--bg-elevated);
  }

  .faq-item summary {
    padding: 14px 16px;
    font-size: 14px;
  }

  .faq-answer {
    padding: 12px 16px 14px;
    font-size: 13.5px;
  }

  .sebi-banner {
    padding: 16px;
  }
}
