:root {
  color-scheme: dark;
  --bg: #070b15;
  --panel: rgba(17, 25, 43, .78);
  --line: rgba(255, 255, 255, .09);
  --text: #f4f7fb;
  --muted: #9ba8bb;
  --accent: #61dafb;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  min-width: 280px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 10% -10%, rgba(37, 99, 235, .22), transparent 35rem),
    radial-gradient(circle at 100% 80%, rgba(124, 58, 237, .14), transparent 38rem),
    var(--bg);
  line-height: 1.5;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  filter: blur(110px);
  opacity: .13;
  pointer-events: none;
}
.ambient-one { top: 8%; left: 7%; background: #0ea5e9; }
.ambient-two { right: 3%; bottom: 4%; background: #8b5cf6; }

.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 72px 0 36px; }
.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 54px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 13px; color: #b8c5d8; font-size: .78rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #38d996; box-shadow: 0 0 0 5px rgba(56, 217, 150, .1); }
h1 { max-width: 720px; margin: 0; font-size: clamp(2.4rem, 7vw, 5.4rem); line-height: .98; letter-spacing: -.055em; }
.lead { max-width: 650px; margin: 21px 0 0; color: var(--muted); font-size: clamp(1rem, 2vw, 1.18rem); }
.hero-subtitle { margin: 10px 0 0; color: #c5d2e7; font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 650; letter-spacing: -.02em; }

.clock { flex: 0 0 auto; padding: 16px 19px; border: 1px solid var(--line); border-radius: 16px; background: rgba(12, 18, 31, .62); backdrop-filter: blur(14px); text-align: right; }
.clock time { display: block; }
#clock-time { font-size: 1.55rem; font-weight: 760; letter-spacing: -.04em; }
#clock-date { color: var(--muted); font-size: .78rem; }

.groups { display: grid; gap: 34px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.section-head h2 { margin: 0; font-size: .9rem; letter-spacing: .11em; text-transform: uppercase; }
.section-head span { color: var(--muted); font-size: .82rem; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.grid-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: calc(50% - 7px); }

.tile {
  --tile-accent: #60a5fa;
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 132px;
  padding: 21px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: linear-gradient(145deg, rgba(24, 34, 56, .88), rgba(13, 20, 35, .78));
  box-shadow: 0 15px 45px rgba(0, 0, 0, .14);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.tile::after { content: ""; position: absolute; right: -28px; bottom: -50px; width: 110px; height: 110px; border-radius: 50%; background: var(--tile-accent); filter: blur(45px); opacity: .11; transition: opacity .2s ease; }
.tile:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--tile-accent) 38%, transparent); background: linear-gradient(145deg, rgba(28, 39, 64, .94), rgba(14, 22, 39, .88)); }
.tile:hover::after { opacity: .22; }
.tile:focus-visible { outline: 3px solid var(--tile-accent); outline-offset: 3px; }
.icon { display: grid; place-items: center; width: 45px; height: 45px; border: 1px solid color-mix(in srgb, var(--tile-accent) 30%, transparent); border-radius: 14px; color: var(--tile-accent); background: color-mix(in srgb, var(--tile-accent) 11%, transparent); }
.icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tile-copy { min-width: 0; }
.tile-copy strong, .tile-copy small { display: block; }
.tile-copy strong { margin-bottom: 4px; font-size: 1rem; }
.tile-copy small { color: var(--muted); font-size: .78rem; line-height: 1.35; }
.arrow { align-self: start; color: #8290a5; font-size: .68rem; font-weight: 700; white-space: nowrap; }
.tile-cyan { --tile-accent: #22d3ee; }
.tile-amber { --tile-accent: #fbbf24; }
.tile-rose { --tile-accent: #fb7185; }
.tile-violet { --tile-accent: #a78bfa; }
.tile-orange { --tile-accent: #fb923c; }
.tile-green { --tile-accent: #34d399; }
.tile-red { --tile-accent: #f87171; }
.tile-indigo { --tile-accent: #818cf8; }

footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 30px; padding-top: 22px; color: #7f8ba0; border-top: 1px solid var(--line); font-size: .78rem; }
footer span:first-child { display: flex; align-items: center; gap: 9px; }
footer .status-dot { width: 6px; height: 6px; box-shadow: none; }

@media (max-width: 1020px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-compact { max-width: none; } }
@media (max-width: 680px) {
  .shell { width: min(100% - 28px, 600px); padding-top: 40px; }
  .hero { align-items: flex-start; flex-direction: column; margin-bottom: 38px; }
  .clock { text-align: left; }
  .grid { grid-template-columns: 1fr; }
  .tile { min-height: 108px; }
}
@media (max-width: 380px) { footer { flex-direction: column; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
