/* ========================
   RESET & BASE
======================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto,
    sans-serif;
  color: #1a1a2e;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
ul {
  list-style: none;
}

/* ========================
   VARIABLES
======================== */
:root {
  --primary: #5b4cf6;
  --primary-dark: #4338ca;
  --primary-light: rgba(91, 76, 246, 0.1);
  --primary-mid: rgba(91, 76, 246, 0.2);
  --accent: #fdf0c4;
  --accent-dark: #f5e299;
  --text: #1a1a2e;
  --text-secondary: #64748b;
  --bg: #ffffff;
  --bg-secondary: #f8f9ff;
  --border: #e2e8f0;
  --shadow-sm: 0 2px 8px rgba(91, 76, 246, 0.08);
  --shadow-md: 0 4px 24px rgba(91, 76, 246, 0.12);
  --shadow-lg: 0 8px 40px rgba(91, 76, 246, 0.18);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --nav-h: 68px;
  --max-w: 1200px;
}

/* ========================
   UTILS
======================== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 88px 0;
}
.section-sm {
  padding: 56px 0;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* ========================
   NAV
======================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
  color: var(--text);
  flex-shrink: 0;
}
.nav__logo img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: var(--shadow-sm);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__links a {
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.18s;
  white-space: nowrap;
}
.nav__links a:hover,
.nav__links a.active {
  background: var(--primary-light);
  color: var(--primary);
}
.nav__right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.lang-select {
  appearance: none;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 7px 28px 7px 11px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  outline: none;
  font-family: inherit;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
  transition: border-color 0.18s;
}
.lang-select:hover,
.lang-select:focus {
  border-color: var(--primary);
}

.nav-dl-btn {
  display: none;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: white;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  transition: background 0.18s;
  white-space: nowrap;
}
.nav-dl-btn:hover {
  background: var(--primary-dark);
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}
.nav__hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav__hamburger.open span:nth-child(2) {
  opacity: 0;
}
.nav__hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 12px 20px 16px;
  z-index: 999;
  box-shadow: var(--shadow-md);
}
.mobile-menu.open {
  display: block;
}
.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 14px;
}
.mobile-menu ul a {
  display: block;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  transition: background 0.18s;
}
.mobile-menu ul a:hover {
  background: var(--bg-secondary);
}
.mobile-menu .mobile-lang {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.mobile-lang-btn {
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  background: none;
  cursor: pointer;
  color: var(--text-secondary);
  font-family: inherit;
  transition: all 0.18s;
}
.mobile-lang-btn.active,
.mobile-lang-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}

/* ========================
   HERO
======================== */
.hero {
  padding-top: calc(var(--nav-h) + 64px);
  padding-bottom: 80px;
  background: linear-gradient(
    160deg,
    var(--bg-secondary) 0%,
    #ede9fe 55%,
    var(--accent) 100%
  );
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  top: -15%;
  right: -8%;
  width: 560px;
  height: 560px;
  background: radial-gradient(
    circle,
    rgba(91, 76, 246, 0.14) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 320px;
  height: 320px;
  background: radial-gradient(
    circle,
    rgba(253, 240, 196, 0.8) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}
.hero__title {
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 14px;
  letter-spacing: -0.03em;
}
.hero__title .highlight {
  color: var(--primary);
}
.hero__tagline {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--text-secondary);
  margin-bottom: 14px;
  font-weight: 400;
}
.hero__desc {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.75;
  max-width: 480px;
}
.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.hero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.hero__pill {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: var(--radius-full);
}
.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero__icon-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero__icon-glow {
  position: absolute;
  width: 240px;
  height: 240px;
  background: radial-gradient(
    circle,
    rgba(91, 76, 246, 0.25) 0%,
    transparent 70%
  );
  border-radius: 50%;
}
.hero__app-icon {
  width: 180px;
  height: 180px;
  border-radius: 44px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(91, 76, 246, 0.08);
  position: relative;
  z-index: 1;
}
.hero__stats {
  display: flex;
  gap: 28px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(91, 76, 246, 0.15);
}
.stat {
  display: flex;
  flex-direction: column;
}
.stat__number {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}
.stat__label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ========================
   BUTTONS
======================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary);
  color: white;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 700;
  transition: all 0.2s;
  box-shadow: 0 4px 18px rgba(91, 76, 246, 0.32);
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(91, 76, 246, 0.42);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
}
.btn-secondary:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}

.play-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #111;
  color: white;
  padding: 12px 22px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
}
.play-badge:hover {
  background: #222;
  transform: translateY(-2px);
}
.play-badge__icon {
  font-size: 22px;
}
.play-badge__text {
  display: flex;
  flex-direction: column;
}
.play-badge__sub {
  font-size: 10px;
  font-weight: 400;
  opacity: 0.7;
}
.play-badge__name {
  font-size: 15px;
  font-weight: 700;
}

/* ========================
   SECTION HEADERS
======================== */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header .badge {
  display: inline-flex;
  background: var(--primary-light);
  color: var(--primary);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.section-header h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.025em;
}
.section-header p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ========================
   FEATURES
======================== */
.features {
  background: var(--bg);
}
.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature-card {
  padding: 28px 22px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: all 0.22s;
}
.feature-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  background: white;
}
.feature-card__icon {
  font-size: 2rem;
  margin-bottom: 14px;
  line-height: 1;
}
.feature-card__title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.feature-card__desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ========================
   PRIVACY STRIP
