.kaapi-page {
  --kaapi-primary: #1f6fdc;
  --kaapi-primary-strong: #0f4aa1;
  --kaapi-accent: #8ec5ff;
  --kaapi-bg: #0b1731;
  --kaapi-bg-alt: #10264a;
  --kaapi-text: #f8fbff;
  --kaapi-text-muted: #c9d9ef;
}

.kaapi-page {
  color: var(--kaapi-text);
}

.kaapi-page .kaapi-hero {
  min-height: calc(100vh - 70px);
  position: relative;
  overflow: hidden;
  padding-top: 96px;
  padding-bottom: 84px;
  background:
    radial-gradient(1200px 520px at -10% -20%, rgba(59, 130, 246, 0.3), transparent 60%),
    radial-gradient(700px 400px at 90% 15%, rgba(15, 74, 161, 0.35), transparent 60%),
    linear-gradient(135deg, var(--kaapi-bg) 0%, var(--kaapi-bg-alt) 55%, #163666 100%);
}

.kaapi-page .kaapi-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 60%, rgba(8, 18, 38, 0.55) 100%);
  z-index: 1;
}

.kaapi-page .kaapi-hero .container {
  position: relative;
  z-index: 2;
}

.kaapi-page .kaapi-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(142, 197, 255, 0.45);
  background: rgba(19, 54, 102, 0.45);
  color: #dcebff;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.kaapi-page .app-name {
  font-size: clamp(2.4rem, 5.3vw, 4.1rem);
  font-weight: 800;
  margin-top: 14px;
  margin-bottom: 14px;
  line-height: 1.05;
  background: linear-gradient(90deg, #ffffff, var(--kaapi-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.kaapi-page .app-subtitle {
  font-size: clamp(1.2rem, 2.3vw, 1.75rem);
  color: #ebf4ff;
  margin-bottom: 12px;
  line-height: 1.35;
}

.kaapi-page .kaapi-subcopy {
  max-width: 570px;
  font-size: 1.02rem;
  color: var(--kaapi-text-muted);
  margin-bottom: 0;
}

.kaapi-page .app-buttons .btn {
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 700;
  border: 2px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.kaapi-page .btn-playstore {
  background: linear-gradient(135deg, var(--kaapi-primary), var(--kaapi-primary-strong));
  color: #fff;
  border-color: rgba(120, 178, 255, 0.5);
}

.kaapi-page .btn-appstore {
  background-color: rgba(255, 255, 255, 0.08);
  color: #eff6ff;
  border-color: rgba(230, 242, 255, 0.3);
}

.kaapi-page .app-buttons .btn:hover {
  transform: translateY(-2px);
}

.kaapi-page .btn-playstore:hover {
  box-shadow: 0 14px 26px rgba(31, 111, 220, 0.35);
  color: #fff;
}

.kaapi-page .btn-appstore:hover {
  box-shadow: 0 14px 26px rgba(11, 23, 49, 0.35);
  background-color: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.kaapi-page .mobile-mockup {
  position: relative;
  max-width: 320px;
  margin: 0 auto;
}

.kaapi-page .mobile-frame {
  position: relative;
  width: 100%;
  padding-top: 190%;
  border-radius: 36px;
  border: 10px solid #1f2937;
  background: #0a0f1f;
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.48);
  overflow: hidden;
}

.kaapi-page .screen-content,
.kaapi-page .feature-screen {
  position: absolute;
  inset: 0;
}

.kaapi-page .screen-content img,
.kaapi-page .feature-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kaapi-page .features-section {
  position: relative;
  background:
    radial-gradient(800px 320px at 85% 0%, rgba(59, 130, 246, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(6, 13, 30, 0.85) 0%, rgba(9, 21, 43, 0.95) 100%);
}

.kaapi-page .section-title {
  background: linear-gradient(90deg, #f8fbff, #9fc7ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}

.kaapi-page .section-subtitle {
  color: var(--kaapi-text-muted);
}

.kaapi-page .feature-tabs {
  margin-bottom: 6px;
}

.kaapi-page .feature-tab {
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid rgba(143, 198, 255, 0.18);
  background: rgba(22, 46, 86, 0.58);
  color: #e8f1ff;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.kaapi-page .feature-tab:hover,
.kaapi-page .feature-tab.active {
  background: linear-gradient(135deg, rgba(31, 111, 220, 0.92), rgba(15, 74, 161, 0.92));
  box-shadow: 0 10px 22px rgba(20, 78, 167, 0.38);
  border-color: rgba(185, 217, 255, 0.4);
  transform: translateY(-2px);
}

.kaapi-page .feature-mockup {
  max-width: 320px;
  margin: 0 auto;
}

.kaapi-page .feature-screen {
  opacity: 0;
  transition: opacity 0.35s ease;
  border-radius: 28px;
  overflow: hidden;
}

.kaapi-page .feature-screen.active {
  opacity: 1;
}

.kaapi-page .feature-detail-panel {
  min-height: 155px;
  border-radius: 16px;
  background: rgba(12, 28, 56, 0.72);
  border: 1px solid rgba(143, 198, 255, 0.2);
  padding: 20px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
}

.kaapi-page .feature-details {
  display: none;
}

.kaapi-page .feature-details.active {
  display: block;
}

.kaapi-page .feature-title {
  font-size: 1.42rem;
  margin-bottom: 8px;
  color: #f8fbff;
}

.kaapi-page .feature-desc {
  margin: 0;
  color: var(--kaapi-text-muted);
  line-height: 1.65;
}

.kaapi-page .feature-tab:focus-visible {
  outline: 2px solid #9fc7ff;
  outline-offset: 2px;
}

@media (max-width: 991.98px) {
  .kaapi-page .kaapi-hero {
    padding-top: 106px;
    text-align: center;
  }

  .kaapi-page .kaapi-subcopy {
    margin-left: auto;
    margin-right: auto;
  }

  .kaapi-page .mobile-mockup {
    margin-top: 6px;
  }
}

@media (max-width: 767.98px) {
  .kaapi-page .mobile-mockup,
  .kaapi-page .feature-mockup {
    max-width: 268px;
  }

  .kaapi-page .feature-tab {
    font-size: 0.84rem;
    padding: 9px 10px;
  }

  .kaapi-page .feature-detail-panel {
    min-height: 170px;
    text-align: center;
  }

  .kaapi-page .feature-title {
    font-size: 1.25rem;
  }
}
