/* scire.dev - Premium Developer Knowledge Platform */
/* Colors: #1a1a2e (deep navy), #4a90d9 (blue), #f5f0e8 (warm white), #e8b84b (gold), #6c757d (gray) */
/* Font: Inter */

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

:root {
  --deep-navy: #1a1a2e;
  --primary-blue: #4a90d9;
  --warm-white: #f5f0e8;
  --accent-gold: #e8b84b;
  --muted-gray: #6c757d;
  --metallic-silver: #b8bfc6;
  --dark-surface: #12121f;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--deep-navy);
  color: var(--warm-white);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ============ SKELETON LOADING ============ */
.skeleton-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--deep-navy);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.skeleton-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.skeleton-content {
  width: 60%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.skeleton-logo-bar {
  width: 120px;
  height: 20px;
  border-radius: 4px;
  background: linear-gradient(90deg, #2a2a3e 25%, #3a3a4e 50%, #2a2a3e 75%);
  background-size: 200% 100%;
  animation: shimmer-gold 1.5s infinite;
}

.skeleton-hero-block {
  width: 100%;
  height: 180px;
  border-radius: 8px;
  background: linear-gradient(90deg, #2a2a3e 25%, rgba(232,184,75,0.1) 50%, #2a2a3e 75%);
  background-size: 200% 100%;
  animation: shimmer-gold 1.5s infinite;
  animation-delay: 0.1s;
}

.skeleton-line {
  height: 16px;
  border-radius: 4px;
  background: linear-gradient(90deg, #2a2a3e 25%, rgba(232,184,75,0.08) 50%, #2a2a3e 75%);
  background-size: 200% 100%;
  animation: shimmer-gold 1.5s infinite;
}

.skeleton-line-wide { width: 90%; animation-delay: 0.2s; }
.skeleton-line-medium { width: 70%; animation-delay: 0.3s; }
.skeleton-line-narrow { width: 50%; animation-delay: 0.4s; }

.skeleton-cards {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}

.skeleton-card {
  flex: 1;
  height: 120px;
  border-radius: 8px;
  background: linear-gradient(90deg, #2a2a3e 25%, rgba(232,184,75,0.06) 50%, #2a2a3e 75%);
  background-size: 200% 100%;
  animation: shimmer-gold 1.5s infinite;
  animation-delay: 0.5s;
}

@keyframes shimmer-gold {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============ NAVIGATION ============ */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: background 0.4s ease, padding 0.4s ease, backdrop-filter 0.4s ease;
}

.main-nav.scrolled {
  background: rgba(26, 26, 46, 0.92);
  backdrop-filter: blur(20px);
  padding: 12px 0;
  border-bottom: 1px solid rgba(232, 184, 75, 0.15);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--warm-white);
}

.logo-dot {
  color: var(--accent-gold);
}

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-link {
  color: var(--muted-gray);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--accent-gold);
}

.nav-cta {
  background: transparent;
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  padding: 10px 24px;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-cta:hover {
  background: var(--accent-gold);
  color: var(--deep-navy);
}

/* ============ HERO SECTION ============ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 30% 50%, rgba(74, 144, 217, 0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 30%, rgba(232, 184, 75, 0.05) 0%, transparent 50%),
              var(--deep-navy);
}

.hero-lens-flare {
  position: absolute;
  top: 15%;
  right: 20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(232, 184, 75, 0.15) 0%, rgba(232, 184, 75, 0.05) 30%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: flare-pulse 4s ease-in-out infinite;
}

.hero-lens-flare-secondary {
  position: absolute;
  bottom: 20%;
  left: 10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(74, 144, 217, 0.12) 0%, rgba(74, 144, 217, 0.03) 40%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: flare-pulse 5s ease-in-out infinite 1s;
}

@keyframes flare-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.7; }
}

.hero-marble-overlay {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 48px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  border: 1px solid rgba(232, 184, 75, 0.3);
  border-radius: 40px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 40px;
  background: rgba(232, 184, 75, 0.05);
}

.badge-diamond {
  font-size: 10px;
}

.hero-title {
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -3px;
  margin-bottom: 28px;
}

.title-line {
  display: block;
}

.title-accent {
  background: linear-gradient(135deg, var(--accent-gold), #f0c95a, var(--primary-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted-gray);
  max-width: 600px;
  margin: 0 auto 40px;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 64px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-gold), #d4a23a);
  color: var(--deep-navy);
  border: none;
  padding: 16px 36px;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::after {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(232, 184, 75, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--warm-white);
  border: 1px solid rgba(245, 240, 232, 0.2);
  padding: 16px 36px;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.btn-large {
  padding: 20px 48px;
  font-size: 15px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 36px;
  font-weight: 800;
  color: var(--warm-white);
  letter-spacing: -1px;
}

.stat-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted-gray);
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--accent-gold), transparent);
  opacity: 0.4;
}

/* ============ SECTIONS COMMON ============ */
.section-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}

.section-header {
  text-align: center;
  margin-bottom: 72px;
}

.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 20px;
  padding: 6px 16px;
  border: 1px solid rgba(232, 184, 75, 0.2);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -2px;
  color: var(--warm-white);
  margin-bottom: 20px;
}

.section-desc {
  font-size: 17px;
  color: var(--muted-gray);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
  font-weight: 300;
}

/* ============ KNOWLEDGE SECTION ============ */
.knowledge-section {
  padding: 140px 0;
  background: var(--dark-surface);
  position: relative;
}

.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.knowledge-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(26, 26, 46, 0.6);
  border: 1px solid rgba(232, 184, 75, 0.08);
  transition: all 0.4s ease;
  cursor: pointer;
}

.knowledge-card:hover {
  border-color: rgba(232, 184, 75, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.knowledge-card-featured {
  grid-column: 1 / -1;
}

.card-marble-texture {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23m)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
}

.card-metallic-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-gold), var(--primary-blue), var(--accent-gold));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.knowledge-card:hover .card-metallic-accent {
  opacity: 1;
}

