:root {
  --bg: #080a12;
  --panel: rgba(255, 255, 255, 0.075);
  --panel-active: rgba(255, 255, 255, 0.12);
  --line: rgba(255, 255, 255, 0.14);
  --line-active: rgba(215, 194, 138, 0.46);
  --text: #f6efe1;
  --muted: rgba(246, 239, 225, 0.68);
  --soft: rgba(246, 239, 225, 0.42);
  --accent: #d7c28a;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 8%, rgba(215, 194, 138, 0.16), transparent 29rem),
    radial-gradient(circle at 82% 4%, rgba(108, 132, 255, 0.11), transparent 27rem),
    linear-gradient(145deg, #080a12 0%, #10131f 48%, #070810 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 76%);
}

.ambient {
  position: fixed;
  z-index: -2;
  border-radius: 999px;
  filter: blur(12px);
  opacity: 0.82;
  pointer-events: none;
}

.ambient-left {
  width: 18rem;
  height: 18rem;
  top: 12%;
  left: -7rem;
  background: radial-gradient(circle, rgba(215, 194, 138, 0.18), transparent 68%);
}

.ambient-right {
  width: 24rem;
  height: 24rem;
  right: -11rem;
  bottom: 7%;
  background: radial-gradient(circle, rgba(108, 132, 255, 0.13), transparent 70%);
}

.page-shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(40px, 7vw, 92px) 0 42px;
}

.hero {
  margin-bottom: clamp(28px, 5vw, 54px);
}

.hero-bar {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
}

.hero-copy {
  max-width: 760px;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(3.4rem, 11vw, 8.6rem);
  line-height: 0.92;
  letter-spacing: -0.08em;
  text-wrap: balance;
}

.lead {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.65;
}

.language-switcher {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line-active);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.075);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(16px);
}

.language-button {
  min-width: 50px;
  min-height: 40px;
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  background: transparent;
  cursor: pointer;
  transition:
    color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.language-button:hover,
.language-button:focus-visible {
  color: var(--text);
  outline: 0;
}

.language-button:focus-visible {
  box-shadow: 0 0 0 3px rgba(215, 194, 138, 0.25);
}

.language-button[aria-pressed="true"] {
  color: #10131f;
  background: var(--accent);
}

.language-button:active {
  transform: scale(0.96);
}

.clock-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.clock-card {
  position: relative;
  min-height: 236px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  outline: 0;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.045)),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  transform: translateZ(0);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease;
  cursor: pointer;
}

.clock-card::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 20% 0%, rgba(215, 194, 138, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 42%);
  opacity: 0;
  transition: opacity 220ms ease;
  pointer-events: none;
}

.clock-card::after {
  position: absolute;
  right: 22px;
  bottom: 18px;
  width: 76px;
  height: 76px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  content: "";
  opacity: 0.72;
}

.clock-card:hover,
.clock-card:focus-visible,
.clock-card.is-active {
  border-color: var(--line-active);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06)),
    var(--panel-active);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.44), 0 0 0 1px rgba(215, 194, 138, 0.06) inset;
  transform: translateY(-3px);
}

.clock-card:focus-visible {
  box-shadow: 0 0 0 3px rgba(215, 194, 138, 0.25), var(--shadow);
}

.clock-card:active,
.clock-card.is-active {
  transform: translateY(-3px) scale(1.025);
}

.clock-card:hover::before,
.clock-card:focus-visible::before,
.clock-card.is-active::before {
  opacity: 1;
}

.card-head {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 34px;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.02rem, 1.8vw, 1.25rem);
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.zone {
  flex: 0 0 auto;
  max-width: 46%;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: var(--soft);
  font-size: 0.72rem;
  line-height: 1;
  text-align: right;
  word-break: break-word;
  background: rgba(255, 255, 255, 0.045);
}

.clock-time {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
  font-size: clamp(2.35rem, 4.3vw, 3.9rem);
  font-weight: 720;
  line-height: 1;
  letter-spacing: -0.065em;
}

.clock-date,
.clock-status {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.clock-date {
  font-size: 0.96rem;
}

.clock-status {
  margin-top: 10px;
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 920px) {
  .clock-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 24px, 560px);
    padding-top: 34px;
  }

  .hero {
    margin-bottom: 26px;
  }

  .hero-bar {
    flex-direction: column-reverse;
    gap: 22px;
  }

  .language-switcher {
    align-self: flex-end;
  }

  .clock-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .clock-card {
    min-height: 214px;
    padding: 22px;
    border-radius: 24px;
  }

  .card-head {
    margin-bottom: 28px;
  }

  .zone {
    max-width: 52%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
