:root {
  --bg: #050505;
  --panel: rgba(15, 15, 15, 0.78);
  --panel-strong: rgba(22, 22, 22, 0.92);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(224, 187, 109, 0.3);
  --text: #f5f1e8;
  --muted: rgba(245, 241, 232, 0.66);
  --accent: #e0bb6d;
  --accent-soft: rgba(224, 187, 109, 0.14);
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top, rgba(224, 187, 109, 0.12), transparent 30%),
    linear-gradient(135deg, #040404 0%, #080808 38%, #020202 100%);
  color: var(--text);
  overflow-x: hidden;
  overflow-y: auto;
}

body[data-lang="ar"] {
  font-family: "Alexandria", "Manrope", sans-serif;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  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: 130px 130px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 85%);
}

body::after {
  background: radial-gradient(circle at center, transparent 45%, rgba(0, 0, 0, 0.55) 100%);
}

.page-shell {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  isolation: isolate;
}

.ambient,
.grid-glow {
  position: absolute;
  pointer-events: none;
  filter: blur(12px);
}

.ambient {
  width: 38vw;
  height: 38vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 187, 109, 0.16), transparent 65%);
  animation: orbit 14s ease-in-out infinite alternate;
}

.ambient-left {
  top: 8%;
  left: 4%;
}

.ambient-right {
  right: 0;
  bottom: 2%;
  animation-duration: 18s;
}

.grid-glow {
  inset: 20% 18%;
  border: 1px solid rgba(224, 187, 109, 0.08);
  background: linear-gradient(135deg, rgba(224, 187, 109, 0.05), transparent 40%, rgba(255, 255, 255, 0.03));
  animation: pulse 7s ease-in-out infinite;
}

.hero-card {
  position: relative;
  width: min(1120px, 100%);
  min-height: min(760px, calc(100vh - 64px));
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(32px, 5vw, 64px);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);
  border-radius: 32px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 20%, rgba(224, 187, 109, 0.08) 50%, transparent 80%);
  transform: translateX(-100%);
  animation: sheen 9s linear infinite;
}

.hero-copy,
.countdown-panel {
  position: relative;
  z-index: 1;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  animation: rise 1s ease-out both;
}

.lang-switch {
  display: inline-flex;
  align-self: flex-end;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.lang-button {
  min-width: 54px;
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  cursor: pointer;
  transition: background 220ms ease, color 220ms ease, transform 220ms ease;
}

.lang-button:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.lang-button.is-active {
  background: linear-gradient(135deg, rgba(224, 187, 109, 0.2), rgba(224, 187, 109, 0.08));
  color: var(--text);
}

.eyebrow-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.eyebrow-line {
  width: 72px;
  height: 1px;
  background: linear-gradient(90deg, rgba(224, 187, 109, 0.95), transparent);
}

.eyebrow,
.panel-kicker,
.launch-note {
  margin: 0;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: 0.78rem;
}

.brand-mark {
  width: clamp(180px, 24vw, 320px);
  max-width: 100%;
  filter: drop-shadow(0 0 28px rgba(255, 255, 255, 0.08));
  animation: float 6s ease-in-out infinite;
}

h1,
h2 {
  font-family: "League Spartan", sans-serif;
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.05em;
  margin: 0;
}

body[data-lang="ar"] h1,
body[data-lang="ar"] h2,
body[data-lang="ar"] .time-value,
body[data-lang="ar"] .launch-date,
body[data-lang="ar"] .lang-button {
  font-family: "Alexandria", "Manrope", sans-serif;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(3.8rem, 4vw, 6.8rem);
    max-width: 6ch;
    line-height: 1;
}

.summary {
  max-width: 34rem;
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.8;
}

.hero-actions {
  display: grid;
  gap: 12px;
  align-items: start;
}

.download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 22px;
  border: 1px solid rgba(224, 187, 109, 0.36);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(224, 187, 109, 0.2), rgba(224, 187, 109, 0.08));
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  font-weight: 600;
  width: fit-content;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

