/* SimplyCodes homepage layout — ReviewDecode light theme */

.sc-home {
  --sc-bg: #f0f4fa;
  --sc-surface: rgba(255, 255, 255, 0.78);
  --sc-surface-solid: #ffffff;
  --sc-surface-inset: #f8fafc;
  --sc-border: rgba(15, 23, 42, 0.1);
  --sc-border-strong: rgba(15, 23, 42, 0.14);
  --sc-text: #0f172a;
  --sc-muted: #5b677a;
  --sc-muted2: #94a3b8;
  --sc-accent: var(--brand, #1a73e8);
  --sc-accent-soft: color-mix(in oklab, var(--brand, #1a73e8) 12%, #fff);
  --sc-accent-glow: color-mix(in oklab, var(--brand, #1a73e8) 25%, transparent);
  --sc-mono: "JetBrains Mono", ui-monospace, monospace;
  --sc-max: 1280px;
  --sc-radius: 12px;
  color: var(--sc-text);
  max-width: 100%;
  overflow-x: clip;
}

.sc-home * { box-sizing: border-box; }

/* Section label */
.sc-home .section-label {
  font-family: var(--sc-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sc-muted);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.sc-home .section-label::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--sc-accent);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.sc-home .text-accent { color: var(--sc-accent); }

/* ── Hero (full viewport below nav, SimplyCodes layout) ── */
.sc-home .sc-hero-wrap {
  position: relative;
  min-height: calc(100vh - var(--sc-nav-h, 64px));
  min-height: calc(100dvh - var(--sc-nav-h, 64px));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--sc-bg);
  border-bottom: 1px solid var(--sc-border);
}

.sc-home .sc-hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.sc-home .sc-hero-grid__wave {
  position: absolute;
  top: -15%;
  left: -10%;
  width: 120%;
  height: 130%;
  background-image:
    linear-gradient(to right, rgba(26, 115, 232, 0.14) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(26, 115, 232, 0.14) 1px, transparent 1px);
  background-size: 40px 40px;
  will-change: transform;
}

.sc-home .sc-hero-grid__wave--1 {
  opacity: 1;
}

.sc-home .sc-hero-grid__wave--2 {
  opacity: 0.55;
  background-image:
    linear-gradient(to right, rgba(26, 115, 232, 0.1) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(26, 115, 232, 0.1) 1px, transparent 1px);
  background-size: 40px 40px;
}

@media (prefers-reduced-motion: reduce) {
  .sc-home .sc-hero-grid__wave {
    will-change: auto;
  }
}

.sc-home .sc-hero-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, transparent, var(--sc-bg));
  pointer-events: none;
}
.sc-home .sc-hero {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 56rem;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  text-align: center;
}
.sc-home .status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: var(--sc-surface);
  backdrop-filter: blur(12px);
  border: 1px solid var(--sc-border);
  margin-bottom: 2rem;
  font-size: 0.75rem;
  font-family: var(--sc-mono);
  color: var(--sc-muted);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}
.sc-home .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  animation: scPulse 2s infinite;
}
.sc-home .status-text span { color: var(--sc-text); font-weight: 600; }
.sc-home .sc-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 1.25rem;
}
.sc-home .hero-description {
  font-size: 1.125rem;
  color: var(--sc-muted);
  max-width: 42rem;
  margin: 0 auto 3rem;
  line-height: 1.65;
}
.sc-home .heading-break { white-space: nowrap; }
@media (min-width: 768px) {
  .sc-home .heading-break { display: block; white-space: normal; }
}
.sc-home .sc-search-wrap {
  position: relative;
  width: 100%;
  max-width: 42rem;
  min-width: 0;
  margin: 0 auto;
}

