/* Nyashu Landing Page - Styles */
/* Design System: Soft pink-purple gradients, rounded cards, friendly tone */

/* === CSS Variables === */
:root {
  /* Brand Colors */
  --soft-pink: #F2C6D4;
  --light-lavender: #D3B5E5;
  --warm-purple: #A875D3;
  --deep-purple: #7B4FA2;
  --text-dark: #3D2C4E;
  --text-light: #6B5A7A;
  --white: #FFFFFF;
  --card-bg: rgba(255, 255, 255, 0.85);

  /* Gradients */
  --gradient-main: linear-gradient(135deg, var(--light-lavender) 0%, var(--soft-pink) 50%, #EDE0F5 100%);
  --gradient-hero: linear-gradient(180deg, var(--warm-purple) 0%, var(--light-lavender) 40%, var(--soft-pink) 100%);
  --gradient-button: linear-gradient(135deg, var(--warm-purple) 0%, var(--deep-purple) 100%);

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 4rem;

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

  /* Shadows */
  --shadow-soft: 0 4px 20px rgba(168, 117, 211, 0.15);
  --shadow-card: 0 8px 32px rgba(168, 117, 211, 0.2);
  --shadow-button: 0 4px 16px rgba(123, 79, 162, 0.3);

  /* Typography */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Outfit', var(--font-main);
}

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

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

body {
  font-family: var(--font-main);
  background: var(--gradient-main);
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
}

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

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

a:hover {
  color: var(--deep-purple);
}

/* === Typography === */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-dark);
}

h1 {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  margin-bottom: var(--spacing-md);
}

h3 {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
}

p {
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: var(--spacing-sm);
}

/* === Layout === */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

section {
  padding: var(--spacing-xxl) 0;
}

/* === Header/Nav === */
.header {
  padding: var(--spacing-md) 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

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

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--warm-purple);
}

.nav-links {
  display: flex;
  gap: var(--spacing-md);
  list-style: none;
}

.nav-links a {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--radius-full);
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-button);
  color: var(--white);
  box-shadow: var(--shadow-button);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(123, 79, 162, 0.4);
  color: var(--white);
}

.btn-secondary {
  background: var(--white);
  color: var(--text-dark);
  box-shadow: var(--shadow-soft);
}

.btn-secondary:hover {
  background: var(--soft-pink);
  transform: translateY(-2px);
}

/* === Hero Section === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-hero);
  padding-top: 80px;
  overflow: hidden;
  position: relative;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--spacing-lg);
  padding: var(--spacing-lg);
}

.hero-image-container {
  position: relative;
  width: 100%;
  max-width: 320px;
}

.hero-image {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  object-fit: cover;
  aspect-ratio: 3/4;
}

.hero-text {
  max-width: 600px;
}

.hero-text h1 {
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: var(--spacing-sm);
}

.hero-text .subtext {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: var(--spacing-lg);
}

/* === Cards === */
.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* === Description Section === */
.description {
  background: var(--white);
  text-align: center;
}

.description-content {
  max-width: 800px;
  margin: 0 auto;
}

.description h2 {
  color: var(--warm-purple);
}

.description p {
  font-size: 1.1rem;
  line-height: 1.8;
}

/* === Features Section === */
.features {
  background: var(--gradient-main);
}

.features h2 {
  text-align: center;
  color: var(--warm-purple);
  margin-bottom: var(--spacing-xl);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
}

.feature-card {
  text-align: center;
  padding: var(--spacing-lg);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--spacing-md);
  background: var(--gradient-button);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.feature-card h3 {
  margin-bottom: var(--spacing-xs);
  color: var(--text-dark);
}

.feature-card p {
  font-size: 0.95rem;
}

/* === App Store Section === */
.app-store {
  background: var(--white);
  text-align: center;
}

.app-store h2 {
  color: var(--warm-purple);
  margin-bottom: var(--spacing-xl);
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--spacing-md);
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-lg);
  background: var(--text-dark);
  color: var(--white);
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all 0.3s ease;
}

.store-btn:hover {
  background: var(--warm-purple);
  color: var(--white);
  transform: translateY(-2px);
}

