@font-face {
  font-family: "Cairo";
  src: url("assets/fonts/Cairo/Cairo-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Cairo";
  src: url("assets/fonts/Cairo/Cairo-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: "Cairo";
  src: url("assets/fonts/Cairo/Cairo-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "Inter Tight";
  src: url("assets/fonts/Inter_Tight/InterTight-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Inter Tight";
  src: url("assets/fonts/Inter_Tight/InterTight-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: "Inter Tight";
  src: url("assets/fonts/Inter_Tight/InterTight-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

:root {
  --primary: #0051ff;
  --primary-dark: #1e40af;
  --primary-light: #60a5fa;
  --primary-container: #dbeafe;
  --secondary: #ff9042;
  --secondary-dark: #eb7638;
  --secondary-container: #ffedd5;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --error: #dc2626;
  --success: #15803d;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: linear-gradient(135deg, #f7faff 0%, #f8fafc 45%, #eff6ff 100%);
  color: var(--text-primary);
  font-family: "Cairo", "Inter Tight", Arial, sans-serif;
  overflow-x: hidden;
}

#app-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 14% 18%, rgba(0, 81, 255, 0.12), transparent 34%),
    radial-gradient(circle at 86% 82%, rgba(255, 144, 66, 0.15), transparent 35%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.splash-decor {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(1px);
}

.splash-decor.a {
  width: 240px;
  height: 240px;
  top: -70px;
  left: -60px;
  background: radial-gradient(circle, rgba(0, 81, 255, 0.23) 0%, rgba(0, 81, 255, 0.02) 75%);
}

.splash-decor.b {
  width: 220px;
  height: 220px;
  right: -55px;
  bottom: -65px;
  background: radial-gradient(circle, rgba(255, 144, 66, 0.25) 0%, rgba(255, 144, 66, 0.02) 75%);
}

.splash-card {
  position: relative;
  width: min(90vw, 360px);
  padding: 26px 20px 22px;
  border-radius: 22px;
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(219, 234, 254, 1);
  box-shadow:
    0 14px 42px rgba(15, 23, 42, 0.12),
    0 2px 10px rgba(0, 81, 255, 0.08);
  backdrop-filter: blur(5px);
}

.splash-logo {
  width: clamp(140px, 32vw, 185px);
  height: auto;
  object-fit: contain;
  margin: 0 auto 16px;
  display: block;
}

.splash-loader {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border: 4px solid var(--primary-container);
  border-top-color: var(--primary);
  border-right-color: var(--secondary);
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
}

.splash-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.splash-text {
  margin: 7px 0 0;
  min-height: 21px;
  font-size: 14px;
  color: var(--text-secondary);
}

.loading-dots::after {
  content: "";
  animation: dots 1.2s steps(4, end) infinite;
}

.page {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 24px 16px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.blob-top {
  width: 240px;
  height: 240px;
  top: -90px;
  left: -60px;
  background: linear-gradient(180deg, var(--primary-container), rgba(219, 234, 254, 0));
}

.blob-bottom {
  width: 280px;
  height: 280px;
  right: -90px;
  bottom: -110px;
  background: linear-gradient(180deg, var(--secondary-container), rgba(255, 231, 210, 0));
}

.landing-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 620px;
  border-radius: 32px;
  border: 1px solid var(--primary-container);
  box-shadow: 0 18px 34px rgba(0, 27, 68, 0.07);
  background: rgba(255, 255, 255, 0.94);
  padding: 34px 28px;
  margin-inline: auto;
}

.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--primary-container);
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 700;
}

.brand-logo {
  display: block;
  width: min(240px, 70vw);
  margin: 18px auto;
}

.title {
  margin: 0;
  text-align: center;
  line-height: 1.4;
  font-size: clamp(24px, 2.8vw, 30px);
  font-weight: 700;
}

.subtitle {
  margin: 10px 0 28px;
  text-align: center;
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: clamp(15px, 2vw, 18px);
}

.actions {
  display: grid;
  gap: 14px;
}

.store-button {
  width: 100%;
  border: 0;
  border-radius: 22px;
  box-shadow: 0 10px 16px rgba(0, 27, 68, 0.09);
  padding: 18px 20px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: flex-start;
  cursor: pointer;
  text-align: right;
  transition: transform 0.16s ease, filter 0.16s ease;
}

.store-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
}

.store-button:active {
  transform: translateY(0);
}

.store-button:disabled {
  opacity: 0.7;
  cursor: progress;
}

.google-play {
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
}

.app-store {
  background: linear-gradient(90deg, #0f172a 0%, #334155 100%);
}

.website {
  background: linear-gradient(90deg, var(--secondary) 0%, var(--secondary-dark) 100%);
}

.store-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  padding: 11px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.store-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.store-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  min-width: 0;
}

.store-label {
  font-family: "Inter Tight", "Cairo", Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  direction: ltr;
}

.store-subtitle {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 600;
  opacity: 0.92;
  line-height: 1.35;
}

@media (max-width: 768px) {
  .page {
    padding: 16px;
  }

  .landing-card {
    width: 100%;
    max-width: 560px;
    border-radius: 24px;
    padding: 24px 18px;
  }

  .brand-logo {
    width: min(210px, 64vw);
    margin: 14px auto;
  }

  .title {
    font-size: clamp(21px, 5.4vw, 27px);
  }

  .subtitle {
    margin: 8px 0 22px;
    font-size: clamp(14px, 3.3vw, 16px);
    line-height: 1.65;
  }

  .actions {
    gap: 10px;
  }

  .store-button {
    border-radius: 18px;
    padding: 13px 14px;
    gap: 10px;
  }

  .store-icon {
    width: 46px;
    height: 46px;
    padding: 8px;
    border-radius: 13px;
  }

  .store-label {
    font-size: 15px;
  }

  .store-subtitle {
    margin-top: 2px;
    font-size: 12px;
  }

  .splash-card {
    width: min(92vw, 330px);
    border-radius: 18px;
    padding: 20px 14px 18px;
  }
}

@media (max-width: 430px) {
  .page {
    padding: 12px;
    align-items: center;
  }

  .landing-card {
    width: 100%;
    max-width: 100%;
    border-radius: 20px;
    padding: 18px 14px;
  }

  .blob-top {
    width: 170px;
    height: 170px;
    top: -50px;
    left: -40px;
  }

  .blob-bottom {
    width: 200px;
    height: 200px;
    right: -60px;
    bottom: -80px;
  }

  .store-button {
    padding: 12px;
    gap: 9px;
  }

  .store-icon {
    width: 42px;
    height: 42px;
    padding: 7px;
  }

  .store-label {
    font-size: 14px;
  }

  .store-subtitle {
    font-size: 11px;
  }

}

@keyframes dots {
  0% { content: ""; }
  25% { content: "."; }
  50% { content: ".."; }
  75% { content: "..."; }
  100% { content: ""; }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
