.hero {
  min-height: 620px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  position: relative;
  padding-top: 15px;
  padding-bottom: 34px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  margin-bottom: 18px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 13px;
}

.hero-kicker::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 6px rgba(34, 197, 94, .14);
}

.hero h1 {
  font-size: clamp(56px, 8vw, 96px);
  line-height: 0.92;
  letter-spacing: -4px;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  color: transparent;
}

.hero h2 {
  margin-top: 22px;
  font-size: clamp(20px, 2.4vw, 28px);
  color: var(--text);
  max-width: 780px;
  line-height: 1.25;
}

.hero-description {
  margin-top: 20px;
  color: var(--muted);
  max-width: 680px;
  line-height: 1.8;
  font-size: 17px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-tags span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--border);
}

.hero-tags i {
  color: var(--primary);
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  min-height: 530px;
  display: grid;
  place-items: center;
}

.orb {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, rgba(56, 189, 248, .9), transparent 26%),
    radial-gradient(circle at 65% 65%, rgba(139, 92, 246, .85), transparent 32%);
  filter: blur(14px);
  opacity: .58;
  animation: float 6s ease-in-out infinite;
}

.code-card {
  position: relative;
  width: min(420px, 100%);
  display: grid;
  gap: 14px;
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(15, 23, 42, .92), rgba(15, 23, 42, .72));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  animation: cardFloat 5s ease-in-out infinite;
}

[data-theme="light"] .code-card {
  background: rgba(255, 255, 255, .82);
}

.code-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.code-card-header strong {
  font-size: 18px;
}

.code-card-header span {
  color: var(--success);
  font-size: 13px;
  font-weight: 800;
}

.dynamic-tech-stack {
  display: grid;
  gap: 14px;
}

.dynamic-tech-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(56, 189, 248, 0.10);
  border: 1px solid var(--border);
  animation: techFade .35s ease both;
}

.dynamic-tech-item i {
  color: var(--primary);
  font-size: 20px;
}

.dynamic-tech-item span {
  font-weight: 800;
}

.scroll-indicator {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 34px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  opacity: .75;
}

.scroll-indicator i {
  animation: bounce 1.4s infinite;
}

.hero-content {
  animation: heroLeft .9s ease both;
}

.hero-visual {
  animation: heroRight 1s ease both;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}

@keyframes cardFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

@keyframes techFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes heroLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: none; }
}

@keyframes heroRight {
  from { opacity: 0; transform: translateX(60px); }
  to { opacity: 1; transform: none; }
}
