/* ===== AntiSemVer - Corporate SaaS Styling ===== */

/* -- Hero Section -- */
.hero {
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(135deg, #0d1117 0%, #161b22 50%, #0d1117 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 50%, rgba(88, 166, 255, 0.06) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 20%, rgba(163, 113, 247, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #58a6ff 0%, #a371f7 50%, #f778ba 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 1;
}

.hero .tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: #8b949e;
  font-weight: 400;
  max-width: 600px;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.hero .cta {
  position: relative;
  z-index: 1;
}

/* -- Sticky Navigation -- */
.sticky-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(48, 54, 61, 0.5);
  padding: 0.75rem 0;
}

.sticky-nav .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sticky-nav .nav-logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: #58a6ff;
  text-decoration: none;
  white-space: nowrap;
}

.sticky-nav .nav-links {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.sticky-nav .nav-links a {
  color: #8b949e;
  text-decoration: none;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}

.sticky-nav .nav-links a:hover,
.sticky-nav .nav-links a.active {
  color: #e6edf3;
  background: rgba(88, 166, 255, 0.12);
}

/* -- Section Spacing -- */
section {
  padding: 5rem 0;
}

section:nth-child(even) {
  background: rgba(22, 27, 34, 0.3);
}

.section-header {
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #e6edf3;
}

.section-header p {
  color: #8b949e;
  font-size: 1.1rem;
}

/* -- R.I.C Cards -- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.ric-card {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 12px;
  padding: 2rem;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.ric-card:hover {
  transform: translateY(-4px);
  border-color: #58a6ff;
  box-shadow: 0 8px 24px rgba(88, 166, 255, 0.1);
}

.ric-card .card-letter {
  font-size: 3rem;
  font-weight: 800;
  color: #58a6ff;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.ric-card .card-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: #e6edf3;
  margin-bottom: 0.75rem;
}

.ric-card .card-desc {
  color: #8b949e;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* -- Code Blocks -- */
pre {
  background: #0d1117 !important;
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 1.25rem !important;
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.6;
}

pre code {
  background: transparent !important;
  padding: 0 !important;
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
}

/* Override Pico's code styling */
:root:not([data-theme="light"]) code {
  background: rgba(88, 166, 255, 0.1);
  color: #58a6ff;
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
}

/* -- Chaos Levels Spectrum -- */
.chaos-spectrum {
  display: flex;
  gap: 0.5rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.chaos-level {
  flex: 1;
  min-width: 130px;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid #30363d;
}

.chaos-level:nth-child(1) { background: rgba(63, 185, 80, 0.1); border-color: rgba(63, 185, 80, 0.3); color: #3fb950; }
.chaos-level:nth-child(2) { background: rgba(210, 153, 34, 0.1); border-color: rgba(210, 153, 34, 0.3); color: #d29922; }
.chaos-level:nth-child(3) { background: rgba(219, 109, 40, 0.1); border-color: rgba(219, 109, 40, 0.3); color: #db6d28; }
.chaos-level:nth-child(4) { background: rgba(248, 81, 73, 0.1); border-color: rgba(248, 81, 73, 0.3); color: #f85149; }
.chaos-level:nth-child(5) { background: rgba(163, 113, 247, 0.1); border-color: rgba(163, 113, 247, 0.3); color: #a371f7; }

/* -- Version Generator -- */
.generator-widget {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}

.generator-widget .version-display {
  font-size: 3.5rem;
  font-weight: 800;
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  color: #58a6ff;
  margin: 1.5rem 0;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

.generator-widget .version-display.animating {
  transform: scale(1.1);
  color: #a371f7;
}

.generator-widget .component-labels {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 0.75rem 0 1.5rem;
  flex-wrap: wrap;
}

.generator-widget .component-labels span {
  font-size: 0.85rem;
  color: #8b949e;
}

.generator-widget .component-labels strong {
  display: block;
  color: #e6edf3;
  font-size: 1rem;
}

.generator-widget .interpretation {
  color: #8b949e;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  min-height: 1.5em;
}

/* -- Footer -- */
.site-footer {
  border-top: 1px solid #30363d;
  padding: 2.5rem 0;
  text-align: center;
  color: #8b949e;
  font-size: 0.9rem;
}

.site-footer .footer-version {
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 1rem;
  color: #58a6ff;
  margin-bottom: 0.5rem;
}

.site-footer .footer-credit {
  margin-top: 0.5rem;
}

.site-footer .footer-credit a {
  color: #58a6ff;
  text-decoration: none;
  font-weight: 500;
}

.site-footer .footer-credit a:hover {
  text-decoration: underline;
}

/* -- Comparison Table -- */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

.comparison-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  background: #161b22;
  border-bottom: 2px solid #30363d;
  font-weight: 600;
  color: #e6edf3;
}

.comparison-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #21262d;
  color: #c9d1d9;
}

.comparison-table tr:hover td {
  background: rgba(88, 166, 255, 0.03);
}

/* -- Scroll Animations -- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* -- Blockquote -- */
blockquote {
  border-left: 3px solid #58a6ff;
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: rgba(88, 166, 255, 0.05);
  border-radius: 0 8px 8px 0;
}

blockquote p {
  color: #c9d1d9;
  font-style: italic;
}

/* -- Highlight.js overrides for dark theme -- */
.hljs {
  background: #0d1117 !important;
  color: #c9d1d9 !important;
}

/* -- Responsive nav -- */
@media (max-width: 768px) {
  .sticky-nav .nav-links {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.25rem;
  }

  .sticky-nav .nav-links a {
    white-space: nowrap;
    font-size: 0.8rem;
    padding: 0.3rem 0.5rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }
}
