:root {
  --bg: oklch(0.08 0.012 240);
  --bg2: oklch(0.11 0.014 240);
  --bg3: oklch(0.14 0.016 235);
  --surface: oklch(0.13 0.015 238);
  --border: oklch(0.22 0.018 238);
  --green: #7FE234;
  --cyan: #18A8F5;
  --green-dim: rgba(127, 226, 52, 0.12);
  --cyan-dim: rgba(24, 168, 245, 0.12);
  --text: oklch(0.93 0.01 240);
  --text-mid: oklch(0.65 0.018 240);
  --text-dim: oklch(0.42 0.015 240);
}

/* ── LIGHT THEME ── */
[data-theme="light"] {
  --bg: #F5F2EA;
  --bg2: #EDE9DC;
  --bg3: #E5DFCE;
  --surface: #FDFBF7;
  --border: rgba(35, 28, 14, 0.14);
  --green: #4E8F0E;
  --cyan: #0A79BD;
  --green-dim: rgba(78, 143, 14, 0.10);
  --cyan-dim: rgba(10, 121, 189, 0.10);
  --text: #1C1A14;
  --text-mid: #5A5446;
  --text-dim: #9A8E78;
}

/* Header in light mode */
[data-theme="light"] .site-header {
  background: linear-gradient(to bottom, rgba(245, 242, 234, 0.95), rgba(245, 242, 234, 0.82));
  border-bottom-color: rgba(35, 28, 14, 0.12);
}
[data-theme="light"] .header-inner.scrolled {
  background: rgba(245, 242, 234, 0.98);
}
[data-theme="light"] .nav-cta {
  border-color: rgba(78, 143, 14, 0.35);
  background: rgba(78, 143, 14, 0.06);
}
[data-theme="light"] .nav-cta:hover {
  border-color: rgba(78, 143, 14, 0.55);
  background: rgba(78, 143, 14, 0.11);
  color: var(--green);
}

/* Buttons */
[data-theme="light"] .search-btn,
[data-theme="light"] .btn-primary { color: #ffffff; }
[data-theme="light"] .search-box:focus-within {
  box-shadow: 0 0 0 3px var(--green-dim), 0 16px 48px rgba(0, 0, 0, 0.07);
}

/* Feature cards */
[data-theme="light"] .feat-card {
  background: linear-gradient(165deg, #FDFBF7, #F0EDE3);
  border-color: rgba(35, 28, 14, 0.13);
}
[data-theme="light"] .feat-card:hover {
  background: linear-gradient(165deg, #FFFFFF, #F5F2EA);
  border-color: rgba(78, 143, 14, 0.38);
}

/* Pricing cards */
[data-theme="light"] .price-card:hover {
  background: rgba(78, 143, 14, 0.04);
}
[data-theme="light"] .price-card.featured {
  border-color: rgba(78, 143, 14, 0.38);
  box-shadow: 0 0 0 1px rgba(78, 143, 14, 0.12) inset, 0 14px 36px rgba(0, 0, 0, 0.07);
}
[data-theme="light"] .tier-badge {
  background: rgba(78, 143, 14, 0.08);
  border-color: rgba(78, 143, 14, 0.28);
}
[data-theme="light"] .launch-chip {
  border-color: rgba(78, 143, 14, 0.28);
}

/* Terminal mockup */
[data-theme="light"] .demo-terminal {
  background: #EDEAE1;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.07), 0 0 0 1px var(--border);
}

/* Orbs — more subtle on light bg */
[data-theme="light"] .orb-1 { background: rgba(78, 143, 14, 0.08); }
[data-theme="light"] .orb-2 { background: rgba(10, 121, 189, 0.08); }
[data-theme="light"] .orb-3 { background: rgba(78, 143, 14, 0.05); }

/* Noise — reduce on light bg */
[data-theme="light"] body::before { opacity: 0.18; }

/* CTA glow */
[data-theme="light"] #cta::before {
  background: radial-gradient(ellipse at center, rgba(78, 143, 14, 0.07) 0%, transparent 70%);
}

/* ── Default logo across themes ── */
.logo-default { display: block; }

/* ── THEME TOGGLE ── */
.theme-toggle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--text-mid);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  flex-shrink: 0;
  line-height: 1;
}
.theme-toggle:hover {
  border-color: var(--green);
  color: var(--green);
}

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

