/* =============== GOOGLE FONTS =============== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700;900&display=swap');

/* =============== VARIABLES CSS =============== */
:root {
  --header-height: 3.5rem;

  /* ========== Colors ========== */
  --primary-color: #1A73E8;
  --primary-color-alt: #1557B0;
  --primary-color-light: #E8F0FE;
  --secondary-color: #FF6D00;
  --title-color: #202124;
  --text-color: #5F6368;
  --text-color-light: #A0A5AC;
  --body-color: #F2F6FA;
  --container-color: #FFFFFF;
  --white-color: #FFFFFF;
  --black-color: #000000;

  /* ========== Font and Typography ========== */
  --body-font: 'Noto Sans SC', sans-serif;
  --h1-font-size: 2.5rem;
  --h2-font-size: 1.75rem;
  --h3-font-size: 1.25rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;
  --smaller-font-size: .75rem;

  /* ========== Font Weight ========== */
  --font-medium: 500;
  --font-bold: 700;
  --font-black: 900;

  /* ========== Margins ========== */
  --mb-0-5: .5rem;
  --mb-0-75: .75rem;
  --mb-1: 1rem;
  --mb-1-5: 1.5rem;
  --mb-2: 2rem;
  --mb-2-5: 2.5rem;
  --mb-3: 3rem;

  /* ========== Z-index ========== */
  --z-tooltip: 10;
  --z-fixed: 100;
}

@media screen and (min-width: 968px) {
  :root {
    --h1-font-size: 3.5rem;
    --h2-font-size: 2.25rem;
    --h3-font-size: 1.5rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;
  }
}

/* =============== BASE =============== */
*, ::before, ::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: var(--header-height) 0 0 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  color: var(--title-color);
  font-weight: var(--font-bold);
  line-height: 1.2;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

/* =============== REUSABLE CSS CLASSES =============== */
.section {
  padding: 4.5rem 0 2rem;
}

.section__title {
  font-size: var(--h2-font-size);
  margin-bottom: var(--mb-2);
  text-align: left;
}

.section__subtitle {
  display: block;
  font-size: var(--small-font-size);
  color: var(--primary-color);
  text-transform: uppercase;
  font-weight: var(--font-bold);
  letter-spacing: 1px;
  margin-bottom: var(--mb-1);
}

.section__title-center {
  text-align: center;
}

.container {
  max-width: 1024px;
  margin-left: var(--mb-1-5);
  margin-right: var(--mb-1-5);
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.main {
  overflow: hidden; /* For animations */
}

/* =============== HEADER =============== */
.header {
  width: 100%;
  background-color: rgba(242, 246, 250, 0.8);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  transition: .4s;
}

.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  display: flex;
  align-items: center;
  column-gap: .5rem;
  font-weight: var(--font-bold);
  color: var(--title-color);
  font-size: 1.25rem;
}

.nav__logo-icon {
  color: var(--primary-color);
  font-size: 1.5rem;
}

.nav__toggle, .nav__close {
  font-size: 1.25rem;
  color: var(--title-color);
  cursor: pointer;
}

.nav__btns {
  display: flex;
  align-items: center;
  column-gap: 1rem;
}

/* Mobile Menu */
@media screen and (max-width: 767px) {
  .nav__menu {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    background-color: var(--body-color);
    padding: 4rem 0 3rem;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    transition: .4s;
    border-radius: 0 0 1.5rem 1.5rem;
    z-index: var(--z-fixed);
    text-align: center;
  }
}

.show-menu {
  top: 0;
}

.nav__list {
  display: flex;
  flex-direction: column;
  row-gap: 1.5rem;
}

.nav__link {
  color: var(--title-color);
  font-weight: var(--font-medium);
  transition: .3s;
}

.nav__link:hover {
  color: var(--primary-color);
}

.nav__close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
}

/* =============== BUTTONS =============== */
.button {
  display: inline-flex;
  align-items: center;
  column-gap: .5rem;
  background-color: var(--primary-color);
  color: var(--white-color);
  padding: 1rem 1.75rem;
  border-radius: 3rem;
  font-weight: var(--font-medium);
  transition: .3s;
  box-shadow: 0 8px 24px rgba(26, 115, 232, 0.25);
}

.button:hover {
  background-color: var(--primary-color-alt);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(26, 115, 232, 0.35);
}

.button--secondary {
  background-color: transparent;
  color: var(--primary-color);
  box-shadow: none;
}

.button--secondary:hover {
  background-color: var(--primary-color-light);
  transform: translateY(0);
  box-shadow: none;
}

.button--white {
  background-color: var(--white-color);
  color: var(--primary-color);
}
.button--white:hover {
  background-color: #f0f0f0;
}

.button--outline-white {
  background-color: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white-color);
}

.button--small {
  padding: .75rem 1.25rem;
}

