/* ==========================================================================
   MasDim Apps - Design System & Modern Aesthetics
   ========================================================================== */

:root {
  --primary: #FF4DA6;
  --primary-glow: rgba(255, 77, 166, 0.35);
  --secondary: #6C5CE7;
  --accent-mint: #00D2B4;
  --accent-yellow: #FDCB6E;
  --accent-orange: #FF9F43;
  --accent-coral: #FF7675;
  --bg-gradient-start: #0F0C20;
  --bg-gradient-end: #1A103C;
  --card-bg: rgba(255, 255, 255, 0.05);
  --card-border: rgba(255, 255, 255, 0.12);
  --card-hover-border: rgba(255, 77, 166, 0.4);
  --text-main: #FFFFFF;
  --text-muted: #A0A5BA;
  --text-sub: #E2E8F0;
  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: var(--font-family);
  background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Background floating glow spheres */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}
.glow-1 {
  top: -100px;
  left: -100px;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(255, 77, 166, 0.25) 0%, transparent 70%);
}
.glow-2 {
  bottom: -50px;
  right: -50px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(108, 92, 231, 0.3) 0%, transparent 70%);
}
.glow-3 {
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 210, 180, 0.12) 0%, transparent 70%);
}

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

/* Navigation */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.5px;
}
.logo-badge {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 15px var(--primary-glow);
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text-main);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Hero Section */
.hero {
  padding: 80px 0 60px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 77, 166, 0.15);
  border: 1px solid rgba(255, 77, 166, 0.3);
  color: #FFA2D2;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 3.2rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 20px;
}
.gradient-text {
  background: linear-gradient(135deg, #FF7EB3 0%, #FF758C 40%, #A29BFE 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  color: var(--text-muted);
  font-size: 1.15rem;
  margin-bottom: 36px;
  max-width: 540px;
}
.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #E02888 100%);
  color: #fff;
  box-shadow: 0 8px 25px var(--primary-glow);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(255, 77, 166, 0.5);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
}

/* App Mascot / Preview Frame */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.app-card-preview {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 36px;
  width: 100%;
  max-width: 380px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}
.app-card-preview::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent-yellow), var(--accent-mint));
}
.mascot-icon {
  width: 110px;
  height: 110px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #FF4DA6 0%, #FF9F43 100%);
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  box-shadow: 0 10px 30px rgba(255, 77, 166, 0.4);
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.app-card-preview h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.app-card-preview .tag {
  color: var(--accent-mint);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.rating-pills {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}
.pill {
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--text-sub);
}

/* Features Grid */
.section {
  padding: 80px 0;
}
.section-title {
  text-align: center;
  margin-bottom: 50px;
}
.section-title h2 {
  font-size: 2.2rem;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.section-title p {
  color: var(--text-muted);
  font-size: 1.05rem;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 30px;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}
.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--card-hover-border);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}
.feature-icon {
  font-size: 2.2rem;
  margin-bottom: 18px;
  display: inline-block;
}
.feature-card h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--text-main);
}
.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Policy Content Layout */
.policy-wrapper {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 48px;
  margin: 40px 0 80px;
  backdrop-filter: blur(20px);
}
.policy-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 24px;
  margin-bottom: 32px;
}
.policy-header h1 {
  font-size: 2.4rem;
  margin-bottom: 8px;
}
.policy-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.policy-body h2 {
  font-size: 1.4rem;
  margin: 32px 0 12px;
  color: #FFA2D2;
}
.policy-body h3 {
  font-size: 1.15rem;
  margin: 20px 0 8px;
  color: var(--accent-yellow);
}
.policy-body p {
  color: var(--text-sub);
  margin-bottom: 16px;
  font-size: 1rem;
}
.policy-body ul {
  margin: 0 0 20px 24px;
  color: var(--text-sub);
}
.policy-body li {
  margin-bottom: 8px;
}
.highlight-box {
  background: rgba(0, 210, 180, 0.1);
  border-left: 4px solid var(--accent-mint);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 20px 0;
}

/* Footer */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 40px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 16px;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}
.footer-links a:hover {
  color: var(--text-main);
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 40px 0;
  }
  .hero p {
    margin-left: auto;
    margin-right: auto;
  }
  .cta-group {
    justify-content: center;
  }
  .hero-visual {
    margin-top: 20px;
  }
  .policy-wrapper {
    padding: 24px;
  }
}
