﻿/* ==========================================================================
   MediaKuro Software Studio - Stylesheet
   ========================================================================== */

:root {
  --bg-color: #080310;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.72);
  --text-muted: #9585a8;
  --accent-pink: #d81b60;
  --accent-pink-hover: #e91e63;
  --accent-cyan: #00d2ff;
  --accent-purple: #7b2cbf;
  
  --card-bg-glass: rgba(18, 11, 30, 0.65);
  --card-upcoming-bg: rgba(22, 13, 36, 0.35);
  --card-radius: 20px;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --heading-font: 'Outfit', 'Inter', sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  min-height: 100%;
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-family);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ==========================================================================
   Ambient Background Lighting & Gradients
   ========================================================================== */

.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.75;
  will-change: transform;
}

.glow-top-left {
  top: -5vh;
  left: -8vw;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(160, 24, 120, 0.45) 0%, rgba(95, 12, 110, 0.25) 50%, transparent 75%);
}

.glow-center-right {
  top: -10vh;
  right: -10vw;
  width: 65vw;
  height: 65vw;
  background: radial-gradient(circle, rgba(185, 20, 110, 0.45) 0%, rgba(110, 14, 85, 0.25) 50%, transparent 75%);
}

.glow-bottom-left {
  bottom: -15vh;
  left: -5vw;
  width: 55vw;
  height: 55vw;
  background: radial-gradient(circle, rgba(130, 20, 120, 0.38) 0%, rgba(65, 10, 95, 0.2) 50%, transparent 75%);
}

/* ==========================================================================
   Layout Wrapper
   ========================================================================== */

.page-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 40px 48px 28px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
}

/* ==========================================================================
   Header & Brand
   ========================================================================== */

.header {
  display: flex;
  align-items: center;
  margin-bottom: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  text-decoration: none;
  color: var(--text-primary);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.brand:hover {
  opacity: 0.94;
  transform: translateY(-2px);
}

.brand-logo {
  width: 82px;
  height: 82px;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(123, 44, 191, 0.6));
}

.brand-name {
  font-family: var(--heading-font);
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.6px;
  color: #ffffff;
}

/* ==========================================================================
   Main Hero Section
   ========================================================================== */

.main-content {
  display: flex;
  flex-direction: column;
  margin-bottom: 28px;
}

.hero-section {
  margin-bottom: 32px;
}

.hero-subtitle {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: #b0a2c7;
  margin-bottom: 8px;
  letter-spacing: 0.2px;
}

.hero-title {
  font-family: var(--heading-font);
  font-size: clamp(36px, 4.2vw, 56px);
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #ffffff;
  line-height: 1.12;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.hero-tagline {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: -0.2px;
}

/* ==========================================================================
   Apps Grid
   ========================================================================== */

.apps-grid {
  display: grid;
  grid-template-columns: 1.48fr 1fr;
  gap: 28px;
  align-items: stretch;
  margin-bottom: 48px;
}

/* ==========================================================================
   Featured Card (Navi Player)
   ========================================================================== */

.card {
  position: relative;
  border-radius: var(--card-radius);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-featured {
  position: relative;
  background: var(--card-bg-glass);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-radius: var(--card-radius);
  padding: 1.5px; /* Gradient border container */
  box-shadow: 0 12px 36px -8px rgba(0, 0, 0, 0.6), 0 0 20px -4px rgba(123, 44, 191, 0.2);
}

.card-glow-border {
  position: absolute;
  inset: 0;
  border-radius: var(--card-radius);
  padding: 1.5px;
  background: linear-gradient(135deg, #00d2ff 0%, #a855f7 45%, #ec4899 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.card-inner {
  background: rgba(14, 8, 23, 0.88);
  border-radius: calc(var(--card-radius) - 1.5px);
  padding: 20px 22px 22px 22px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* App Screenshot Container */
.preview-container {
  width: 100%;
  background: #0d0918;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 8px 24px rgba(0, 0, 0, 0.5);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Card Content Details */
.card-content {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}

.app-title {
  font-family: var(--heading-font);
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

.app-description {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 440px;
  margin-bottom: 20px;
  font-weight: 400;
}

/* Discover Button */
.btn-discover {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 480px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #d81b60 0%, #db2777 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(216, 27, 96, 0.35);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: auto;
}

.btn-discover:hover {
  background: linear-gradient(135deg, #e91e63 0%, #f43f5e 100%);
  box-shadow: 0 6px 24px rgba(233, 30, 99, 0.55);
  transform: translateY(-2px);
}

.btn-discover:active {
  transform: translateY(0);
}

.btn-title {
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.btn-url {
  font-size: 12.5px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 1px;
}

/* ==========================================================================
   Upcoming Apps Card
   ========================================================================== */

.card-upcoming {
  background: var(--card-upcoming-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1.5px dashed rgba(175, 150, 210, 0.28);
  border-radius: var(--card-radius);
  padding: 28px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
}

.card-upcoming-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 100%;
  text-align: center;
  padding: 12px 0;
}

.upcoming-header {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: #9f8fb3;
  text-transform: uppercase;
}

.upcoming-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin: 48px 0;
  color: rgba(160, 140, 195, 0.45);
}

.placeholder-icon {
  width: 58px;
  height: 58px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.card-upcoming:hover .placeholder-icon {
  color: rgba(195, 175, 235, 0.7);
  transform: translateY(-2px);
}

.upcoming-footer {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: #8c7a9f;
  text-transform: uppercase;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-link {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-copyright {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.38);
  letter-spacing: 0.1px;
}

/* ==========================================================================
   Modals
   ========================================================================== */

.modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 2, 10, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.modal-dialog {
  position: relative;
  z-index: 2;
  background: rgba(24, 15, 38, 0.95);
  border: 1px solid rgba(168, 85, 247, 0.3);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 24px rgba(123, 44, 191, 0.3);
  border-radius: 18px;
  width: 100%;
  max-width: 480px;
  padding: 32px;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.active .modal-dialog {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
}

.modal-close:hover {
  color: #fff;
}

.modal-title {
  font-family: var(--heading-font);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.modal-text {
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 14px;
}

.modal-contact-card {
  margin-top: 18px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-label {
  font-size: 13.5px;
  color: var(--text-muted);
}

.modal-email {
  color: #38bdf8;
  font-weight: 600;
  text-decoration: none;
  font-size: 14.5px;
}

.modal-email:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 960px) {
  .apps-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .card-upcoming {
    min-height: 240px;
    padding: 36px 24px;
  }

  .upcoming-icons {
    margin: 28px 0;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-tagline {
    font-size: 19px;
  }
}

@media (max-width: 640px) {
  .page-wrapper {
    padding: 24px 18px 24px 18px;
  }

  .header {
    margin-bottom: 32px;
  }

  .brand-logo {
    width: 38px;
    height: 38px;
  }

  .brand-name {
    font-size: 22px;
  }

  .hero-title {
    font-size: 26px;
    letter-spacing: 0.3px;
  }

  .hero-tagline {
    font-size: 16.5px;
  }

  .card-inner {
    padding: 16px 14px 18px 14px;
  }

  .app-title {
    font-size: 20px;
  }

  .app-description {
    font-size: 13.5px;
  }

  .btn-discover {
    padding: 10px 18px;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