.button--flex {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* =============== HOME =============== */
.home__container {
  row-gap: 3rem;
  padding-top: 2rem;
}

.home__content {
  position: relative;
}

.home__badge {
  display: inline-flex;
  align-items: center;
  column-gap: .5rem;
  background-color: var(--primary-color-light);
  color: var(--primary-color);
  padding: .5rem 1rem;
  border-radius: 2rem;
  font-size: var(--small-font-size);
  font-weight: var(--font-bold);
  margin-bottom: var(--mb-1);
}

.home__title {
  font-size: var(--h1-font-size);
  margin-bottom: var(--mb-1);
  font-weight: var(--font-black);
}

.text-highlight {
  color: var(--primary-color);
  position: relative;
  z-index: 1;
}

.text-highlight::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 0;
  width: 100%;
  height: 30%;
  background-color: rgba(26, 115, 232, 0.15);
  z-index: -1;
  border-radius: 4px;
}

.home__description {
  margin-bottom: var(--mb-2);
  max-width: 400px;
}

.home__buttons {
  display: flex;
  align-items: center;
  column-gap: 1rem;
  margin-bottom: var(--mb-3);
}

.home__stats {
  display: flex;
  column-gap: 2.5rem;
  border-top: 1px solid rgba(0,0,0,0.05);
  padding-top: 1.5rem;
}

.home__stat-number {
  font-size: var(--h2-font-size);
  color: var(--primary-color);
}

.home__stat-title {
  font-size: var(--smaller-font-size);
  text-transform: uppercase;
  color: var(--text-color-light);
  font-weight: var(--font-medium);
}

/* Home Mockup & Images */
.home__images {
  position: relative;
  display: flex;
  justify-content: center;
  z-index: 1;
}

.home__blob {
  position: absolute;
  width: 400px;
  height: 400px;
  background-color: var(--primary-color-light);
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  top: -50px;
  right: -50px;
  opacity: 0.6;
}

.home__blob--2 {
    background-color: rgba(255, 109, 0, 0.1);
    top: auto;
    bottom: -50px;
    left: -50px;
    width: 300px;
    height: 300px;
}

/* CSS Phone Mockup */
.phone-mockup {
    width: 280px;
    height: 560px;
    background-color: #fdfdfd;
    border: 12px solid #2c2c2c;
    border-radius: 2.5rem;
    box-shadow: 0 24px 48px rgba(0,0,0,0.25);
    position: relative;
    overflow: hidden;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background-color: #F2F6FA;
    position: relative;
}

.phone-mockup--small {
    width: 260px;
    height: 520px;
    transform: rotate(-10deg);
    border-color: #e0e0e0;
    box-shadow: 20px 20px 60px rgba(0,0,0,0.1);
}

/* Screen Placeholder Content */
.screen-placeholder {
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.screen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--title-color);
    margin-top: 1.5rem; /* Notch space */
}

.screen-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1rem;
    flex: 1;
    margin-bottom: 3rem;
}

.screen-card {
    background-color: white;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    text-align: center;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    color: #555;
    position: relative;
}

.card-red { border-top: 4px solid #D93025; }
.card-orange { border-top: 4px solid #F9AB00; }
.card-blue { border-top: 4px solid #1A73E8; }
.card-green { border-top: 4px solid #1E8E3E; }

.screen-fab {
    position: absolute;
    bottom: 2rem;
    right: 1.5rem;
    width: 3.5rem;
    height: 3.5rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.4);
}

/* Stats placeholder */
.screen-placeholder-stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}
.chart-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 15px solid var(--primary-color-light);
    border-top-color: var(--primary-color);
    border-right-color: var(--secondary-color);
    margin-bottom: 2rem;
}
.stats-bars {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    height: 60px;
}
.stats-bars span {
    width: 20px;
    background-color: var(--primary-color);
    border-radius: 4px;
}
.stats-bars span:nth-child(1) { height: 40px; opacity: 0.5; }
.stats-bars span:nth-child(2) { height: 60px; }
.stats-bars span:nth-child(3) { height: 30px; opacity: 0.7; }

/* =============== FEATURES =============== */
.features__container {
  align-items: center;
}

.features__content {
  text-align: left;
}

.features__list {
  display: grid;
  gap: 2.5rem;
  margin-top: var(--mb-2);
}

.features__item {
  display: flex;
  column-gap: 1.5rem;
}

.features__icon-box {
  background-color: var(--primary-color-light);
  color: var(--primary-color);
  width: 60px;
  height: 60px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  flex-shrink: 0;
}

.features__icon-box--orange {
  background-color: #FFF3E0;
  color: var(--secondary-color);
}
.features__icon-box--green {
  background-color: #E6F4EA;
  color: #1E8E3E;
}
.features__icon-box--purple {
  background-color: #F3E5F5;
  color: #9C27B0;
}

.features__item-title {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-0-5);
}

.features__item-description {
  font-size: var(--small-font-size);
}

/* =============== GAMIFICATION =============== */
.gamification {
    position: relative;
    background-color: #0d1117;
    overflow: hidden;
    padding-bottom: 6rem;
}

.gamification__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(26, 115, 232, 0.2) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(255, 109, 0, 0.15) 0%, transparent 40%);
    z-index: 1;
}

.gamification__container {
    position: relative;
    z-index: 2;
}

