/* ==========================================================================
   VUINN.COM - MASTER DESIGN SYSTEM
   Theme: Next-Gen Social & Gaming Platform (Dark Mode, Glassmorphism, Vibrancy)
   ========================================================================== */

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

:root {
  /* Core Color Palette */
  --bg-primary: #070913;
  --bg-secondary: #0f1225;
  --bg-card: rgba(21, 25, 48, 0.7);
  --bg-card-hover: rgba(30, 36, 68, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(168, 85, 247, 0.3);

  /* Gradients */
  --gradient-insta: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
  --gradient-primary: linear-gradient(135deg, #a855f7 0%, #6366f1 50%, #3b82f6 100%);
  --gradient-neon: linear-gradient(135deg, #ec4899 0%, #8b5cf6 50%, #06b6d4 100%);
  --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
  --gradient-gold: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);

  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-gradient: linear-gradient(135deg, #f3e8ff 0%, #c084fc 50%, #e879f9 100%);

  /* Accent Colors */
  --accent-purple: #a855f7;
  --accent-pink: #ec4899;
  --accent-blue: #3b82f6;
  --accent-cyan: #06b6d4;
  --accent-success: #10b981;

  /* Fonts */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Layout */
  --container-width: 1240px;
  --header-height: 80px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --shadow-glow: 0 10px 30px -10px rgba(168, 85, 247, 0.4);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Background Ambient Glow Effects */
.bg-glow-1 {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.25) 0%, rgba(0, 0, 0, 0) 70%);
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
}

.bg-glow-2 {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.18) 0%, rgba(0, 0, 0, 0) 70%);
  top: 600px;
  right: -200px;
  z-index: 0;
  pointer-events: none;
}

.bg-glow-3 {
  position: absolute;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
  bottom: 400px;
  left: -200px;
  z-index: 0;
  pointer-events: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Gradient Text Helper */
.text-gradient {
  background: var(--gradient-neon);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px -5px rgba(168, 85, 247, 0.6);
}

.btn-secondary {
  background: var(--bg-glass);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
}

/* Store Specific Custom Buttons */
.btn-appstore {
  background: linear-gradient(135deg, #0076FF 0%, #0250C5 100%);
  color: #ffffff !important;
  box-shadow: 0 8px 25px -5px rgba(0, 118, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-appstore:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 35px -5px rgba(0, 118, 255, 0.7);
  background: linear-gradient(135deg, #1A84FF 0%, #035DE6 100%);
}

.btn-playstore {
  background: linear-gradient(135deg, #00C853 0%, #00B0FF 100%);
  color: #ffffff !important;
  box-shadow: 0 8px 25px -5px rgba(0, 200, 83, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-playstore:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 35px -5px rgba(0, 200, 83, 0.7);
  background: linear-gradient(135deg, #00E676 0%, #00C4FF 100%);
}

/* Glass Card */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 32px;
  transition: all 0.3s ease;
}

.glass-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: var(--accent-purple);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: all 0.3s ease;
}

.header.scrolled {
  background: rgba(7, 9, 19, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--gradient-insta);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #fff;
  font-size: 1.3rem;
  box-shadow: 0 4px 15px rgba(253, 29, 29, 0.4);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 100px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-title {
  font-size: 3.8rem;
  margin: 20px 0;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 540px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-glass);
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Phone Mockup */
.phone-mockup-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: 320px;
  height: 640px;
  background: #0f1225;
  border-radius: 48px;
  border: 10px solid #1e2444;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 40px rgba(168, 85, 247, 0.3);
  position: relative;
  overflow: hidden;
}

.phone-header {
  height: 40px;
  background: #151930;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-notch {
  width: 120px;
  height: 18px;
  background: #0b0d17;
  border-radius: 0 0 12px 12px;
}

.phone-screen {
  padding: 16px;
  height: calc(100% - 40px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: linear-gradient(180deg, #0f1225 0%, #070913 100%);
}

.mock-story-bar {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.mock-story {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  padding: 2px;
  background: var(--gradient-insta);
  flex-shrink: 0;
}

.mock-story-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #252b48;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.mock-post-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mock-post-media {
  height: 220px;
  border-radius: 12px;
  background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin: 8px 0;
  position: relative;
}

.mock-floating-badge {
  position: absolute;
  top: 20%;
  right: -20px;
  background: rgba(21, 25, 48, 0.9);
  border: 1px solid var(--border-glow);
  padding: 12px 20px;
  border-radius: 16px;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ==========================================================================
   FEATURES SECTION
   ========================================================================== */
.features {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 60px;
}

.section-title {
  font-size: 2.8rem;
  margin: 16px 0;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

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

.feature-icon-box {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 24px;
}

.feature-title {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.feature-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ==========================================================================
   APP SHOWCASE & HIGHLIGHTS FEATURE SECTION
   ========================================================================== */
.showcase {
  padding: 100px 0;
  background: var(--bg-secondary);
  position: relative;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.showcase-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
}

.showcase-item {
  display: flex;
  gap: 20px;
  padding: 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.showcase-item:hover {
  background: rgba(168, 85, 247, 0.08);
  border-color: rgba(168, 85, 247, 0.3);
}

.showcase-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #fff;
  flex-shrink: 0;
}

/* ==========================================================================
   TESTIMONIALS & REVIEWS
   ========================================================================== */
.testimonials {
  padding: 100px 0;
}

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

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--accent-purple);
}

.user-name {
  font-weight: 700;
}

.user-handle {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */
.cta-section {
  padding: 80px 0;
}

.cta-box {
  background: linear-gradient(135deg, rgba(131, 58, 180, 0.4) 0%, rgba(253, 29, 29, 0.3) 50%, rgba(252, 176, 69, 0.2) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-title {
  font-size: 3rem;
  margin-bottom: 20px;
}

/* ==========================================================================
   LEGAL / POLICY PAGES SPECIFIC STYLES
   ========================================================================== */
.legal-header {
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 40px;
  text-align: center;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-glass);
}

.legal-content {
  padding: 60px 0;
  max-width: 900px;
  margin: 0 auto;
}

.legal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 48px;
}

.legal-card h2 {
  font-size: 1.8rem;
  margin: 32px 0 16px;
  color: var(--accent-purple);
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card p, .legal-card li {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.legal-card ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 24px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: #04050b;
  border-top: 1px solid var(--border-glass);
  padding: 80px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-desc {
  color: var(--text-secondary);
  margin-top: 16px;
  max-width: 320px;
}

.footer-col-title {
  font-size: 1.1rem;
  margin-bottom: 24px;
  color: #fff;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.footer-links a:hover {
  color: var(--accent-purple);
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-title { font-size: 3rem; }
  .features-grid, .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero-grid, .showcase-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-subtitle { margin: 0 auto 36px; }
  .hero-buttons, .hero-stats { justify-content: center; }
  .features-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: #070913;
    flex-direction: column;
    justify-content: center;
    transition: 0.3s ease;
  }
  .nav-menu.active { left: 0; }
  .mobile-toggle { display: block; }
  .legal-card { padding: 24px; }
}