.card-content {
  position: relative;
  padding: 40px;
}

.card-icon {
  margin-bottom: 20px;
}

.card-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  color: var(--warm-white);
}

.card-desc {
  font-size: 15px;
  color: var(--muted-gray);
  line-height: 1.7;
  margin-bottom: 20px;
  font-weight: 300;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.meta-count {
  font-size: 13px;
  color: var(--muted-gray);
  font-weight: 500;
}

.meta-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-gold);
  padding: 4px 12px;
  border: 1px solid rgba(232, 184, 75, 0.25);
  border-radius: 2px;
}

/* ============ DISCIPLINES SECTION ============ */
.disciplines-section {
  padding: 140px 0;
  background: var(--deep-navy);
}

.disciplines-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.discipline-row {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 28px 32px;
  border-bottom: 1px solid rgba(245, 240, 232, 0.06);
  cursor: pointer;
  transition: all 0.3s ease;
}

.discipline-row:first-child {
  border-top: 1px solid rgba(245, 240, 232, 0.06);
}

.discipline-row:hover {
  background: rgba(232, 184, 75, 0.03);
  padding-left: 40px;
}

.discipline-number {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-gold);
  min-width: 32px;
  letter-spacing: 1px;
}

.discipline-info {
  flex: 1;
}

.discipline-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--warm-white);
  letter-spacing: -0.3px;
  margin-bottom: 4px;
}

.discipline-desc {
  font-size: 14px;
  color: var(--muted-gray);
  font-weight: 300;
}

.discipline-progress {
  width: 120px;
  height: 3px;
  background: rgba(245, 240, 232, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-gold), var(--primary-blue));
  border-radius: 2px;
  width: 0;
  transition: width 1.2s ease;
}

.discipline-refs {
  font-size: 13px;
  color: var(--muted-gray);
  font-weight: 500;
  min-width: 70px;
  text-align: right;
}

