:root {
  --bg: #04070d;
  --bg-2: #07111d;
  --card: rgba(8, 12, 20, 0.62);
  --card-strong: rgba(9, 14, 24, 0.86);
  --line: rgba(120, 175, 255, 0.12);
  --text: #eef4ff;
  --muted: #9ba9c4;
  --cyan: #3cc8ff;
  --violet: #8b5cf6;
  --green: #22c55e;
  --green-2: #21d07a;
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.48);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  background: radial-gradient(circle at top left, rgba(91, 71, 255, 0.20), transparent 20%), linear-gradient(180deg, #010308 0%, #030712 45%, #02050b 100%);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.page-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.city-backdrop {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(1, 3, 8, 0.25) 0%, rgba(2, 5, 11, 0.72) 55%, rgba(2, 5, 11, 0.92) 100%),
    url("baku-flame-towers.png"),
    linear-gradient(180deg, rgba(1, 3, 8, 0.15) 0%, rgba(2, 5, 11, 0.52) 55%, rgba(2, 5, 11, 0.82) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 1200'%3E%3Cdefs%3E%3ClinearGradient id='sea' x1='0' x2='0' y1='0' y2='1'%3E%3Cstop stop-color='%23091424'/%3E%3Cstop offset='1' stop-color='%23030712'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='1600' height='1200' fill='%23010610'/%3E%3Ccircle cx='112' cy='88' r='150' fill='rgba(102,76,255,0.25)'/%3E%3Cpath d='M0 760c110 20 205 28 335 15 92-9 165-25 257-24 103 2 165 28 274 30 120 3 202-19 312-28 154-12 238 13 422 54v393H0z' fill='url(%23sea)'/%3E%3Cpath d='M0 700c220 48 316 60 528 50 161-8 275-38 433-36 187 2 284 36 639 67v18c-277-24-437-47-639-49-172-2-280 25-433 34-219 12-360 4-528-41z' fill='rgba(75,194,255,0.25)'/%3E%3Cg opacity='0.95'%3E%3Cpath d='M75 850h225V770l22-26 22 26v80h38V690l28-34 28 34v160h50V640l40-142 40 142v210h44V590l30-44 30 44v260h50V720l22-23 22 23v130h56V640l48-175 48 175v210h40V610l32-40 32 40v240h58V770l30-30 30 30v80h300v170H75z' fill='%2307101e'/%3E%3Cpath d='M425 760c18-238 51-360 98-360s80 122 98 360' fill='%23111f38'/%3E%3Cpath d='M870 640c22-190 55-285 105-285s83 95 105 285' fill='%23131f40'/%3E%3Cpath d='M1025 372c18 0 33 22 48 59 18-36 34-59 52-59 39 0 72 114 92 274h-44c-15-128-34-195-48-195-11 0-23 41-38 105h-28c-16-64-28-105-39-105-14 0-31 67-46 195h-41c19-160 52-274 92-274Z' fill='%23141f43'/%3E%3Cg fill='%2326d07c'%3E%3Crect x='1032' y='410' width='12' height='140' rx='6'/%3E%3Crect x='1080' y='360' width='12' height='190' rx='6'/%3E%3Crect x='1128' y='410' width='12' height='140' rx='6'/%3E%3C/g%3E%3Cg fill='%2341cfff'%3E%3Crect x='438' y='520' width='8' height='110' rx='4'/%3E%3Crect x='474' y='482' width='8' height='148' rx='4'/%3E%3Crect x='510' y='520' width='8' height='110' rx='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-size: cover, cover, cover;
  background-position: center center, center center, center center;
  filter: saturate(1.15);
  transform: scale(1.02);
}
.city-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(43, 187, 255, 0.16), transparent 20%),
    linear-gradient(180deg, rgba(0,0,0,0.06), rgba(0,0,0,0.38));
}

.overlay-noise {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.03) 0.8px, transparent 0.8px);
  background-size: 10px 10px;
  opacity: .08;
  pointer-events: none;
}

