/* ==========================================================================
   ITF — Coming Soon
   ========================================================================== */

:root {
  --bg: #040506;
  --bg-elevated: #0a0b0f;
  --fg: #f5efe0;
  --muted: #a89f8e;
  --gold: #d4af37;
  --gold-light: #f5e6b8;
  --gold-deep: #8b6914;
  --gold-glow: rgba(212, 175, 55, 0.35);
  --border: rgba(212, 175, 55, 0.18);
  --border-strong: rgba(212, 175, 55, 0.4);
  --success: #4ecdc4;
  --error: #e85d5d;
  --font-ar: "Cairo", system-ui, sans-serif;
  --font-en: "Cinzel", Georgia, serif;
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 200ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--fg);
  background: var(--bg);
  font-family: var(--font-ar);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body[dir="ltr"] {
  font-family: var(--font-en);
}

body[dir="ltr"] .hero-title,
body[dir="ltr"] .countdown-value {
  font-family: var(--font-en);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Background layers */
.bg-layers {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--bg);
}

.bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0.55;
  transform: scale(1.02);
  animation: bgKenBurns 30s ease-in-out infinite alternate;
}

.bg-aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  mix-blend-mode: screen;
  pointer-events: none;
}

.bg-aurora--one {
  top: -15%;
  left: -10%;
  width: 55vw;
  height: 55vw;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.35), transparent 70%);
  animation: auroraDrift 18s ease-in-out infinite alternate;
}

.bg-aurora--two {
  bottom: -20%;
  right: -15%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(139, 105, 20, 0.3), transparent 70%);
  animation: auroraDrift 22s ease-in-out infinite alternate-reverse;
}

.bg-aurora--three {
  top: 35%;
  left: 40%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(245, 230, 184, 0.15), transparent 70%);
  animation: auroraPulse 10s ease-in-out infinite;
}

.bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.bg-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 30%, rgba(4, 5, 6, 0.65) 100%),
    linear-gradient(180deg, rgba(4, 5, 6, 0.5) 0%, transparent 25%, transparent 75%, rgba(4, 5, 6, 0.7) 100%);
  pointer-events: none;
}

@keyframes bgKenBurns {
  from {
    transform: scale(1.05) translate(0, 0);
  }
  to {
    transform: scale(1.12) translate(-1.5%, -1%);
  }
}

@keyframes auroraDrift {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(6%, 4%) scale(1.08);
  }
}

@keyframes auroraPulse {
  50% {
    opacity: 0.65;
    transform: scale(1.1);
  }
}

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px clamp(20px, 5vw, 48px);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.header-brand img {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
}

.header-brand-text {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.3;
}

body[dir="ltr"] .header-brand-text {
  font-family: var(--font-en);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}

.lang-toggle {
  flex-shrink: 0;
  min-height: 40px;
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--fg);
  background: transparent;
  font-weight: 600;
  cursor: pointer;
  transition:
    border-color var(--transition),
    color var(--transition),
    background var(--transition);
}

.lang-toggle:hover,
.lang-toggle:focus-visible {
  color: var(--gold-light);
  border-color: var(--border-strong);
  background: rgba(212, 175, 55, 0.08);
}

.lang-toggle:focus-visible,
.notify-btn:focus-visible,
.footer-links a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Main */
.main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(20px, 5vw, 48px) 40px;
}

.hero {
  width: 100%;
  max-width: 640px;
  text-align: center;
}

/* Logo showcase */
.logo-showcase {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
  width: clamp(200px, 45vw, 280px);
  height: clamp(200px, 45vw, 280px);
}

.logo-glow {
  position: absolute;
  inset: -20%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 65%);
  opacity: 0.5;
  animation: glowPulse 4s ease-in-out infinite;
}

.logo-hero {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: logoEnter 1.2s ease-out, logoFloat 6s ease-in-out 1.2s infinite;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.06);
  color: var(--gold-light);
  font-size: 0.85rem;
  font-weight: 700;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  animation: dotPulse 2s ease-out infinite;
}

/* Title */
.hero-title {
  margin: 0 0 16px;
  line-height: 1.1;
}

.hero-title-line {
  display: block;
  font-size: clamp(2rem, 8vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body[dir="rtl"] .hero-title-line {
  font-family: var(--font-ar);
}

/* Description */
.hero-desc {
  max-width: 480px;
  margin: 0 auto 32px;
  color: var(--muted);
  font-size: clamp(0.95rem, 2.2vw, 1.05rem);
  line-height: 1.8;
}

/* Countdown */
.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: clamp(64px, 14vw, 80px);
  padding: 16px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
}

.countdown-value {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--gold-light);
  line-height: 1;
}

.countdown-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
}

body[dir="rtl"] .countdown-label {
  text-transform: none;
}

.countdown-colon {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-deep);
  opacity: 0.6;
  animation: colonBlink 1.5s steps(2) infinite;
}

/* Notify form */
.notify-form {
  display: flex;
  gap: 8px;
  max-width: 420px;
  margin: 0 auto;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.notify-form:focus-within {
  border-color: var(--border-strong);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
}

.notify-input {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  border: 0;
  border-radius: calc(var(--radius-lg) - 4px);
  background: transparent;
  color: var(--fg);
}

.notify-input::placeholder {
  color: rgba(168, 159, 142, 0.6);
}

.notify-input:focus {
  outline: none;
}

.notify-btn {
  flex-shrink: 0;
  padding: 14px 22px;
  border: 0;
  border-radius: calc(var(--radius-lg) - 4px);
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-deep));
  color: #0a0a0a;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.notify-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--gold-glow);
}

.form-message {
  min-height: 24px;
  margin: 12px 0 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.form-message.is-error {
  color: var(--error);
}

.form-message.is-success {
  color: var(--success);
}

/* Features */
.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.feature {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.feature-icon {
  color: var(--gold);
  font-size: 0.6rem;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}

.ticker {
  overflow: hidden;
  width: 100%;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 11, 15, 0.85);
  backdrop-filter: blur(8px);
  direction: ltr;
}

.ticker--top {
  position: relative;
  z-index: 10;
}

.ticker-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: tickerScroll 45s linear infinite;
}

.ticker-group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 40px;
  padding-inline-end: 40px;
}

.ticker-item {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  white-space: nowrap;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.ticker-item b {
  color: var(--fg);
  font-weight: 500;
}

.ticker-item .up {
  color: var(--success);
}

.ticker-item .down {
  color: var(--error);
}

.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px clamp(20px, 5vw, 48px);
}

.copyright {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-links a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-light);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--gold);
}

/* Animations */
@keyframes logoEnter {
  from {
    opacity: 0;
    transform: scale(0.85) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes logoFloat {
  50% {
    transform: translateY(-8px);
  }
}

@keyframes glowPulse {
  50% {
    opacity: 0.35;
  }
}

@keyframes dotPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(78, 205, 196, 0.5);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(78, 205, 196, 0);
  }
}

@keyframes colonBlink {
  50% {
    opacity: 0.2;
  }
}

@keyframes tickerScroll {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

/* Responsive */
@media (max-width: 600px) {
  .header-brand-text {
    font-size: 0.8rem;
  }

  .countdown {
    gap: 6px;
  }

  .countdown-colon {
    display: none;
  }

  .countdown-item {
    min-width: 56px;
    padding: 12px 8px;
  }

  .notify-form {
    flex-direction: column;
  }

  .notify-btn {
    width: 100%;
  }

  .features {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .footer-bar {
    flex-direction: column;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
