* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: #ffffff;
  background: #07172f;
}

a {
  color: inherit;
  text-decoration: none;
}

.hero {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(0, 195, 255, 0.35), transparent 35%),
    radial-gradient(circle at top right, rgba(255, 190, 40, 0.35), transparent 30%),
    linear-gradient(135deg, #07172f, #102b5c 55%, #0b1938);
  padding: 24px;
}

.nav {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 20px;
}

.logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #24c6ff, #ffb629);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.nav-links {
  display: flex;
  gap: 22px;
  color: #dce8ff;
  font-size: 15px;
}

.nav-links a:hover {
  color: #ffffff;
}

.hero-content {
  max-width: 1120px;
  margin: 100px auto 0;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 48px;
}

.badge {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #bfe8ff;
  font-weight: 700;
}

h1 {
  margin: 18px 0;
  font-size: 58px;
  line-height: 1.05;
  letter-spacing: -1.5px;
}

.description {
  max-width: 620px;
  color: #d6e2ff;
  font-size: 20px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.button {
  padding: 15px 22px;
  border-radius: 16px;
  font-weight: 800;
  transition: 0.2s;
}

.button:hover {
  transform: translateY(-2px);
}

.primary {
  background: linear-gradient(135deg, #24c6ff, #1887ff);
  box-shadow: 0 14px 30px rgba(24, 135, 255, 0.35);
}

.secondary {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-card {
  border-radius: 34px;
  padding: 34px;
  text-align: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
}

.bot-avatar {
  width: 220px;
  height: 220px;
  margin: 0 auto 22px;
  border-radius: 42px;
  display: grid;
  place-items: center;
  font-size: 92px;
  background:
    radial-gradient(circle at top, #ffd35a, #ff8a00 35%, transparent 36%),
    linear-gradient(135deg, #39d2ff, #8cff3f);
  box-shadow: inset 0 0 40px rgba(255, 255, 255, 0.35), 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hero-card h2 {
  margin: 0;
  font-size: 32px;
}

.hero-card p {
  margin: 8px 0 0;
  color: #d6e2ff;
}

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 80px 24px;
}

.section h2 {
  font-size: 38px;
  margin: 0 0 28px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.card {
  padding: 24px;
  border-radius: 24px;
  background: #102b5c;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.card h3 {
  margin: 0 0 12px;
  font-size: 20px;
}

.card p {
  color: #cbd9f5;
  line-height: 1.55;
}

.steps-section {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 36px;
}

.steps {
  display: grid;
  gap: 14px;
}

.step {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border-radius: 20px;
  background: #102b5c;
}

.step span {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #24c6ff;
  color: #07172f;
  font-weight: 900;
}

.step p {
  margin: 0;
  color: #dce8ff;
}

.screenshots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.screenshot-placeholder {
  height: 220px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  color: #aebfe0;
  background:
    linear-gradient(135deg, rgba(36, 198, 255, 0.18), rgba(255, 182, 41, 0.12)),
    #102b5c;
  border: 1px dashed rgba(255, 255, 255, 0.18);
}

.faq {
  display: grid;
  gap: 14px;
}

details {
  padding: 20px;
  border-radius: 18px;
  background: #102b5c;
}

summary {
  cursor: pointer;
  font-weight: 800;
}

details p {
  color: #cbd9f5;
  line-height: 1.55;
}

.footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 30px 24px 60px;
  display: flex;
  justify-content: space-between;
  color: #aebfe0;
}

.footer a {
  color: #24c6ff;
}

@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    margin-top: 60px;
  }

  h1 {
    font-size: 42px;
  }

  .cards,
  .screenshots {
    grid-template-columns: 1fr;
  }

  .nav {
    align-items: flex-start;
    gap: 20px;
    flex-direction: column;
  }
}

/* ===== Mobile version ===== */

@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  .hero {
    min-height: auto;
    padding: 18px 14px 42px;
  }

  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .logo {
    font-size: 18px;
  }

  .logo-img,
  .logo-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .nav-links {
    width: 100%;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    font-size: 14px;
  }

  .nav-links a {
    flex: 0 0 auto;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 42px;
  }

  .badge {
    font-size: 13px;
    padding: 7px 12px;
  }

  h1 {
    font-size: 34px;
    line-height: 1.1;
    letter-spacing: -0.8px;
    margin: 14px 0;
  }

  .description {
    font-size: 16px;
    line-height: 1.55;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
  }

  .button {
    width: 100%;
    text-align: center;
    padding: 14px 18px;
    border-radius: 14px;
  }

  .hero-card {
    padding: 22px;
    border-radius: 26px;
  }

  .hero-avatar {
    width: 210px;
    border-radius: 28px;
    margin-bottom: 18px;
  }

  .bot-avatar {
    width: 190px;
    height: 190px;
    font-size: 72px;
    border-radius: 32px;
  }

  .hero-card h2 {
    font-size: 26px;
  }

  .section {
    padding: 54px 14px;
  }

  .section h2 {
    font-size: 30px;
    margin-bottom: 20px;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .card {
    padding: 20px;
    border-radius: 20px;
  }

  .card h3 {
    font-size: 19px;
  }

  .card p {
    font-size: 15px;
  }

  .steps-section {
    border-radius: 26px;
  }

  .step {
    align-items: flex-start;
    padding: 16px;
    border-radius: 18px;
  }

  .step span {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 12px;
  }

  .screenshots {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .screenshot-placeholder {
    height: 180px;
    border-radius: 20px;
  }

  details {
    padding: 18px;
    border-radius: 16px;
  }

  .footer {
    flex-direction: column;
    gap: 10px;
    padding: 24px 14px 40px;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .hero {
    padding-left: 12px;
    padding-right: 12px;
  }

  h1 {
    font-size: 30px;
  }

  .description {
    font-size: 15px;
  }

  .hero-avatar {
    width: 180px;
  }

  .bot-avatar {
    width: 170px;
    height: 170px;
    font-size: 64px;
  }

  .section h2 {
    font-size: 27px;
  }

  .nav-links {
    font-size: 13px;
  }
}

/* ===== Strong mobile fix ===== */

img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 16px 14px 36px;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 34px;
  }

  .hero-text {
    order: 1;
    text-align: center;
  }

  .hero-card {
    order: 2;
    width: 100%;
    max-width: 330px;
    margin: 0 auto;
    padding: 18px;
    border-radius: 24px;
  }

  .hero-avatar {
    width: 100%;
    max-width: 220px;
    height: auto;
    display: block;
    margin: 0 auto 16px;
    border-radius: 26px;
  }

  .hero-card h2 {
    font-size: 24px;
    margin: 0;
  }

  .hero-card p {
    font-size: 15px;
    margin-top: 6px;
  }

  .badge {
    font-size: 13px;
    margin: 0 auto;
  }

  h1 {
    font-size: 31px;
    line-height: 1.12;
    margin: 14px 0;
  }

  .description {
    font-size: 15.5px;
    line-height: 1.55;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    margin-top: 22px;
  }

  .button {
    width: 100%;
    text-align: center;
  }

  .nav {
    gap: 14px;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  .nav-links a {
    font-size: 13px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
  }

  .section {
    padding: 48px 14px;
  }

  .cards,
  .screenshots {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .hero-card {
    max-width: 290px;
  }

  .hero-avatar {
    max-width: 185px;
    border-radius: 22px;
  }

  h1 {
    font-size: 28px;
  }

  .description {
    font-size: 14.5px;
  }
}

/* ===== Language switcher ===== */

.nav-right {
  display: flex;
  align-items: center;
  gap: 22px;
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.lang-btn {
  width: 42px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 21px;
  line-height: 1;
  background: transparent;
  transition: 0.18s ease;
}

.lang-btn.active {
  opacity: 1;
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.lang-btn.dimmed {
  opacity: 0.38;
  filter: grayscale(0.35);
}

.lang-btn:hover {
  opacity: 1;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .nav-right {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .language-switcher {
    align-self: flex-end;
  }

  .lang-btn {
    width: 40px;
    height: 32px;
    font-size: 20px;
  }
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 8px;
  border-radius: 999px;
}

.lang-btn {
  border: none;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
  opacity: 0.45;
  transition: 0.2s ease;
}

.lang-btn.active {
  opacity: 1;
  transform: scale(1.05);
}

.lang-btn.dimmed {
  opacity: 0.45;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 80px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-text {
  max-width: 580px;
}

.hero-card {
  width: 100%;
  max-width: 320px;
  justify-self: end;
  background: rgba(255, 255, 255, 0.10);
  border-radius: 28px;
  padding: 26px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.hero-avatar {
  width: 100%;
  max-width: 260px;
  display: block;
  margin: 0 auto 18px;
  border-radius: 18px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

@media (max-width: 900px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-right {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-card {
    justify-self: center;
  }

  .hero-buttons {
    justify-content: center;
  }
}
/* ===== Real CSS flags ===== */

/* ===== Real CSS flags ===== */

.flag {
  width: 30px;
  height: 21px;
  display: inline-block;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.45),
    0 3px 8px rgba(0, 0, 0, 0.22);
}

.flag-ru {
  background:
    linear-gradient(
      to bottom,
      #ffffff 0%,
      #ffffff 33.333%,
      #1f57d6 33.333%,
      #1f57d6 66.666%,
      #d52b1e 66.666%,
      #d52b1e 100%
    );
}

.flag-us {
  background:
    repeating-linear-gradient(
      to bottom,
      #b22234 0,
      #b22234 1.62px,
      #ffffff 1.62px,
      #ffffff 3.23px
    );
}

.flag-us::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 13px;
  height: 11.3px;
  background: #3c3b6e;
}

.language-switcher {
  min-width: 104px;
}

.lang-btn {
  width: 42px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
/* ===== Reduce layout shift on language switch ===== */

.hero-text {
  min-height: 360px;
}

.hero-text h1 {
  min-height: 132px;
}

.description {
  min-height: 96px;
}

.hero-buttons {
  min-height: 56px;
}

.nav-links {
  min-width: 280px;
  justify-content: flex-end;
}

.nav-right {
  min-width: 430px;
  justify-content: flex-end;
}

.hero-card {
  align-self: start;
}

@media (max-width: 900px) {
  .hero-text {
    min-height: auto;
  }

  .hero-text h1 {
    min-height: auto;
  }

  .description {
    min-height: auto;
  }

  .hero-buttons {
    min-height: auto;
  }

  .nav-right {
    min-width: 0;
  }

  .nav-links {
    min-width: 0;
    justify-content: center;
  }
}

/* ===== Mobile nav language placement fix ===== */

@media (max-width: 768px) {
  .nav {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 14px 10px;
  }

  .logo {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }

  .logo span {
    line-height: 1.15;
  }

  .nav-right {
    display: contents;
  }

  .language-switcher {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: center;
    margin: 0;
    min-width: auto;
  }

  .nav-links {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 4px;
  }

  .lang-btn {
    width: 42px;
    height: 34px;
  }
}

@media (max-width: 420px) {
  .logo {
    gap: 10px;
  }

  .logo-img {
    width: 42px;
    height: 42px;
  }

  .logo span {
    font-size: 18px;
  }

  .language-switcher {
    padding: 5px 7px;
  }

  .lang-btn {
    width: 38px;
    height: 32px;
  }

  .flag {
    width: 28px;
    height: 20px;
  }

  .flag-us::before {
    width: 12px;
    height: 10.8px;
  }
}