/* ─── TakiAcademy-style landing (أعلى الصفحة) ─── */

:root {
  --taki-blue: #00aeef;
  --taki-blue-dark: #0095d5;
  --taki-blue-light: #e8f6fd;
  --taki-navy: #1a2b49;
  --taki-navy-soft: #2d4373;
  --taki-text: #334155;
  --taki-muted: #64748b;
  --taki-bg: #ffffff;
  --taki-bg-alt: #f4f9ff;
  --taki-bg-stats: #eef6fc;
  --taki-green: #22c55e;
  --taki-orange: #f59e0b;
  --taki-shadow: 0 8px 32px rgba(26, 86, 145, 0.1);
  --taki-shadow-sm: 0 4px 18px rgba(26, 86, 145, 0.08);
  --taki-radius: 20px;
  --taki-radius-lg: 28px;
  --taki-container: min(1180px, 92vw);
}

.taki-landing {
  position: relative;
  z-index: 2;
  background: var(--taki-bg);
  color: var(--taki-navy);
  font-family: "Cairo", "Tajawal", sans-serif;
}

.taki-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 174, 239, 0.12);
  box-shadow: 0 2px 16px rgba(26, 86, 145, 0.06);
}

.taki-header-inner {
  width: var(--taki-container);
  margin: 0 auto;
  padding: 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.taki-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.taki-logo-img {
  height: 58px;
  width: auto;
  max-width: min(200px, 42vw);
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(26, 86, 145, 0.12));
}

.taki-logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--taki-blue), var(--taki-blue-dark));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.1rem;
  box-shadow: 0 4px 14px rgba(0, 174, 239, 0.35);
}

.taki-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
}

.taki-nav a {
  color: var(--taki-text);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.2s;
}

.taki-nav a:hover {
  color: var(--taki-blue);
}

.taki-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--taki-blue), var(--taki-blue-dark));
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 174, 239, 0.35);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.taki-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 174, 239, 0.45);
}

.taki-btn--outline {
  background: #fff;
  color: var(--taki-blue);
  border: 2px solid var(--taki-blue);
  box-shadow: none;
}

.taki-btn--outline:hover {
  background: var(--taki-blue-light);
  box-shadow: none;
}

.taki-btn--sm {
  padding: 9px 18px;
  font-size: 0.85rem;
}

.taki-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.platform-back-btn {
  border-color: #7b0024;
  color: #7b0024;
}

.platform-back-btn:hover {
  background: rgba(123, 0, 36, 0.08);
}

.taki-btn:disabled,
.taki-btn.is-locked {
  background: #e2e8f0;
  color: #94a3b8;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

/* Hero */
.taki-hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(0, 174, 239, 0.12), transparent 45%),
    radial-gradient(circle at 10% 80%, rgba(0, 149, 213, 0.08), transparent 40%),
    linear-gradient(180deg, #eef8fd 0%, #ffffff 70%);
  padding: clamp(48px, 8vw, 80px) 0 clamp(40px, 6vw, 64px);
}

.taki-hero-grid {
  width: var(--taki-container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.taki-hero-content {
  text-align: right;
}

.taki-eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 174, 239, 0.12);
  color: var(--taki-blue-dark);
  font-size: 0.88rem;
  font-weight: 700;
}

.taki-hero-title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--taki-navy);
}

.taki-hero-title #heroTitle {
  display: block;
  color: var(--taki-navy);
}

.taki-hero-title #heroTitleAccent {
  display: block;
  color: var(--taki-blue);
}

.taki-hero-subtitle {
  margin: 18px 0 0;
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--taki-muted);
  max-width: 520px;
}

.taki-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.taki-hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.taki-hero-visual .planet-hero .planet-ring {
  display: none;
}

.taki-hero-visual .planet-sphere-hero.has-island {
  width: min(340px, 80vw);
  height: min(340px, 80vw);
  filter: drop-shadow(0 20px 40px rgba(26, 86, 145, 0.15));
}

/* Sections */
.taki-section {
  padding: clamp(56px, 8vw, 80px) 0;
}

.taki-section--alt {
  background: var(--taki-bg-alt);
}

.taki-section--stats {
  background: var(--taki-bg-stats);
}

.taki-container {
  width: var(--taki-container);
  margin: 0 auto;
}

.taki-section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 36px;
}

.taki-section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--taki-navy);
  line-height: 1.35;
}

.taki-section-head h2 em {
  font-style: normal;
  color: var(--taki-blue);
}

.taki-section-head p {
  margin: 0;
  color: var(--taki-muted);
  font-size: 1rem;
  line-height: 1.85;
}

/* Progress */
.taki-progress-card {
  background: #fff;
  border-radius: var(--taki-radius-lg);
  padding: clamp(24px, 4vw, 36px);
  box-shadow: var(--taki-shadow);
  border: 1px solid rgba(0, 174, 239, 0.1);
}

.taki-progress-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.taki-progress-top span {
  font-size: 1rem;
  color: var(--taki-muted);
  font-weight: 600;
}

.taki-progress-top strong {
  font-size: 2rem;
  font-weight: 800;
  color: var(--taki-blue);
}

