:root {
  --bg: #0f0f0f;
  --bg-soft: #161616;
  --text: #ffffff;
  --muted: #ccc;
  --muted-2: #ccc;
  --accent: #4a59e2;
  --accent-hover: #5c6aeb;
  --radius: 14px;
  --radius-lg: 20px;
  --container: 1180px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, Helvetica, Arial, system-ui, sans-serif;
}


html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  user-select: none;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
a {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent-hover);
  outline-offset: 2px;
}

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  top: 0;
  z-index: 100;
  display: flex;
  width: 100%;
  background: var(--bg);
  padding: 10px 20px;
  padding-top: calc(10px + env(safe-area-inset-top));
  height: calc(60px + env(safe-area-inset-top));
}

.nav-left {
  display: flex;
  align-items: center;
  width: 100%;
}

.nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
}

.logo {
  font-size: 1.9rem;
  color: var(--text);
  font-weight: bold;
  padding: 6px;
  letter-spacing: -0.01em;
}

.auth-area {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 6px;
}

.auth-btn {
  padding: 12px 30px;
  border: none;
  border-radius: var(--radius);
  color: var(--text);
  font-weight: bold;
  font-size: 0.9rem;
  background: var(--accent);
  transition: background 0.15s ease, transform 0.1s ease;
}

.auth-btn:hover {
  background: var(--accent-hover);
}

.auth-btn:active {
  transform: scale(0.97);
}

.auth-btn.login {
  background: transparent;
}

.auth-btn.login:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* ---------- Welcome / Hero ---------- */

.welcome-container {
  width: 100%;
  display: flex;
  align-items: center;
  height: 100vh;
  padding: 67px 20px 40px;
  gap: 24px;
}

