.hero {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  align-items: center;
  gap: 3.5rem;
  min-height: calc(100vh - var(--nav-h));
  padding: 3rem 0;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  margin-bottom: 1.6rem;
}
.hero-eyebrow .status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(34, 211, 238, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); }
}

.hero-text h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.02;
  margin-bottom: 1rem;
}

.hero-roles {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3vw, 1.7rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1.25rem;
  min-height: 1.6em;
}
.hero-roles .typed-cursor { color: var(--accent); font-weight: 400; }

.hero-sub {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-family: var(--font-mono);
}

.hero-bio {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin-bottom: 2.25rem;
}

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }

.hero-social { display: flex; gap: 0.6rem; }
.hero-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  color: var(--muted);
  transition: transform var(--transition), border-color var(--transition), color var(--transition), background var(--transition);
}
.hero-social a:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px);
}

.hero-img-wrap {
  position: relative;
  justify-self: center;
  width: min(340px, 80vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.hero-img-wrap::before {
  content: '';
  position: absolute;
  inset: 1%;
  border-radius: 50%;
  border: 1px dashed rgba(34, 211, 238, 0.38);
  animation: spin 26s linear infinite;
}
.hero-img-wrap::after {
  content: '';
  position: absolute;
  inset: -5%;
  border-radius: 50%;
  border: 1px solid rgba(224, 30, 60, 0.22);
  box-shadow: inset 0 0 34px rgba(34, 211, 238, 0.08);
  animation: spin 34s linear infinite reverse;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero-img {
  position: relative;
  width: 78%;
  height: 78%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--surface-solid);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.4), 0 0 42px rgba(34, 211, 238, 0.18), 0 0 64px rgba(224, 30, 60, 0.12);
  z-index: 1;
}

.code-orbit { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.orbit-code {
  position: absolute;
  top: 50%; left: 50%;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--accent-2);
  text-shadow: 0 0 8px rgba(34, 211, 238, 0.55);
  white-space: nowrap;
  opacity: 0.82;
  will-change: transform;
}
.orbit-code.red { color: var(--accent); text-shadow: 0 0 8px rgba(224, 30, 60, 0.55); }
.orbit-code.dim { opacity: 0.5; font-size: 0.64rem; }

.hero-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text);
  background: var(--surface-solid);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 0.42rem 0.85rem;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(224, 30, 60, 0.12);
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}
.hero-badge svg { width: 15px; height: 15px; color: var(--accent); flex-shrink: 0; }
.hero-badge.b1 { top: 8%; left: -6%; animation: float1 5s ease-in-out infinite; }
.hero-badge.b2 { bottom: 14%; right: -8%; animation: float2 6s ease-in-out infinite; }
.hero-badge.b3 { bottom: 2%; left: 10%; animation: float1 7s ease-in-out infinite; }
@keyframes float1 { 0%,100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(0,-10px,0); } }
@keyframes float2 { 0%,100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(0,10px,0); } }

.stats-panel {
  position: relative;
  margin: 1rem 0 2.5rem;
  background: var(--surface-solid);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.stats-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,0.02) 0 2px, transparent 2px 4px);
}
[data-theme="light"] .stats-panel::after { background: repeating-linear-gradient(to bottom, rgba(60,63,88,0.03) 0 2px, transparent 2px 4px); }

.stats-winbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
}
.win-dots { display: inline-flex; gap: 0.4rem; }
.win-dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--muted); opacity: 0.6; }
.win-dots i:nth-child(1) { background: var(--accent); opacity: 0.9; }
.win-dots i:nth-child(2) { background: #f5b301; opacity: 0.9; }
.win-dots i:nth-child(3) { background: var(--accent-2); opacity: 0.9; }
.win-title { letter-spacing: 0.02em; }
.win-flag {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
}
.win-flag::before {
  content: '';
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 8px var(--accent-2);
  animation: pulse 2s infinite;
}

.stats-body { display: flex; flex-direction: column; }

.stat-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(150px, 1fr) 1.3fr auto;
  align-items: center;
  gap: 1.25rem;
  padding: 1.3rem 1.4rem;
  text-decoration: none;
  color: var(--text);
  border-top: 1px solid var(--border);
  transition: background var(--transition), padding-left var(--transition);
}
.stats-body .stat-row:first-child { border-top: none; }
.stat-row::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  background: var(--grad);
  box-shadow: 0 0 18px var(--accent);
  transition: width var(--transition);
}
.stat-row:hover {
  background: var(--grad-soft);
  padding-left: 1.9rem;
  color: var(--text);
}
.stat-row:hover::before { width: 3px; }