html {
  scroll-behavior: smooth;
  -ms-overflow-style: none; /* IE/Edge legacy */
  scrollbar-width: none; /* Firefox */
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -ms-overflow-style: none; /* IE/Edge legacy */
  scrollbar-width: none; /* Firefox */
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

/* ── NOISE TEXTURE OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 500;
  opacity: 0.6;
}

/* ── HEADER ── */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 9999;
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, oklch(0.07 0.012 240 / 0.9), oklch(0.07 0.012 240 / 0.72));
  border-bottom: 1px solid oklch(0.22 0.018 240 / 0.7);
}

.header-inner {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
}

.header-inner.scrolled {
  background: oklch(0.08 0.013 240 / 0.92);
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.nav-logo span {
  color: var(--text-mid);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.logo-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px oklch(0.76 0.2 150 / 0.45);
  flex: 0 0 auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
}

.nav-links a {
  position: relative;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  color: var(--text-mid);
  text-decoration: none;
  letter-spacing: 0.03em;
  padding: 8px 0;
  transition: color 0.18s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 1px;
  width: 100%;
  height: 1px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.nav-cta {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid oklch(0.46 0.07 168 / 0.45);
  background: oklch(0.14 0.018 238 / 0.9);
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  border-color: oklch(0.76 0.2 150 / 0.55);
  background: oklch(0.17 0.02 238 / 0.95);
  color: var(--green);
}

/* ── HERO ── */
#hero {
  position: relative;
  min-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 132px 24px 80px;
  overflow: hidden;
}

#molecule-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
}

.hero-title {
  position: relative;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(1rem, 4.2vw, 3.7rem);
  line-height: 1.;
  letter-spacing: -0.04em;
  max-width: 1500px;
  opacity: 0;
  transform: translateY(30px);
  animation: fade-up 0.8s ease 0.4s forwards;
}

.hero-title .accent-green {
  color: var(--green);
}

.hero-title .accent-cyan {
  color: var(--cyan);
}

.hero-sub {
  position: relative;
  font-size: 1.0rem;
  color: var(--text-mid);
  max-width: 560px;
  line-height: 1.65;
  margin-top: 24px;
  font-weight: 300;
  opacity: 0;
  transform: translateY(20px);
  animation: fade-up 0.8s ease 0.6s forwards;
}

.hero-search {
  position: relative;
  margin-top: 44px;
  width: 100%;
  max-width: 560px;
  opacity: 0;
  transform: translateY(20px);
  animation: fade-up 0.8s ease 0.8s forwards;
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px 6px 6px 20px;
  gap: 12px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.search-box:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-dim), 0 16px 48px oklch(0 0 0 / 0.4);
}

.search-icon {
  color: var(--text-dim);
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: 'Space Mono', monospace;
  font-size: 0.9rem;
  color: var(--text);
  caret-color: var(--green);
}

.search-input::placeholder {
  color: var(--text-dim);
}

.search-btn {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 12px 24px;
  background: var(--green);
  color: oklch(0.08 0.012 240);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  box-shadow: 0 0 16px oklch(0.76 0.2 150 / 0.35);
}

.search-btn:hover {
  background: oklch(0.82 0.18 150);
  box-shadow: 0 0 28px oklch(0.76 0.2 150 / 0.5);
}

.search-suggestions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
  justify-content: center;
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  color: var(--text-dim);
}

.suggestion-chip {
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--surface);
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-mid);
  font-style: italic;
}

.suggestion-chip:hover {
  border-color: var(--green);
  color: var(--green);
}

.hero-stats {
  position: relative;
  display: flex;
  gap: 48px;
  margin-top: 64px;
  opacity: 0;
  animation: fade-up 0.8s ease 1s forwards;
}

.stat {
  text-align: center;
}

.stat-num {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.9rem;
  letter-spacing: -0.04em;
  color: var(--text);
}

.stat-num span {
  color: var(--green);
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 4px;
  font-family: 'Space Mono', monospace;
}

.stat-sep {
  width: 1px;
  background: var(--border);
  align-self: stretch;
}

/* ── SCROLL INDICATOR ── */
.scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fade-up 0.8s ease 1.4s forwards;
}

.scroll-track {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--green));
  position: relative;
  overflow: hidden;
}

.scroll-track::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--green);
  animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
  0% {
    top: -100%;
  }

  100% {
    top: 200%;
  }
}

/* ── SECTION COMMONS ── */
section {
  padding: 120px 24px;
}

section[id] {
  scroll-margin-top: 92px;
}