body[data-lang="ar"] .hero-copy,
body[data-lang="ar"] .countdown-panel {
  text-align: right;
}

body[data-lang="ar"] .lang-switch {
  align-self: flex-start;
}

body[data-lang="ar"] .download-link,
body[data-lang="ar"] .launch-date,
body[data-lang="ar"] .time-card {
  direction: rtl;
}

body[data-lang="ar"] .download-link,
body[data-lang="ar"] .panel-kicker,
body[data-lang="ar"] .launch-note,
body[data-lang="ar"] .time-label {
  letter-spacing: 0.04em;
}

.download-link:hover {
  transform: translateY(-2px);
  border-color: rgba(224, 187, 109, 0.56);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.26);
}

.download-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.countdown-panel {
  align-self: center;
  display: grid;
  gap: 28px;
  padding: clamp(24px, 4vw, 36px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: rise 1s ease-out 0.15s both;
}

.panel-header {
  display: grid;
  gap: 12px;
}

h2 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.02;
}

.launch-date {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 12px 18px;
  border: 1px solid rgba(224, 187, 109, 0.34);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(224, 187, 109, 0.18), rgba(224, 187, 109, 0.06));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 28px rgba(0, 0, 0, 0.22);
  color: #fff3d2;
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  letter-spacing: 0.1em;
  line-height: 1;
  white-space: nowrap;
  animation: activeGlow 2.8s ease-in-out infinite;
}

body[data-lang="ar"] .launch-date {
  font-size: clamp(1.05rem, 2vw, 1.4rem);
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.time-card {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 20px 18px;
  background: var(--panel-strong);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 22px;
  overflow: hidden;
  transform: translateY(0);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.time-card::after {
  content: "";
  position: absolute;
  inset: auto -15% 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.75;
}

.time-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
}

.time-value {
  font-family: "League Spartan", sans-serif;
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.time-value.tick {
  animation: flash 480ms ease;
}

.time-label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.72rem;
}

.launch-note {
  padding-top: 4px;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(36px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.98);
  }

  50% {
    opacity: 0.55;
    transform: scale(1.02);
  }
}

@keyframes orbit {
  from {
    transform: translate3d(0, 0, 0) scale(0.94);
  }

  to {
    transform: translate3d(30px, -18px, 0) scale(1.06);
  }
}

@keyframes sheen {
  0% {
    transform: translateX(-120%);
  }

  100% {
    transform: translateX(120%);
  }
}

@keyframes flash {
  0% {
    opacity: 0.5;
    transform: translateY(10px) scale(0.96);
    color: #fff5d8;
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes activeGlow {
  0%,
  100% {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 28px rgba(0, 0, 0, 0.22);
    transform: translateY(0);
  }

  50% {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 14px 32px rgba(0, 0, 0, 0.28), 0 0 28px rgba(224, 187, 109, 0.14);
    transform: translateY(-1px);
  }
}

@media (max-width: 900px) {
  .page-shell {
    padding: 18px;
  }

  .hero-card {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 10ch;
  }

  .lang-switch {
    align-self: flex-start;
  }
}

@media (max-width: 620px) {
  .countdown-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    padding: 24px;
    border-radius: 24px;
  }

  .lang-button {
    min-width: 48px;
    min-height: 40px;
    padding: 0 14px;
  }

  .launch-date {
    width: 100%;
    justify-content: center;
    padding-inline: 14px;
    font-size: 1rem;
    letter-spacing: 0.06em;
  }

  .countdown-panel,
  .time-card {
    border-radius: 20px;
  }

  .eyebrow,
  .panel-kicker,
  .launch-note,
  .time-label {
    letter-spacing: 0.18em;
  }

  body[data-lang="ar"] .panel-kicker,
  body[data-lang="ar"] .launch-note,
  body[data-lang="ar"] .time-label {
    letter-spacing: 0.04em;
  }
}

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