.blur-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(80px);
  pointer-events: none;
  animation: floaty 12s ease-in-out infinite;
}
.orb-a { width: 240px; height: 240px; background: rgba(103, 76, 255, 0.18); top: -40px; left: -40px; }
.orb-b { width: 260px; height: 260px; background: rgba(38, 208, 124, 0.15); top: 34%; left: 18%; animation-delay: -3s; }
.orb-c { width: 220px; height: 220px; background: rgba(115, 85, 255, 0.18); right: -60px; bottom: 8%; animation-delay: -6s; }

.hub-wrap {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}

.hub-card {
  width: min(100%, 430px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}

.brand-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 8px;
}

.logo-shell {
  position: relative;
  width: 90px;
  height: 90px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.logo-glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(135,92,255,.25), rgba(43,187,255,.08));
  border: 1px solid rgba(148, 113, 255, 0.26);
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.20), inset 0 0 28px rgba(55, 65, 255, 0.12);
}
.brand-logo {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 14px;
}
.brand-block h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 2.6rem);
  letter-spacing: -0.04em;
  font-weight: 800;
}
.brand-subtitle {
  margin: 6px 0 0;
  color: #5ce1ff;
  font-size: .9rem;
}

.info-panel,
.contact-panel,
.stack-link {
  background: linear-gradient(180deg, rgba(7,11,18,.84), rgba(9,13,22,.74));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.info-panel,
.contact-panel {
  border-radius: 24px;
  padding: 14px;
}

.panel-head,
.stack-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.panel-head { gap: 10px; }
.mini-icon,
.hours-icon,
.icon-box,
.arrow-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mini-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(79, 107, 255, 0.12);
  color: #bfd4ff;
  font-size: .95rem;
}
.panel-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .7rem;
  color: #d8e3ff;
}
.status-pill {
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.18);
  color: #7bf3a6;
  border: 1px solid rgba(123, 243, 166, 0.24);
  text-transform: uppercase;
  font-size: .66rem;
  letter-spacing: .14em;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 20px rgba(34,197,94,.18);
}
.status-pill.is-closed {
  background: rgba(239, 68, 68, 0.18);
  color: #ff9c9c;
  border-color: rgba(248, 113, 113, 0.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 0 20px rgba(239,68,68,.16);
}
.hours-row {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.03);
  color: #d9e7ff;
  flex-wrap: wrap;
}
.hours-icon {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: rgba(84, 109, 255, 0.10);
}
.hours-row strong {
  padding: 5px 8px;
  border-radius: 10px;
  background: rgba(111, 100, 255, 0.18);
  border: 1px solid rgba(154, 140, 255, 0.16);
  font-size: .86rem;
}
.dash { opacity: .7; }

.stack-link {
  padding: 14px;
  border-radius: 20px;
  gap: 12px;
  position: relative;
  overflow: hidden;
  transition: transform .32s ease, box-shadow .32s ease, border-color .32s ease;
}
.stack-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 10%, rgba(255,255,255,.11) 48%, transparent 86%);
  transform: translateX(-130%);
  transition: transform .8s ease;
}
.stack-link:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .46), 0 0 0 1px rgba(255,255,255,.04) inset;
}
.stack-link:hover::before { transform: translateX(130%); }
.instagram-card {
  background: linear-gradient(135deg, rgba(251, 146, 60, .88), rgba(236, 72, 153, .70));
  border-color: rgba(255, 183, 99, 0.26);
}
.tiktok-card {
  background: linear-gradient(135deg, rgba(10, 10, 12, .92), rgba(3, 4, 8, .86));
  border-color: rgba(110, 214, 255, 0.14);
}
.whatsapp-card {
  background: linear-gradient(135deg, rgba(30, 193, 96, .94), rgba(18, 168, 86, .82));
  border-color: rgba(127, 255, 187, 0.20);
}
.link-left {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.icon-box {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255,255,255,.16);
  color: white;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22);
}
.icon-box svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}
.link-title {
  display: block;
  font-weight: 700;
  letter-spacing: -.02em;
}
.stack-link small {
  display: block;
  margin-top: 2px;
  color: rgba(255,255,255,.88);
}
.arrow-box {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  color: #fff;
  font-size: 1rem;
  position: relative;
  z-index: 1;
}