.section-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.7;
  font-weight: 300;
  max-width: 520px;
  margin-top: 16px;
}

/* ── PRICING ── */
#pricing {
  padding: 120px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.pricing-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: end;
  margin-bottom: 48px;
}

.pricing-note {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--green);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--surface);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 420px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.2s ease, background 0.2s ease;
}

.price-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.price-card:hover {
  border-color: oklch(0.46 0.07 168 / 0.5);
  background: oklch(0.15 0.018 238);
}

.price-card.featured {
  border-color: oklch(0.46 0.07 168 / 0.5);
  box-shadow: 0 0 0 1px oklch(0.76 0.2 150 / 0.2) inset, 0 14px 36px oklch(0 0 0 / 0.35);
}

.price-tier {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tier-name {
  font-family: 'Syne', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tier-badge {
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  color: var(--green);
  border: 1px solid oklch(0.46 0.07 168 / 0.5);
  background: oklch(0.13 0.018 238);
  border-radius: 999px;
  padding: 4px 8px;
}

.price-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price-main {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.price-sub {
  font-size: 0.85rem;
  color: var(--text-mid);
}

.launch-chip {
  align-self: flex-start;
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  color: var(--green);
  background: var(--green-dim);
  border: 1px solid oklch(0.46 0.07 168 / 0.5);
  border-radius: 999px;
  padding: 5px 8px;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.feature-list li {
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.45;
}

.feature-list li strong {
  color: var(--text);
  font-weight: 600;
}

.price-cta {
  margin-top: auto;
  width: 100%;
  justify-content: center;
  padding: 13px 20px;
}

/* ── PIPELINE SECTION ── */
#pipeline {
  background: var(--bg);
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 48px;
}

.pipeline-header {
  text-align: center;
  margin-bottom: 80px;
}

.pipeline-header .section-sub {
  margin: 16px auto 0;
}

.pipeline-flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}

/* connecting line */
.pipeline-flow::before {
  content: '';
  position: absolute;
  top: 40px;
  left: calc(10% + 12px);
  right: calc(10% + 12px);
  height: 1px;
  background: linear-gradient(to right, var(--green), var(--cyan), var(--green));
  opacity: 0.3;
}

.pipeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 12px;
  position: relative;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.pipeline-step.visible {
  opacity: 1;
  transform: translateY(0);
}

.step-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  position: relative;
  z-index: 2;
  transition: all 0.3s;
  cursor: default;
}

.pipeline-step:hover .step-icon {
  border-color: var(--green);
  background: var(--green-dim);
  box-shadow: 0 0 24px var(--green-dim);
  transform: scale(1.08);
}

.step-num {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  color: var(--green);
  letter-spacing: 0.1em;
  margin-top: 16px;
}

.step-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: 6px;
  letter-spacing: -0.01em;
}

.step-desc {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 8px;
  line-height: 1.5;
}

/* ── FEATURES ── */
#features {
  background: var(--bg2);
  padding: 120px 24px;
}

.features-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.features-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 64px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 180px;
  gap: 14px;
}

.feat-card {
  background: linear-gradient(165deg, oklch(0.1 0.012 240), oklch(0.13 0.015 238));
  border: 1px solid oklch(0.22 0.018 238 / 0.9);
  border-radius: 14px;
  padding: 26px;
  position: relative;
  overflow: hidden;
  cursor: default;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  align-content: start;
  gap: 0;
  min-height: 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease, background 0.3s, border-color 0.25s ease;
}

.feat-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.feat-card:hover {
  background: linear-gradient(165deg, oklch(0.12 0.014 240), oklch(0.15 0.018 238));
  border-color: oklch(0.46 0.07 168 / 0.55);
}

.feat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--green), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.feat-card:hover::before {
  opacity: 1;
}

/* Bento grid layout — 4 cols, 4 rows, no orphaned cells
   Row 1–2: [hero 2×2][wide 2×1]
            [hero    ][sm][sm]
   Row 3:   [sm][wide 2×1][sm]
   Row 4:   [wide 2×1][wide 2×1]
*/
.feat-card:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.feat-card:nth-child(2) { grid-column: span 2; grid-row: span 1; }
.feat-card:nth-child(3) { grid-column: span 1; grid-row: span 1; }
.feat-card:nth-child(4) { grid-column: span 1; grid-row: span 1; }
.feat-card:nth-child(5) { grid-column: span 1; grid-row: span 1; }
.feat-card:nth-child(6) { grid-column: span 2; grid-row: span 1; }
.feat-card:nth-child(7) { grid-column: span 1; grid-row: span 1; }
.feat-card:nth-child(8) { grid-column: span 2; grid-row: span 1; }
.feat-card:nth-child(9) { grid-column: span 2; grid-row: span 1; }

