/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1a1b1f;
  background: #f7fafc;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: #42affa; text-decoration: none; transition: color 0.2s; }
a:hover { color: #3182ce; }

/* === Navigation === */
.nav {
  background: #1a1b1f;
  padding: 16px 40px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-brand {
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.5px;
}
.nav-brand:hover { color: #42affa; }
.nav-divider { color: #4a5568; font-weight: 300; }
.nav-page { color: #a0aec0; font-size: 14px; font-weight: 400; }

/* === Hero === */
.hero {
  background: linear-gradient(135deg, #1a1b1f 0%, #2d3748 100%);
  color: #fff;
  padding: 80px 40px 60px;
  text-align: center;
}
.hero-content { max-width: 800px; margin: 0 auto; }
.hero-badge {
  display: inline-block;
  background: rgba(66, 175, 250, 0.15);
  color: #42affa;
  padding: 6px 20px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-title {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 16px;
  line-height: 1.15;
}
.hero-subtitle {
  font-size: 18px;
  font-weight: 300;
  opacity: 0.85;
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.7;
}
.hero-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
}
.stat {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
}
.stat-icon { display: flex; align-items: center; color: #42affa; }
.stat-label { color: #e2e8f0; }

/* === Tabs === */
.tabs-wrapper {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 52px;
  z-index: 90;
}
.tabs {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: center;
  gap: 4px;
  overflow-x: auto;
}
.tab {
  padding: 16px 20px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #718096;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}
.tab:hover { color: #1a1b1f; }
.tab.active {
  color: #1a1b1f;
  border-bottom-color: #42affa;
  font-weight: 600;
}

/* === Content === */
.content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 40px 80px;
}
.tab-content { display: none; }
.tab-content.active { display: block; }

.section-intro {
  max-width: 720px;
  margin-bottom: 48px;
}
.section-intro h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #1a1b1f;
}
.section-intro p {
  font-size: 17px;
  line-height: 1.8;
  color: #4a5568;
}

/* === Cards Grid (Overview) === */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 64px;
}
.card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 32px 28px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.card-icon { margin-bottom: 16px; }
.card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}
.card p {
  font-size: 14px;
  line-height: 1.7;
  color: #4a5568;
  margin-bottom: 16px;
}
.card-link {
  background: none;
  border: none;
  color: #42affa;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}
.card-link:hover { color: #3182ce; }

/* === Indicators (Overview) === */
.indicators { margin-top: 16px; }
.indicators h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
}
.indicator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}
.indicator {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 24px;
}
.indicator-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 10px;
}
.indicator-badge.green { background: #c6f6d5; color: #22543d; }
.indicator-badge.blue { background: #bee3f8; color: #2a4365; }
.indicator-badge.yellow { background: #fefcbf; color: #744210; }
.indicator h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}
.indicator p {
  font-size: 13px;
  color: #718096;
  line-height: 1.6;
}

/* === Detail Sections (Sub-tabs) === */
.detail-section {
  margin-bottom: 48px;
}
.detail-section h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e2e8f0;
}
.detail-section p {
  font-size: 15px;
  line-height: 1.8;
  color: #4a5568;
  margin-bottom: 16px;
}

/* === Source List === */
.source-list { display: flex; flex-direction: column; gap: 12px; }
.source-item {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.source-item strong { font-size: 15px; color: #1a1b1f; }
.source-item span { font-size: 13px; color: #718096; }

/* === Pipeline Steps === */
.pipeline { display: flex; flex-direction: column; gap: 0; }
.pipeline-step {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-left: 3px solid #42affa;
  margin-left: 16px;
  padding-left: 28px;
  position: relative;
}
.pipeline-step:last-child { border-left-color: transparent; }
.step-number {
  position: absolute;
  left: -16px;
  width: 32px;
  height: 32px;
  background: #42affa;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}
.step-content h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}
.step-content p {
  font-size: 14px;
  line-height: 1.7;
  color: #4a5568;
}

/* === Check List === */
.check-list {
  list-style: none;
  padding: 0;
}
.check-list li {
  padding: 10px 0 10px 32px;
  position: relative;
  font-size: 15px;
  color: #4a5568;
  border-bottom: 1px solid #f0f0f0;
}
.check-list li:last-child { border-bottom: none; }
.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 18px;
  height: 18px;
  background: #c6f6d5;
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2322543d' stroke-width='3' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
}

/* === Security Grid === */
.security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.security-item {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 24px;
}
.security-item h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}
.security-item p {
  font-size: 14px;
  color: #718096;
  line-height: 1.6;
  margin-bottom: 0;
}

/* === Tech Badges === */
.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tech-badge {
  background: #edf2f7;
  color: #2d3748;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
}

/* === Repo Grid === */
.repo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}
.repo-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px 24px;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s;
}
.repo-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-1px);
  color: inherit;
}
.repo-icon { color: #718096; flex-shrink: 0; }
.repo-info h4 { font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.repo-info p { font-size: 13px; color: #718096; margin: 0; }

/* === Compliance === */
.compliance-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.compliance-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.compliance-status { flex-shrink: 0; }
.compliance-info { flex: 1; }
.compliance-info h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1a1b1f;
}
.compliance-info p {
  font-size: 14px;
  line-height: 1.7;
  color: #4a5568;
  margin-bottom: 8px;
}
.compliance-info p:last-child { margin-bottom: 0; }

/* === Legal Documents === */
.legal-document {
  max-width: 800px;
}
.legal-document h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1a1b1f;
}
.legal-meta {
  font-size: 14px;
  color: #718096;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 2px solid #e2e8f0;
}
.legal-document h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1a1b1f;
  margin-top: 32px;
  margin-bottom: 12px;
}
.legal-document h4 {
  font-size: 15px;
  font-weight: 600;
  color: #2d3748;
  margin-top: 20px;
  margin-bottom: 8px;
}
.legal-document p {
  font-size: 15px;
  line-height: 1.8;
  color: #4a5568;
  margin-bottom: 12px;
}
.legal-document ul {
  list-style: none;
  padding: 0;
  margin-bottom: 16px;
}
.legal-document ul li {
  padding: 6px 0 6px 20px;
  position: relative;
  font-size: 15px;
  line-height: 1.7;
  color: #4a5568;
}
.legal-document ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 6px;
  height: 6px;
  background: #42affa;
  border-radius: 50%;
}
.legal-document ul li strong {
  color: #2d3748;
}
.legal-note {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
  font-style: italic;
  font-size: 14px;
  color: #a0aec0;
}
.inline-tab-link {
  background: none;
  border: none;
  color: #42affa;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}
.inline-tab-link:hover { color: #3182ce; }

/* === Footer === */
.footer {
  background: #1a1b1f;
  color: #fff;
  padding: 32px 40px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.footer-brand a { color: #fff; font-weight: 600; }
.footer-brand a:hover { color: #42affa; }
.footer-brand span { color: #718096; }
.footer-sep { color: #4a5568; }
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  color: #a0aec0;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }

/* === Responsive === */
@media screen and (max-width: 768px) {
  .hero { padding: 60px 24px 40px; }
  .hero-title { font-size: 32px; }
  .hero-subtitle { font-size: 16px; }
  .hero-stats { flex-direction: column; align-items: center; }
  .nav { padding: 14px 24px; }
  .tabs { padding: 0 24px; }
  .content { padding: 32px 24px 60px; }
  .section-intro h2 { font-size: 26px; }
  .cards-grid { grid-template-columns: 1fr; }
  .indicator-grid { grid-template-columns: 1fr; }
  .security-grid { grid-template-columns: 1fr; }
  .repo-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}
