/* ===== RESET & BASE ===== */
@import url('https://fonts.googleapis.com/css2?family=Hedvig+Letters+Serif:opsz@12..24&family=Inter:ital,wght@0,300;0,400;0,500;0,700;0,800;0,900;1,300;1,400;1,500;1,700;1,800;1,900&display=swap');

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #212121;
  color: #f2f2f2;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: #09f;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 2px;
}

a:hover {
  text-decoration-style: solid;
}

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

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background-color: #212121;
  overflow: visible;
}

.navbar-logo img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.navbar-links a {
  color: #f2f2f2;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  transition: opacity 0.2s;
}

.navbar-links a:hover {
  opacity: 0.8;
}

.navbar-links a.active {
  opacity: 0.6;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #111;
  padding: 8px 20px;
  border-radius: 32px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 1px 2px rgba(10,13,18,0.05);
  transition: transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-download,
.btn-download:visited {
  color: #111 !important;
}

.btn-download:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  color: #111 !important;
}

.btn-download img {
  width: 16px;
  height: 16px;
}

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

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #f2f2f2;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav Overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #212121;
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  color: #f2f2f2;
  text-decoration: none;
  font-size: 20px;
  font-weight: 400;
}

/* ===== FOOTER ===== */
.footer {
  padding: 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.footer-left .footer-logo {
  height: 28px;
  width: auto;
  opacity: 0.9;
}

.footer-left .footer-tagline {
  font-size: 14px;
  font-weight: 300;
  color: #a6a6a6;
  margin-top: 8px;
  line-height: 1.4;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.footer-right .google-play-badge {
  height: 48px;
  width: auto;
}

.footer-right .footer-download-text {
  font-size: 14px;
  font-weight: 400;
  color: #f2f2f2;
  text-align: right;
  line-height: 1.3;
}

/* ===== HOMEPAGE LAYOUT ===== */
.home-page {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 80px 24px 0;
  text-align: center;
}

.typewriter-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
}

.typewriter-text {
  font-family: 'Hedvig Letters Serif', serif;
  font-size: 28px;
  font-weight: 400;
  font-style: normal;
  color: #f7f7f7;
  letter-spacing: -0.01em;
}

.typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: #f7f7f7;
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ===== PAGE LAYOUT ===== */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-content {
  flex: 1;
  max-width: 640px;
  margin: 0 auto;
  padding: 100px 24px 60px;
  width: 100%;
}

.page-content.centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: left;
}

/* ===== TYPOGRAPHY ===== */
.page-heading {
  font-family: 'Hedvig Letters Serif', serif;
  font-size: 32px;
  font-weight: 400;
  font-style: normal;
  color: #f7f7f7;
  margin-bottom: 24px;
}