.feat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--green-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 14px;
}

.feat-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.feat-desc {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.55;
  font-weight: 300;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
  min-height: 1.55em;
  max-width: 44ch;
}

.feat-tag {
  display: inline-block;
  margin-top: 18px;
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  color: var(--green);
  letter-spacing: 0.08em;
  align-self: start;
}

/* Hero card — bigger everything */
.feat-card:nth-child(1) .feat-title {
  font-size: 1.55rem;
}
.feat-card:nth-child(1) .feat-desc {
  font-size: 1.05rem;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}
.feat-card:nth-child(1) .feat-icon {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  margin-bottom: 18px;
}
.feat-card:nth-child(1) .feat-icon svg {
  width: 26px;
  height: 26px;
}

/* Wide cards (2-col) — slightly larger title */
.feat-card:nth-child(2) .feat-title,
.feat-card:nth-child(6) .feat-title,
.feat-card:nth-child(8) .feat-title,
.feat-card:nth-child(9) .feat-title {
  font-size: 1.28rem;
}
.feat-card:nth-child(2) .feat-desc,
.feat-card:nth-child(6) .feat-desc,
.feat-card:nth-child(8) .feat-desc,
.feat-card:nth-child(9) .feat-desc {
  -webkit-line-clamp: 2;
  line-clamp: 2;
  font-size: 0.97rem;
}

/* ── DEMO SECTION ── */
#demo {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 48px;
}

.demo-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.demo-text .section-title {
  max-width: 400px;
}