.sc-home .sc-hero-wrap:has(.rd-live-search.is-open) {
  z-index: 30;
  overflow-x: clip;
  overflow-y: visible;
}
.sc-home .sc-search-glow {
  position: absolute;
  inset: -0.25rem;
  background: linear-gradient(to right, var(--sc-accent), #6366f1);
  border-radius: 0.5rem;
  filter: blur(10px);
  opacity: 0.25;
  pointer-events: none;
  transition: opacity 0.2s;
}
.sc-home .sc-search-wrap:hover .sc-search-glow { opacity: 0.45; }
.sc-home .sc-search-form {
  position: relative;
  width: 100%;
  min-width: 0;
}
.sc-home .sc-search-icon {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  color: var(--sc-muted2);
  pointer-events: none;
}
.sc-home .sc-search-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.sc-home .sc-search-input {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 1rem 1rem 1rem 3rem;
  background: var(--sc-surface-solid);
  border: 1px solid var(--sc-border-strong);
  border-radius: 0.5rem;
  color: var(--sc-text);
  font-family: var(--sc-mono);
  font-size: 1.125rem;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
}
.sc-home .sc-search-input::placeholder { color: var(--sc-muted2); }
.sc-home .sc-search-input:focus {
  outline: none;
  border-color: color-mix(in oklab, var(--sc-accent) 40%, #fff);
}
.sc-home .hero-stats {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.875rem;
  font-size: 0.75rem;
  font-family: var(--sc-mono);
  color: var(--sc-muted2);
}
.sc-home .hero-popular-label,
.sc-home .hero-popular-link { white-space: nowrap; }
.sc-home .hero-popular-link {
  color: var(--sc-accent);
  text-decoration: none;
  font-weight: 500;
}
.sc-home .hero-popular-link:hover { text-decoration: underline; }

/* ── Stats strip ── */
.sc-home .stats-section {
  position: relative;
  z-index: 1;
  padding: 3rem 0;
  border-bottom: 1px solid var(--sc-border);
  background: var(--sc-surface-solid);
}
.sc-home .stats-container {
  max-width: var(--sc-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.sc-home .stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.sc-home .stats-section .hp-stat-num {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  font-variant-numeric: tabular-nums;
}
.sc-home .stats-section.is-visible .hp-stat-num,
.sc-home .stats-section .hp-stat-num.is-done {
  opacity: 1;
  transform: translateY(0);
}
.sc-home .stats-section.is-visible .stats-grid > div:nth-child(1) .hp-stat-num { transition-delay: 0.05s; }
.sc-home .stats-section.is-visible .stats-grid > div:nth-child(2) .hp-stat-num { transition-delay: 0.12s; }
.sc-home .stats-section.is-visible .stats-grid > div:nth-child(3) .hp-stat-num { transition-delay: 0.19s; }
.sc-home .stats-section.is-visible .stats-grid > div:nth-child(4) .hp-stat-num { transition-delay: 0.26s; }
.sc-home .hp-stat-num {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  font-family: var(--sc-mono);
  letter-spacing: -0.02em;
  color: var(--sc-text);
}
.sc-home .hp-stat-num.accent { color: var(--sc-accent); }
.sc-home .hp-stat-label {
  font-size: 0.75rem;
  color: var(--sc-muted);
  margin-top: 0.375rem;
  font-family: var(--sc-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Verification Engine ── */
.sc-home .ve-section {
  padding: 6rem 0;
  background: var(--sc-surface-solid);
  border-top: 1px solid var(--sc-border);
  border-bottom: 1px solid var(--sc-border);
}
.sc-home .ve-container {
  max-width: var(--sc-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.sc-home .ve-left {
  grid-column: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.sc-home .ve-intro {
  text-align: left;
}
.sc-home .ve-terminal {
  grid-column: 2;
  grid-row: 1;
}
.sc-home .ve-container > * { min-width: 0; }
.sc-home .ve-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.sc-home .ve-title-line {
  display: block;
}
.sc-home .ve-desc {
  color: var(--sc-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0;
  max-width: 520px;
}
.sc-home .layer-cards { display: flex; flex-direction: column; gap: 0; }
.sc-home .layer-card {
  display: flex;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--sc-border);
  border-radius: 6px;
  background: var(--sc-surface-solid);
  margin-bottom: 0.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.sc-home .layer-card:last-child { margin-bottom: 0; }
.sc-home .layer-card:hover {
  border-color: color-mix(in oklab, var(--sc-accent) 30%, var(--sc-border));
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}
.sc-home .layer-card-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sc-accent);
  border: 1px solid color-mix(in oklab, var(--sc-accent) 22%, transparent);
  border-radius: 6px;
  background: var(--sc-accent-soft);
  flex-shrink: 0;
  font-size: 1rem;
}
.sc-home .layer-card-content { flex: 1; min-width: 0; }
.sc-home .layer-card-title {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.sc-home .layer-card-desc { font-size: 0.8rem; color: var(--sc-muted); line-height: 1.45; }
.sc-home .status-active {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--sc-mono);
  font-size: 0.65rem;
  color: #10b981;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.sc-home .pulse-dot-sm {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #10b981;
  animation: scPulse 2s infinite;
}
.sc-home .link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: var(--sc-accent);
  font-weight: 500;
  margin-top: 1.5rem;
  text-decoration: none;
  transition: gap 0.2s;
}
.sc-home .link-arrow:hover { gap: 0.6rem; }

/* Terminal — light theme */
.sc-home .ve-terminal {
  display: block;
  color: inherit;
  text-decoration: none;
}
.sc-home .ve-terminal .terminal {
  border: 1px solid var(--sc-border-strong);
  background: #fff;
  border-radius: var(--sc-radius);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}
.sc-home .terminal-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--sc-border);
  background: #f8fafc;
}
.sc-home .terminal-dots { display: flex; gap: 6px; }
.sc-home .terminal-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
}
.sc-home .terminal-dots span:nth-child(1) { background: #fca5a5; }
.sc-home .terminal-dots span:nth-child(2) { background: #fcd34d; }
.sc-home .terminal-dots span:nth-child(3) { background: #86efac; }
.sc-home .terminal-title {
  font-family: var(--sc-mono);
  font-size: 0.7rem;
  color: var(--sc-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.sc-home .live-badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sc-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #10b981;
}
.sc-home .live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px 2px rgba(16, 185, 129, 0.35);
  animation: scPulse 1.5s ease-in-out infinite;
}
.sc-home .terminal-body {
  position: relative;
  height: 518px;
  overflow: hidden;
  padding: 0;
  background: #fff;
}
.sc-home .terminal-body::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 72px;
  background: linear-gradient(to bottom, transparent, #fff);
  pointer-events: none;
  z-index: 2;
}
.sc-home .feed-scroll {
  display: flex;
  flex-direction: column;
  will-change: transform;
}
.sc-home .feed-scroll.is-animating,
.sc-home .feed-scroll.animate-feed {
  animation: scFeedScroll 32s linear infinite;
}
.sc-home .feed-entry {
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--sc-border);
  height: 74px;
  box-sizing: border-box;
  overflow: hidden;
  background: #fff;
}
.sc-home .feed-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
}
.sc-home .feed-merchant {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}
.sc-home .feed-dot {
  font-size: 0.75rem;
  line-height: 1;
  flex-shrink: 0;
}
.sc-home .feed-merchant-name {
  color: var(--sc-text);
  font-size: 0.833rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sc-home .feed-time-abs {
  color: var(--sc-muted2);
  font-size: 0.64rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
}
.sc-home .feed-row-main {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 0;
  margin-top: 0.1rem;
  color: var(--sc-muted);
  font-size: 0.66rem;
  line-height: 1.35;
}
.sc-home .feed-event-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sc-home .feed-code {
  color: var(--sc-accent);
  font-family: var(--sc-mono);
  font-weight: 500;
}
.sc-home .feed-status {
  font-size: 0.66rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
  flex-shrink: 0;
}
.sc-home .feed-status-verified {
  animation: scVerifiedPulse 2s ease-in-out infinite;
}
.sc-home .feed-row-meta {
  min-width: 0;
  margin-top: 0.08rem;
}
.sc-home .feed-username {
  display: block;
  color: var(--sc-muted2);
  font-size: 0.63rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sc-home .terminal-footer {
  padding: 0.6rem 1rem;
  border-top: 1px solid var(--sc-border);
  background: #f8fafc;
  font-family: var(--sc-mono);
  font-size: 0.65rem;
  color: var(--sc-muted2);
}
.sc-home .streaming-dots span {
  animation: scStreamingDots 1.4s infinite;
}
.sc-home .streaming-dots span:nth-child(2) { animation-delay: 0.2s; }
.sc-home .streaming-dots span:nth-child(3) { animation-delay: 0.4s; }
.sc-home .streaming-cursor {
  animation: scCursorBlink 1s step-end infinite;
}
@keyframes scPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
@keyframes scVerifiedPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}
@keyframes scStreamingDots {
  0%, 20% { opacity: 0; }
  50% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes scCursorBlink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}
@keyframes scFeedScroll {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .sc-home .feed-scroll.is-animating,
  .sc-home .feed-scroll.animate-feed,
  .sc-home .live-dot,
  .sc-home .feed-status-verified {
    animation: none !important;
    transform: translateY(0) !important;
  }
  .sc-home .streaming-dots span,
  .sc-home .streaming-cursor,
  .sc-home .proof-code-cursor {
    animation: none !important;
    opacity: 1;
  }
}

/* ── Store Directory ── */
.sc-home .sd-section { padding: 4rem 0; border-bottom: 1px solid var(--sc-border); }
.sc-home .sd-container { max-width: var(--sc-max); margin: 0 auto; padding: 0 1.5rem; }
.sc-home .sd-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.sc-home .sd-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.sc-home .sd-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.sc-home .sd-links a {
  color: var(--sc-accent);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}
.sc-home .sd-links a::after { content: " →"; }
.sc-home .sd-pills-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 0.25rem;
}
.sc-home .sd-pills-row::-webkit-scrollbar { display: none; }
.sc-home .sd-pill {
  background: transparent;
  border: 1px solid var(--sc-border-strong);
  color: var(--sc-muted);
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
  font-family: inherit;
}
.sc-home .sd-pill:hover { border-color: var(--sc-accent); color: var(--sc-text); }
.sc-home .sd-pill.active {
  background: var(--sc-accent);
  border-color: var(--sc-accent);
  color: #fff;
  font-weight: 600;
}
.sc-home .sd-pills-row--empty {
  margin-bottom: 1.5rem;
}
.sc-home .sd-pills-soon {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.9rem;
  border: 1px dashed var(--sc-border-strong);
  border-radius: 9999px;
  font-size: 0.8125rem;
  color: var(--sc-muted);
}
.sc-home .sd-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}
.sc-home .sd-card {
  display: flex;
  flex-direction: column;
  padding: 1.15rem;
  background: var(--sc-surface);
  backdrop-filter: blur(10px);
  border: 1px solid var(--sc-border);
  border-radius: 1rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.2s, transform 0.2s;
}
.sc-home .sd-card:hover {
  border-color: color-mix(in oklab, var(--sc-accent) 40%, var(--sc-border));
  box-shadow: 0 12px 32px var(--sc-accent-glow);
  transform: translateY(-2px);
}
.sc-home .sd-card.is-hidden { display: none; }
.sc-home .sd-empty {
  grid-column: 1 / -1;
  padding: 2.5rem 1.5rem;
  border: 1px dashed var(--sc-border-strong);
  border-radius: var(--sc-radius);
  background: #fff;
  text-align: center;
}
.sc-home .sd-empty p {
  margin: 0;
  color: var(--sc-muted);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 36rem;
  margin-inline: auto;
}
.sc-home .sd-card-logo {
  width: 100%;
  height: 4.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
  padding: 0.65rem 0.75rem;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  border: 1px solid var(--sc-border);
  border-radius: 0.75rem;
  overflow: hidden;
}
.sc-home .sd-card-logo-img {
  display: block;
  max-width: 88%;
  max-height: 3.25rem;
  width: auto;
  height: auto;
  object-fit: contain;
}
.sc-home .sd-card-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 2rem;
  font-weight: 800;
  color: var(--sc-accent);
  letter-spacing: -0.03em;
}
.sc-home .sd-card-name {
  display: block;
  font-weight: 700;
  font-size: 0.9375rem;
  text-align: center;
  margin-bottom: 0.35rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sc-home .sd-card-meta {
  font-size: 0.8125rem;
  color: var(--sc-muted);
  display: flex;
  align-items: center;
  gap: 0.375rem;
}
.sc-home .sd-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sc-accent);
}
.sc-home .sd-card-bar {
  height: 3px;
  background: var(--sc-surface-inset);
  border-radius: 2px;
  margin-top: 0.75rem;
  overflow: hidden;
}
.sc-home .sd-card-bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--sc-accent) 0%, color-mix(in oklab, var(--sc-accent) 70%, #60a5fa) 100%);
  border-radius: 2px;
  transform-origin: left center;
  will-change: width;
}
.sc-home .sd-section.is-visible .sd-card-bar-fill.is-done {
  box-shadow: 0 0 8px color-mix(in oklab, var(--sc-accent) 45%, transparent);
}
.sc-home .sd-card-health {
  font-size: 0.75rem;
  font-family: var(--sc-mono);
  color: var(--sc-muted2);
  margin-top: 0.375rem;
  font-variant-numeric: tabular-nums;
  transition: color 0.35s ease;
}
.sc-home .sd-section.is-visible .sd-card-health.is-done {
  color: var(--sc-accent);
}
@media (prefers-reduced-motion: reduce) {
  .sc-home .sd-card-bar-fill {
    transition: none !important;
  }
}

/* ── Featured Posts ── */
.sc-home .fp-section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--sc-border);
  background: var(--sc-surface-solid);
}
.sc-home .fp-container { max-width: var(--sc-max); margin: 0 auto; padding: 0 1.5rem; }
.sc-home .fp-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}
.sc-home .fp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.sc-home .fp-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--sc-border);
  border-radius: var(--sc-radius);
  background: #fff;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  height: 100%;
}
.sc-home .fp-card:hover {
  border-color: color-mix(in oklab, var(--sc-accent) 35%, var(--sc-border));
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}
.sc-home .fp-card-img {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem;
  background-color: #eef2f8;
  border-bottom: 1px solid var(--sc-border);
}
.sc-home .fp-card-img img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}
.sc-home .fp-card-img--placeholder {
  background-image: linear-gradient(135deg, #eef2f8, #f8fafc);
}
.sc-home .fp-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem;
}
.sc-home .fp-card-date {
  font-size: 0.7rem;
  font-family: var(--sc-mono);
  color: var(--sc-muted2);
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}
.sc-home .fp-card-title {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.625rem;
}
.sc-home .fp-card-excerpt {
  font-size: 0.875rem;
  color: var(--sc-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}
.sc-home .fp-card-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--sc-accent);
}
.sc-home .fp-more { margin-top: 1.5rem; }
.sc-home .fp-empty {
  padding: 2.5rem 1.5rem;
  border: 1px dashed var(--sc-border-strong);
  border-radius: var(--sc-radius);
  background: #fff;
  text-align: center;
}
.sc-home .fp-empty p {
  margin: 0;
  color: var(--sc-muted);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 36rem;
  margin-inline: auto;
}