.stat-cmd {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stat-cmd .stat-prompt { color: var(--accent); font-weight: 700; margin-right: 0.4rem; }
.stat-row:hover .stat-cmd { color: var(--text); }

.stat-meter {
  position: relative;
  height: 10px;
  border-radius: 3px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  overflow: hidden;
}
.stat-bar {
  position: absolute;
  inset: 0;
  width: 0;
  background: var(--grad);
  box-shadow: 0 0 14px var(--accent);
  transition: width 1.5s var(--ease-out);
}
.stat-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: translateX(-100%);
  animation: barSweep 2.6s ease-in-out infinite;
}
.stats-panel.in .stat-bar { width: var(--fill); }

.stat-val {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  justify-self: end;
  font-family: var(--font-mono);
}
.stat-num {
  font-family: var(--font-mono);
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text);
  text-shadow: 0 0 20px rgba(34, 211, 238, 0.45);
}
[data-theme="light"] .stat-num { text-shadow: none; color: var(--accent); }
.stat-val em {
  font-style: normal;
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.stat-row:hover .stat-num { color: var(--accent-2); }
[data-theme="light"] .stat-row:hover .stat-num { color: var(--accent); }

@keyframes barSweep {
  0% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(200%); }
}

.carousel-wrap {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.carousel-track {
  display: flex;
  gap: 0.9rem;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.carousel-track:hover { animation-play-state: paused; }
.carousel-track .tag-pill {
  white-space: nowrap;
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.review-card {
  position: relative;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.review-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.review-quote-mark {
  position: absolute;
  top: 0.4rem; right: 1.5rem;
  font-size: 6rem;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.18;
  font-family: Georgia, serif;
  pointer-events: none; user-select: none;
}
.review-header { display: flex; align-items: center; gap: 0.9rem; }
.review-avatar {
  width: 54px; height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid transparent;
  background: var(--grad) border-box;
  box-shadow: 0 0 0 2px var(--bg-2) inset;
  flex-shrink: 0;
}
.review-meta { display: flex; flex-direction: column; gap: 0.25rem; }
.review-name { font-family: var(--font-display); font-size: 0.98rem; font-weight: 700; color: var(--text); }
.review-role { font-size: 0.8rem; color: var(--muted); }
.review-stars-container { display: flex; align-items: center; gap: 5px; }
.review-rating-num { font-weight: 700; font-family: var(--font-mono); font-size: 0.82rem; color: var(--text); }
.review-stars { display: flex; align-items: center; gap: 2px; }
.review-text { font-size: 0.92rem; color: var(--muted); line-height: 1.7; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; text-align: center; gap: 2.5rem; min-height: auto; padding-top: 2rem; }
  .hero-text { order: 2; }
  .hero-img-wrap { order: 1; width: min(280px, 70vw); }
  .hero-eyebrow, .hero-cta, .hero-social { justify-content: center; }
  .hero-bio { margin-left: auto; margin-right: auto; }
}
@media (max-width: 640px) {
  .stat-row { grid-template-columns: 1fr auto; gap: 0.75rem 1rem; }
  .stat-meter { grid-column: 1 / -1; order: 3; }
  .stat-num { font-size: 1.7rem; }
}
@media (max-width: 600px) {
  .reviews-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn-primary, .hero-cta .btn-secondary { width: 100%; }
  .hero-badge { font-size: 0.68rem; padding: 0.3rem 0.6rem; }
}