/* ============================================
   MochaPlay Official Website - Design System
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── CSS Variables ── */
:root {
  /* Brand Colors - Mocha Palette */
  --mocha-50: #FDF8F3;
  --mocha-100: #F5E6D3;
  --mocha-200: #E8C9A8;
  --mocha-300: #D4A574;
  --mocha-400: #C08A50;
  --mocha-500: #8B6B4A;
  --mocha-600: #6B4F35;
  --mocha-700: #5D3A1A;
  --mocha-800: #3E2512;
  --mocha-900: #2A1A0E;
  --mocha-950: #1A100A;

  /* Accent */
  --accent: #D4A574;
  --accent-light: #E8C9A8;
  --accent-glow: rgba(212, 165, 116, 0.4);

  /* Backgrounds */
  --bg-primary: #0F0A07;
  --bg-secondary: #1A120D;
  --bg-card: rgba(42, 26, 14, 0.6);
  --bg-card-hover: rgba(58, 38, 22, 0.8);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --bg-glass-border: rgba(255, 255, 255, 0.08);

  /* Text */
  --text-primary: #F5E6D3;
  --text-secondary: rgba(245, 230, 211, 0.65);
  --text-muted: rgba(245, 230, 211, 0.35);

  /* Spacing */
  --section-padding: 120px;
  --container-width: 1200px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.2s var(--ease-out);
  --transition-normal: 0.4s var(--ease-out);
  --transition-slow: 0.6s var(--ease-out);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

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

/* ── Utility ── */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-padding) 0;
  position: relative;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.section-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 800px;
  line-height: 1.7;
}

/* ── Background Effects ── */
.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}

.bg-noise {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ── Navigation ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  padding: 12px 0;
  background: rgba(15, 10, 7, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--bg-glass-border);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}

.nav-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

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

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transition: width var(--transition-normal);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-download-btn {
  padding: 10px 24px;
  background: var(--accent);
  color: var(--mocha-900) !important;
  border-radius: 100px;
  font-weight: 600;
  font-size: 14px;
  transition: all var(--transition-fast);
  box-shadow: 0 0 20px var(--accent-glow);
}

.nav-download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 30px var(--accent-glow);
}

.nav-download-btn::after {
  display: none !important;
}

/* Mobile Menu */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* ── HERO Section ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-glow-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--mocha-700), transparent 70%);
  top: -200px;
  right: -100px;
}

.hero-glow-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--mocha-800), transparent 70%);
  bottom: -150px;
  left: -100px;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-logo {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-lg);
  margin: 0 auto 32px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 60px var(--accent-glow);
  animation: float 6s ease-in-out infinite;
}

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

.hero-title {
  font-size: clamp(48px, 8vw, 80px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--mocha-100), var(--accent), var(--mocha-300));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(18px, 2.5vw, 22px);
  color: var(--text-secondary);
  margin-bottom: 48px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--mocha-400));
  color: var(--mocha-950);
  box-shadow: 0 4px 30px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 40px rgba(212, 165, 116, 0.5);
}

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

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-icon {
  font-size: 20px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  border-radius: 100px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  backdrop-filter: blur(10px);
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4CAF50;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--bg-glass-border);
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.hero-stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ── FEATURES Section ── */
#features {
  background: var(--bg-secondary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-light), transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(212, 165, 116, 0.15);
  transform: translateY(-4px);
}

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

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, rgba(212, 165, 116, 0.15), rgba(212, 165, 116, 0.05));
  border: 1px solid rgba(212, 165, 116, 0.1);
}

.feature-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.feature-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── SHOWCASE Section ── */
.showcase {
  background: var(--bg-primary);
  overflow: hidden;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 64px;
}

.showcase-item {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--bg-glass-border);
  transition: all var(--transition-slow);
  aspect-ratio: 9 / 19;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.showcase-item:nth-child(even) {
  margin-top: 40px;
}

.showcase-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}