.page-subheading {
  font-family: 'Hedvig Letters Serif', serif;
  font-size: 24px;
  font-weight: 400;
  font-style: normal;
  color: #f7f7f7;
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-text {
  font-size: 18px;
  font-weight: 300;
  color: #a6a6a6;
  line-height: 1.6;
  margin-bottom: 16px;
}

.page-text strong {
  color: #f2f2f2;
  font-weight: 500;
}

.page-text.bold-text {
  font-weight: 500;
  color: #f2f2f2;
}

/* ===== ABOUT PAGE ===== */
.about-description {
  font-family: 'Hedvig Letters Serif', serif;
  font-size: 20px;
  font-weight: 400;
  font-style: normal;
  color: #a6a6a6;
  line-height: 1.6;
  margin-bottom: 32px;
}

.team-member {
  margin-bottom: 32px;
}

.team-member-photo {
  width: 80px;
  height: 80px;
  border-radius: 4px;
  object-fit: cover;
  margin-bottom: 8px;
}

.team-member-name {
  font-family: 'Hedvig Letters Serif', serif;
  font-size: 20px;
  font-weight: 400;
  font-style: normal;
  color: #f7f7f7;
  margin-bottom: 2px;
}

.team-member-role {
  font-size: 14px;
  font-weight: 500;
  color: #f2f2f2;
  margin-bottom: 2px;
}

.team-member-bg {
  font-size: 14px;
  font-weight: 400;
  color: #a6a6a6;
  margin-bottom: 4px;
}

.team-member a {
  font-size: 14px;
}

.backed-text {
  font-family: 'Hedvig Letters Serif', serif;
  font-size: 18px;
  font-weight: 400;
  font-style: normal;
  color: #a6a6a6;
  margin-top: 24px;
}

/* ===== SUPPORT PAGE ===== */
.support-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

.support-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.support-logo img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.support-logo span {
  font-size: 24px;
  font-weight: 500;
  color: #f7f7f7;
}

.support-heading {
  font-size: 20px;
  font-weight: 400;
  color: #a6a6a6;
  margin-bottom: 24px;
}

.support-content {
  max-width: 480px;
}

.support-content p {
  font-size: 16px;
  font-weight: 300;
  color: #a6a6a6;
  line-height: 1.6;
  margin-bottom: 8px;
}

.support-content p strong {
  color: #f2f2f2;
  font-weight: 500;
}

/* ===== POLICY PAGES ===== */
.policy-content h2 {
  font-family: 'Hedvig Letters Serif', serif;
  font-size: 20px;
  font-weight: 400;
  font-style: normal;
  color: #f7f7f7;
  margin-top: 32px;
  margin-bottom: 12px;
}

.policy-content h3 {
  font-size: 16px;
  font-weight: 500;
  color: #f2f2f2;
  margin-top: 20px;
  margin-bottom: 8px;
}

.policy-content p {
  font-size: 16px;
  font-weight: 300;
  color: #a6a6a6;
  line-height: 1.6;
  margin-bottom: 12px;
}

.policy-content ul, .policy-content ol {
  padding-left: 20px;
  margin-bottom: 12px;
}

.policy-content li {
  font-size: 16px;
  font-weight: 300;
  color: #a6a6a6;
  line-height: 1.6;
  margin-bottom: 4px;
}

.policy-content strong {
  color: #f2f2f2;
  font-weight: 500;
}

/* ===== GOOGLE PLAY BADGE (SVG inline) ===== */
.google-play-link {
  display: inline-block;
  text-decoration: none;
}

.google-play-badge-img {
  height: 48px;
  width: auto;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
}

/* ===== RESPONSIVE: TABLET (900px - 1200px) ===== */
@media (max-width: 1200px) {
  .navbar-links {
    gap: 16px;
  }

  .navbar-links a {
    font-size: 13px;
  }

  .btn-download {
    padding: 8px 16px;
    font-size: 13px;
  }

  .typewriter-text {
    font-size: 24px;
  }

  .page-content {
    max-width: 580px;
  }
}

/* ===== RESPONSIVE: MOBILE & TABLET NAV (< 900px) ===== */
@media (max-width: 899px) {
  .navbar-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

/* ===== RESPONSIVE: MOBILE (< 768px) ===== */
@media (max-width: 767px) {

  .typewriter-text {
    font-size: 20px;
  }

  .typewriter-container {
    min-height: 60px;
    padding: 0 16px;
  }

  .page-content {
    padding: 80px 20px 40px;
  }

  .page-heading {
    font-size: 26px;
  }

  .page-subheading {
    font-size: 20px;
  }

  .page-text {
    font-size: 16px;
  }

  .about-description {
    font-size: 17px;
  }

  .footer {
    padding: 16px 20px;
  }

  .footer-left .footer-logo {
    height: 22px;
  }

  .footer-left .footer-tagline {
    font-size: 12px;
  }

  .footer-right .footer-download-text {
    font-size: 12px;
  }

  .google-play-badge-img {
    height: 36px;
  }

  .policy-content p,
  .policy-content li {
    font-size: 15px;
  }

  .support-content p {
    font-size: 15px;
  }
}

/* ===== RESPONSIVE: SMALL MOBILE (< 390px) ===== */
@media (max-width: 389px) {
  .typewriter-text {
    font-size: 17px;
  }

  .page-heading {
    font-size: 22px;
  }

  .navbar {
    padding: 12px 16px;
  }
}
