/* =============================================================================
   HERO — signature element: a live "week timetable" mosaic
   ============================================================================= */

.hero {
  padding: 8.5rem 0 6rem;
  position: relative;
  overflow: hidden;
  background-image: var(--gradient-mesh);
}

.hero__grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 980px) {
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2rem;
  }
}

.hero__copy .eyebrow { margin-bottom: 1.25rem; }

.hero__copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.2vw, 3.6rem);
  line-height: 1.08;
  color: var(--color-text);
  max-width: 16ch;
}

.hero__copy h1 .accent {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
}

.hero__copy p.lead {
  margin-top: 1.5rem;
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
  max-width: 46ch;
  line-height: var(--line-height-snug);
}

.hero__actions {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.hero__trust {
  margin-top: 2.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem 2.25rem;
}

.hero__trust-item {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.hero__trust-item strong {
  font-family: var(--font-display);
  font-size: var(--font-size-2xl);
  color: var(--color-text);
}

.hero__trust-item span {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  max-width: 12ch;
  line-height: 1.3;
}

/* ── Signature: timetable mosaic ─────────────────────────────────────── */

.hero__visual {
  position: relative;
}

.timetable-card {
  background: var(--color-surface-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--color-border-glass);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
  padding: 1.5rem;
  transform: rotate(1.2deg);
  animation: floatCard 7s ease-in-out infinite;
}

@keyframes floatCard {
  0%, 100% { transform: rotate(1.2deg) translateY(0); }
  50% { transform: rotate(1.2deg) translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
  .timetable-card { animation: none; }
}

.timetable-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}

.timetable-card__head h3 {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text);
}

.timetable-card__head span {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.timetable {
  display: grid;
  grid-template-columns: 2.4rem repeat(5, 1fr);
  gap: 4px;
}

.timetable .tt-head {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  text-align: center;
  padding-block: 0.35rem;
}

.timetable .tt-time {
  font-size: 0.6rem;
  color: var(--color-text-disabled);
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding-top: 0.2rem;
  padding-right: 0.25rem;
}

.tt-cell {
  min-height: 2.5rem;
  border-radius: 0.4rem;
  background: var(--color-border-soft);
}

.tt-block {
  border-radius: 0.4rem;
  padding: 0.3rem 0.4rem;
  font-size: 0.6rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.15;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: scale(0.85);
  animation: popIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@media (prefers-reduced-motion: reduce) {
  .tt-block { opacity: 1; transform: none; animation: none; }
}

@keyframes popIn {
  to { opacity: 1; transform: scale(1); }
}

.tt-block span { display: block; font-weight: 400; opacity: 0.85; font-size: 0.55rem; }

.timetable-card__foot {
  margin-top: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--color-border);
}

.timetable-card__foot .live-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 0 4px var(--color-success-soft);
  animation: pulseDot 1.8s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.timetable-card__foot p {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.hero__badge-float {
  position: absolute;
  bottom: -1.25rem;
  left: -1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  max-width: 210px;
}

.hero__badge-float .icon-wrap {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.65rem;
  background: var(--gradient-icon-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero__badge-float .icon-wrap svg { width: 1.1rem; height: 1.1rem; color: #fff; }

.hero__badge-float strong { display: block; font-size: var(--font-size-sm); color: var(--color-text); }
.hero__badge-float span { font-size: 0.68rem; color: var(--color-text-muted); }

@media (max-width: 640px) {
  .hero { padding-top: 7rem; }
  .hero__badge-float { display: none; }
  .timetable-card { transform: none; }
}