.taki-progress-bar {
  height: 14px;
  background: #e2eef8;
  border-radius: 999px;
  overflow: hidden;
}

.taki-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--taki-blue), #5bcfff);
  box-shadow: 0 0 16px rgba(0, 174, 239, 0.45);
  transition: width 0.6s ease;
}

.taki-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.taki-mini-card {
  background: var(--taki-bg-alt);
  border-radius: 16px;
  padding: 18px 14px;
  text-align: center;
  border: 1px solid rgba(0, 174, 239, 0.08);
}

.taki-mini-card strong {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--taki-navy);
  margin-bottom: 4px;
}

.taki-mini-card span {
  font-size: 0.82rem;
  color: var(--taki-muted);
}

.taki-progress-note {
  margin: 20px 0 0;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(0, 174, 239, 0.08);
  border-right: 4px solid var(--taki-blue);
  color: var(--taki-navy-soft);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Journey */
.taki-journey-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.taki-journey-card {
  background: #fff;
  border-radius: var(--taki-radius);
  padding: 22px;
  box-shadow: var(--taki-shadow-sm);
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 190px;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.taki-journey-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--taki-shadow);
}

.taki-journey-card.completed {
  border-color: rgba(34, 197, 94, 0.35);
}

.taki-journey-card.current {
  border-color: var(--taki-blue);
  box-shadow: 0 8px 32px rgba(0, 174, 239, 0.2);
}

.taki-journey-card.locked {
  opacity: 0.65;
  filter: grayscale(0.25);
}

.taki-journey-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--taki-blue-light);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
}

.taki-journey-card h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--taki-navy);
}

.taki-journey-status {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--taki-muted);
}

.taki-journey-status.is-done {
  color: var(--taki-green);
}
.taki-journey-status.is-current {
  color: var(--taki-blue);
}

.taki-journey-card .taki-btn {
  margin-top: auto;
  align-self: flex-start;
}

/* Current stage — offer card style */
.taki-offer-card {
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
  border-radius: var(--taki-radius-lg);
  padding: clamp(28px, 4vw, 40px);
  box-shadow: var(--taki-shadow);
  border: 1px solid rgba(0, 174, 239, 0.15);
  display: grid;
  gap: 20px;
}

.taki-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
  font-size: 0.82rem;
  font-weight: 700;
}

.taki-offer-card h2 {
  margin: 10px 0 8px;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--taki-navy);
}

.taki-offer-card p {
  margin: 0;
  color: var(--taki-muted);
  line-height: 1.85;
  max-width: 680px;
}

.taki-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.taki-tag {
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(0, 174, 239, 0.2);
  color: var(--taki-navy-soft);
  font-size: 0.88rem;
  font-weight: 600;
}

/* Stats — Taki "في أرقام" */
.taki-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.taki-stat-card {
  text-align: center;
  padding: 28px 16px;
  background: #fff;
  border-radius: var(--taki-radius);
  box-shadow: var(--taki-shadow-sm);
  border: 1px solid rgba(0, 174, 239, 0.08);
}

.taki-stat-value {
  display: block;
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--taki-blue);
  line-height: 1;
  margin-bottom: 10px;
}

.taki-stat-label {
  display: block;
  font-size: 0.95rem;
  color: var(--taki-muted);
  line-height: 1.6;
}

/* Features */
.taki-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.taki-feature-card {
  background: #fff;
  border-radius: var(--taki-radius);
  padding: 26px 22px;
  box-shadow: var(--taki-shadow-sm);
  border: 1px solid rgba(0, 174, 239, 0.08);
  transition:
    transform 0.2s,
    border-color 0.2s;
}

.taki-feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 174, 239, 0.25);
}

.taki-feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--taki-blue-light), #fff);
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  margin-bottom: 14px;
}

.taki-feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--taki-navy);
}

.taki-feature-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--taki-muted);
  line-height: 1.75;
}

/* Achievements */
.taki-achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.taki-achievement {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--taki-shadow-sm);
  border-right: 4px solid var(--taki-blue);
}

.taki-achievement-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--taki-blue-light);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.taki-achievement p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--taki-text);
  line-height: 1.65;
  font-weight: 600;
}

.taki-cta-section {
  text-align: center;
  padding: 48px 0 64px;
  background: linear-gradient(180deg, #fff 0%, var(--taki-bg-alt) 100%);
}

.taki-cta-section p {
  margin: 0 0 20px;
  color: var(--taki-muted);
  font-size: 1rem;
}

/* Game zone divider — انتقال إلى خريطة الكواكب */

.sirah-game-divider {
  height: 6px;
  background: linear-gradient(90deg, var(--taki-blue), #5bcfff, var(--taki-blue));
}

@media (max-width: 900px) {
  .taki-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .taki-hero-content {
    text-align: center;
  }

  .taki-hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .taki-hero-actions {
    justify-content: center;
  }

  .taki-mini-grid,
  .taki-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .taki-nav {
    display: none;
  }
}

@media (max-width: 520px) {
  .taki-mini-grid,
  .taki-stats-grid {
    grid-template-columns: 1fr;
  }

  .taki-progress-top {
    flex-direction: column;
    align-items: flex-start;
  }
}