.demo-points {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.demo-point {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.demo-point.visible {
  opacity: 1;
  transform: translateX(0);
}

.point-marker {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--green);
  background: var(--green-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.point-marker svg {
  width: 12px;
  height: 12px;
  stroke: var(--green);
}

.point-text strong {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  display: block;
  margin-bottom: 4px;
}

.point-text p {
  font-size: 0.875rem;
  color: var(--text-mid);
  line-height: 1.6;
}

/* Terminal mockup */
.demo-terminal {
  background: oklch(0.065 0.012 240);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  font-family: 'Space Mono', monospace;
  box-shadow: 0 32px 80px oklch(0 0 0 / 0.5), 0 0 0 1px var(--border);
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.demo-terminal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.tb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.tb.r {
  background: oklch(0.65 0.18 25);
}

.tb.y {
  background: oklch(0.75 0.18 85);
}

.tb.g {
  background: oklch(0.7 0.18 145);
}

.terminal-title {
  flex: 1;
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.terminal-body {
  padding: 24px;
  font-size: 0.78rem;
  line-height: 2;
}

.t-prompt {
  color: var(--green);
}

.t-cmd {
  color: var(--text);
}

.t-out {
  color: var(--text-mid);
}

.t-val {
  color: var(--cyan);
}

.t-good {
  color: var(--green);
}

.t-dim {
  color: var(--text-dim);
}

.t-blink {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--green);
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.terminal-progress {
  padding: 4px 24px 24px;
}

.prog-label {
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}

.prog-track {
  height: 3px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}

.prog-fill {
  height: 100%;
  background: linear-gradient(to right, var(--green), var(--cyan));
  border-radius: 99px;
  transition: width 0.5s ease;
}

/* ── SCIENCE SECTION ── */
#science {
  background: var(--bg2);
  padding: 120px 24px;
}

.science-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.science-header {
  text-align: center;
  margin-bottom: 80px;
}

.science-header .section-sub {
  margin: 16px auto 0;
}

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

.sci-card {
  background: var(--bg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background 0.3s;
  cursor: default;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease, background 0.3s;
}

.sci-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.sci-card:hover {
  background: var(--bg3);
}

.sci-num {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 2.4rem;
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sci-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.sci-desc {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ── TECH STACK (removed) ── */

/* ── ADMET SECTION ── */
#admet {
  background: var(--bg2);
  padding: 120px 24px;
}

.admet-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.admet-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.metric-card {
  background: var(--bg);
  padding: 28px;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.metric-card.visible {
  opacity: 1;
  transform: scale(1);
}

.metric-card:hover {
  background: var(--bg3);
}

.metric-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.metric-val {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.04em;
}

.metric-val.green {
  color: var(--green);
}

.metric-val.cyan {
  color: var(--cyan);
}

.metric-bar {
  height: 3px;
  background: var(--border);
  border-radius: 99px;
  margin-top: 12px;
  overflow: hidden;
}

.metric-bar-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(to right, var(--green), var(--cyan));
  width: 0;
  transition: width 1s ease 0.3s;
}

.metric-card.visible .metric-bar-fill {
  width: var(--pct);
}

/* ── CTA ── */
#cta {
  padding: 160px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

#cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse at center, oklch(0.76 0.2 150 / 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.cta-title.visible {
  opacity: 1;
  transform: translateY(0);
}

.cta-sub {
  font-size: 1.05rem;
  color: var(--text-mid);
  margin: 24px auto 0;
  max-width: 480px;
  font-weight: 300;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.cta-sub.visible {
  opacity: 1;
  transform: translateY(0);
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 48px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease 0.4s, transform 0.8s ease 0.4s;
}

.cta-buttons.visible {
  opacity: 1;
  transform: translateY(0);
}

.btn-primary {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 36px;
  background: var(--green);
  color: oklch(0.08 0.012 240);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s;
  box-shadow: 0 0 32px oklch(0.76 0.2 150 / 0.35);
  letter-spacing: -0.01em;
}

.btn-primary:hover {
  background: oklch(0.82 0.18 150);
  transform: translateY(-2px);
  box-shadow: 0 0 48px oklch(0.76 0.2 150 / 0.5);
}

.btn-secondary {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 16px 36px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s;
  letter-spacing: -0.01em;
}

.btn-secondary:hover {
  border-color: var(--text-mid);
  background: var(--surface);
  transform: translateY(-2px);
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 48px;
  max-width: 1200px;
  margin: 0 auto;
}

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

.footer-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--text-mid);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.footer-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  color: var(--text-dim);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--text-mid);
}

.footer-link.accent {
  color: var(--green);
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.footer-link.accent:hover {
  opacity: 0.7;
  color: var(--green);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer-text {
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

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

.footer-legal a {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: var(--text-mid);
}

@media (max-width: 900px) {
  .footer-top {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .footer-nav {
    flex-wrap: wrap;
    gap: 16px;
  }
}

/* ── ANIMATIONS ── */
@keyframes fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── FLOATING ORBS ── */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.orb-1 {
  width: 400px;
  height: 400px;
  top: -100px;
  left: -100px;
  background: oklch(0.76 0.2 150 / 0.06);
  animation: float-orb 8s ease-in-out infinite;
}

.orb-2 {
  width: 300px;
  height: 300px;
  top: 20%;
  right: -80px;
  background: oklch(0.76 0.18 200 / 0.06);
  animation: float-orb 10s ease-in-out infinite reverse;
}

.orb-3 {
  width: 200px;
  height: 200px;
  bottom: 10%;
  left: 30%;
  background: oklch(0.76 0.2 150 / 0.04);
  animation: float-orb 12s ease-in-out infinite;
}

@keyframes float-orb {

  0%,
  100% {
    transform: translate(0, 0);
  }

  33% {
    transform: translate(20px, -30px);
  }

  66% {
    transform: translate(-15px, 20px);
  }
}

/* Tweaks panel */
.tweaks-panel {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  width: 260px;
  display: none;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 24px 64px oklch(0 0 0 / 0.5);
  font-family: 'DM Sans', sans-serif;
}

.tweaks-panel.active {
  display: flex;
}

.tweaks-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text);
  letter-spacing: -0.01em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tweaks-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-dim);
  font-size: 1.2rem;
  line-height: 1;
  transition: color 0.2s;
}

.tweaks-close:hover {
  color: var(--text);
}

.tweak-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tweak-lbl {
  font-size: 0.75rem;
  color: var(--text-mid);
  letter-spacing: 0.02em;
}

.tweak-options {
  display: flex;
  gap: 6px;
}

.t-opt {
  flex: 1;
  padding: 7px 0;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.72rem;
  cursor: pointer;
  font-family: 'Space Mono', monospace;
  color: var(--text-mid);
  background: var(--bg);
  transition: all 0.2s;
}

.t-opt.active {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-dim);
}

@media (max-width: 900px) {
  section {
    padding: 96px 20px;
  }

  #hero {
    min-height: auto;
    padding: 118px 20px 64px;
  }

  .hero-title {
    font-size: clamp(1.6rem, 6.8vw, 2.9rem);
    max-width: 760px;
  }

  .hero-sub {
    font-size: 0.98rem;
    margin-top: 18px;
    line-height: 1.6;
  }

  .hero-search {
    margin-top: 30px;
  }

  .search-box {
    padding: 6px 6px 6px 14px;
    gap: 10px;
  }

  .hero-stats {
    gap: 18px;
    margin-top: 44px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(520px, 100%);
  }

  .stat-sep {
    display: none;
  }

  .stat-num {
    font-size: 1.55rem;
  }

  .scroll-hint {
    display: none;
  }

  #pipeline,
  #demo,
  #pricing {
    padding: 96px 24px;
  }

  .pipeline-header {
    margin-bottom: 56px;
  }

  .pipeline-flow {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .pipeline-flow::before {
    display: none;
  }

  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 170px;
    gap: 12px;
  }

  .feat-card {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
    padding: 24px;
  }

  .feat-card:nth-child(1) {
    grid-column: span 2 !important;
    grid-row: span 2 !important;
  }

  /* Wide cards collapse to full-width on 2-col grid */
  .feat-card:nth-child(2),
  .feat-card:nth-child(6),
  .feat-card:nth-child(8),
  .feat-card:nth-child(9) {
    grid-column: span 2 !important;
    grid-row: span 1 !important;
  }

  .features-header {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
  }

  .science-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .demo-wrapper {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .admet-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .admet-metrics {
    gap: 10px;
  }

  .pricing-header {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 28px;
  }

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

  .hero-stats {
    gap: 16px;
  }

  .nav-links {
    display: none;
  }

  .header-inner {
    width: min(1220px, calc(100% - 20px));
    min-height: 68px;
  }

  footer {
    padding: 32px 24px;
  }
}

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

  .header-inner {
    width: calc(100% - 16px);
    min-height: 62px;
    gap: 10px;
  }

  #hero {
    padding: 104px 16px 52px;
  }

  .hero-title {
    font-size: clamp(1.42rem, 8.2vw, 2.2rem);
    line-height: 1.12;
  }

  .hero-sub {
    font-size: 0.9rem;
    margin-top: 14px;
  }

  .hero-search {
    margin-top: 22px;
  }

  .search-box {
    flex-wrap: wrap;
    padding: 10px;
    border-radius: 10px;
  }

  .search-icon {
    order: 1;
  }

  .search-input {
    order: 2;
    min-width: 0;
    flex: 1 1 calc(100% - 28px);
    font-size: 0.84rem;
  }

  .search-btn {
    order: 3;
    width: 100%;
    justify-content: center;
    padding: 11px 16px;
    font-size: 0.82rem;
  }

  .search-suggestions {
    justify-content: flex-start;
    gap: 6px;
    margin-top: 10px;
  }

  .suggestion-chip {
    padding: 4px 10px;
    font-size: 0.66rem;
  }

  .hero-stats {
    margin-top: 30px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .stat {
    padding: 8px 6px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: oklch(0.12 0.014 238 / 0.72);
  }

  .stat-label {
    font-size: 0.64rem;
  }

  #pipeline,
  #demo,
  #pricing {
    padding: 80px 18px;
  }

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

  .pipeline-step {
    padding: 0;
  }

  .step-icon {
    width: 64px;
    height: 64px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 10px;
  }

  /* Force every card to single-column on mobile */
  .feat-card,
  .feat-card:nth-child(1),
  .feat-card:nth-child(2),
  .feat-card:nth-child(6),
  .feat-card:nth-child(8),
  .feat-card:nth-child(9) {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
    min-height: 200px;
    padding: 22px;
  }

  .feat-title {
    font-size: 1rem;
  }

  .feat-desc {
    font-size: 0.84rem;
  }

  .demo-terminal {
    border-radius: 12px;
  }

  .terminal-body {
    padding: 18px;
    font-size: 0.7rem;
    line-height: 1.75;
  }

  .terminal-progress {
    padding: 2px 18px 16px;
  }

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

  .sci-card {
    padding: 24px 20px;
  }

  .admet-metrics {
    grid-template-columns: 1fr;
  }

  #pricing {
    padding: 96px 20px;
  }

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

  .price-card {
    min-height: 0;
    padding: 20px;
  }

  #cta {
    padding: 104px 18px;
  }

  .cta-title {
    font-size: clamp(1.75rem, 8vw, 2.35rem);
  }

  .cta-sub {
    font-size: 0.92rem;
    margin-top: 16px;
  }

  .cta-buttons {
    margin-top: 28px;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
    font-size: 0.9rem;
    padding: 13px 18px;
  }

  footer {
    padding: 26px 18px;
  }

  .footer-top {
    margin-bottom: 22px;
    gap: 14px;
  }

  .footer-bottom {
    gap: 12px;
    padding-top: 16px;
  }

  .footer-text {
    font-size: 0.63rem;
    line-height: 1.5;
  }

  .footer-legal {
    gap: 10px 16px;
    flex-wrap: wrap;
  }

  .footer-legal a {
    font-size: 0.74rem;
  }

  .nav-logo span {
    display: none;
  }

  .nav-cta {
    padding: 9px 14px;
    font-size: 0.78rem;
  }
}

