.hero {
  max-width: 860px;
  width: 100%;
  --clock-w: clamp(220px, 37.5%, 360px);
  --clock-h: max(calc(var(--clock-w) / 5), 74px);
  padding: calc(1.4rem + (var(--clock-h) / 2) + 0.45rem) 1.8rem 1.4rem;
  border-radius: 1.15rem;
  position: relative;
  background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.06),
      rgba(255, 255, 255, 0.012)
    ),
    linear-gradient(135deg, rgba(40, 40, 80, 0.26), rgba(14, 14, 36, 0.18));
  box-shadow: 0 25px 60px var(--shadow-0);
  backdrop-filter: blur(22px) saturate(145%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transform-origin: center;
  text-align: left;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.hero-clock {
  position: absolute;
  top: 0;
  right: 1.6rem;
  transform: translateY(-50%);
  width: var(--clock-w);
  height: var(--clock-h);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(6px, 0.9vw, 10px);
  border-radius: 0.95rem;
  background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.06),
      rgba(255, 255, 255, 0.012)
    ),
    linear-gradient(135deg, rgba(40, 40, 80, 0.26), rgba(14, 14, 36, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(44px) saturate(160%);
  backdrop-filter: blur(44px) saturate(160%);
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.clock-led {
  height: 100%;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr 0.42fr 1fr 1fr 0.42fr 1fr 1fr;
  gap: clamp(4px, 0.85vw, 8px);
  align-items: center;
}

.led-digit {
  height: 100%;
  padding: 0;
  border-radius: 0.6rem;
  background: rgba(8, 8, 22, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.led-digit-grid {
  height: 100%;
  width: 100%;
  padding: clamp(2px, 0.4vw, 4px);
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: repeat(11, 1fr);
  gap: clamp(1px, 0.14vw, 2px);
}

.led-dot {
  width: 72%;
  height: auto;
  aspect-ratio: 1 / 1;
  justify-self: center;
  align-self: center;
  box-sizing: border-box;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0);
  opacity: 0.6;
}

.led-dot.on {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(255, 255, 255, 0.96);
  opacity: 1;
}

.led-colon {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18%;
}

.colon-dot {
  width: 22%;
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
}

.hero-head {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.hero-text {
  flex: 1;
  min-width: 0;
}

.avatar-wrapper {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0;
  border: 3px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-title {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  flex-wrap: wrap;
  font-size: 2.05rem;
  line-height: 1.2;
  margin-bottom: 0.35rem;
  letter-spacing: 0.02em;
}

.hero-greeting {
  font-weight: 300;
  color: rgba(255, 255, 255, 0.86);
  white-space: nowrap;
}

.hero-highlight {
  display: inline-block;
  font-weight: 700;
  font-size: 2.2rem;
  background: linear-gradient(
    120deg,
    var(--grad-a),
    var(--grad-b),
    var(--grad-c)
  );
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.typed-wrapper {
  min-height: 1.8rem;
  margin-bottom: 0.2rem;
  font-size: 1.02rem;
  color: #c5c6ff;
}

.typed-wrapper #typed-text {
  border-right: 2px solid #ff79c6;
  padding-right: 4px;
}

@media (max-width: 720px) {
  .hero {
    --clock-w: clamp(240px, 72%, 360px);
    --clock-h: max(calc(var(--clock-w) / 5), 66px);
    padding: calc(1.25rem + (var(--clock-h) / 2) + 0.45rem) 1.2rem 1.25rem;
    text-align: center;
  }
  .hero-clock {
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
  }
  .hero-head {
    flex-direction: column;
    gap: 0.9rem;
  }
  .avatar-wrapper {
    width: 92px;
    height: 92px;
  }
  .hero-title {
    justify-content: center;
    font-size: 1.75rem;
  }
  .hero-highlight {
    font-size: 1.95rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.6rem;
  }
  .hero-highlight {
    font-size: 1.85rem;
  }
}