.showcase-item:hover {
  transform: translateY(-8px);
  border-color: var(--accent-glow);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 20px var(--accent-glow);
}

.showcase-item:hover img {
  transform: scale(1.08);
}

.showcase-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 16px;
  background: linear-gradient(to top, rgba(15, 10, 7, 0.95), rgba(15, 10, 7, 0.8), transparent);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 14px;
  opacity: 1;
  transform: none;
  backdrop-filter: blur(5px);
}

@media (max-width: 1024px) {
  .showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .showcase-item:nth-child(even) {
    margin-top: 0;
  }
}

/* ── DOWNLOAD Section ── */
#download {
  background: var(--bg-secondary);
  text-align: center;
}

.download-card {
  background: linear-gradient(135deg, var(--mocha-900), var(--mocha-800));
  border: 1px solid rgba(212, 165, 116, 0.15);
  border-radius: var(--radius-xl);
  padding: 80px 60px;
  margin-top: 60px;
  position: relative;
  overflow: hidden;
}

.download-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, var(--accent-glow), transparent 60%);
  opacity: 0.15;
  pointer-events: none;
}

.download-card-content {
  position: relative;
  z-index: 1;
}

.download-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.download-desc {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 48px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.download-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 36px;
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
  font-family: inherit;
}

.download-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
}

.download-btn-icon {
  font-size: 32px;
}

.download-btn-text {
  display: flex;
  flex-direction: column;
}

.download-btn-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.download-btn-name {
  font-size: 17px;
  font-weight: 700;
}

.download-note {
  margin-top: 32px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ── FOOTER ── */
.footer {
  padding: 60px 0 32px;
  background: var(--bg-primary);
  border-top: 1px solid var(--bg-glass-border);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.footer-name {
  font-size: 18px;
  font-weight: 700;
}

.footer-desc {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 450px;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  gap: 60px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 12px;
}

.footer-col a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

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

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

/* ── Scroll Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    gap: 40px;
  }

  .phone-mockup-side {
    display: none;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px;
  }

  /* Mobile Nav */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(15, 10, 7, 0.95);
    backdrop-filter: blur(20px);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--bg-glass-border);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-stats {
    flex-direction: column;
    gap: 24px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
    max-width: 320px;
  }

  .feature-card {
    padding: 28px;
  }

  .download-card {
    padding: 48px 28px;
  }

  .download-buttons {
    flex-direction: column;
    align-items: center;
  }

  .download-btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  .footer-top {
    flex-direction: column;
  }

  .footer-links {
    gap: 40px;
    flex-wrap: wrap;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .phone-mockup {
    width: 240px;
    height: 500px;
  }

  .showcase-wrapper {
    padding: 20px 0;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 40px;
  }

  .section-title {
    font-size: 28px;
  }
}

/* ── Privacy Policy Page ── */
.privacy-page {
  min-height: 100vh;
  padding-top: 120px;
  padding-bottom: 60px;
}

.privacy-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.privacy-content h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--mocha-100), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.privacy-content .effective-date {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 48px;
}

.privacy-content h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 40px 0 16px;
  color: var(--accent-light);
}

.privacy-content h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 24px 0 12px;
  color: var(--text-primary);
}

.privacy-content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.privacy-content ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.privacy-content li {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 8px;
}

.privacy-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

.privacy-content a:hover {
  color: var(--accent-light);
}

.privacy-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

.privacy-content hr {
  border: none;
  border-top: 1px solid var(--bg-glass-border);
  margin: 40px 0;
}

.privacy-content em {
  color: var(--text-muted);
  font-style: italic;
}

/* ── Toast Notification ── */
.toast-container {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  pointer-events: none;
}

.toast {
  background: rgba(42, 26, 14, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--bg-glass-border);
  color: var(--text-primary);
  padding: 16px 32px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 20px var(--accent-glow);
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s var(--ease-out);
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.toast-icon {
  font-size: 18px;
  color: var(--accent);
}