@media (max-width: 420px) {
  #hero {
    padding-top: 96px;
  }

  .hero-title {
    font-size: clamp(1.28rem, 8.4vw, 1.86rem);
  }

  .hero-sub {
    font-size: 0.84rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .search-input {
    font-size: 0.8rem;
  }

  .section-title {
    font-size: clamp(1.5rem, 8.5vw, 1.95rem);
  }

  .section-sub {
    font-size: 0.9rem;
  }

  .feat-card {
    padding: 18px;
  }

  .price-card {
    padding: 18px;
  }

  .tweaks-panel {
    width: calc(100vw - 24px);
    right: 12px;
    bottom: 12px;
    padding: 16px;
  }
}

/* FAQ Section */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item:hover {
  border-color: var(--border-strong);
}

.faq-item[open] {
  border-color: var(--green);
}

.faq-question {
  padding: 18px 20px;
  font-family: 'Syne', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background 0.2s;
}

.faq-question:hover {
  background: var(--surface-2);
}

.faq-question::marker,
.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '+';
  float: right;
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--text-dim);
  transition: transform 0.3s;
}

.faq-item[open] .faq-question::after {
  transform: rotate(45deg);
  color: var(--green);
}

.faq-answer {
  padding: 0 20px 20px 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-2);
}

.faq-answer strong {
  color: var(--text);
  font-weight: 600;
}