.welcome-left {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.welcome-img {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.welcome-img img {
  width: 100%;
  height: auto;
}

.welcome-right {
  width: 90%;
  height: 100%;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.welcome-headers {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.welcome-title {
  font-size: clamp(1.7rem, 3vw, 2.1rem);
  color: var(--text);
  padding: 6px;
  padding-bottom: 0;
}

.welcome-title span {
  font-weight: bold;
  color: var(--accent-hover);
}

.welcome-sub {
  font-size: 1.3rem;
  color: var(--muted-2);
  padding: 6px;
  max-width: 560px;
}

.welcome-text {
  font-size: 1rem;
  color: var(--muted);
  padding: 6px;
  padding-top: 12px;
  max-width: 520px;
}

.welcome-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  width: 100%;
  gap: 12px;
  flex-wrap: wrap;
}

.welcome-auth-btn {
  padding: 12px 64px;
  border: none;
  border-radius: var(--radius);
  color: var(--text);
  font-weight: bold;
  font-size: 1.08rem;
  background: var(--accent);
  transition: background 0.15s ease, transform 0.1s ease;
}

.welcome-auth-btn:hover {
  background: var(--accent-hover);
}

.welcome-auth-btn:active {
  transform: scale(0.97);
}

.welcome-auth-btn.login {
  background: transparent;
}

.welcome-auth-btn.login:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* ---------- About ---------- */

.about {
  width: 100%;
  padding: 40px;
}

.about-container {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  display: flex;
  width: 100%;
  gap: 16px;
  padding: 24px;
}

.section-left,
.section-right {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.about-content {
  max-width: 500px;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
}

.about-title {
  font-size: 1.5rem;
  width: 100%;
  color: var(--text);
  font-weight: bold;
  line-height: 1.3;
}

.about-text {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.6;
}

.section-sub {
  font-weight: bold;
  font-size: 1.2rem;
  padding: 20px;
}

.section-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.list-item {
  width: 100%;
  padding: 12px 30px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: background 0.15s ease;
}


.list-icon {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(121, 131, 228, 0.15);
  color: var(--accent-hover);
  font-size: 1.05rem;
}

.list-icon svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.list-label {
  color: var(--muted-2);
  font-size: 0.98rem;
  line-height: 1.4;
}

.list-content {
  max-width: 500px;
  width: 100%;
}

/* ---------- More info / stats ---------- */

.more-info {
  width: 100%;
  padding: 20px 40px 60px;
}

.stats-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stat-card {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 28px 16px;
  text-align: center;
}

.stat-number {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: bold;
  color: var(--text);
}

.stat-label {
  color: var(--muted);
  font-size: 0.9rem;
  padding-top: 6px;
}

/* ---------- Download ---------- */

.download {
  width: 100%;
  display: flex;
  align-items: center;
  min-height: 70vh;
  padding: 60px 20px;
  gap: 24px;
}

.section-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-title {
  font-size: 1.9rem;
  font-weight: bold;
  color: var(--text);
  padding: 6px;
}

.section-text {
  font-size: 1.1rem;
  padding: 6px;
  color: var(--muted);
  max-width: 500px;
}

.app-promos {
  display: flex;
  gap: 12px;
  padding: 16px 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.app-promo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  font-weight: bold;
  font-size: 0.95rem;
  background: black;
}


.app-promo i {
  font-size: 1.5rem;
}

.app-promo-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.app-promo-text small {
  font-weight: normal;
  color: var(--muted);
  font-size: 0.7rem;
}

.download-gif {
  width: 100%;
  height: auto;
  max-width: 200px;
  border-radius: var(--radius-lg);
}

/* ---------- Footer ---------- */

.footer {
  background: var(--bg);
  color: var(--text);
  padding: 56px 6vw 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  max-width: var(--container);
  margin: 0 auto;
  padding-bottom: 40px;
}

.brand-col .logo {
  font-weight: bold;
  font-size: 1.4rem;
  color: var(--text);
  margin: 0 0 12px;
}

.brand-col p {
  color: var(--muted-2);
  font-size: 0.92rem;
  line-height: 1.6;
  max-width: 280px;
  margin: 0 0 20px;
}

.social-row {
  display: flex;
  gap: 10px;
}

.social-row a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

.social-row svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.col h4 {
  font-size: 18px;
  color: #fff;
  font-weight: bold;
  margin: 0 0 16px;
}

.col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.col a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
}

.col a:hover {
  text-decoration: underline;
}

.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px 0 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  margin: 0;
  color: var(--muted-2);
  font-size: 0.82rem;
  width: 100%;
}

.footer-bottom .legal-links {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-bottom .legal-links a {
  color: var(--muted-2);
  font-size: 0.82rem;
  text-decoration: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {

  ::-webkit-scrollbar {
    display: none;
}

  .nav-right {
    display: none;
  }

  .welcome-left {
    padding: 0;
  }

  .welcome-right {
    padding: 0;
  }
  
  
  .welcome-container {
    flex-direction: column;
    padding-top: 60px;
    gap: 0;
  }

  .welcome-img img {
    width: 100%;
  }

  .about-container {
    flex-direction: column;
  }

  .about-content {
    align-items: center;
    text-align: center;
  }

  .app-promos {
    display: none;
  }
  .download {
    flex-direction: column;
    text-align: center;
    padding: 50px 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px 24px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .welcome-container {
    padding: 0;
    padding-top: 60px;
  }

  .welcome-img img {
    width: 100%;
  }

  .welcome-sub {
    font-size: 18px;
  }

  section.about {
    padding: 0;
  }

  section.more-info {
    padding: 0;
  }

  .stat-card {
    background: transparent;
  }

  .about-container {
    padding: 0 !important;
    background: transparent;
  }

  .list-item {
    padding: 10px 12px;
  }

  .welcome-actions {
    flex-direction: column;
    width: 100%;
  }

  .welcome-auth-btn {
    width: 100%;
    padding: 12px 24px;
    text-align: center;
  }

  .auth-btn {
    padding: 10px 18px;
    font-size: 0.82rem;
    text-wrap: nowrap;
    text-align: center;
  }

  .logo {
    font-size: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .about {
    padding: 20px;
  }

  .about-container {
    padding: 16px;
  }

  .welcome-text {
    display: none;
  }
}

@view-transition {
  navigation: auto;
}