/* ============================================================
   PomoPom — Landing Page Design System
   Kawaii dark-premium aesthetic with coral/pink/gold palette
   ============================================================ */

/* --- 1. Reset & CSS Variables --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Brand — from AppColors */
  --primary: #FF6B6B;          /* Coral tomato red */
  --primary-light: #FFB5B5;    /* Warm pink */
  --primary-dark: #E85555;
  --accent: #FFD93D;           /* Soft gold */
  --break-green: #7EC8A0;      /* Pastel green */
  --mint: #8ED1C0;             /* Long break mint */

  /* Backgrounds — deep plum */
  --bg-deep: #1A1025;
  --bg-surface: #251830;
  --bg-secondary: #2F2040;
  --bg-card: rgba(255, 180, 180, 0.05);
  --bg-card-hover: rgba(255, 180, 180, 0.09);

  /* Borders */
  --border: rgba(255, 180, 180, 0.1);
  --border-hover: rgba(255, 107, 107, 0.25);

  /* Text */
  --text-primary: #F5E6FF;
  --text-secondary: #BCA8D0;
  --text-muted: #8A7A9A;

  /* Effects */
  --glow: rgba(255, 107, 107, 0.15);
  --shadow: rgba(0, 0, 0, 0.3);

  /* Spacing */
  --nav-height: 64px;
  --section-padding: 120px;
  --container-width: 1120px;

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}

a:hover {
  color: var(--primary-light);
}

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

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


/* --- 2. Ambient Background --- */
.ambient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: float-orb 20s ease-in-out infinite;
}

.ambient-orb--1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  top: -10%;
  right: -5%;
  animation-duration: 18s;
}

.ambient-orb--2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
  bottom: 20%;
  left: -8%;
  animation-delay: -7s;
  animation-duration: 22s;
}

.ambient-orb--3 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  top: 40%;
  right: 15%;
  animation-delay: -12s;
  animation-duration: 25s;
  opacity: 0.25;
}

.ambient-orb--4 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--mint) 0%, transparent 70%);
  bottom: -5%;
  right: 30%;
  animation-delay: -4s;
  animation-duration: 20s;
  opacity: 0.2;
}

@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -40px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(15px, 30px) scale(1.02); }
}


/* --- 3. Navigation --- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 100;
  background: rgba(26, 16, 37, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  color: var(--text-primary);
  text-decoration: none;
}

.nav-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

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

.nav-links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 0.2s var(--ease-out);
}

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

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

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all 0.3s var(--ease-out);
}


/* --- 4. Hero Section --- */
.hero {
  position: relative;
  z-index: 1;
  padding: calc(var(--nav-height) + 80px) 0 var(--section-padding);
  text-align: center;
}

.hero-icon {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  margin-bottom: 32px;
  animation: icon-float 4s ease-in-out infinite;
  box-shadow:
    0 8px 32px rgba(255, 107, 107, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

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

.hero h1 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 19px;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.6;
  font-weight: 500;
}

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

.platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 100px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s var(--ease-out);
}

.platform-pill:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.platform-pill svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s var(--ease-out);
  box-shadow: 0 4px 16px rgba(255, 107, 107, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 107, 107, 0.4);
  color: #fff;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s var(--ease-out);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  color: var(--text-primary);
}


/* --- 5. Features Section --- */
.features-section {
  position: relative;
  z-index: 1;
  padding: var(--section-padding) 0;
}

.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-title {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 56px;
  font-weight: 500;
}

.features-section .container > .section-label,
.features-section .container > .section-title,
.features-section .container > .section-subtitle {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

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

.feature-card {
  padding: 32px 28px;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.4s var(--ease-out);
}

.feature-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  box-shadow: 0 8px 32px var(--glow);
}

.feature-icon {
  font-size: 36px;
  margin-bottom: 16px;
  display: block;
  line-height: 1;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  font-weight: 500;
}


/* --- 6. CTA Section --- */
.cta-section {
  position: relative;
  z-index: 1;
  padding: 80px 0 var(--section-padding);
}

.cta-box {
  text-align: center;
  padding: 64px 40px;
  border-radius: 24px;
  background: linear-gradient(135deg,
    rgba(255, 107, 107, 0.12),
    rgba(255, 181, 181, 0.08),
    rgba(255, 217, 61, 0.06)
  );
  border: 1px solid rgba(255, 107, 107, 0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.cta-box h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.cta-box p {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-weight: 500;
}

.cta-box .btn-primary {
  font-size: 17px;
  padding: 16px 40px;
}


/* --- 7. Footer --- */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
}

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

.footer-brand p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 12px;
  line-height: 1.6;
  max-width: 280px;
  font-weight: 500;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

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

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

.footer-col ul a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s var(--ease-out);
}

.footer-col ul a:hover {
  color: var(--text-primary);
}

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

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

.footer-bottom-links a {
  color: var(--text-muted);
  font-size: 13px;
}

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


/* --- 8. Legal Page Styles --- */
.legal-page {
  position: relative;
  z-index: 1;
  padding: calc(var(--nav-height) + 60px) 0 var(--section-padding);
}

.legal-content {
  max-width: 720px;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.legal-content .legal-date {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 40px;
  font-weight: 500;
}

.legal-content h2 {
  font-size: 22px;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.legal-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin-top: 28px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.legal-content p {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 16px;
  line-height: 1.7;
  font-weight: 500;
}

.legal-content ul {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 16px;
  padding-left: 24px;
  line-height: 1.7;
  font-weight: 500;
}

.legal-content ul li {
  margin-bottom: 6px;
}

.legal-content a {
  color: var(--primary);
}

.legal-content strong {
  color: var(--text-primary);
}

.legal-highlight {
  padding: 20px 24px;
  border-radius: 14px;
  background: rgba(126, 200, 160, 0.08);
  border: 1px solid rgba(126, 200, 160, 0.15);
  margin-bottom: 24px;
}

.legal-highlight p {
  color: var(--break-green);
  margin-bottom: 0;
}


/* --- 9. Responsive Breakpoints --- */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .hero h1 {
    font-size: 44px;
  }

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

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

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(26, 16, 37, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 16px 24px;
    gap: 0;
    border-bottom: 1px solid var(--border);
  }

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

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 12px 0;
    font-size: 16px;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding-top: calc(var(--nav-height) + 48px);
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-icon {
    width: 96px;
    height: 96px;
    border-radius: 22px;
  }

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

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

  .cta-box {
    padding: 40px 24px;
  }

  .cta-box h2 {
    font-size: 28px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

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

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

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