/* ============================================ */
/*  MIG Duel Kick — Page-Specific Styles        */
/*  Extends styles.css + subpages.css           */
/* ============================================ */

/* ===== HERO ===== */
.dk-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px clamp(20px, 5vw, 80px) 60px;
  overflow: hidden;
  background: #081827;
}

.dk-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: clamp(40px, 6vw, 100px);
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
}

.dk-hero-text { flex: 1; min-width: 0; }

/* Badge */
.dk-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.22);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--orange, #f59e0b);
  margin-bottom: 20px;
  animation: dk-fadeUp 0.6s ease both;
}
.dk-badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--orange, #f59e0b);
  animation: dk-pulse 2s infinite;
}
@keyframes dk-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.65); }
}

/* Title */
.dk-hero h1 {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #fff;
  animation: dk-fadeUp 0.6s ease 0.1s both;
}
.dk-gradient {
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 40%, var(--brand, #16b5e9) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.dk-lightning { -webkit-text-fill-color: initial; }
.dk-sub {
  font-size: 0.6em;
  font-weight: 700;
  color: #8b9ab5;
  -webkit-text-fill-color: initial;
  letter-spacing: -0.01em;
}

/* Description */
.dk-hero-desc {
  font-size: clamp(0.95rem, 1.6vw, 1.12rem);
  color: #8b9ab5;
  max-width: 500px;
  margin-top: 18px;
  line-height: 1.7;
  animation: dk-fadeUp 0.6s ease 0.2s both;
}

/* Actions */
.dk-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
  animation: dk-fadeUp 0.6s ease 0.3s both;
}

/* Buttons — match homepage style */
.dk-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 30px;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s;
}
.dk-btn-primary {
  background: linear-gradient(135deg, var(--orange, #f59e0b), #d97706);
  color: #000;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}
.dk-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(245, 158, 11, 0.4);
}
.dk-btn-outline {
  background: transparent;
  color: #e8edf5;
  border: 1.5px solid rgba(255,255,255,0.15);
}
.dk-btn-outline:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.25);
}
.dk-btn-lg {
  font-size: 1.08rem;
  padding: 16px 40px;
}

/* Stats */
.dk-stats {
  display: flex;
  gap: 32px;
  margin-top: 36px;
  animation: dk-fadeUp 0.6s ease 0.4s both;
}
.dk-stat { text-align: left; }
.dk-stat-num {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--orange, #f59e0b);
  display: block;
}
.dk-stat-label {
  font-size: 0.75rem;
  color: #8b9ab5;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Phone mockup */
.dk-hero-phone {
  flex-shrink: 0;
  animation: dk-fadeUp 0.8s ease 0.3s both;
}
.dk-phone-frame {
  width: 270px;
  height: 540px;
  border-radius: 34px;
  border: 3px solid rgba(255,255,255,0.08);
  background: #000;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.5),
    0 0 50px rgba(22, 181, 233, 0.1),
    inset 0 0 20px rgba(255,255,255,0.02);
  overflow: hidden;
}
.dk-phone-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
}

/* ===== SECTIONS ===== */
.dk-section {
  padding: clamp(60px, 8vw, 110px) clamp(20px, 5vw, 80px);
  background: #081827;
}
.dk-section-dark {
  background: #061320;
}
.dk-section-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.dk-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 100px;
  background: rgba(22, 181, 233, 0.08);
  border: 1px solid rgba(22, 181, 233, 0.18);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand, #16b5e9);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 16px;
}

.dk-section-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 14px;
  color: #fff;
}
.dk-section-desc {
  font-size: 1rem;
  color: #8b9ab5;
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 48px;
}

/* ===== FEATURE CARDS ===== */
.dk-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}
.dk-card {
  background: #0c1e34;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 18px;
  padding: 30px 26px;
  transition: all 0.35s;
  position: relative;
  overflow: hidden;
}
.dk-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange, #f59e0b), var(--brand, #16b5e9));
  opacity: 0;
  transition: opacity 0.35s;
}
.dk-card:hover {
  border-color: rgba(255,255,255,0.1);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.25);
}
.dk-card:hover::after { opacity: 1; }

.dk-card-icon {
  width: 50px; height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.dk-icon-amber { background: rgba(245,158,11,0.1); }
.dk-icon-blue  { background: rgba(22,181,233,0.1); }
.dk-icon-green { background: rgba(34,197,94,0.1); }
.dk-icon-red   { background: rgba(239,68,68,0.1); }

.dk-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}
.dk-card p {
  font-size: 0.88rem;
  color: #8b9ab5;
  line-height: 1.65;
}