.faq-answer ul {
  margin: 8px 0;
  padding-left: 20px;
}

.faq-answer ul li {
  margin: 6px 0;
}

.faq-answer a {
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.faq-answer a:hover {
  border-bottom-color: var(--green);
}

@media (max-width: 768px) {
  .faq-question {
    font-size: 0.98rem;
    padding: 16px 18px;
  }

  .faq-answer {
    font-size: 0.92rem;
    padding: 0 18px 18px 18px;
  }
}

/* ========================================
   BLOG STYLES
   ======================================== */

/* Blog Index Page */
.blog-featured-section {
  margin: 48px 0;
}

.blog-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.blog-count {
  font-size: 1.2rem;
  color: var(--text-dim);
  font-weight: 400;
}

.blog-featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.blog-featured-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.blog-featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  border-color: var(--green);
}

.blog-featured-image {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: var(--bg3);
}

.blog-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-featured-card:hover .blog-featured-image img {
  transform: scale(1.05);
}

.blog-category-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--green);
  color: var(--bg);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-featured-content {
  padding: 28px;
}

.blog-featured-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.4;
}

.blog-featured-excerpt {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 20px;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.blog-author {
  font-weight: 600;
  color: var(--text-mid);
}

.blog-separator {
  opacity: 0.5;
}

.blog-date, .blog-read-time {
  color: var(--text-dim);
}

/* Category Filters */
.blog-filter-section {
  margin: 48px 0;
}

.blog-category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.blog-category-btn {
  padding: 10px 20px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-mid);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.blog-category-btn:hover {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-dim);
}

.blog-category-btn.active {
  border-color: var(--green);
  background: var(--green);
  color: var(--bg);
}

/* Posts Grid */
.blog-posts-section {
  margin: 48px 0;
}

.blog-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.blog-post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.blog-post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  border-color: var(--green);
}

