/* === Selektum Labs — Lab Aesthetic === */

:root {
  --bg: #0a0a0b;
  --bg-surface: #111113;
  --bg-hover: #1a1a1d;
  --text: #e8e8ec;
  --text-muted: #8b8b96;
  --accent: #4ade80;
  --accent-dim: #4ade8020;
  --border: #222225;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* === Layout === */

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 120px 0;
  border-bottom: 1px solid var(--border);
}

section:last-of-type {
  border-bottom: none;
}

/* === Typography === */

h1, h2, h3 {
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  margin-bottom: 20px;
}

p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 1.05rem;
}

p:last-child {
  margin-bottom: 0;
}

.accent {
  color: var(--accent);
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

/* === Navigation === */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, backdrop-filter 0.3s;
}

nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.05em;
}

.logo span {
  color: var(--text-muted);
  font-weight: 400;
}

nav a.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-family: var(--font-mono);
  transition: color 0.2s;
}

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

/* === Hero === */

.hero {
  padding: 200px 0 120px;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero h1 {
  color: var(--text);
}

.hero .tagline {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.hero .subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.8;
}

/* === Stats === */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 48px 0;
}

.stat {
  text-align: left;
}

.stat .number {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.stat .label {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* === Problem / Approach blocks === */

.highlight-block {
  border-left: 2px solid var(--accent);
  padding-left: 24px;
  margin: 32px 0;
}

.highlight-block p {
  color: var(--text);
  font-size: 1.1rem;
}

/* === Lab section === */

.lab-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 24px;
  padding: 6px 14px;
  background: var(--accent-dim);
  border-radius: 4px;
}

.lab-status::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* === CTA === */

.cta-section {
  text-align: center;
  padding: 100px 0;
}

.cta-section h2 {
  margin-bottom: 16px;
}

.cta-link {
  display: inline-block;
  margin-top: 32px;
  padding: 14px 32px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--bg);
  background: var(--accent);
  text-decoration: none;
  border-radius: 4px;
  transition: opacity 0.2s, transform 0.2s;
}

.cta-link:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* === Footer === */

footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

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

footer p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

footer a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.2s;
}

footer a:hover {
  color: var(--accent);
}

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

/* === 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);
}

/* === Blog list === */

.post-list {
  list-style: none;
}

.post-list li {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.post-list li:last-child {
  border-bottom: none;
}

.post-list a {
  color: var(--text);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  transition: color 0.2s;
}

.post-list a:hover {
  color: var(--accent);
}

.post-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* === Responsive === */

@media (max-width: 640px) {
  section {
    padding: 80px 0;
  }

  .hero {
    padding: 140px 0 80px;
    min-height: auto;
  }

  .stats {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  footer .container {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}