.text-white { color: #fff; }
.text-white-alpha { color: rgba(255,255,255,0.7); }

.section__header--center {
    text-align: center;
    margin-bottom: var(--mb-3);
}

.gamification__grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.game-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 1.5rem;
    text-align: center;
    transition: .3s;
}

.game-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.1);
    border-color: var(--primary-color);
}

.game-card__icon {
    font-size: 3rem;
    margin-bottom: var(--mb-1);
}

.game-card__title {
    color: #fff;
    font-size: var(--h3-font-size);
    margin-bottom: var(--mb-0-5);
}

.game-card__desc {
    color: rgba(255,255,255,0.6);
    font-size: var(--small-font-size);
}

/* =============== DETAILS =============== */
.details__grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.detail-box {
    background-color: var(--white-color);
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    transition: .3s;
    text-align: center;
}

.detail-box:hover {
    transform: translateY(-5px);
}

.detail-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: var(--mb-1);
    display: inline-block;
}

.detail-box h3 {
    margin-bottom: var(--mb-0-5);
}

.detail-box p {
    font-size: var(--small-font-size);
}

/* =============== DOWNLOAD =============== */
.download {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color-alt));
    border-radius: 2rem;
    margin: 4rem auto;
    max-width: 1024px;
    padding: 4rem 1rem;
    text-align: center;
    color: white;
    margin-left: 1rem;
    margin-right: 1rem;
}

.download__container {
    padding: 0;
}

.download__title {
    color: white;
    font-size: var(--h2-font-size);
    margin-bottom: var(--mb-1);
}

.download__description {
    color: rgba(255,255,255,0.9);
    margin-bottom: var(--mb-2);
}

.download__buttons {
    display: flex;
    justify-content: center;
    column-gap: 1rem;
    flex-wrap: wrap;
    row-gap: 1rem;
    margin-bottom: var(--mb-1);
}

.download__note {
    font-size: var(--smaller-font-size);
    opacity: 0.7;
    margin-top: var(--mb-1);
}

/* =============== FOOTER =============== */
.footer {
    background-color: var(--white-color);
    padding: 4rem 0 2rem;
}

.footer__container {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    row-gap: 2rem;
}

.footer__logo {
    display: flex;
    align-items: center;
    column-gap: .5rem;
    font-size: 1.25rem;
    font-weight: var(--font-bold);
    color: var(--title-color);
    margin-bottom: var(--mb-1);
}

.footer__description {
    font-size: var(--small-font-size);
}

.footer__title {
    font-size: var(--h3-font-size);
    margin-bottom: var(--mb-1);
}

.footer__links {
    display: flex;
    flex-direction: column;
    row-gap: .5rem;
}

.footer__link {
    color: var(--text-color);
    transition: .3s;
}

.footer__link:hover {
    color: var(--primary-color);
}

.footer__social {
    display: flex;
    column-gap: 1rem;
}

.footer__social-link {
    font-size: 1.5rem;
    color: var(--text-color);
    transition: .3s;
}

.footer__social-link:hover {
    color: var(--primary-color);
}

.footer__copy {
    display: block;
    margin-top: 4.5rem;
    text-align: center;
    font-size: var(--smaller-font-size);
    color: var(--text-color-light);
}

/* =============== SCROLL UP =============== */
.scrollup {
    position: fixed;
    right: 1rem;
    bottom: -20%;
    background-color: var(--primary-color);
    opacity: 0.8;
    padding: 0 .3rem;
    border-radius: .4rem;
    z-index: var(--z-tooltip);
    transition: .4s;
    display: flex;
    padding: .5rem;
}

.scrollup:hover {
    background-color: var(--primary-color-alt);
}

.scrollup__icon {
    font-size: 1.25rem;
    color: #fff;
}

.show-scroll {
    bottom: 5rem;
}

/* =============== MEDIA QUERIES =============== */
@media screen and (min-width: 576px) {
    .home__container,
    .features__container {
        grid-template-columns: repeat(2, 1fr);
        align-items: center;
    }
    
    .home__images {
        justify-content: center;
    }
    
    .download {
        margin-left: auto;
        margin-right: auto;
    }
}

@media screen and (min-width: 768px) {
    .container {
        margin-left: auto;
        margin-right: auto;
    }

    .nav {
        height: calc(var(--header-height) + 1.5rem);
    }
    .nav__list {
        display: flex;
        flex-direction: row;
        column-gap: 2.5rem;
    }
    .nav__menu {
        display: flex;
        align-items: center;
        margin-left: auto;
        margin-right: 2rem;
    }
    .nav__toggle, .nav__close {
        display: none;
    }
    
    .home__container {
        padding-top: 5rem;
        column-gap: 2rem;
    }
    .home__content {
        order: 1;
    }
    .home__images {
        order: 2;
    }
    
    .features__container {
        column-gap: 5rem;
    }
    .features__image {
        order: 2;
    }
    .features__content {
        order: 1;
    }
}

@media screen and (min-width: 1024px) {
    .section {
        padding: 6rem 0 2rem;
    }
    
    .home__blob {
        width: 500px;
        height: 500px;
    }
}
