@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --purple: #543F8C;
  --purple-light: #6B54A8;
  --teal: #4AA9A4;
  --yellow: #F5B942;
  --beige: #F5F1E8;
  --white: #FFFFFF;
  --text-dark: #2D2D2D;
  --text-secondary: #6B6B6B;
  --text-light: #9B9B9B;
  --card-bg: #F3F2F7;
}

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

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-dark);
  background-color: var(--beige);
  line-height: 1.6;
}

a {
  color: var(--purple);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header */
.header {
  background: var(--white);
  padding: 1rem 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logo {
  height: 36px;
  width: auto;
}

.header nav a {
  margin-left: 1.5rem;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.header nav a:hover {
  color: var(--purple);
  text-decoration: none;
}

/* Hero */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 2rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.hero-content {
  flex: 1;
  max-width: 500px;
}

.hero-logo {
  width: 100%;
  max-width: 380px;
  height: auto;
  margin-bottom: 1.5rem;
}

.hero .tagline {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  font-weight: 400;
  line-height: 1.6;
}

.play-badge {
  display: inline-block;
  transition: transform 0.2s;
}

.play-badge:hover {
  transform: scale(1.05);
}

.play-badge img {
  height: 60px;
  width: auto;
}

/* Phone Mockup */
.hero-phone {
  flex-shrink: 0;
}

.phone-frame {
  position: relative;
  width: 280px;
  height: 572px;
  background: #1a1a1a;
  border-radius: 40px;
  padding: 12px;
  box-shadow:
    0 25px 60px rgba(84, 63, 140, 0.25),
    0 10px 20px rgba(0, 0, 0, 0.1),
    inset 0 0 0 2px #333;
}

.phone-frame::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 24px;
  background: #1a1a1a;
  border-radius: 0 0 16px 16px;
  z-index: 2;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: var(--white);
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Features */
.features {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--purple);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Footer */
.footer {
  background: var(--purple);
  color: var(--white);
  text-align: center;
  padding: 2rem;
}

.footer p {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-bottom: 0.75rem;
}

.footer nav a {
  color: var(--white);
  opacity: 0.8;
  margin: 0 0.75rem;
  font-size: 0.85rem;
}

.footer nav a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Privacy / Terms content */
.content-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
}

.content-page h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--purple);
}

.content-page .subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.content-page h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.content-page h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.content-page p,
.content-page li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.content-page ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.content-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.85rem;
}

.content-page th,
.content-page td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #e0dde5;
}

.content-page th {
  font-weight: 600;
  color: var(--text-dark);
  background: var(--card-bg);
}

.content-page td {
  color: var(--text-secondary);
}

.content-page hr {
  border: none;
  border-top: 1px solid #e0dde5;
  margin: 2rem 0;
}

.content-page strong {
  color: var(--text-dark);
}

/* 404 */
.error-page {
  text-align: center;
  padding: 6rem 2rem;
}

.error-page h1 {
  font-size: 5rem;
  font-weight: 700;
  color: var(--purple);
  margin-bottom: 0.5rem;
}

.error-page p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.btn-home {
  display: inline-block;
  background: var(--purple);
  color: var(--white);
  padding: 0.75rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s;
}

.btn-home:hover {
  background: var(--purple-light);
  text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 3rem 1.5rem 2.5rem;
    gap: 2rem;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-logo {
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero .tagline {
    font-size: 1rem;
  }

  .phone-frame {
    width: 220px;
    height: 450px;
    border-radius: 32px;
    padding: 10px;
  }

  .phone-frame::before {
    width: 70px;
    height: 20px;
    top: 10px;
    border-radius: 0 0 12px 12px;
  }

  .phone-screen {
    border-radius: 22px;
  }
}

@media (max-width: 600px) {
  .header {
    padding: 0.75rem 1rem;
  }

  .header-logo {
    height: 28px;
  }

  .features {
    padding: 1rem 1.5rem 3rem;
    grid-template-columns: 1fr;
  }

  .content-page {
    padding: 2rem 1.5rem 3rem;
  }

  .content-page h1 {
    font-size: 1.4rem;
  }

  .content-page table {
    font-size: 0.8rem;
  }

  .content-page th,
  .content-page td {
    padding: 0.5rem;
  }
}
