:root {
  /* Typography Scale */
  --font-xl: 42px;
  --font-lg: 24px;
  --font-md: 20px;
  --font-sm: 18px;
  --font-xs: 16px;
  --font-xxs: 14px;

  /* Neo-Brutalist Palette */
  --primary: #8751FE;
  /* Vibrant Purple */
  --secondary: #FF5E5E;
  /* Vibrant Red/Orange */
  --bg-color: #F6F8FA;
  --text-color: #111;
  --white: #fff;
  --black: #000;

  /* Design Tokens */
  --border-black: 2px solid var(--black);
  --shadow-hard: 4px 4px 0px var(--black);
  --radius: 12px;
  --transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --font-main: "Heebo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

@media (max-width: 768px) {
  :root {
    --font-xl: 18px;
    --font-lg: 16px;
    --font-md: 14px;
    --font-sm: 12px;
    --font-xs: 12px;
    --font-xxs: 12px;
  }
}

body {
  font-family: var(--font-main);
  color: var(--text-color);
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  font-size: var(--font-md);
  background-color: #fff;
  background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQ4MCIgaGVpZ2h0PSI2NTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+ICAgIDxwYXRoIGQ9Ik03MzEuMjA3IDY0OS44MDJDOTM1LjQ4NCA2NDIuMTQgMTQ4MCAzMzcuMzI1IDE0ODAgMTgwLjg4OGMwLTE1Ni40MzgtMzA5Ljc0NC0zNi4wNTUtNzIwLTM2LjA1NVMwLTE3NC40ODMgMCAxMzUuMTQ0YzAgMzA5LjYyNyA1MjYuOTMgNTIyLjMyIDczMS4yMDcgNTE0LjY1OHoiIGZpbGw9IiNGNkY4RkEiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==);
  background-size: cover;
  background-position-x: 20vw;
  background-position-y: -10vh;
  background-repeat: no-repeat;
  line-height: 1.4;
}

main {
  flex: 1;
  width: 100%;
}

a {
  color: #65638f;
  text-decoration: none;
}

a:hover {
  color: #5A51FE;
}

.button {
  display: inline-flex;
  background-color: var(--secondary);
  font-family: var(--font-main);
  color: var(--white);
  font-size: var(--font-xxs);
  letter-spacing: 0.5px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none !important;
  border: var(--border-black);
  border-radius: var(--radius);
  cursor: pointer;
  justify-content: center;
  padding: 14px 28px;
  text-align: center;
  white-space: nowrap;
  box-shadow: var(--shadow-hard);
  transition: var(--transition);
  position: relative;
  top: 0;
  left: 0;
}

.button:hover {
  background-color: #ff7676;
  /* Slightly lighter for hover */
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px var(--black);
  color: var(--white);
}

.button:active {
  transform: translate(2px, 2px);
  box-shadow: 0px 0px 0px var(--black);
}



.button--link {
  background: transparent;
  color: var(--primary);
  box-shadow: none;
  border: none;
}

.button--link:hover {
  color: #6a3de8;
  box-shadow: none;
  transform: none;
  text-decoration: underline !important;
}

.accent {
  color: #5A51FE;
}

.container {
  max-width: 960px;
  padding: 0 30px;
  margin: auto;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-main);
  font-weight: 700;
}

.container-desktop {
  max-width: 960px;
  padding: 0 30px;
  margin: auto;
}

@media (max-width: 768px) {
  .container-desktop {
    max-width: 100%;
    padding: 0;
  }
}

.tobi-zoom__icon {
  display: none;
}

.app__header {
  display: flex;
  flex-direction: row;
  margin-top: 60px;
  margin-bottom: 50px;
  align-items: center;
}

@media (max-width: 768px) {
  .app__header {
    align-items: flex-start;
    margin-top: 32px;
    margin-bottom: 16px;
  }
}

.app__logo-wrapper {
  display: inline-block;
  /* Removed ios-mask-border-128.svg to rely solely on the clean SVG logo */
  max-width: 250px;
  max-height: 250px;
  padding: 1px;
  margin-right: 64px;
  width: 100%;
  height: 100%;
}

html[dir=rtl] .app__logo-wrapper {
  margin-left: 64px;
  margin-right: 0;
}

@media (max-width: 768px) {
  .app__logo-wrapper {
    max-width: 100px;
    max-height: 100px;
    margin-right: 16px;
  }
}

.app__logo {
  border-radius: 22.5%;
  width: 100%;
  height: auto;
}

.app__name {
  font-size: var(--font-xl);
  margin: 0;
}

.app__description {
  font-size: var(--font-lg);
}

@media (max-width: 768px) {
  .app__description {
    margin-top: 8px;
    margin-bottom: 0;
  }
}

.app__screenshots-list {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 30px 0;
  scrollbar-width: none;
  /* Firefox */
}

.app__screenshots-list::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari */
}

.app__screenshot {
  min-width: 200px;
  width: 200px;
  flex-shrink: 0;
  /* ... rest handled by class below ... */
}

