/* ==========================================================================
   MHEnt Universe Apps - Celestial Cyber Theme
   Miyazaki Haruto Entertainment Co., Ltd.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg-dark: #060913;
  --bg-card: rgba(13, 19, 36, 0.75);
  --bg-card-hover: rgba(18, 26, 48, 0.85);
  --border-card: rgba(255, 255, 255, 0.08);
  --border-card-hover: rgba(0, 162, 255, 0.4);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --accent-cyan: #00d2ff;
  --accent-blue: #0084ff;
  --accent-purple: #8b5cf6;
  --gradient-primary: linear-gradient(135deg, #00d2ff 0%, #0077ff 50%, #8b5cf6 100%);
  --gradient-glow: radial-gradient(circle at 50% 0%, rgba(0, 150, 255, 0.18) 0%, rgba(6, 9, 19, 0) 70%);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-glow: 0 0 30px rgba(0, 140, 255, 0.25);
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Background Atmosphere */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 600px;
  background: var(--gradient-glow);
  pointer-events: none;
  z-index: 0;
}

.cosmic-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Navigation Bar */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(6, 9, 19, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-card);
  z-index: 100;
  padding: 16px 0;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}

.brand-badge-logo {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #0284c7, #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  color: #fff;
  letter-spacing: -0.5px;
  box-shadow: 0 0 15px rgba(2, 132, 199, 0.4);
}

.brand-text h1 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.brand-text span {
  font-size: 11px;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

.nav-cta {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-card);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  color: var(--text-main);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-cta:hover {
  background: rgba(0, 162, 255, 0.15);
  border-color: var(--accent-blue);
  color: #fff;
}

/* Hero Section */
.hero {
  padding: 80px 0 60px;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 210, 255, 0.08);
  border: 1px solid rgba(0, 210, 255, 0.25);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 24px;
}

.hero-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

.hero-title {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.15;
  margin-bottom: 20px;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 36px;
  font-weight: 400;
}

/* Suite Grid */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin: 40px 0 80px;
}

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

/* App Card */
.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 36px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.app-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition);
}

.app-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-card-hover);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), var(--shadow-glow);
  background: var(--bg-card-hover);
}

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

.card-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
}

.app-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  object-fit: contain;
  background: #090e1c;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: var(--transition);
}

.app-card:hover .app-icon {
  transform: scale(1.05);
  border-color: var(--accent-cyan);
}

.card-title-group h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge {
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-weight: 600;
  letter-spacing: 0;
}

.badge-version {
  background: rgba(0, 210, 255, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 210, 255, 0.3);
}

.badge-platform {
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-tagline {
  color: var(--text-muted);
  font-size: 14.5px;
  font-weight: 500;
}

.card-desc {
  color: #cbd5e1;
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 28px;
  flex-grow: 1;
}

/* Feature List */
.feature-list {
  list-style: none;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #94a3b8;
}

.feature-icon {
  color: var(--accent-cyan);
  font-size: 16px;
  flex-shrink: 0;
}

/* Button Group */
.card-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: var(--radius-md);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, #0084ff, #0055ff);
  color: #fff;
  box-shadow: 0 4px 18px rgba(0, 132, 255, 0.35);
  flex: 1;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0095ff, #0066ff);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 132, 255, 0.5);
  color: #fff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-card);
  color: var(--text-main);
  padding: 13px 18px;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.btn-orbit {
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  box-shadow: 0 4px 18px rgba(124, 58, 237, 0.35);
}

.btn-orbit:hover {
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.5);
}

/* More Apps Section */
.more-apps {
  margin: 60px 0 100px;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h3 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 16px;
}

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

@media (max-width: 900px) {
  .mini-grid {
    grid-template-columns: 1fr;
  }
}

.mini-card {
  background: rgba(13, 19, 36, 0.5);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.mini-card:hover {
  border-color: rgba(0, 162, 255, 0.3);
  transform: translateY(-3px);
  background: rgba(18, 26, 48, 0.7);
}

.mini-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}

.mini-card h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.mini-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  flex-grow: 1;
}

.mini-card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Detail Showcase Page Layout */
.app-hero {
  padding: 60px 0 40px;
  text-align: center;
}

.app-hero-icon {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  background: #090e1c;
  padding: 16px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 162, 255, 0.2);
  margin: 0 auto 24px;
  display: block;
}

.app-hero h1 {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.app-hero-tagline {
  font-size: 20px;
  color: var(--accent-cyan);
  font-weight: 500;
  margin-bottom: 16px;
}

.app-hero-meta {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
}

.download-box {
  max-width: 580px;
  margin: 0 auto 60px;
  background: rgba(13, 19, 36, 0.85);
  border: 1px solid rgba(0, 162, 255, 0.3);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 132, 255, 0.15);
  text-align: center;
}

.download-btn-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  padding: 18px 32px;
  background: linear-gradient(135deg, #0084ff, #0055ff);
  color: #fff;
  border-radius: var(--radius-md);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 30px rgba(0, 132, 255, 0.45);
  transition: var(--transition);
  margin-bottom: 16px;
}

.download-btn-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0, 132, 255, 0.6);
  background: linear-gradient(135deg, #0095ff, #0066ff);
}

.download-btn-orbit {
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.45);
}

.download-btn-orbit:hover {
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  box-shadow: 0 12px 36px rgba(124, 58, 237, 0.6);
}

.download-subinfo {
  display: flex;
  justify-content: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-dim);
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 50px 0;
}

@media (max-width: 768px) {
  .specs-grid {
    grid-template-columns: 1fr;
  }
}

.spec-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 24px;
}

.spec-card h4 {
  font-size: 16px;
  color: var(--accent-cyan);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.spec-card p {
  font-size: 14px;
  color: var(--text-muted);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-card);
  background: rgba(4, 7, 14, 0.95);
  padding: 48px 0 32px;
  font-size: 13.5px;
  color: var(--text-dim);
  margin-top: 80px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--text-muted);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 24px;
  font-size: 12.5px;
}
