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

:root {
  --primary: #FFC202;
  --primary-hover: #E6AF02;
  --primary-active: #CC9B02;
  --secondary: #00A991;
  --secondary-hover: #009883;
  --background: #F9F9F9;
  --white: #FFFFFF;
  --black: #1A1A1A;
  --gray: #E5E5EA;
  --gray-dark: #8E8E93;
  --text: #1A1A1A;
  --text-secondary: #6B6B6B;
  --card-bg: #FFFFFF;
  --border: #E5E5EA;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--background);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* ─── Landing Page ─── */

.landing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem 1.5rem;
  text-align: center;
}

.landing-logo {
  width: 120px;
  height: 120px;
  margin-bottom: 1rem;
  animation: fadeInDown 0.8s ease-out;
}

.landing-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 0.5rem;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.landing-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 360px;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.landing-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.landing-links a {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.link-primary {
  background: var(--primary);
  color: var(--black);
}

.link-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 194, 2, 0.3);
}

.link-secondary {
  background: var(--white);
  color: var(--text);
  border: 1.5px solid var(--border);
}

.link-secondary:hover {
  border-color: var(--primary);
  color: var(--primary-active);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* ─── Content Pages ─── */

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.page-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--primary);
}

.page-header-logo {
  width: 40px;
  height: 40px;
}

.page-header-logo:hover {
  opacity: 0.8;
}

.page-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--black);
}

.page-updated {
  font-size: 0.85rem;
  color: var(--gray-dark);
  margin-bottom: 2rem;
}

.page h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--black);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.page p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.page ul {
  list-style: none;
  margin-bottom: 1rem;
  padding-left: 0;
}

.page ul li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.page ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

/* ─── Help / Contact ─── */

.contact-cards {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s ease;
}

.contact-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(255, 194, 2, 0.15);
  transform: translateY(-2px);
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--black);
}

.contact-info strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.contact-info span {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ─── Back Link ─── */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--gray-dark);
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--primary-active);
}

.back-link svg {
  width: 16px;
  height: 16px;
}

/* ─── Footer ─── */

.page-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.8rem;
  color: var(--gray-dark);
}

.landing-footer {
  position: fixed;
  bottom: 1.5rem;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--gray-dark);
}

/* ─── Animations ─── */

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* ─── Responsive ─── */

@media (max-width: 480px) {
  .landing-logo {
    width: 96px;
    height: 96px;
  }

  .landing-title {
    font-size: 1.6rem;
  }

  .landing-subtitle {
    font-size: 1rem;
  }

  .landing-links {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
  }

  .landing-links a {
    text-align: center;
  }

  .page {
    padding: 1.5rem 1.25rem 3rem;
  }

  .page-header h1 {
    font-size: 1.25rem;
  }

  .landing-footer {
    position: static;
    margin-top: 3rem;
  }
}