@media (max-width: 768px) {
  .app__screenshots-list {
    padding: 32px;
    width: 100%;
    /* Fix overflow */
  }
}

.app__screenshot {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 12px 48px rgba(17, 16, 62, 0.12);
  transition: all 0.3s ease-in-out;
  transform: scale(1);
  cursor: pointer;
}

.app__screenshot:hover {
  box-shadow: 0 24px 48px rgba(17, 16, 62, 0.12);
  transform: scale(1.05);
}

.app__screenshots-wrapper {
  overflow-y: auto;
}

.app__buttons {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-left: -9.8px;
}

.app__buttons--mobile {
  display: none;
}

@media (max-width: 768px) {
  .app__buttons {
    margin-left: 0;
    margin-bottom: 64px;
  }

  .app__buttons--mobile {
    display: flex;
    justify-content: center;
  }

  .app__buttons--desktop {
    display: none;
  }
}

.app__button-play img {
  width: 176.4px;
}

.app__button-ios img {
  width: 140px;
}

.app__button-web {
  margin-left: 12px;
}

.app__button-web img {
  width: 157px;
}

@media (max-width: 768px) {
  .app__button-play img {
    width: 126px;
  }

  .app__button-ios img {
    width: 100px;
  }

  .app__button-web {
    margin-left: 8px;
  }

  .app__button-web img {
    width: 112px;
  }
}

.app__section-title {
  font-size: var(--font-lg);
}

.app__section {
  margin-bottom: 128px;
}

@media (max-width: 768px) {
  .app__section {
    margin-bottom: 64px;
  }
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.app__section,
.app__header,
.footer {
  animation: fadeInUp 0.8s ease-out forwards;
}

.app__featured-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-column-gap: 32px;
  align-items: center;
}

@media (max-width: 768px) {
  .app__featured-content {
    display: block;
    padding: 32px;
  }
}

.app__featured-image {
  width: 100%;
  margin: auto;
}

.footer {
  padding: 16px 0;
  font-size: var(--font-xs) !important;
}

.footer a {
  font-size: var(--font-xs) !important;
}

.footer__container {
  color: #65638f;
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 768px) {
  .footer__container {
    flex-direction: column-reverse;
    align-items: flex-start;
  }
}

.footer__links {
  list-style: none;
  display: flex;
  padding-left: 0;
}

.footer__link {
  margin-left: 32px;
}

@media (max-width: 768px) {
  .footer__link {
    margin-left: 0;
    margin-right: 8px;
  }
}

.page {
  max-width: 960px;
  padding: 0 30px;
  margin: auto;
}

/* --- Dark Mode --- */
body.darkmode {
  --bg-color: #1a1a2e;
  --text-color: #f0f0f0;
  --white: #2a2a40;
  --black: #ffffff;
  --border-black: 2px solid #ffffff;
  --shadow-hard: 4px 4px 0px #ffffff;

  background-color: var(--bg-color) !important;
  background-image: none !important;
}

body.darkmode .app__logo-wrapper {
  background-image: none;
  /* Replaced drop-shadow filter with box-shadow */
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
  /* Fix Safari border-radius clipping */
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.app__logo {
  border-radius: 22.5%;
  width: 100%;
  height: auto;
}

body.darkmode .app__section h2,
body.darkmode .footer,
body.darkmode .footer a {
  color: var(--text-color) !important;
}

.darkmode-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  /* Moved back to right */
  left: auto;
  z-index: 9999;
  font-size: 24px;
  background: var(--white);
  border: var(--border-black);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-hard);
  transition: var(--transition);
}

.darkmode-toggle:hover {
  transform: scale(1.1);
}

/* ... Legal Page Styles ... */
.legal-page footer p {
  text-align: center !important;
  margin: 0;
}

/* --- Language Switcher --- */
.lang-switcher {
  position: absolute;
  top: 20px;
  right: 80px;
  /* Back to right */
  left: auto;
  display: flex;
  gap: 8px;
  z-index: 500;
}

.lang-btn {
  background: rgba(255, 255, 255, 0.5);
  /* Slight fill for visibility */
  border: 1px solid var(--black);
  border-radius: 4px;
  padding: 4px 8px;
  font-family: var(--font-main);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-color);
  backdrop-filter: blur(4px);
}

.lang-btn:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

.lang-btn.active {
  background-color: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  opacity: 1;
}

body.darkmode .lang-btn {
  background: rgba(255, 255, 255, 0.15);
  /* More visible in dark mode */
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
  font-weight: 700;
}

body.darkmode .lang-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

body.darkmode .lang-btn.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

@media (max-width: 768px) {
  .lang-switcher {
    left: 80px;
    /* Adjust for mobile */
    top: 25px;
  }


  .lang-btn {
    padding: 2px 4px;
    font-size: 12px;
  }
}


@import 'wheel.css';
@import 'stats.css';
@import 'animation.css';
@import 'layout.css';
@import 'premium.css';
@import 'final.css';
@import 'dense.css';
@import 'watermark.css';