.store-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.store-btn span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.store-btn .small {
  font-size: 0.7rem;
  font-weight: 400;
  opacity: 0.9;
}

.store-btn .large {
  font-size: 1rem;
}

/* === Gallery Section === */
.gallery {
  background: var(--gradient-main);
  overflow: hidden;
}

.gallery h2 {
  text-align: center;
  color: var(--warm-purple);
  margin-bottom: var(--spacing-xl);
}

.gallery-grid {
  display: flex;
  justify-content: center;
  gap: var(--spacing-lg);
  flex-wrap: wrap;
  padding: var(--spacing-md);
}

.phone-mockup {
  width: 240px;
  background: transparent;
  border-radius: var(--radius-lg);
  padding: 0;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease;
  overflow: hidden;
}

.phone-mockup:hover {
  transform: scale(1.03) translateY(-5px);
  box-shadow: 0 12px 40px rgba(168, 117, 211, 0.3);
}

.phone-screen {
  width: 100%;
  background: transparent;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: block;
}

.phone-screen img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* === Characters Section === */
.characters {
  background: var(--white);
  text-align: center;
}

.characters h2 {
  color: var(--warm-purple);
  margin-bottom: var(--spacing-sm);
}

.characters .subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: var(--spacing-xl);
}

.characters-grid {
  display: flex;
  justify-content: center;
  gap: var(--spacing-xl);
  flex-wrap: wrap;
}

.character-card {
  text-align: center;
  max-width: 200px;
  padding: var(--spacing-md);
  background: var(--gradient-main);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease;
}

.character-card:hover {
  transform: translateY(-5px);
}

.character-card img {
  width: 160px;
  height: 200px;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-sm);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.character-card h3 {
  font-size: 1.25rem;
  color: var(--text-dark);
}

/* === Footer === */
.footer {
  background: var(--text-dark);
  color: var(--white);
  padding: var(--spacing-xl) 0;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  list-style: none;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--light-lavender);
}

.footer p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* === Legal Pages === */
.legal-page {
  padding-top: 100px;
  min-height: 100vh;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.legal-content h1 {
  color: var(--warm-purple);
  margin-bottom: var(--spacing-sm);
  text-align: center;
}

.legal-content .last-updated {
  text-align: center;
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: var(--spacing-xl);
}

.legal-content h2 {
  color: var(--text-dark);
  font-size: 1.3rem;
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-sm);
  padding-bottom: var(--spacing-xs);
  border-bottom: 2px solid var(--soft-pink);
}

.legal-content p,
.legal-content li {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

.legal-content ul,
.legal-content ol {
  margin-left: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

.legal-content li {
  margin-bottom: var(--spacing-xs);
}

.legal-content a {
  color: var(--warm-purple);
  text-decoration: underline;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  color: var(--warm-purple);
  font-weight: 500;
  margin-bottom: var(--spacing-lg);
}

.back-link:hover {
  color: var(--deep-purple);
}

/* === Responsive === */
@media (min-width: 768px) {
  .hero-content {
    flex-direction: row;
    text-align: left;
    gap: var(--spacing-xxl);
  }

  .hero-text h1 {
    text-align: left;
  }

  .hero-text .subtext {
    text-align: left;
  }

  .hero-image-container {
    max-width: 380px;
  }

  .phone-mockup {
    width: 280px;
  }
}

@media (min-width: 1024px) {
  .hero-image-container {
    max-width: 400px;
  }

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

  .phone-mockup {
    width: 300px;
  }
}

/* === Utilities === */
.text-center {
  text-align: center;
}

.text-white {
  color: var(--white);
}

.mt-sm {
  margin-top: var(--spacing-sm);
}

.mt-md {
  margin-top: var(--spacing-md);
}

.mt-lg {
  margin-top: var(--spacing-lg);
}

.mb-sm {
  margin-bottom: var(--spacing-sm);
}

.mb-md {
  margin-bottom: var(--spacing-md);
}

.mb-lg {
  margin-bottom: var(--spacing-lg);
}

/* === Animations === */
@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.float-animation {
  animation: float 3s ease-in-out infinite;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}