/* ── Reset & Variables ──────────────────────────── */

:root {
  --primary: #4DC3CF;
  --primary-dark: #0a8896;
  --secondary: #003255;
  --white-92: rgba(255, 255, 255, 0.92);
  --white-85: rgba(255, 255, 255, 0.85);
  --white-60: rgba(255, 255, 255, 0.6);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: 'Inter', 'Noto Sans Arabic', 'Noto Sans SC', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #000;
  overflow: hidden;
}

/* ── Screen ──────────────────────────────────── */

.screen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: linear-gradient(170deg, #5ecad4 0%, #4DC3CF 40%, #45b8c4 100%);
  color: #ffffff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.screen.screen-exit {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.screen[dir="rtl"] { direction: rtl; }

/* ── Background Arcs ──────────────────────────── */

.bg-arcs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-arcs::before,
.bg-arcs::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.bg-arcs::before { width: 700px; height: 700px; top: -150px; right: -350px; }
.bg-arcs::after  { width: 500px; height: 500px; bottom: -180px; left: -250px; }

/* ── Brand Card ──────────────────────────────── */

.brand-card {
  margin: 0 24px;
  margin-top: max(env(safe-area-inset-top, 16px), 44px);
  background: #ffffff;
  border-radius: 18px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.brand-logo {
  width: 36px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--secondary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
}

/* ── Content Container ──────────────────────── */

.content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 28px 16px;
  padding-bottom: max(env(safe-area-inset-bottom, 8px), 16px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.content::-webkit-scrollbar { display: none; }

/* ── Divider ──────────────────────────────── */

.divider {
  width: 40px;
  height: 2px;
  background: var(--white-60);
  border-radius: 1px;
  margin: 20px auto 0;
  flex-shrink: 0;
}

.divider--bottom { margin: 24px auto 0; }

/* ── Eyebrow ──────────────────────────────── */

.eyebrow {
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--white-85);
  margin-top: 18px;
  text-transform: uppercase;
  line-height: 1;
  font-weight: 500;
  flex-shrink: 0;
}

/* ── Title ──────────────────────────────── */

.title {
  text-align: center;
  color: #ffffff;
  font-weight: 600;
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-top: 12px;
  flex-shrink: 0;
  transition: opacity 0.25s ease;
}

.title em {
  font-style: italic;
  font-weight: 300;
}

/* ── Tagline ──────────────────────────────── */

.tagline {
  text-align: center;
  font-size: 16px;
  color: var(--white-92);
  margin-top: 10px;
  line-height: 1.4;
  font-weight: 300;
  flex-shrink: 0;
  transition: opacity 0.25s ease;
}

/* ── Description ──────────────────────────── */

.description {
  text-align: center;
  font-size: 14px;
  color: var(--white-85);
  line-height: 1.65;
  margin-top: 28px;
  max-width: 340px;
  font-weight: 300;
  flex-shrink: 0;
  transition: opacity 0.25s ease;
}

/* ── Launch Section ──────────────────────── */

.launch-section {
  margin-top: auto;
  padding-top: 20px;
  width: 100%;
  flex-shrink: 0;
}

/* ── Launch Button ──────────────────────── */

.launch-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 20px 32px;
  background: rgba(255, 255, 255, 0.94);
  border: none;
  border-radius: 50px;
  color: var(--secondary);
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  outline: none;
  letter-spacing: 0.01em;
}

.launch-btn:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.08);
}

.launch-btn:active { transform: translateY(0); }

.launch-btn__icon {
  font-size: 22px;
  color: var(--primary-dark);
}

.launch-btn--ready {
  animation: launchGlow 2.5s ease-in-out infinite;
}

@keyframes launchGlow {
  0%, 100% { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06); }
  50%      { box-shadow: 0 4px 32px rgba(255, 255, 255, 0.2); }
}

/* ── Footer ──────────────────────────────── */

.footer-text {
  text-align: center;
  font-size: 11px;
  color: var(--white-60);
  margin-top: 14px;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  transition: opacity 0.25s ease;
}

/* ── Home Indicator ──────────────────────── */

.home-indicator {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  height: 4px;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 2px;
  z-index: 5;
}

/* ── i18n Fade ──────────────────────────── */

.is-fading .title,
.is-fading .tagline,
.is-fading .description,
.is-fading .footer-text,
.is-fading .launch-btn span { opacity: 0; }

/* ── Tablet (768px+) ──────────────────── */

@media (min-width: 768px) {
  .screen { align-items: center; }

  .brand-card {
    max-width: 520px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 18px 32px;
    border-radius: 20px;
    gap: 16px;
  }

  .brand-logo { width: 40px; height: 34px; }
  .brand-name { font-size: 14px; }

  .content {
    max-width: 580px;
    width: 100%;
    padding: 32px 40px 24px;
  }

  .divider { width: 48px; margin-top: 24px; }
  .divider--bottom { margin-top: 28px; }

  .eyebrow { font-size: 12px; letter-spacing: 0.22em; margin-top: 20px; }

  .title { font-size: 54px; margin-top: 14px; }

  .tagline { font-size: 18px; margin-top: 12px; }

  .description {
    font-size: 15px;
    max-width: 440px;
    margin-top: 32px;
    line-height: 1.7;
  }

  .launch-section { max-width: 440px; margin-left: auto; margin-right: auto; }

  .launch-btn {
    padding: 22px 36px;
    font-size: 17px;
    border-radius: 56px;
  }

  .launch-btn__icon { font-size: 24px; }

  .footer-text { font-size: 12px; margin-top: 16px; }

  .home-indicator { display: none; }

  .bg-arcs::before { width: 900px; height: 900px; top: -200px; right: -400px; }
  .bg-arcs::after  { width: 650px; height: 650px; bottom: -250px; left: -300px; }
}

/* ── Desktop (1200px+) ────────────────── */

@media (min-width: 1200px) {
  .brand-card {
    max-width: 560px;
    padding: 20px 40px;
    margin-top: max(env(safe-area-inset-top, 16px), 56px);
    border-radius: 22px;
  }

  .brand-logo { width: 44px; height: 38px; }
  .brand-name { font-size: 15px; letter-spacing: 0.14em; }

  .content {
    max-width: 640px;
    padding: 40px 48px 32px;
  }

  .divider { width: 56px; margin-top: 28px; }
  .divider--bottom { margin-top: 36px; }

  .eyebrow { font-size: 13px; letter-spacing: 0.25em; margin-top: 24px; }

  .title { font-size: 64px; margin-top: 18px; letter-spacing: -0.025em; }

  .tagline { font-size: 20px; margin-top: 14px; }

  .description {
    font-size: 16px;
    max-width: 500px;
    margin-top: 36px;
    line-height: 1.75;
  }

  .launch-section {
    max-width: 480px;
    padding-top: 28px;
  }

  .launch-btn {
    padding: 24px 44px;
    font-size: 18px;
    gap: 14px;
  }

  .launch-btn__icon { font-size: 26px; }

  .footer-text { font-size: 12px; margin-top: 20px; }

  .bg-arcs::before { width: 1400px; height: 1400px; top: -400px; right: -500px; }
  .bg-arcs::after  { width: 1000px; height: 1000px; bottom: -400px; left: -400px; }
}

/* ── Wide Desktop (1600px+) ───────────── */

@media (min-width: 1600px) {
  .brand-card { max-width: 600px; }

  .content { max-width: 700px; padding: 48px 56px 40px; }

  .title { font-size: 72px; }

  .tagline { font-size: 22px; }

  .description { font-size: 17px; max-width: 540px; }

  .launch-section { max-width: 500px; }
}