.blog-card-image {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: var(--bg3);
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-post-card:hover .blog-card-image img {
  transform: scale(1.08);
}

.blog-category-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 5px 12px;
  border-radius: 5px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.blog-card-content {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.4;
}

.blog-card-excerpt {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.blog-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.blog-tag {
  background: var(--bg3);
  color: var(--text-dim);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* Newsletter Section */
.blog-newsletter-section {
  margin: 64px 0;
}

.blog-newsletter-card {
  background: linear-gradient(135deg, var(--green-dim), var(--cyan-dim));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 48px 40px;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.blog-newsletter-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.blog-newsletter-text {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 28px;
}

.blog-newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 460px;
  margin: 0 auto 12px;
}

.blog-newsletter-input {
  flex: 1;
  padding: 14px 18px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.95rem;
}

.blog-newsletter-input:focus {
  outline: none;
  border-color: var(--green);
}

.blog-newsletter-btn {
  padding: 14px 28px;
  border-radius: 8px;
  border: none;
  background: var(--green);
  color: var(--bg);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.blog-newsletter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(127, 226, 52, 0.3);
}

.blog-newsletter-privacy {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* Blog Post Page */
.blog-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.blog-breadcrumbs a {
  color: var(--text-mid);
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-breadcrumbs a:hover {
  color: var(--green);
}

.breadcrumb-sep {
  color: var(--text-dim);
  opacity: 0.5;
}

.breadcrumb-current {
  color: var(--text-dim);
}

.blog-article {
  max-width: 780px;
  margin: 0 auto;
}

.blog-article-header {
  margin-bottom: 48px;
}

.blog-category-badge-large {
  display: inline-block;
  background: var(--green);
  color: var(--bg);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 20px;
}

.blog-article-title {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 24px;
}

.blog-article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.blog-author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--border);
}

.blog-author-info {
  flex: 1;
}

.blog-author-name {
  display: block;
  font-weight: 700;
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.blog-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.blog-tags-header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.blog-tag-large {
  background: var(--bg3);
  color: var(--text-mid);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
}

.blog-featured-image-full {
  width: 100%;
  height: 420px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 48px;
  background: var(--bg3);
}

.blog-featured-image-full img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Article Content Styles */
.blog-article-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-mid);
}

.blog-article-content .blog-lead {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 32px;
  padding-left: 24px;
  border-left: 4px solid var(--green);
}

.blog-article-content h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 48px;
  margin-bottom: 20px;
  line-height: 1.3;
}

.blog-article-content h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 36px;
  margin-bottom: 16px;
  line-height: 1.4;
}

.blog-article-content p {
  margin-bottom: 20px;
}

.blog-article-content ul,
.blog-article-content ol {
  margin-bottom: 24px;
  padding-left: 28px;
}

.blog-article-content li {
  margin-bottom: 10px;
}

.blog-article-content strong {
  font-weight: 700;
  color: var(--text);
}

.blog-article-content code {
  background: var(--bg3);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
  font-size: 0.9em;
  color: var(--green);
}

.blog-article-content pre {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  margin: 28px 0;
  overflow-x: auto;
}

.blog-article-content pre code {
  background: none;
  padding: 0;
  color: var(--text);
}

/* Article Footer */
.blog-article-footer {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.blog-share-section {
  margin-bottom: 48px;
}

.blog-share-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

.blog-share-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.blog-share-btn {
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-mid);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.blog-share-btn:hover {
  border-color: var(--green);
  background: var(--green-dim);
  color: var(--green);
}

.blog-cta-section {
  background: linear-gradient(135deg, var(--green-dim), var(--cyan-dim));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
}

.blog-cta-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.blog-cta-text {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* Related Posts */
.blog-related-section {
  margin: 64px 0;
}

.blog-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.blog-related-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.blog-related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  border-color: var(--green);
}

.blog-back-section {
  text-align: center;
  margin: 48px 0 32px;
}

.blog-back-link {
  display: inline-block;
  color: var(--text-mid);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.blog-back-link:hover {
  color: var(--green);
  border-color: var(--green);
  background: var(--green-dim);
}

.blog-not-found {
  text-align: center;
  padding: 80px 20px;
}

.blog-not-found h2 {
  font-size: 2rem;
  color: var(--text);
  margin-bottom: 24px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .blog-featured-grid {
    grid-template-columns: 1fr;
  }

  .blog-posts-grid {
    grid-template-columns: 1fr;
  }

  .blog-article-title {
    font-size: 2rem;
  }

  .blog-article-content {
    font-size: 1rem;
  }

  .blog-article-content .blog-lead {
    font-size: 1.1rem;
  }

  .blog-newsletter-form {
    flex-direction: column;
  }

  .blog-newsletter-card {
    padding: 32px 24px;
  }

  .blog-featured-image-full {
    height: 240px;
  }
}