======================== */
.privacy-strip {
  background: linear-gradient(
    140deg,
    #4338ca 0%,
    var(--primary) 50%,
    #7c5cfc 100%
  );
  color: white;
}
.privacy-strip__inner {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.privacy-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 36px 40px;
  text-align: center;
  flex: 1 1 200px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}
.privacy-item:last-child {
  border-right: none;
}
.privacy-item__icon {
  font-size: 2.2rem;
}
.privacy-item__title {
  font-size: 14px;
  font-weight: 700;
}
.privacy-item__desc {
  font-size: 12.5px;
  opacity: 0.75;
}

/* ========================
   TECH STACK
======================== */
.tech-stack {
  background: var(--bg-secondary);
}
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.tech-tag {
  padding: 8px 16px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.18s;
}
.tech-tag:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}

/* ========================
   CTA SECTION
======================== */
.cta-section {
  background: var(--accent);
  text-align: center;
}
.cta-section h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.cta-section p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: 1.05rem;
}
.cta-note {
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--text-secondary);
  opacity: 0.8;
}

/* ========================
   FOOTER
======================== */
.footer {
  background: #0f0f1a;
  color: rgba(255, 255, 255, 0.6);
  padding: 56px 0 32px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 44px;
}
.footer__brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.footer__brand-logo img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
}
.footer__brand-logo span {
  font-size: 16px;
  font-weight: 800;
  color: white;
}
.footer__brand p {
  font-size: 13.5px;
  line-height: 1.65;
  max-width: 280px;
}
.footer__col h4 {
  font-size: 11px;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__col ul a {
  font-size: 13.5px;
  transition: color 0.18s;
}
.footer__col ul a:hover {
  color: white;
}
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
}
.footer__made {
  color: rgba(255, 255, 255, 0.35);
}
.footer__bottom-links {
  display: flex;
  gap: 20px;
}
.footer__bottom-links a {
  color: rgba(255, 255, 255, 0.4);
  font-size: 12.5px;
  transition: color 0.18s;
}
.footer__bottom-links a:hover {
  color: white;
}

/* ========================
   INNER PAGES
======================== */
.page-hero {
  padding-top: calc(var(--nav-h) + 52px);
  padding-bottom: 52px;
  background: linear-gradient(
    135deg,
    var(--bg-secondary) 0%,
    var(--primary-light) 100%
  );
  border-bottom: 1px solid var(--border);
}
.page-hero .badge {
  display: inline-flex;
  background: var(--primary-light);
  color: var(--primary);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.025em;
}
.page-hero .subtitle {
  font-size: 15px;
  color: var(--text-secondary);
}

.page-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 88px;
}
.page-intro {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 48px;
  line-height: 1.8;
  padding: 20px 24px;
  background: var(--primary-light);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary);
}
.doc-section {
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}
.doc-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}
.doc-section h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.doc-section p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* CREDITS */
.credits-group {
  margin-bottom: 52px;
}
.credits-group-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-light);
}
.credits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.credit-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  transition: all 0.2s;
}
.credit-card a {
  display: block;
}
.credit-card:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.credit-card__name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}
.credit-card__desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.4;
}
.credit-card__license {
  display: inline-flex;
  background: var(--primary-light);
  color: var(--primary);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
}

.dev-card {
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  border: 2px solid var(--primary-mid);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 52px;
}
.dev-card__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}
.dev-card__name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}
.dev-card__role {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.dev-card__links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.dev-card__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  background: white;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--primary-mid);
  transition: all 0.18s;
}
.dev-card__link:hover {
  background: var(--primary);
  color: white;
}

.license-note {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 48px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: var(--text-secondary);
}
.license-note__icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

/* ========================
   RESPONSIVE
======================== */
@media (min-width: 900px) {
  .nav-dl-btn {
    display: inline-flex;
  }
}

@media (max-width: 1024px) {
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .nav__links {
    display: none;
  }
  .lang-select {
    display: none;
  }
  .nav__hamburger {
    display: flex;
  }
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero__visual {
    order: -1;
  }
  .hero__app-icon {
    width: 130px;
    height: 130px;
    border-radius: 32px;
  }
  .hero__icon-glow {
    width: 180px;
    height: 180px;
  }
  .hero__stats {
    gap: 20px;
    flex-wrap: wrap;
  }
  .hero {
    padding-top: calc(var(--nav-h) + 36px);
    padding-bottom: 52px;
  }
  .privacy-strip__inner {
    gap: 0;
  }
  .privacy-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 28px 24px;
  }
  .privacy-item:last-child {
    border-bottom: none;
  }
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer__bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  .hero__desc {
    max-width: 100%;
  }
  .dev-card {
    flex-direction: column;
    gap: 16px;
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 56px 0;
  }
  .section-sm {
    padding: 36px 0;
  }
  .features__grid {
    grid-template-columns: 1fr;
  }
  .container {
    padding: 0 16px;
  }
  .hero__badge {
    font-size: 11px;
  }
  .credits-grid {
    grid-template-columns: 1fr;
  }
  .section-header {
    margin-bottom: 36px;
  }
  .hero__pills {
    gap: 6px;
  }
}

/* ========================
   ANIMATIONS
======================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.fade-in {
  animation: fadeInUp 0.5s ease both;
}
.fade-in-delay-1 {
  animation-delay: 0.1s;
}
.fade-in-delay-2 {
  animation-delay: 0.2s;
}
.fade-in-delay-3 {
  animation-delay: 0.3s;
}