.discipline-arrow {
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.3s ease;
}

.discipline-row:hover .discipline-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ============ LIBRARY SECTION ============ */
.library-section {
  padding: 140px 0;
  background: var(--dark-surface);
  position: relative;
  overflow: hidden;
}

.library-marble-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(245, 240, 232, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(232, 184, 75, 0.03) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg width='300' height='300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='marble'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.04' numOctaves='5' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23marble)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
}

.library-showcase {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.showcase-item {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  padding: 48px 40px;
  border-bottom: 1px solid rgba(245, 240, 232, 0.06);
  position: relative;
  transition: all 0.4s ease;
  cursor: pointer;
}

.showcase-item:first-child {
  border-top: 1px solid rgba(245, 240, 232, 0.06);
}

.showcase-item:hover {
  background: rgba(232, 184, 75, 0.02);
}

.showcase-number {
  font-size: 48px;
  font-weight: 300;
  color: var(--accent-gold);
  opacity: 0.4;
  min-width: 60px;
  line-height: 1;
  font-style: italic;
}

.showcase-content {
  flex: 1;
}

.showcase-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--warm-white);
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.showcase-item:hover .showcase-title {
  color: var(--accent-gold);
}

.showcase-author {
  font-size: 13px;
  color: var(--muted-gray);
  font-weight: 500;
  font-style: italic;
  margin-bottom: 16px;
}

.showcase-excerpt {
  font-size: 15px;
  color: var(--muted-gray);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 20px;
}

.showcase-tags {
  display: flex;
  gap: 8px;
}

.tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--primary-blue);
  padding: 4px 12px;
  border: 1px solid rgba(74, 144, 217, 0.2);
  border-radius: 2px;
}

.showcase-metallic-bar {
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent-gold), var(--primary-blue));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.showcase-item:hover .showcase-metallic-bar {
  opacity: 1;
}

/* ============ ABOUT SECTION ============ */
.about-section {
  padding: 160px 0;
  background: var(--deep-navy);
  position: relative;
  overflow: hidden;
}

.about-lens-flare {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(232, 184, 75, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.about-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.about-title {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -2px;
  color: var(--warm-white);
  margin-bottom: 32px;
}

.about-desc {
  font-size: 17px;
  color: var(--muted-gray);
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 24px;
}

.about-desc em {
  color: var(--accent-gold);
  font-style: italic;
}

.about-cta {
  margin-top: 48px;
}

.cta-note {
  font-size: 13px;
  color: var(--muted-gray);
  margin-top: 16px;
  font-weight: 400;
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--dark-surface);
  border-top: 1px solid rgba(245, 240, 232, 0.06);
  padding: 48px 0;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--warm-white);
}

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

.footer-link {
  color: var(--muted-gray);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--accent-gold);
}

.footer-divider {
  height: 1px;
  background: rgba(245, 240, 232, 0.06);
  margin-bottom: 24px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: 13px;
  color: var(--muted-gray);
  font-weight: 400;
}

.footer-latin {
  font-size: 13px;
  color: var(--accent-gold);
  font-style: italic;
  font-weight: 300;
  opacity: 0.6;
}

/* ============ ANIMATIONS (scroll reveal) ============ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-container { padding: 0 24px; }
  .section-container { padding: 0 24px; }
  .hero-content { padding: 0 24px; }

  .knowledge-grid {
    grid-template-columns: 1fr;
  }

  .knowledge-card-featured {
    grid-column: auto;
  }

  .discipline-row {
    flex-wrap: wrap;
    gap: 16px;
    padding: 20px 16px;
  }

  .discipline-progress { width: 100%; order: 10; }
  .discipline-arrow { display: none; }

  .showcase-item {
    flex-direction: column;
    gap: 16px;
    padding: 32px 24px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 24px;
  }

  .stat-divider {
    width: 40px;
    height: 1px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .footer-top {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}