/* ===== GALLERY — CENTERED ===== */
.dk-gallery-track {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 10px clamp(20px, 5vw, 80px) 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 8px;
}
.dk-gallery-track::-webkit-scrollbar { display: none; }

.dk-gallery-item {
  flex-shrink: 0;
  width: 240px;
  scroll-snap-align: center;
}
.dk-gallery-frame {
  width: 240px;
  height: 480px;
  border-radius: 28px;
  border: 3px solid rgba(255,255,255,0.07);
  background: #0a0a0a;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
  transition: all 0.4s;
}
.dk-gallery-frame:hover {
  border-color: var(--brand, #16b5e9);
  box-shadow: 0 20px 50px rgba(0,0,0,0.35), 0 0 25px rgba(22, 181, 233, 0.2);
  transform: translateY(-6px);
}
.dk-gallery-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
}
.dk-gallery-caption {
  text-align: center;
  margin-top: 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #8b9ab5;
}
.dk-gallery-caption span {
  color: var(--orange, #f59e0b);
}

/* ===== STEPS ===== */
.dk-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}
.dk-step {
  background: #0c1e34;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 18px;
  padding: 30px 24px;
  text-align: center;
  transition: all 0.3s;
}
.dk-step:hover {
  border-color: rgba(255,255,255,0.1);
  transform: translateY(-3px);
}
.dk-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange, #f59e0b), #d97706);
  color: #000;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  margin: 0 auto 14px;
}
.dk-step h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}
.dk-step p {
  font-size: 0.85rem;
  color: #8b9ab5;
  line-height: 1.6;
}

/* ===== DOWNLOAD CARD ===== */
.dk-download-card {
  position: relative;
  background: #0c1e34;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 24px;
  overflow: hidden;
  text-align: center;
}
.dk-download-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 30% 0%, rgba(22,181,233,0.08) 0%, transparent 50%),
    radial-gradient(ellipse 50% 50% at 70% 100%, rgba(245,158,11,0.06) 0%, transparent 50%);
  pointer-events: none;
}
.dk-download-content {
  position: relative;
  z-index: 1;
  padding: clamp(40px, 5vw, 60px);
}
.dk-download-content .dk-section-desc {
  margin-left: auto;
  margin-right: auto;
}
.dk-download-meta {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 24px;
  font-size: 0.85rem;
  color: #8b9ab5;
}
.dk-desc-download { margin-bottom: 32px; }

/* ===== DARK THEME OVERRIDES (page uses dark bg on light-theme site) ===== */
body:has(.dk-hero) {
  background: #081827;
  color: #e8edf5;
}
body:has(.dk-hero) .site-header {
  background: rgba(8, 24, 39, 0.85);
  border-bottom-color: rgba(255,255,255,0.06);
}
body:has(.dk-hero) .site-header .brand-link span,
body:has(.dk-hero) .site-header .site-nav a { color: #e8edf5; }
body:has(.dk-hero) .site-header .site-nav a:hover { color: #fff; }
body:has(.dk-hero) .site-footer {
  background: #0a1628;
  border-top-color: rgba(255,255,255,0.06);
}

/* ===== ANIMATION ===== */
@keyframes dk-fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .dk-hero-inner {
    flex-direction: column;
    text-align: center;
  }
  .dk-hero-desc { margin-left: auto; margin-right: auto; }
  .dk-hero-actions { justify-content: center; }
  .dk-stats { justify-content: center; }
  .dk-hero-phone { order: -1; }
  .dk-phone-frame { width: 220px; height: 440px; border-radius: 28px; }
  .dk-gallery-track { justify-content: flex-start; }
}

@media (max-width: 540px) {
  .dk-hero { padding: 80px 16px 40px; min-height: auto; }
  .dk-hero h1 { font-size: 1.8rem; }
  .dk-phone-frame { width: 190px; height: 380px; border-radius: 24px; }
  .dk-stats { gap: 20px; }
  .dk-stat-num { font-size: 1.2rem; }
  .dk-btn { padding: 12px 22px; font-size: 0.88rem; }
  .dk-features-grid { grid-template-columns: 1fr; }
  .dk-steps-grid { grid-template-columns: 1fr 1fr; }
  .dk-gallery-item { width: 210px; }
  .dk-gallery-frame { width: 210px; height: 420px; border-radius: 22px; }
  .dk-download-meta { flex-direction: column; gap: 8px; }
}