/* ── Surfaces (legacy — kept for reference) ── */
.sc-home .ext-section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--sc-border);
}
.sc-home .ext-container { max-width: var(--sc-max); margin: 0 auto; padding: 0 1.5rem; }
.sc-home .ext-section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}
.sc-home .surface-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.sc-home .ext-card {
  border: 1px solid var(--sc-border);
  background: var(--sc-surface);
  backdrop-filter: blur(12px);
  border-radius: var(--sc-radius);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem;
}
.sc-home .surface-card-full { grid-column: 1 / -1; }
.sc-home .ext-card-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-family: var(--sc-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sc-accent);
  border: 1px solid color-mix(in oklab, var(--sc-accent) 30%, transparent);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}
.sc-home .ext-card h3 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.sc-home .ext-card p { color: var(--sc-muted); font-size: 0.95rem; line-height: 1.65; margin-bottom: 1.25rem; }
.sc-home .btn-ext-primary {
  background: var(--sc-accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
}
.sc-home .ext-platforms {
  font-size: 0.75rem;
  font-family: var(--sc-mono);
  color: var(--sc-muted2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.sc-home .ext-btn-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.sc-home .ext-preview-panel {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0b1220;
  border-radius: 8px;
  padding: 1.15rem;
  color: #e2e8f0;
}
.sc-home .ext-preview-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
}
.sc-home .ext-preview-brand { color: var(--sc-accent); }
.sc-home .ext-preview-domain {
  margin-left: auto;
  font-family: var(--sc-mono);
  font-size: 0.75rem;
  color: var(--sc-accent);
}
.sc-home .ext-code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0.625rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 4px;
  font-family: var(--sc-mono);
  font-size: 0.78rem;
}
.sc-home .ext-code-row.best { border-color: color-mix(in oklab, var(--sc-accent) 40%, transparent); }
.sc-home .ext-code-health { color: var(--sc-accent); margin-left: 0.4rem; }
.sc-home .ext-code-savings.green { color: #34d399; }
.sc-home .ext-code-savings.muted { color: #64748b; }
.sc-home .ext-apply-btn {
  width: 100%;
  margin-top: 0.75rem;
  background: transparent;
  border: 1px solid var(--sc-accent);
  color: var(--sc-accent);
  padding: 0.5rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
}
.sc-home .surface-card {
  border: 1px solid var(--sc-border);
  background: var(--sc-surface);
  backdrop-filter: blur(10px);
  border-radius: var(--sc-radius);
  padding: 1.75rem;
  position: relative;
}
.sc-home .surface-card-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-family: var(--sc-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sc-muted);
  border: 1px solid var(--sc-border);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}
.sc-home .surface-card h3 { font-size: 1.35rem; font-weight: 800; margin-bottom: 0.5rem; }
.sc-home .surface-card p { color: var(--sc-muted); font-size: 0.925rem; line-height: 1.6; margin-bottom: 1rem; }
.sc-home .surface-card a { color: var(--sc-accent); font-weight: 600; font-size: 0.875rem; text-decoration: none; }
.sc-home .surface-card-soon { opacity: 0.75; pointer-events: none; }
.sc-home .surface-soon-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.6rem;
  font-family: var(--sc-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sc-muted2);
  border: 1px solid var(--sc-border);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

/* ── Glass Box ── */
.sc-home .glass-section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--sc-border);
}
.sc-home .glass-container { max-width: var(--sc-max); margin: 0 auto; padding: 0 1.5rem; }
.sc-home .glass-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.sc-home .proof-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.sc-home .proof-text h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.sc-home .proof-text p {
  color: var(--sc-muted);
  font-size: 0.975rem;
  line-height: 1.65;
  margin-bottom: 0.875rem;
}
.sc-home .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid var(--sc-border-strong);
  color: var(--sc-text);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  margin-top: 0.75rem;
  background: var(--sc-surface-solid);
}
.sc-home .btn-secondary:hover {
  border-color: var(--sc-accent);
  color: var(--sc-accent);
}
.sc-home .proof-code-block {
  position: relative;
  border: 1px solid var(--sc-border-strong);
  background: #fff;
  border-radius: var(--sc-radius);
  padding: 2rem 1.5rem;
  font-family: var(--sc-mono);
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--sc-muted);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
  min-height: 18rem;
}
.sc-home .proof-code-stream {
  position: relative;
  min-height: 14rem;
}
.sc-home .proof-code-line {
  white-space: pre;
}
.sc-home .proof-code-line--indent-1 {
  padding-left: 1.25rem;
}
.sc-home .proof-code-line--indent-2 {
  padding-left: 2.5rem;
}
.sc-home .proof-code-line.is-active {
  position: relative;
}
.sc-home .proof-code-cursor {
  display: inline-block;
  width: 0.55rem;
  margin-left: 1px;
  color: var(--sc-accent);
  animation: scCursorBlink 1s step-end infinite;
  vertical-align: baseline;
}
.sc-home .proof-code-block.is-done .proof-code-cursor {
  display: none;
}
.sc-home .proof-code-badge {
  position: absolute;
  top: -0.75rem;
  right: 1rem;
  background: var(--sc-accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.sc-home .syn-str { color: #0d9488; }
.sc-home .syn-num { color: #d97706; }
.sc-home .syn-key { color: var(--sc-accent); }

/* ── Research (with images) ── */
.sc-home .research-section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--sc-border);
}
.sc-home .research-container { max-width: var(--sc-max); margin: 0 auto; padding: 0 1.5rem; }
.sc-home .research-heading {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.sc-home .research-desc {
  color: var(--sc-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  max-width: 520px;
}
.sc-home .research-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
  align-items: stretch;
}
.sc-home .research-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border: 1px solid var(--sc-border);
  border-radius: var(--sc-radius);
  background: var(--sc-surface);
  backdrop-filter: blur(12px);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  height: 100%;
}
.sc-home .research-card:hover {
  border-color: color-mix(in oklab, var(--sc-accent) 35%, var(--sc-border));
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}
.sc-home .research-stacked {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.sc-home .research-tag {
  font-size: 0.65rem;
  font-family: var(--sc-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sc-muted2);
  margin-bottom: 0.75rem;
}
.sc-home .research-card-title {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.sc-home .research-card-desc {
  font-size: 0.875rem;
  color: var(--sc-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}
.sc-home .research-card-meta {
  font-size: 0.7rem;
  font-family: var(--sc-mono);
  letter-spacing: 0.06em;
  color: var(--sc-muted2);
  margin-bottom: 1rem;
}
.sc-home .research-card-img {
  display: block;
  width: 100%;
  margin-bottom: 1.25rem;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--sc-border);
}
.sc-home .research-card-img img {
  display: block;
  width: 100%;
  height: auto;
}
.sc-home .research-card .btn-secondary { margin-top: auto; align-self: flex-start; }

/* ── CTA ── */
.sc-home .cta-single-section {
  padding: 5rem 1.5rem;
  text-align: center;
}
.sc-home .cta-single-card { max-width: 48rem; margin: 0 auto; }
.sc-home .cta-bottom-heading {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin-bottom: 1rem;
}
.sc-home .cta-heading-line {
  display: block;
}
.sc-home .cta-bottom-desc {
  font-size: 1rem;
  color: var(--sc-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}
.sc-home .cta-button-primary {
  display: inline-flex;
  align-items: center;
  background: var(--sc-accent);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.875rem 1.75rem;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 12px 28px var(--sc-accent-glow);
}
.sc-home .cta-button-primary:hover {
  color: #fff;
  filter: brightness(1.05);
}

/* Responsive */
@media (max-width: 768px) {
  .sc-home .ve-container {
    grid-template-columns: 1fr;
  }
  .sc-home .ve-left,
  .sc-home .ve-terminal {
    grid-column: 1;
    grid-row: auto;
  }
}
@media (max-width: 960px) {
  .sc-home .ve-container,
  .sc-home .proof-layout,
  .sc-home .research-grid,
  .sc-home .fp-grid { grid-template-columns: 1fr; }
  .sc-home .sd-grid { grid-template-columns: repeat(2, 1fr); }
  .sc-home .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .sc-home .sc-hero {
    padding: 2.25rem 1rem 2.5rem;
  }

  .sc-home .hero-description {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .sc-home .heading-break {
    white-space: normal;
  }

  .sc-home .sc-search-input {
    font-size: 16px;
    padding: 0.8rem 2.35rem 0.8rem 2.65rem;
  }

  .sc-home .sc-search-icon {
    left: 0.75rem;
    width: 1.1rem;
    height: 1.1rem;
  }

  .sc-home .sc-search-glow {
    inset: 0;
    filter: blur(6px);
  }

  .sc-home .hero-stats {
    gap: 0.35rem 0.65rem;
  }

  .sc-home .sd-grid { grid-template-columns: 1fr; }
  .sc-home .research-card-img { display: block; }
}
