:root {
  --accent: #5B8DEF;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  background: #121214;
  color: #ECEAE2;
}

a { color: inherit; text-decoration: none; }

.page {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 76px 24px 56px;
  background: #121214;
}

/* CLOCK */
.clock-block { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 4px; cursor: default; }
.clock-row { display: flex; align-items: baseline; gap: 4px; }
.clock { font-size: 96px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; color: #F6F5F0; }
.colon { animation: blink 2s steps(1) infinite; }
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0.25; } }
.seconds { font-size: 28px; font-weight: 700; color: #6B6B70; font-variant-numeric: tabular-nums; align-self: flex-end; margin-bottom: 10px; visibility: hidden; }
.seconds.visible { visibility: visible; }

.greeting-row { display: flex; align-items: center; gap: 8px; font-size: 15px; color: #85858B; text-transform: capitalize; }
.icon { display: flex; }
.icon[hidden] { display: none; }

.bars-row { display: flex; gap: 20px; margin-top: 4px; }
.bar-col { display: flex; flex-direction: column; gap: 5px; width: 130px; }
.bar-track { height: 4px; border-radius: 4px; background: #24252A; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 4px; transition: width 0.5s ease; }
.bar-label { font-size: 11px; color: #55565B; }

/* SEARCH */
.search-block { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 40px 0 64px; }
.engine-row { display: flex; gap: 6px; }
.engine-btn { border: none; border-radius: 999px; padding: 6px 16px; font-size: 12.5px; font-weight: 600; cursor: pointer; background: #191A1D; color: #85858B; }
.engine-btn:hover { color: #ECEAE2; }
.engine-btn.active { background: var(--accent); color: #0D0E10; }

.search-wrap { width: 100%; max-width: 560px; display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-radius: 999px; border: 1px solid #2B2C30; background: #191A1D; transition: border-color 0.15s; }
.search-wrap:focus-within { border-color: var(--accent); }
.search-input { flex-grow: 1; border: none; background: transparent; color: #ECEAE2; font-size: 15px; font-family: 'Manrope', sans-serif; }
.search-input::placeholder { color: #6B6B70; }
.search-input:focus { outline: none; }
.search-btn { border: none; background: transparent; display: flex; align-items: center; color: #6B6B70; cursor: pointer; transition: color 0.15s; }
.search-btn:hover { color: var(--accent); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* GROUPS */
.groups { width: 100%; max-width: 880px; display: flex; flex-direction: column; gap: 40px; }
.group { display: flex; flex-direction: column; gap: 16px; }
.section-label { font-size: 12px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: #6B6B70; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

.tile { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px 12px; border-radius: 16px; border: 1px solid #24252A; background: #17181B; transition: border-color 0.15s, background 0.15s, transform 0.15s; }
.tile:hover { border-color: #3A3B40; background: #1D1E21; transform: translateY(-2px); }
.tile-icon { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.tile-label { font-size: 13.5px; font-weight: 600; }

.footer-note { margin-top: 64px; font-size: 12.5px; color: #4A4A4E; }

@media (max-width: 640px) {
  .clock { font-size: 64px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bars-row { flex-direction: column; gap: 10px; align-items: center; }
}