.mini-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: -2px;
  margin-bottom: 2px;
}
.mini-list a {
  padding: 7px 10px;
  border-radius: 999px;
  font-size: .78rem;
  color: #c7d4ee;
  background: rgba(10, 15, 26, .62);
  border: 1px solid rgba(122, 150, 255, 0.12);
  transition: transform .25s ease, border-color .25s ease, color .25s ease;
}
.mini-list a:hover {
  transform: translateY(-2px);
  color: #fff;
  border-color: rgba(92, 196, 255, 0.3);
}

.contact-panel {
  margin-top: 8px;
}
.hub-card > .stack-link + .stack-link {
  margin-top: -2px;
}

.stack-link .link-left small {
  font-size: .9rem;
  letter-spacing: -.01em;
}

.contact-title {
  font-size: .92rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: #d9e3ff;
  margin-bottom: 10px;
}
.contact-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.contact-item:first-of-type { border-top: 0; }
.contact-item span {
  color: var(--muted);
  font-size: .92rem;
}
.contact-item a,
.contact-item strong {
  color: #eef4ff;
  font-weight: 600;
  text-align: right;
}
.contact-item a:hover { color: #68d7ff; }

.reveal-up {
  opacity: 0;
  transform: translateY(16px);
  animation: revealUp .7s ease forwards;
}
.delay-1 { animation-delay: .08s; }
.delay-2 { animation-delay: .16s; }
.delay-3 { animation-delay: .24s; }

@keyframes revealUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes floaty {
  0%, 100% { transform: translate3d(0,0,0); }
  50% { transform: translate3d(0, 18px, 0); }
}

@media (max-width: 480px) {
  .hub-wrap { padding: 18px 12px; }
  .hub-card { width: 100%; }
  .brand-block h1 { font-size: 1.8rem; }
  .contact-item { flex-direction: column; align-items: flex-start; }
  .contact-item a,
  .contact-item strong { text-align: left; }
}

.hours-live {
  display: inline-flex;
  margin-left: auto;
  color: #b8c7e6;
  font-size: .78rem;
}

.tetris-panel {
  background: linear-gradient(180deg, rgba(7,11,18,.9), rgba(9,13,22,.82));
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 24px;
  padding: 16px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.tetris-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}
.tetris-subtitle {
  display:block;
  margin-top:6px;
  font-size:.92rem;
}
.tetris-start {
  border: 1px solid rgba(79, 255, 170, .35);
  background: linear-gradient(180deg, rgba(34,197,94,.95), rgba(21,128,61,.95));
  color:#fff;
  padding: 11px 18px;
  border-radius: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(34,197,94,.22), inset 0 1px 0 rgba(255,255,255,.18);
}
.tetris-layout {
  display:grid;
  grid-template-columns: minmax(120px, 180px) 1fr;
  gap:14px;
  align-items:stretch;
}
.tetris-board-wrap {
  padding: 10px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.06));
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
}
#tetrisCanvas {
  width: 100%;
  height: auto;
  display:block;
  background: linear-gradient(180deg, rgba(242,246,252,.98), rgba(222,229,240,.95));
  border-radius: 16px;
}
.tetris-stats {
  display:flex;
  flex-direction:column;
  gap:10px;
}
.tetris-stat {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
}
.tetris-stat span { color: #c8d6f2; }
.tetris-stat strong { font-size: 1.05rem; }
.tetris-controls {
  margin-top: 14px;
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:10px;
}
.tetris-controls button {
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  font-size: 1.2rem;
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(221,226,234,.95));
  box-shadow: 0 8px 18px rgba(0,0,0,.22);
  cursor:pointer;
}
.tetris-controls button:active,
.tetris-start:active { transform: translateY(1px) scale(.99); }

@media (max-width: 480px) {
  .tetris-layout { grid-template-columns: 1fr; }
  .tetris-board-wrap { max-width: 220px; margin: 0 auto; }
  .hours-live { width: 100%; margin-left: 0; }
}
