/* ============================================
   Calis League — Futuristic Dark Theme CSS
   ============================================ */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', system-ui, sans-serif;
  background: #050a18;
  color: #e0e6f0;
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ---------- Header override for dark theme ---------- */
.site-header {
  padding: 0 24px;
  height: 64px;
  background: rgba(8, 14, 30, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(100, 140, 255, 0.1);
  box-shadow: 0 2px 20px rgba(0, 30, 100, 0.15);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: 17px;
  color: #fff;
  text-decoration: none;
  transition: transform .2s ease;
}

.logo img {
  height: 38px;
  width: auto;
  display: block;
  border-radius: 10px;
  transition: transform .2s ease;
  filter: drop-shadow(0 4px 12px rgba(60, 100, 255, 0.25));
}

.logo:hover { transform: translateY(-1px); }
.logo:hover img { transform: scale(1.05); }
.logo span { color: #fff; font-weight: 800; font-size: 17px; transition: color .2s; }
.logo:hover span { color: #6ea8fe; }

.main-nav a, .mobile-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #b0bfe0;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: color .2s;
}

.main-nav a:hover, .mobile-nav a:hover { color: #fff; }

/* Nav SVG icons — stroke-based, premium style (dark theme) */
.nav-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.2s ease;
}

.mobile-nav .nav-icon {
  width: 18px;
  height: 18px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.main-nav {
  display: flex;
  gap: 18px;
}

.lang-switch {
  display: flex;
  gap: 6px;
  align-items: center;
}

.lang-flag img {
  height: 18px;
  border-radius: 2px;
  opacity: 0.8;
  transition: opacity .2s;
}
.lang-flag:hover img { opacity: 1; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 0;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.menu-toggle .nav-icon {
  stroke: #fff;
}

.menu-toggle:focus,
.menu-toggle:active {
  outline: none;
  background: none;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 12px;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: rgba(8, 14, 30, 0.97);
  backdrop-filter: blur(20px);
  padding: 20px 24px;
  border-bottom: 1px solid rgba(100, 140, 255, 0.1);
  z-index: 99;
}

.mobile-nav.open { display: flex; }

@media (max-width: 768px) {
  .site-header {
    position: relative;
    flex-wrap: nowrap;
    height: 64px;
    min-height: 64px;
    max-height: 64px;
    overflow: visible;
  }
  .main-nav, .lang-switch { display: none; }
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 110;
    transition: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
  }

  .menu-toggle:hover,
  .menu-toggle:focus,
  .menu-toggle:active {
    transform: translateY(-50%);
    outline: none;
    background: none;
  }
  .mobile-nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    z-index: 200;
  }
  .site-header .lang-switch {
    display: flex;
    position: absolute;
    right: 58px;
    top: 58%;
    transform: translateY(-50%);
    z-index: 120;
  }
}

/* ---------- HERO SECTION ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  padding: 100px 40px 80px;
  overflow: hidden;
}

.hero-bg-effects {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(50, 80, 255, 0.4) 0%, transparent 70%);
  top: -10%;
  left: -10%;
  animation: orbFloat1 8s ease-in-out infinite;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(100, 60, 255, 0.35) 0%, transparent 70%);
  bottom: -5%;
  right: -5%;
  animation: orbFloat2 10s ease-in-out infinite;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 180, 255, 0.25) 0%, transparent 70%);
  top: 40%;
  left: 50%;
  animation: orbFloat3 12s ease-in-out infinite;
}

.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(100, 140, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100, 140, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.1); }
}
@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, -40px) scale(1.08); }
}
@keyframes orbFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -20px) scale(1.12); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 520px;
}

.hero-title {
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, #6ea8fe 0%, #a78bfa 40%, #38bdf8 80%, #818cf8 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 6s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-subtitle {
  font-size: 20px;
  font-weight: 600;
  color: #c4d0f0;
  margin-bottom: 14px;
}

.hero-desc {
  font-size: 16px;
  color: #8898c0;
  margin-bottom: 32px;
  max-width: 440px;
}

/* Store Buttons */
.store-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  text-decoration: none;
  transition: all 0.25s ease;
  backdrop-filter: blur(10px);
}

.store-btn:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(110, 168, 254, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(60, 100, 255, 0.2);
}

.store-btn svg { flex-shrink: 0; }

.store-btn small {
  display: block;
  font-size: 11px;
  color: #8898c0;
  line-height: 1.2;
}

.store-btn strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.coming-soon-badge {
  display: inline-block;
  font-size: 13px;
  color: #a78bfa;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.2);
}

/* Hero Phone */
.hero-phone {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.phone-glow {
  position: absolute;
  width: 130%;
  height: 130%;
  top: -15%;
  left: -15%;
  background: radial-gradient(ellipse, rgba(60, 100, 255, 0.25) 0%, transparent 60%);
  filter: blur(40px);
  z-index: -1;
  animation: phoneGlow 4s ease-in-out infinite alternate;
}

@keyframes phoneGlow {
  0% { opacity: 0.5; transform: scale(1); }
  100% { opacity: 0.8; transform: scale(1.05); }
}

.phone-screenshot {
  width: 320px;
  max-width: 70vw;
  border-radius: 28px;
  box-shadow:
    0 20px 60px rgba(0, 10, 60, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  animation: phoneFloat 5s ease-in-out infinite;
}

@keyframes phoneFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
    gap: 40px;
    padding: 80px 20px 60px;
  }
  .hero-content { max-width: 100%; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .store-buttons { justify-content: center; }
  .phone-screenshot { width: 260px; }
}

/* ---------- SECTION TITLES ---------- */
.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.section-subtitle {
  text-align: center;
  color: #8898c0;
  font-size: 16px;
  margin-bottom: 40px;
}

/* ---------- FEATURES SECTION ---------- */
.features {
  padding: 80px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 32px 24px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(110, 168, 254, 0.4), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(110, 168, 254, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 20, 80, 0.25);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-icon svg {
  width: 36px;
  height: 36px;
  stroke: #6ea8fe;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  color: #8898c0;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .features { padding: 60px 20px; }
}
@media (max-width: 560px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* ---------- SCREENSHOTS SECTION ---------- */
.screenshots {
  padding: 80px 40px;
  position: relative;
  overflow: hidden;
}

.screenshots::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, rgba(60, 80, 200, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.screenshots-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 20px 0 30px;
  -ms-overflow-style: none;
  scrollbar-width: thin;
  scrollbar-color: rgba(110, 168, 254, 0.3) transparent;
  justify-content: center;
  flex-wrap: wrap;
}

.screenshots-scroll::-webkit-scrollbar {
  height: 6px;
}
.screenshots-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.screenshots-scroll::-webkit-scrollbar-thumb {
  background: rgba(110, 168, 254, 0.3);
  border-radius: 10px;
}

.screenshot-card {
  flex-shrink: 0;
  scroll-snap-align: center;
  position: relative;
  text-align: center;
}

.screenshot-card img {
  width: 220px;
  border-radius: 24px;
  box-shadow:
    0 16px 50px rgba(0, 10, 60, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.screenshot-card:hover img {
  transform: scale(1.04) translateY(-6px);
  box-shadow:
    0 24px 60px rgba(40, 70, 200, 0.35),
    0 0 0 1px rgba(110, 168, 254, 0.2);
}

.screenshot-label {
  display: block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: #8898c0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@media (max-width: 768px) {
  .screenshots { padding: 60px 16px; }
  .screenshots-scroll {
    justify-content: flex-start;
    flex-wrap: nowrap;
    padding-left: 16px;
    padding-right: 16px;
  }
  .screenshot-card img { width: 180px; }
}

/* ---------- HOW IT WORKS ---------- */
.how-it-works {
  padding: 80px 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 50px;
  position: relative;
}

.step {
  flex: 1;
  text-align: center;
  padding: 0 16px;
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3250ff 0%, #7c3aed 100%);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 8px 25px rgba(50, 80, 255, 0.3);
  position: relative;
  z-index: 2;
}

.step-connector {
  flex: 0 0 40px;
  height: 2px;
  background: linear-gradient(90deg, rgba(50, 80, 255, 0.4), rgba(124, 58, 237, 0.4));
  align-self: flex-start;
  margin-top: 27px;
  border-radius: 2px;
}

.step h3 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.step p {
  font-size: 14px;
  color: #8898c0;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .steps {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .step-connector {
    width: 2px;
    height: 30px;
    flex: 0 0 30px;
    margin-top: 0;
  }
  .step { padding: 0; max-width: 320px; }
  .how-it-works { padding: 60px 20px; }
}

/* ---------- CTA FINAL ---------- */
.cta-final {
  position: relative;
  text-align: center;
  padding: 80px 40px;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(50, 80, 255, 0.15) 0%, transparent 60%);
  filter: blur(60px);
  pointer-events: none;
}

.cta-final h2 {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.cta-final p {
  font-size: 16px;
  color: #8898c0;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.cta-final .store-buttons {
  justify-content: center;
  position: relative;
  z-index: 1;
}

/* ---------- FOOTER ---------- */
footer {
  text-align: center;
  padding: 30px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
  color: #556;
}

footer p { margin-bottom: 8px; }

footer a {
  color: #6ea8fe;
  text-decoration: none;
  margin: 0 6px;
  transition: color .2s;
}

footer a:hover { color: #a78bfa; }

/* ---------- Smooth scroll ---------- */
html { scroll-behavior: smooth; }

/* ---------- Selection ---------- */
::selection {
  background: rgba(110, 168, 254, 0.3);
  color: #fff;
}

/* ---------- Starfield / particle effect via CSS ---------- */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 30% 50%, rgba(255,255,255,0.2), transparent),
    radial-gradient(1px 1px at 55% 10%, rgba(255,255,255,0.25), transparent),
    radial-gradient(1px 1px at 70% 60%, rgba(255,255,255,0.15), transparent),
    radial-gradient(1px 1px at 85% 30%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 20% 80%, rgba(255,255,255,0.2), transparent),
    radial-gradient(1px 1px at 45% 90%, rgba(255,255,255,0.18), transparent),
    radial-gradient(1.5px 1.5px at 60% 75%, rgba(150,180,255,0.3), transparent),
    radial-gradient(1px 1px at 90% 85%, rgba(255,255,255,0.2), transparent),
    radial-gradient(1.5px 1.5px at 15% 45%, rgba(150,180,255,0.25), transparent),
    radial-gradient(1px 1px at 75% 15%, rgba(255,255,255,0.2), transparent),
    radial-gradient(1px 1px at 40% 35%, rgba(200,200,255,0.2), transparent),
    radial-gradient(1px 1px at 5% 65%, rgba(255,255,255,0.15), transparent),
    radial-gradient(1.5px 1.5px at 95% 50%, rgba(150,180,255,0.2), transparent),
    radial-gradient(1px 1px at 50% 55%, rgba(255,255,255,0.18), transparent);
}
