/* =========================================================
   DeafAI combined stylesheet
   Source order preserved: home.css first, pages.css second.
   ========================================================= */

/* ===== HOME CSS ===== */


.hero-copy { max-width: 360px; }

.footer-bottom {
    opacity: 1!important;
    transform: translateY(0) scale(1)!important;
    filter: blur(0)!important;
}


[data-theme="light"] .nav a {
    color: #333;
}

[data-theme="dark"]  .is-active
 {
    color: #fff!important;
}

[data-theme="light"] .nav a:hover {
    color: #0e9c97;
}

[data-theme="light"] .nav a.is-active, .mobile-nav a.is-active, .footer-col a.is-active {
    color: #0f1718;
}


[data-theme="light"] .footer-col a, .footer-col p {
    color: #5e6b6d;
}


[data-theme="light"] .nav a.is-active, .mobile-nav a.is-active, .footer-col a.is-active {
    color: #000000;
}

[data-theme="light"] .footer-col a, .footer-col p {
    color: #5e6b6d;
}

[data-theme="light"] .footer-col p {
    color: #5e6b6d;
}

[data-theme="light"]  .footer-col h4 {
    color: #17c6c0;
}

[data-theme="light"] .footer-col a.is-active {
    color: #5e6b6d;
}

.admin-error-list {
        color: #ff7474;
}

.auth-top-title  {
        color: #0e9c97;
}


[data-theme="light"]  body.auth-body .auth-card .social-auth a.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #ffffffb8;
}


[data-theme="light"] .auth-tab {
        color: #fff;
}

[data-theme="light"] .right-title {
    color: #fff;
}


[data-theme="light"] .social-btn {
    color: #fff;
}

[data-theme="light"] .auth-tab {
    color: #fff;
}


.nav a {
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    opacity: 1;
    transition: .18s ease;
    white-space: nowrap;
    color: #cccccc;
}


.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: .8rem;
  font-weight: 800;
  color: var(--brand-2);
}
.hero h1 {
  margin: 0 0 16px;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(2.1rem, 4.3vw, 3.8rem);
  line-height: .96;
  letter-spacing: -.055em;
}
.section-title {
  margin: 0;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(1.55rem, 2.7vw, 2.4rem);
  line-height: 1.06;
  letter-spacing: -.04em;
}
.hero p,
.section-text,
.module-copy p,
.price-card p,
.footer-col p,
.flow-chip span,
.lesson-box span,
.lesson-note,
.comment-bubble p,
.social-post-content,
.social-stats-row {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.1rem;
}



body[data-theme="light"] .brand-logo-dark {
    display: none;
}

body[data-theme="light"] .brand-logo-light {
    display: block;
}

body[data-theme="dark"] .brand-logo-dark {
    display: block;
}

body[data-theme="dark"] .brand-logo-light {
    display: none;
}

.phone-mockup {
  position: relative;
  width: min(100%, 380px);
  aspect-ratio: .485 / 1;
  padding: 14px;
  border-radius: 58px;
  border: 1px solid rgba(255,255,255,.1);
  background: linear-gradient(180deg, #0b0f10, #030505);
  box-shadow: 0 45px 120px rgba(0,0,0,.55), 0 0 28px rgba(14,156,151,.035);
  z-index: 2;
}

.phone-notch {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 37%;
  height: 30px;
  border-radius: 999px;
  background: #020202;
  z-index: 3;
}


.hero-mini-stats {
  display: flex;
  gap: 14px;
  flex-wrap: nowrap;
  margin-top: 22px;
  flex-direction: row;
}


.float-card-1 { top: 12%; left: 26%; }
.float-card-2 { top: 20%; right: 30%; }
.float-card-3 { top: 54%; left: 30%; }
.float-card-4 { top: 70%; right: 31%; }
.float-card-5 { top: 47%; right: 30%; }
.float-card-6 { top: 26%; left: 33%; }
.float-card-7 { top: 69%; left: 30%; }


.site-footer { padding: 34px 0 24px; position: relative; margin-top: 70px; }


/* === FINAL PATCH: theme icon behavior, API/Widget symmetry, responsive polish === */

/* Theme toggle: one icon at a time, background changes on click */


/* API / Widget: two symmetric blocks, API first, Widget second */


/* Make content levels and bottom buttons stable */


/* Responsive: all main breakpoints */


/* Final mini polish: reveal animation, mission block, avatar letters */


.mission-title {
  max-width: 1160px;
    margin: 0;
    font-family: "Unbounded", sans-serif;
    font-size: clamp(1.9rem, 2.8vw, 5rem);
    line-height: 1.3;
    letter-spacing: -.055em;
}


@media (max-width: 720px) {
  .mission-card {
    border-radius: 24px;
  }

  .mission-title {
    font-size: clamp(1.75rem, 9vw, 3.2rem);
  }
}


/* Floating animation for hero feature chips */
.float-card {
  animation-name: heroChipFloat;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-duration: 7s;
  will-change: transform;
}

/* individual movement so they don't move одинаково */
.float-card-1 {
  --float-y: -14px;
  animation-duration: 7.5s;
  animation-delay: -0.4s;
}

.float-card-2 {
  --float-y: 12px;
  animation-duration: 8.2s;
  animation-delay: -1.1s;
}

.float-card-3 {
  --float-y: -10px;
  animation-duration: 6.8s;
  animation-delay: -1.6s;
}

.float-card-4 {
  --float-y: 14px;
  animation-duration: 8.8s;
  animation-delay: -0.9s;
}

.float-card-5 {
  --float-y: -12px;
  animation-duration: 7.9s;
  animation-delay: -2s;
}

.float-card-6 {
  --float-y: 10px;
  animation-duration: 7.2s;
  animation-delay: -1.4s;
}

.float-card-7 {
  --float-y: -13px;
  animation-duration: 8.5s;
  animation-delay: -0.7s;
}

@keyframes heroChipFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, var(--float-y), 0);
  }
}

/* На мобилке делаем движение слабее, чтобы не было каши */
@media (max-width: 720px) {
  .float-card {
    animation-duration: 9s;
  }

  .float-card-1,
  .float-card-2,
  .float-card-3,
  .float-card-4,
  .float-card-5,
  .float-card-6,
  .float-card-7 {
    --float-y: -6px;
  }
}

/* Для пользователей с отключенной анимацией */
@media (prefers-reduced-motion: reduce) {
  .float-card {
    animation: none;
  }
}

/* === footer bottom + plain legal pages fix === */


/* === RESPONSIVE REPAIR PATCH: tablet/mobile layout stability === */


/* Tablet: do not keep desktop grids on narrow screens */


@media (max-width: 760px) {
  .container,
  .video-container,
  .site-footer::before {
    width: calc(100% - 24px) !important;
  }

  .mobile-menu {
    left: 12px;
    right: 12px;
    top: 78px;
    max-height: calc(100dvh - 92px);
  }

  .header-inner {
    min-height: 62px !important;
    padding: 10px 12px !important;
    border-radius: 22px !important;
  }

  .brand-mark {
    width: 38px !important;
    height: 38px !important;
    border-radius: 12px !important;
  }

  .brand-name {
    font-size: 1.08rem !important;
  }

  .brand-sub {
    display: none !important;
  }

  .hero {
    padding-top: 16px !important;
  }

  .hero h1 {
    font-size: clamp(2.15rem, 12vw, 3.45rem) !important;
    line-height: .98 !important;
  }

  .section-title,
  .page-hero h1,
  .plain-legal-hero h1 {
    font-size: clamp(1.75rem, 8vw, 2.65rem) !important;
    line-height: 1.08 !important;
  }

  .hero-phone-col {
    min-height: 430px !important;
  }

  .phone-mockup {
    width: min(100%, 300px) !important;
    border-radius: 44px !important;
    padding: 10px !important;
  }

  .phone-screen {
    border-radius: 34px !important;
  }

  .feature-floats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .float-card {
    min-height: 52px;
    padding: 12px 13px !important;
    border-radius: 18px !important;
    font-size: .88rem !important;
    display: flex;
    align-items: center;
  }

  .hero-mini-stats,
  .social-stats-row,
  .social-actions-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
  }

  .mini-stat {
    min-width: 0 !important;
    width: 100%;
  }

  .module-card,
  .price-card,
  .page-hero-copy,
  .page-hero-visual,
  .bento-card,
  .solution-card,
  .timeline-card,
  .team-card,
  .contact-card,
  .form-shell,
  .map-visual,
  .mission-card {
    padding: 20px !important;
    border-radius: 24px !important;
  }

  .module-visual,
  .api-code-card,
  .social-post-card,
  .social-comments-card {
    border-radius: 20px !important;
  }

  .translator-visual,
  .lessons-visual,
  .api-visual,
  .community-visual-network {
    padding: 14px !important;
  }

  .translator-word {
    min-height: 180px;
    font-size: clamp(1.75rem, 10vw, 2.4rem) !important;
  }

  .api-code-card,
  .api-stack pre,
  .api-visual .api-stack pre {
    min-height: 190px !important;
    font-size: .76rem !important;
    line-height: 1.48 !important;
  }

  .social-post-head,
  .comment-item,
  .comment-item.align-right,
  .team-member-head {
    grid-template-columns: 1fr !important;
  }

  .comment-item.align-right .comment-avatar {
    order: -1;
  }

  .social-actions-row {
    grid-template-columns: 1fr;
  }

  .social-action {
    justify-content: center;
    width: 100%;
  }

  .footer-grid,
  .footer-bottom {
    grid-template-columns: 1fr !important;
  }

  .footer-bottom {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .footer-links {
    justify-content: flex-start !important;
  }

  .form-grid,
  .contact-methods {
    grid-template-columns: 1fr !important;
  }

  .section-pad,
  .page-section,
  .mission-section,
  .plain-legal-section {
    padding-top: 42px !important;
    padding-bottom: 42px !important;
  }

  main > section + section {
    margin-top: 34px !important;
  }
}


/* === FINAL STICKY OVERRIDE: home header === */
body:not(.inner-page) {
  padding-top: 108px;
}

body:not(.inner-page) .site-header {
  position: fixed !important;
  top: 16px !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 9999 !important;
  padding-top: 0 !important;
}

@media (max-width: 1180px) {
  body:not(.inner-page) {
    padding-top: 98px;
  }

  body:not(.inner-page) .site-header {
    position: fixed !important;
    top: 10px !important;
    padding-top: 0 !important;
  }

  body:not(.inner-page) .mobile-menu {
    top: 88px !important;
  }
}

@media (max-width: 760px) {
  body:not(.inner-page) {
    padding-top: 88px;
  }

  body:not(.inner-page) .site-header {
    top: 10px !important;
  }

  body:not(.inner-page) .mobile-menu {
    top: 78px !important;
    left: 12px !important;
    right: 12px !important;
  }
}

/* ===== INNER PAGES CSS ===== */
:root {
  --bg: #050909;
  --bg-2: #091111;
  --surface: rgba(9, 15, 15, 0.54);
  --surface-strong: rgba(10, 17, 18, 0.74);
  --surface-soft: rgba(16, 26, 27, 0.5);
  --surface-card: rgba(15, 24, 25, 0.62);
  --glass-edge: rgba(255, 255, 255, 0.14);
  --text: #f7f8f8;
  --muted: #a8b1b3;
  --line: rgba(255, 255, 255, 0.08);
  --brand: #0e9c97;
  --brand-2: #17c6c0;
  --brand-shadow: rgba(14, 156, 151, 0.08);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
}

body[data-theme="light"] {
  --bg: #f4f7f7;
  --bg-2: #edf1f1;
  --surface: rgba(255, 255, 255, 0.62);
  --surface-strong: rgba(255, 255, 255, 0.84);
  --surface-soft: rgba(255, 255, 255, 0.74);
  --surface-card: rgba(255, 255, 255, 0.82);
  --glass-edge: rgba(10, 20, 20, 0.08);
  --text: #0f1718;
  --muted: #5e6b6d;
  --line: rgba(10, 22, 22, 0.09);
  --brand-shadow: rgba(14, 156, 151, 0.06);
  --shadow: 0 18px 60px rgba(12, 27, 27, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  position: relative;
}
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}
body::before {
  background:
    radial-gradient(circle at 15% 20%, rgba(14,156,151,.035), transparent 15%),
    radial-gradient(circle at 82% 12%, rgba(14,156,151,.028), transparent 18%),
    radial-gradient(circle at 70% 76%, rgba(14,156,151,.028), transparent 16%),
    linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0), rgba(255,255,255,.015)),
    repeating-linear-gradient(180deg, rgba(255,255,255,.02) 0px, rgba(255,255,255,.02) 1px, transparent 2px, transparent 6px);
  opacity: .95;
  animation: staticNoise 7s linear infinite;
}
body[data-theme="light"]::before {
  background:
    radial-gradient(circle at 15% 20%, rgba(14,156,151,.025), transparent 15%),
    radial-gradient(circle at 82% 12%, rgba(14,156,151,.02), transparent 18%),
    radial-gradient(circle at 70% 76%, rgba(14,156,151,.02), transparent 16%),
    linear-gradient(180deg, rgba(12,20,20,.015), rgba(255,255,255,0), rgba(12,20,20,.01)),
    repeating-linear-gradient(180deg, rgba(8,18,18,.014) 0px, rgba(8,18,18,.014) 1px, transparent 2px, transparent 6px);
}
body::after {
  background: linear-gradient(180deg, rgba(255,255,255,.018), rgba(255,255,255,0), rgba(255,255,255,.016));
  mix-blend-mode: soft-light;
  opacity: .8;
  animation: staticSweep 10s linear infinite;
}
@keyframes staticNoise {
  0% { transform: translateY(0); }
  25% { transform: translateY(-2px); }
  50% { transform: translateY(1px); }
  75% { transform: translateY(-1px); }
  100% { transform: translateY(0); }
}
@keyframes staticSweep {
  0% { transform: translateY(-1.5%); }
  50% { transform: translateY(1.5%); }
  100% { transform: translateY(-1.5%); }
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
pre, code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.ambient-lines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}
.ambient-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.06), transparent);
}
body[data-theme="light"] .ambient-line { background: linear-gradient(180deg, transparent, rgba(8,18,18,.09), transparent); }
.line-1 { left: 18%; }
.line-2 { left: 39%; }
.line-3 { left: 61%; }
.line-4 { left: 82%; }

.container {
  width: calc(100% - 40px);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.section-pad { padding: 50px 0; }
main > section + section { margin-top: 50px; }

.glass-panel,
.header-inner,
.mobile-menu,
.float-card,
.mini-stat,
.module-card,
.module-visual,
.lang-trigger,
.theme-toggle,
.btn,
.module-link,
.social-action,
.comment-bubble,
.social-post-card,
.social-comments-card,
.lesson-box,
.lesson-note,
.flow-chip,
.video-shell,
.price-card {
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface-card) 100%, transparent), color-mix(in srgb, var(--surface) 100%, transparent));
  border: 1px solid var(--glass-edge);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 38px rgba(0,0,0,.14), 0 0 0 1px rgba(255,255,255,.014) inset;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding-top: 16px;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  padding: 12px 16px;
  border-radius: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), #22d4cd);
  color: #fff;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 10px 22px rgba(14, 156, 151, 0.18);
}
.brand.has-logo {
  gap: 0;
}
.brand.has-logo .brand-logo-wrap {
  width: auto !important;
  height: 44px !important;
  min-width: 136px;
  padding: 0;
  border-radius: 0 !important;
  background: transparent;
  box-shadow: none;
}
.brand-logo-img {
  display: block;
  width: 136px;
  height: 44px;
  object-fit: contain;
  object-position: left center;
}
.brand.has-logo .brand-text-wrap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.brand-name { display: block; font-size: 1.28rem; font-weight: 800; line-height: 1; }
.brand-sub { display: block; margin-top: 4px; font-size: .8rem; color: var(--muted); }

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.nav a {
  font-size: .95rem;
  font-weight: 600;
  transition: color .22s ease, transform .22s ease;
}
.nav a:hover { 
    color: #0e9c97; 
    transform: translateY(-1px); 
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lang-control { position: relative; z-index: 60; }
.lang-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 82px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--text);
  cursor: pointer;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.lang-trigger:hover { transform: translateY(-1px); border-color: rgba(23,198,192,.32); }
.lang-trigger svg { width: 14px; height: 14px; color: var(--muted); }
.lang-current { font-weight: 800; letter-spacing: .06em; }
.lang-control.is-open .lang-trigger svg { transform: rotate(180deg); }
.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 100%;
  padding: 8px;
  border-radius: 18px;
  border: 1px solid rgba(23,198,192,.09);
  background: #101718;
  color: #f7f8f8;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  display: grid;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
body[data-theme="light"] .lang-menu { background: rgba(255,255,255,.96); color: var(--text); }
.lang-control.is-open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-option {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  font-weight: 800;
  cursor: pointer;
  text-align: left;
  letter-spacing: .03em;
  transition: background .22s ease, border-color .22s ease, transform .22s ease, color .22s ease;
}
.lang-option.is-active { background: rgba(14,156,151,.22); border-color: rgba(23,198,192,.34); color: #fff; }
body[data-theme="light"] .lang-option.is-active { color: var(--text); }
.lang-option:hover {
  background: rgba(14,156,151,.18);
  border-color: rgba(23,198,192,.32);
  color: #fff;
  transform: translateX(1px);
}

body[data-theme="light"] .lang-option:hover { color: var(--text); }
.theme-toggle {
  position: relative;
  width: 58px;
  height: 48px;
  border-radius: 999px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .22s ease, border-color .22s ease;
}
.theme-toggle:hover { transform: translateY(-1px); border-color: rgba(23,198,192,.32); }
.toggle-track {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
}
.toggle-knob {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 8px 18px rgba(14, 156, 151, 0.20);
  transition: transform .25s ease;
}
body[data-theme="light"] .toggle-knob { transform: translateX(12px); }
.theme-svg {
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  color: var(--text);
  opacity: .92;
}
.theme-svg svg { width: 16px; height: 16px; }
.theme-moon { left: 10px; }
.theme-sun { right: 11px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), #1fd0ca);
  border-color: rgba(255,255,255,.08);
  box-shadow: 0 14px 28px rgba(14, 156, 151, 0.18);
}
.btn-ghost { color: var(--text); }
.btn-ghost:hover { border-color: rgba(23,198,192,.28); }

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  border: 1px solid var(--glass-edge);
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface-card) 100%, transparent), color-mix(in srgb, var(--surface) 100%, transparent));
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}
.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 4px;
  background: var(--text);
}
.mobile-menu {
  display: none;
  width: calc(100% - 40px);
  margin: 10px auto 0;
  padding: 12px;
  border-radius: 26px;
}
.mobile-menu.is-open { display: block; }
.mobile-menu-top { display: flex; justify-content: flex-start; padding: 0 0 12px; }
.mobile-lang .lang-menu { left: 0; right: auto; min-width: 96px; }
.mobile-nav { display: grid; gap: 8px; }
.mobile-nav a {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--glass-edge);
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface-card) 100%, transparent), color-mix(in srgb, var(--surface) 100%, transparent));
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
  transition: transform .22s ease, border-color .22s ease;
}
.mobile-nav a:hover { transform: translateY(-1px); border-color: rgba(23,198,192,.26); }
.mobile-nav .mobile-cta { color: #fff; background: linear-gradient(135deg, var(--brand), #1fd0ca); }

.hero { padding: 24px 0 26px; }
.hero-shell {
  position: relative;
  padding: 26px 0 8px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(270px, 1fr) minmax(320px, 430px) minmax(270px, 1fr);
  gap: 12px;
  align-items: center;
}
.hero-copy { max-width: 470px; }
.hero-left { justify-self: start; }
.hero-right { justify-self: end; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: .9rem;
  font-weight: 800;
  color: var(--brand-2);
}
.hero h1 {
  margin: 0 0 16px;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(2.1rem, 4.3vw, 3rem);
  line-height: 1.1;
  letter-spacing: -.055em;
}
.section-title {
  margin: 0;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(1.55rem, 2.7vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: -.04em;
}
.hero p,
.section-text,
.module-copy p,
.price-card p,
.footer-col p,
.flow-chip span,
.lesson-box span,
.lesson-note,
.comment-bubble p,
.social-post-content,
.social-stats-row {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.2rem;
}

.hero-phone-col {
  position: relative;
  min-height: 690px;
  display: grid;
  place-items: center;
}
.phone-glow {
  position: absolute;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14,156,151,.07), rgba(14,156,151,.04) 40%, transparent 72%);
  filter: blur(24px);
}
.phone-mockup {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: .485 / 1;
  padding: 14px;
  border-radius: 58px;
  border: 1px solid rgba(255,255,255,.1);
  background: linear-gradient(180deg, #0b0f10, #030505);
  box-shadow: 0 45px 120px rgba(0,0,0,.55), 0 0 28px rgba(14,156,151,.035);
  z-index: 2;
}
.phone-mockup::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 64px;
  border: 1px solid rgba(255,255,255,.04);
  pointer-events: none;
}
.phone-notch {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 37%;
  height: 30px;
  border-radius: 999px;
  background: #020202;
  z-index: 3;
}
.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 44px;
  background: radial-gradient(circle at 50% 45%, rgba(255,255,255,.08), transparent 28%), linear-gradient(180deg, rgba(24,126,122,.82), rgba(6,31,31,.98));
}
.screen-grid {
  position: absolute;
  inset: 0;
  opacity: .14;
  background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 42px 42px;
}
.screen-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
.screen-label { color: rgba(255,255,255,.94); font-size: 1rem; font-weight: 700; }
.screen-button,
.module-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  color: var(--text);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease;
}
.screen-button,
.module-link,
.social-action {
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
}
.screen-button:hover,
.module-link:hover { color: #fff; }
.social-action:hover .social-svg { color: #fff; }
.social-action:hover {
  transform: translateY(-2px);
  border-color: rgba(23,198,192,.34);
  box-shadow: 0 14px 32px rgba(0,0,0,.16);
}

.btn-primary,
.module-link,
.screen-button {
  background: linear-gradient(135deg, var(--brand), #1fd0ca);
  color: #fff;
  border-color: rgba(255,255,255,.1);
  box-shadow: 0 16px 34px rgba(14,156,151,.24), 0 0 28px var(--brand-shadow);
}
.btn-primary:hover,
.module-link:hover,
.screen-button:hover {
  background: linear-gradient(135deg, #0b8c88, #19bdb7);
  color: #fff;
  box-shadow: 0 20px 42px rgba(14,156,151,.30), 0 0 36px var(--brand-shadow);
}

.play-button,
.video-play {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.16);
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.06));
  box-shadow: 0 22px 48px rgba(0,0,0,.22);
  position: relative;
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease;
}
.play-button::before,
.video-play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 52%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 22px solid #fff;
}
.play-button:hover,
.video-play:hover { transform: translateY(-2px); box-shadow: 0 24px 50px rgba(0,0,0,.24); }

.hero-mini-stats {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.mini-stat {
  min-width: 150px;
  padding: 15px 18px;
  border-radius: 22px;
}
.mini-stat strong { display: block; margin-bottom: 5px; font-size: 1.22rem; }
.mini-stat span { color: var(--muted); font-size: .86rem; }

.feature-floats {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.float-card {
  position: absolute;
  padding: 16px 22px;
  border-radius: 26px;
  font-weight: 800;
  font-size: .96rem;
  color: #fff;
  letter-spacing: -.01em;
  white-space: nowrap;
}
body[data-theme="light"] .float-card { color: var(--text); }
.float-card span { color: var(--brand-2); }
.float-card-1 { top: 11%; left: 26%; }
.float-card-2 { top: 18%; right: 30%; }
.float-card-3 { top: 47%; left: 30%; }
.float-card-4 { top: 70%; right: 27%; }
.float-card-5 { top: 49%; right: 32%; }
.float-card-6 { top: 28%; left: 27%; }
.float-card-7 { top: 66%; left: 30%; }

.centered-copy { max-width: 980px; text-align: center; }
.centered-copy .eyebrow { justify-content: center; }
.centered-copy .section-text { max-width: 920px; margin: 18px auto 0; }
.simple-left { display: grid; gap: 10px; margin-bottom: 24px; }
.simple-left .section-text { max-width: 900px; }

.modules-grid {
  display: grid;
  align-items: stretch;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.module-card {
  display: flex;
  flex-direction: column;
  min-height: 560px;
  padding: 26px;
  border-radius: 32px;
  overflow: hidden;
}
.module-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}
.module-copy { position: relative; z-index: 2; min-height: 205px; }
.module-index {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--brand-2);
  font-weight: 800;
}
.module-card h3 {
  margin: 0 0 12px;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(1.36rem, 2vw, 1.9rem);
  line-height: 1.08;
  letter-spacing: -.03em;
}
.module-visual {
  margin-top: 22px;
  flex: 1 1 auto;
  min-height: 265px;
  border-radius: 26px;
  overflow: hidden;
}
.module-actions { margin-top: auto; padding-top: 22px; display: flex; align-items: flex-end; }

.translator-visual {
  padding: 20px;
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: 14px;
  align-items: stretch;
}
.translator-word {
  border-radius: 22px;
  border: 1px solid var(--glass-edge);
  background: radial-gradient(circle at top left, rgba(23,198,192,.10), rgba(255,255,255,.05) 48%), rgba(8,12,12,.2);
  padding: 18px;
  display: flex;
  align-items: flex-end;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(2rem, 3vw, 3.1rem);
  line-height: .95;
  box-shadow: inset 0 0 50px rgba(23,198,192,.035);
}
.translator-flow-list,
.lessons-visual {
  display: grid;
  gap: 12px;
}
.lessons-visual { padding: 20px; align-content: start; }
.flow-chip,
.lesson-box,
.lesson-note {
  border-radius: 18px;
  padding: 16px 18px;
}
.flow-chip strong,
.lesson-box strong { display: block; margin-bottom: 6px; }
.api-visual { padding: 18px; }
.api-visual pre {
  margin: 0;
  min-height: 265px;
  height: 100%;
  padding: 18px;
  border-radius: 22px;
  overflow: auto;
  color: #d9f8f6;
  background: rgba(5,8,8,.72);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 0 50px rgba(23,198,192,.035);
  line-height: 1.64;
  font-size: .95rem;
}

.community-visual-network {
  padding: 18px;
}
.social-shell {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 16px;
  align-items: stretch;
}
.social-post-card,
.social-comments-card {
  border-radius: 24px;
  padding: 16px;
  display: grid;
  gap: 14px;
}
.social-post-head {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
  align-items: center;
}
.social-avatar,
.comment-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #25d0ca);
  box-shadow: 0 10px 24px rgba(14,156,151,.24);
}
.comment-avatar.small { width: 36px; height: 36px; }
.comment-avatar.alt { background: linear-gradient(135deg, #4c5fff, #7f87ff); }
.comment-avatar.brand { background: linear-gradient(135deg, #17c6c0, #70e1dc); }
.social-user-meta strong,
.comment-bubble strong {
  display: block;
  margin-bottom: 4px;
}
.social-user-meta span {
  color: var(--muted);
  font-size: .92rem;
}
.social-dot-menu { color: var(--muted); letter-spacing: 2px; }
.social-post-content { min-height: 70px; }
.social-post-image {
  position: relative;
  min-height: 118px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--glass-edge);
  background: linear-gradient(135deg, rgba(14,156,151,.035), rgba(255,255,255,.05));
}
.social-post-image-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 28%, rgba(255,255,255,.16), transparent 18%),
    radial-gradient(circle at 70% 60%, rgba(23,198,192,.09), transparent 22%),
    linear-gradient(135deg, rgba(14,156,151,.22), rgba(5,8,8,.16));
}
.social-image-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.12);
  font-size: .88rem;
  font-weight: 700;
}
.social-stats-row,
.social-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.social-stats-row b { color: var(--text); }
.social-svg { width: 18px; height: 18px; color: var(--brand-2); flex-shrink: 0; }
.social-action {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.comment-item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  align-items: start;
}
.comment-item.align-right {
  grid-template-columns: 1fr 36px;
}
.comment-bubble {
  border-radius: 18px;
  padding: 14px 16px;
}
.comment-bubble p { margin: 0; font-size: .94rem; }

.video-container { width: calc(100% - 40px); }
.video-shell {
  min-height: 520px;
  border-radius: 36px;
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}
.video-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(23,198,192,.06), transparent 26%),
    linear-gradient(90deg, transparent 18%, rgba(255,255,255,.04) 18.06%, transparent 18.15%, transparent 39%, rgba(255,255,255,.04) 39.06%, transparent 39.15%, transparent 61%, rgba(255,255,255,.04) 61.06%, transparent 61.15%, transparent 82%, rgba(255,255,255,.04) 82.06%, transparent 82.15%);
}
.video-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  padding: 22px;
  text-align: center;
}
.video-content .section-text { max-width: 720px; margin: 18px auto 0; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}
.price-card {
  padding: 28px;
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  min-height: 520px;
}
.price-card.featured { box-shadow: 0 24px 70px rgba(14,156,151,.035); }
.price-kicker {
  display: inline-flex;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  align-items: center;
  background: rgba(14,156,151,.05);
  color: var(--brand-2);
  font-weight: 800;
  font-size: .85rem;
}
.price-card h3 {
  margin: 18px 0 10px;
  font-size: clamp(2rem, 3vw, 2.6rem);
}
.price-card h3 small { font-size: 1rem; color: var(--muted); }
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 20px 0 26px;
  display: grid;
  gap: 12px;
}
.price-card li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.55;
}
.price-card .btn { margin-top: auto; width: max-content; }
.price-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
}

.site-footer { padding: 34px 0 24px; position: relative; }
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(23,198,192,.46), transparent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr .9fr .9fr;
  gap: 30px;
  padding-top: 18px;
}
.footer-brand h3 {
  margin: 18px 0 0;
  max-width: 430px;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(1rem, 1.45vw, 1.3rem);
  line-height: 1.5;
}
.footer-col { display: grid; align-content: start; gap: 10px; }
.footer-col h4 {
  margin: 0 0 8px;
  color: var(--brand-2);
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.footer-col a,
.footer-col p { color: #cccccc; font-weight: 600; margin: 0; }
.footer-col a:hover { color: #0e9c97; }
.footer-bottom {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #e4e5e5;
  font-size: .92rem;
}
.footer-links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

@media (max-width: 1360px) {
  .hero-grid { grid-template-columns: minmax(250px, .95fr) minmax(300px, 390px) minmax(250px, .95fr); }
  .float-card-1 { left: 27%; }
  .float-card-2 { right: 24%; }
  .float-card-3 { left: 24%; }
  .float-card-4 { right: 24%; }
  .float-card-5 { right: 22%; }
  .float-card-6 { left: 34%; }
}

@media (max-width: 1200px) {
  .desktop-nav, .desktop-only { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .hero-copy,
  .hero-right { max-width: 760px; justify-self: start; }
  .hero-phone-col { order: -1; min-height: 540px; }
  .feature-floats {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
  }
  .float-card {
    position: static;
    white-space: normal;
    flex: 0 1 auto;
  }
  .pricing-grid { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .modules-grid { grid-template-columns: 1fr; }
  .module-card { min-height: auto; }
  .translator-visual,
  .social-shell { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 720px) {
  .container,
  .mobile-menu,
  .video-container,
  .site-footer::before { width: calc(100% - 24px); }
  .site-header { padding-top: 10px; }
  .header-inner { padding: 12px; border-radius: 22px; }
  .brand-sub { display: none; }
  .header-actions { gap: 8px; }
  .hero { padding-top: 18px; }
  .hero-shell { padding-top: 12px; }
  .hero-phone-col { min-height: 450px; }
  .phone-mockup { width: min(100%, 300px); border-radius: 44px; padding: 10px; }
  .phone-screen { border-radius: 34px; }
  .play-button, .video-play { width: 92px; height: 92px; }
  .play-button::before, .video-play::before { border-top-width: 13px; border-bottom-width: 13px; border-left-width: 20px; }
  .screen-button,
  .module-link,
  .btn { min-height: 44px; padding: 0 16px; }
  .mini-stat { min-width: 132px; }
  .module-card, .price-card { padding: 20px; border-radius: 24px; }
  .price-card { min-height: auto; }
  .module-visual { border-radius: 20px; min-height: 220px; }
  .translator-visual,
  .community-visual-network,
  .api-visual,
  .lessons-visual { padding: 16px; }
  .video-shell { min-height: 380px; border-radius: 24px; }
  .lang-trigger { min-width: 74px; min-height: 44px; }
  .theme-toggle { width: 54px; height: 44px; }
  .toggle-knob { width: 30px; height: 30px; }
  body[data-theme="light"] .toggle-knob { transform: translateX(10px); }
  .theme-svg { width: 14px; height: 14px; }
  .theme-moon { left: 9px; }
  .theme-sun { right: 10px; }
}

/* === FINAL PATCH: theme icon behavior, API/Widget symmetry, responsive polish === */

/* Theme toggle: one icon at a time, background changes on click */
.theme-toggle {
  width: 54px;
  height: 48px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.025)) !important;
  border: 1px solid var(--glass-edge);
  box-shadow: 0 12px 28px rgba(0,0,0,.13) !important;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(23,198,192,.26);
  box-shadow: 0 16px 34px rgba(0,0,0,.15), 0 0 18px rgba(14,156,151,.10) !important;
}

.theme-toggle .toggle-track,
.theme-toggle .toggle-knob {
  display: none !important;
}

.theme-toggle .theme-svg {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  transform: none;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity .22s ease, transform .22s ease, color .22s ease;
}

.theme-toggle .theme-svg svg {
  width: 20px;
  height: 20px;
}

body[data-theme="dark"] .theme-toggle {
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.018)) !important;
}

body[data-theme="dark"] .theme-moon {
  opacity: 1;
  transform: scale(1);
  color: #e8f7ff;
}

body[data-theme="dark"] .theme-sun {
  opacity: 0;
  transform: scale(.78) rotate(-20deg);
}

body[data-theme="light"] .theme-toggle {
  background: linear-gradient(135deg, rgba(14,156,151,.18), rgba(255,255,255,.86)) !important;
  border-color: rgba(14,156,151,.24);
}

body[data-theme="light"] .theme-sun {
  opacity: 1;
  transform: scale(1) rotate(0deg);
  color: #0e9c97;
}

body[data-theme="light"] .theme-moon {
  opacity: 0;
  transform: scale(.78) rotate(20deg);
}

/* API / Widget: two symmetric blocks, API first, Widget second */
.api-visual {
  padding: 18px !important;
  display: block;
}

.api-stack {
  height: 100%;
  min-height: 310px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}

.api-code-card {
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.11);
  background: rgba(5, 8, 8, .68);
  box-shadow: inset 0 0 38px rgba(23,198,192,.025);
  overflow: hidden;
}

body[data-theme="light"] .api-code-card {
  background: rgba(5, 8, 8, .82);
}

.api-code-head {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.api-code-title {
  color: #e9f7f7;
  font-weight: 800;
  letter-spacing: .02em;
}

.api-code-chip {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  color: #bff4f1;
  background: rgba(14,156,151,.12);
  border: 1px solid rgba(14,156,151,.18);
  font-size: .78rem;
  font-weight: 800;
}

.api-stack pre,
.api-visual .api-stack pre {
  flex: 1 1 auto;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: 14px 16px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: auto;
  color: #d9f8f6;
  line-height: 1.55;
  font-size: clamp(.78rem, .72vw, .92rem);
}

/* Make content levels and bottom buttons stable */
.modules-grid {
  align-items: stretch;
}

.module-card {
  display: flex !important;
  flex-direction: column !important;
}

.module-copy {
  min-height: 205px;
}

.module-actions {
  margin-top: auto !important;
  padding-top: 22px;
  display: flex;
  align-items: flex-end;
}

/* Responsive: all main breakpoints */
@media (min-width: 1441px) {
  .container,
  .video-container,
  .mobile-menu,
  .site-footer::before {
    width: calc(100% - 40px);
    max-width: none;
  }

  .hero-grid {
    grid-template-columns: minmax(320px, 1fr) minmax(380px, 460px) minmax(320px, 1fr);
  }
}

@media (max-width: 1280px) {
  .module-copy {
    min-height: 230px;
  }

  .api-stack {
    min-height: 340px;
  }
}

@media (max-width: 1200px) {
  .api-stack {
    min-height: 360px;
  }

  .hero-phone-col {
    min-height: 560px;
  }
}

@media (max-width: 980px) {
  .module-copy {
    min-height: auto;
  }

  .module-actions {
    padding-top: 18px;
  }

  .api-stack {
    min-height: 420px;
    grid-template-rows: minmax(190px, 1fr) minmax(190px, 1fr);
  }

  .api-stack pre,
  .api-visual .api-stack pre {
    font-size: .86rem;
  }

  .theme-toggle {
    width: 52px;
    height: 46px;
  }

  .theme-toggle .theme-svg svg {
    width: 19px;
    height: 19px;
  }
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 96px;
  }

  .site-header {
    padding-top: 10px;
  }

  .header-inner {
    min-height: 66px;
  }

  .hero-phone-col {
    min-height: 450px;
  }

  .api-visual {
    padding: 14px !important;
  }

  .api-stack {
    min-height: 400px;
    gap: 12px;
    grid-template-rows: minmax(180px, 1fr) minmax(180px, 1fr);
  }

  .api-code-head {
    min-height: 44px;
    padding: 0 13px;
  }

  .api-stack pre,
  .api-visual .api-stack pre {
    padding: 12px 13px !important;
    font-size: .76rem;
    line-height: 1.48;
  }

  .api-code-chip {
    display: none;
  }

  .modules-grid,
  .pricing-grid {
    gap: 18px;
  }

  .module-card,
  .price-card {
    min-width: 0;
  }

  .section-pad {
    padding: 44px 0;
  }
}

@media (max-width: 420px) {
  .container,
  .mobile-menu,
  .video-container,
  .site-footer::before {
    width: calc(100% - 20px);
  }

  .hero h1 {
    font-size: clamp(2rem, 12vw, 3.1rem);
  }

  .phone-mockup {
    width: min(100%, 280px);
  }

  .api-stack {
    min-height: 390px;
  }

  .api-stack pre,
  .api-visual .api-stack pre {
    font-size: .7rem;
  }

  .theme-toggle {
    width: 48px;
    height: 42px;
  }
}


/* Final mini polish: reveal animation, mission block, avatar letters */
.mission-section {
  padding-top: 50px;
  padding-bottom: 50px;
}

.mission-card {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  padding: clamp(28px, 5vw, 70px);
  border: 1px solid var(--glass-edge);
  background:
    radial-gradient(circle at 18% 20%, rgba(14, 156, 151, 0.10), transparent 26%),
    linear-gradient(180deg, color-mix(in srgb, var(--surface-card) 94%, transparent), color-mix(in srgb, var(--surface) 92%, transparent));
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow), 0 0 36px var(--brand-shadow);
}

.mission-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0%, rgba(255,255,255,.045) 48%, transparent 100%),
    linear-gradient(180deg, rgba(255,255,255,.035), transparent 42%);
  opacity: .65;
}

.mission-card .eyebrow,
.mission-title,
.mission-text {
  position: relative;
  z-index: 1;
}

.mission-title {
  max-width: 1160px;
  margin: 0;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(1.9rem, 2.8vw, 5rem);
  line-height: 1.2;
  letter-spacing: -.055em;
}

.mission-text {
  max-width: 860px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.7;
}

.social-avatar,
.comment-avatar {
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  letter-spacing: .02em;
  font-size: 1rem;
  text-transform: uppercase;
}

.comment-avatar.small {
  font-size: .86rem;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(8px);
  transition:
    opacity .78s cubic-bezier(.2,.8,.2,1),
    transform .78s cubic-bezier(.2,.8,.2,1),
    filter .78s cubic-bezier(.2,.8,.2,1);
  transition-delay: var(--reveal-delay, 0ms);
}


.float-card.reveal {
  transform: translateY(18px) scale(.98);
}

.float-card.reveal.is-visible {
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}

@media (max-width: 720px) {
  .mission-card {
    border-radius: 24px;
  }

  .mission-title {
    font-size: clamp(1.75rem, 7vw, 3.2rem);
  }
}


/* === INNER PAGES: About / Platform / Solutions / Roadmap / Team / Contacts === */

.inner-page main {
  position: relative;
  z-index: 1;
}

.page-hero {
  padding: 54px 0 32px;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
  gap: 28px;
  align-items: stretch;
}

.page-hero-copy {
  min-height: 430px;
  border-radius: 36px;
  padding: clamp(28px, 4vw, 54px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-hero-copy h1 {
  margin: 0;
  max-width: 980px;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(2.15rem, 3vw, 5.4rem);
  line-height: 1.2;
  letter-spacing: -.065em;
}

.page-hero-copy .section-text {
  max-width: 760px;
  margin-top: 22px;
  font-size: clamp(1rem, 1.25vw, 1.18rem);
}

.page-hero-visual {
  min-height: 430px;
  border-radius: 36px;
  padding: 22px;
  position: relative;
  overflow: hidden;
  display: grid;
  align-items: end;
}

.page-hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 28% 24%, rgba(23,198,192,.10), transparent 22%),
    radial-gradient(circle at 72% 72%, rgba(23,198,192,.07), transparent 24%),
    linear-gradient(120deg, rgba(255,255,255,.045), rgba(255,255,255,.01));
  pointer-events: none;
}

.hero-orbit {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.08);
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
}

.hero-orbit::before,
.hero-orbit::after {
  content: "";
  position: absolute;
  width: 78%;
  height: 78%;
  border: 1px solid rgba(23,198,192,.12);
  border-radius: 50%;
  inset: 11%;
}

.hero-orbit::after {
  width: 48%;
  height: 48%;
  inset: 26%;
}

.visual-chip-stack {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
}

.visual-chip {
  min-height: 68px;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid var(--glass-edge);
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface-card) 100%, transparent), color-mix(in srgb, var(--surface) 100%, transparent));
  backdrop-filter: blur(18px);
  display: grid;
  gap: 4px;
  box-shadow: 0 14px 36px rgba(0,0,0,.12);
}

.visual-chip strong {
  font-size: .98rem;
}

.visual-chip span {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.45;
}

.page-section {
  padding: 50px 0;
}

.section-grid-2 {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 22px;
  align-items: start;
}

.section-intro {
  position: sticky;
  top: 120px;
  border-radius: 32px;
  padding: 28px;
}

.section-intro h2 {
  margin: 0;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(1.55rem, 2.3vw, 2.65rem);
  line-height: 1.2;
  letter-spacing: -.04em;
}

.section-intro p {
  margin: 18px 0 0;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.bento-card {
  min-height: 230px;
  border-radius: 30px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.bento-card.wide {
  grid-column: 1 / -1;
}

.bento-card.tall {
  min-height: 320px;
}

.bento-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 24% 18%, rgba(23,198,192,.06), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,.035), transparent);
  pointer-events: none;
}

.card-kicker {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--brand-2);
  background: rgba(14,156,151,.08);
  font-weight: 800;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.bento-card h3,
.solution-card h3,
.timeline-card h3,
.team-card h3,
.contact-card h3 {
  margin: 16px 0 10px;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(1.14rem, 1.55vw, 1.55rem);
  line-height: 1.2;
  letter-spacing: -.03em;
}

.bento-card p,
.solution-card p,
.timeline-card p,
.team-card p,
.contact-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.metric-row {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.metric-pill {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--glass-edge);
  display: inline-flex;
  align-items: center;
  color: var(--text);
  background: rgba(255,255,255,.035);
  font-weight: 700;
}

.layer-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.layer-step {
  border-radius: 26px;
  padding: 20px;
  min-height: 180px;
  position: relative;
  overflow: hidden;
}

.layer-step::after {
  content: "";
  position: absolute;
  top: 22px;
  right: -12px;
  width: 24px;
  height: 2px;
  background: rgba(23,198,192,.34);
}

.layer-step:last-child::after {
  display: none;
}

.layer-num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  margin-bottom: 18px;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.solution-card {
  min-height: 300px;
  border-radius: 30px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.solution-card .module-link {
  margin-top: auto;
  width: max-content;
}

.solution-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(14,156,151,.20), rgba(255,255,255,.06));
  border: 1px solid var(--glass-edge);
}

.solution-icon svg {
  width: 26px;
  height: 26px;
  color: var(--brand-2);
}

.roadmap-wrap {
  display: grid;
  gap: 18px;
  position: relative;
}

.roadmap-wrap::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 20px;
  bottom: 20px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(23,198,192,.42), transparent);
}

.timeline-card {
  position: relative;
  margin-left: 58px;
  border-radius: 30px;
  padding: 26px;
}

.timeline-card::before {
  content: "";
  position: absolute;
  left: -46px;
  top: 30px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 0 0 8px rgba(14,156,151,.07);
}

.status-pill {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--brand-2);
  background: rgba(14,156,151,.08);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.team-card {
  min-height: 360px;
  border-radius: 30px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.team-avatar {
  width: 86px;
  height: 86px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(14,156,151,.24), rgba(255,255,255,.06));
  border: 1px solid var(--glass-edge);
  color: var(--text);
  font-family: "Unbounded", sans-serif;
  font-size: 1.65rem;
  margin-bottom: 18px;
}

.team-role {
  color: var(--brand-2);
  font-weight: 800;
  font-size: .9rem;
  margin-bottom: 12px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 22px;
  align-items: stretch;
}

.contact-card {
  border-radius: 30px;
  padding: 26px;
}

.contact-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.contact-line {
  min-height: 58px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid var(--glass-edge);
  background: rgba(255,255,255,.035);
  display: grid;
  gap: 4px;
}

.contact-line strong {
  font-size: .86rem;
  color: var(--brand-2);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.contact-line span,
.contact-line a {
  color: var(--text);
  font-weight: 700;
}

.form-shell {
  border-radius: 30px;
  padding: 26px;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.form-grid input,
.form-grid textarea,
.form-grid select {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--glass-edge);
  background: rgba(255,255,255,.045);
  color: var(--text);
  min-height: 54px;
  padding: 0 16px;
  outline: none;
  font: inherit;
}

.form-grid textarea {
  padding: 16px;
  min-height: 150px;
  resize: vertical;
}

.form-grid input::placeholder,
.form-grid textarea::placeholder {
  color: var(--muted);
}

.form-grid input:focus,
.form-grid textarea:focus,
.form-grid select:focus {
  border-color: rgba(23,198,192,.38);
  box-shadow: 0 0 0 4px rgba(14,156,151,.08);
}

.map-visual {
  margin-top: 22px;
  min-height: 320px;
  border-radius: 30px;
  position: relative;
  overflow: hidden;
}

.map-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(23,198,192,.12), transparent 32%);
  background-size: 42px 42px, 42px 42px, auto;
}

.map-pin {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 72px;
  height: 72px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 0 0 18px rgba(14,156,151,.08), 0 0 40px rgba(14,156,151,.18);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(4px);
  transition: opacity .72s ease, transform .72s cubic-bezier(.22,1,.36,1), filter .72s ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

@media (max-width: 1200px) {
  .page-hero-grid,
  .section-grid-2,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .section-intro {
    position: relative;
    top: auto;
  }

  .solution-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .layer-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .layer-step::after {
    display: none;
  }
}

@media (max-width: 720px) {
  .page-hero {
    padding-top: 34px;
  }

  .page-hero-copy,
  .page-hero-visual,
  .section-intro,
  .bento-card,
  .solution-card,
  .timeline-card,
  .team-card,
  .contact-card,
  .form-shell,
  .map-visual,
  .mission-card {
    border-radius: 24px;
  }

  .page-hero-copy,
  .page-hero-visual {
    min-height: auto;
    padding: 24px;
  }

  .bento-grid,
  .solution-grid,
  .team-grid,
  .layer-flow {
    grid-template-columns: 1fr;
  }

  .roadmap-wrap::before {
    left: 15px;
  }

  .timeline-card {
    margin-left: 36px;
    padding: 22px;
  }

  .timeline-card::before {
    left: -33px;
    width: 22px;
    height: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}

.nav a.is-active,
.mobile-nav a.is-active,
.footer-col a.is-active {
 // color: #ffffff;
      color: #000000;
}

.nav a.is-active::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

.form-grid select option {
  color: #101919;
}


/* === Team page detailed structure === */
.team-detailed-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.team-card-detailed {
  min-height: 100%;
  padding: clamp(22px, 2vw, 30px);
  gap: 18px;
}

.team-card-top {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 18px;
  align-items: center;
  margin-bottom: 4px;
}

.team-card-top h3 {
  margin-top: 8px;
  margin-bottom: 0;
}

.team-card-detailed .team-role {
  margin-bottom: 0;
  line-height: 1.35;
}

.team-focus-block {
  margin-top: 6px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.team-focus-label {
  color: var(--brand-2);
  font-weight: 800;
  margin-bottom: 12px;
}

.team-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.team-list li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.55;
}

.team-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 14px rgba(14,156,151,.22);
}

.team-support-section {
  padding-top: 8px;
}

.team-support-band {
  border-radius: 32px;
  padding: clamp(24px, 3vw, 38px);
  max-width: none;
}

.team-support-band h2 {
  margin: 16px 0 12px;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(1.35rem, 2.2vw, 2.25rem);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.team-support-band .section-text {
  max-width: 920px;
}

@media (max-width: 1180px) {
  .team-detailed-grid {
    grid-template-columns: 1fr;
  }

  .team-card-detailed {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .team-card-top {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .team-avatar {
    width: 76px;
    height: 76px;
    border-radius: 24px;
  }
}


/* === Legal pages & FAQ === */
.legal-hero {
  padding: 54px 0 22px;
}

.legal-hero-card {
  min-height: 360px;
  border-radius: 36px;
  padding: clamp(28px, 4vw, 54px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.legal-hero-card h1 {
  margin: 0;
  max-width: 1040px;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(2.1rem, 4.4vw, 5.2rem);
  line-height: .98;
  letter-spacing: -.055em;
}

.legal-hero-card p {
  max-width: 820px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.15vw, 1.18rem);
  line-height: 1.72;
}

.legal-updated {
  margin-top: 24px;
  display: inline-flex;
  width: max-content;
  min-height: 38px;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--brand-2);
  background: rgba(14,156,151,.08);
  border: 1px solid rgba(23,198,192,.16);
  font-weight: 800;
  font-size: .88rem;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(260px, .36fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.legal-sidebar {
  position: sticky;
  top: 118px;
  border-radius: 30px;
  padding: 24px;
}

.legal-sidebar span {
  display: block;
  margin-bottom: 10px;
  color: var(--brand-2);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .82rem;
}

.legal-sidebar p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.legal-content {
  display: grid;
  gap: 16px;
}

.legal-card {
  border-radius: 30px;
  padding: clamp(22px, 2.3vw, 32px);
}

.legal-card h2 {
  margin: 0 0 12px;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(1.15rem, 1.5vw, 1.55rem);
  line-height: 1.15;
  letter-spacing: -.035em;
}

.legal-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(270px, .42fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.faq-layout .section-intro {
  position: sticky;
  top: 118px;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  border-radius: 28px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  min-height: 74px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  font-weight: 800;
  font-size: clamp(1rem, 1.2vw, 1.2rem);
}

.faq-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex: 0 0 auto;
  position: relative;
  border: 1px solid rgba(23,198,192,.18);
  background: rgba(14,156,151,.08);
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-2);
  transform: translate(-50%, -50%);
  transition: transform .22s ease, opacity .22s ease;
}

.faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item.is-open .faq-icon::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .28s ease;
}

.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer p {
  overflow: hidden;
  margin: 0;
  padding: 0 24px 0;
  color: var(--muted);
  line-height: 1.75;
}

.faq-item.is-open .faq-answer p {
  padding-bottom: 24px;
}

@media (max-width: 980px) {
  .legal-layout,
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .legal-sidebar,
  .faq-layout .section-intro {
    position: relative;
    top: auto;
  }
}

@media (max-width: 720px) {
  .legal-hero-card {
    min-height: auto;
    border-radius: 26px;
  }

  .legal-card,
  .faq-item,
  .legal-sidebar {
    border-radius: 24px;
  }

  .faq-question {
    min-height: 66px;
    padding: 0 18px;
  }

  .faq-answer p {
    padding-inline: 18px;
  }
}


/* === footer bottom + plain legal pages fix === */
.site-footer .footer-bottom {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 34px;
  padding: 28px 0;
  min-height: 86px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.site-footer .footer-bottom p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}
.site-footer .footer-links {
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}
.site-footer .footer-links a {
  color: var(--muted);
  font-size: 1rem;
  transition: color .22s ease, transform .22s ease;
}
.site-footer .footer-links a:hover {
  color: var(--text);
  transform: translateY(-1px);
}
.plain-legal-hero {
  padding-bottom: 20px;
}
.plain-legal-wrap {
  max-width: 980px;
}
.plain-legal-hero h1 {
  margin: 0 0 18px;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(2.2rem, 4vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}
.plain-legal-hero p,
.plain-legal-updated,
.plain-legal-note,
.plain-legal-content p,
.plain-legal-content li {
  font-size: 18px !important;
  line-height: 1.8;
  color: var(--muted);
}
.plain-legal-updated {
  display: inline-flex;
  margin-top: 10px;
}
.plain-legal-section {
  padding-top: 22px;
}
.plain-legal-content {
  display: block;
}
.plain-legal-note {
  margin: 0 0 34px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.plain-legal-content h2 {
  margin: 34px 0 10px;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: var(--text);
}
.plain-legal-content p {
  margin: 0 0 18px;
  max-width: 940px;
}
.plain-legal-body {
  margin: 0;
  max-width: 940px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
  white-space: pre-line;
}
@media (max-width: 760px) {
  .site-footer .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 0;
  }
  .site-footer .footer-links {
    justify-content: flex-start;
    gap: 16px;
  }
  .plain-legal-hero p,
  .plain-legal-updated,
  .plain-legal-note,
  .plain-legal-content p,
  .plain-legal-content li {
    font-size: 17px !important;
  }
}


/* === RESPONSIVE REPAIR PATCH: tablet/mobile layout stability === */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

* {
  min-width: 0;
}

img,
svg,
video,
canvas,
iframe {
  max-width: 100%;
}

h1,
h2,
h3,
.section-title,
.hero h1,
.module-card h3,
.page-hero h1,
.page-hero-title {
  overflow-wrap: anywhere;
  word-break: normal;
}

.site-header {
  top: 0;
  z-index: 2000;
}

.header-inner,
.hero-shell,
.module-card,
.price-card,
.page-hero-copy,
.page-hero-visual,
.bento-card,
.solution-card,
.timeline-card,
.team-card,
.contact-card,
.form-shell,
.map-visual,
.mission-card,
.plain-legal-wrap,
.faq-layout,
.faq-list,
.footer-grid,
.footer-bottom {
  max-width: 100%;
}

.module-card,
.price-card,
.module-visual,
.translator-visual,
.lessons-visual,
.api-visual,
.community-visual-network,
.social-shell,
.api-stack,
.api-code-card,
.page-visual-card,
.page-hero-copy,
.page-hero-visual {
  min-width: 0 !important;
}

.api-stack pre,
.api-visual pre,
pre,
code {
  max-width: 100%;
}

/* Tablet: do not keep desktop grids on narrow screens */
@media (max-width: 1180px) {
  html {
    scroll-padding-top: 96px;
  }

  .site-header {
    position: sticky;
    top: 0;
    padding-top: 10px;
  }

  .desktop-nav,
  .desktop-only {
    display: none !important;
  }

  .menu-toggle {
    display: inline-flex !important;
  }

  .mobile-menu {
    position: fixed;
    left: 20px;
    right: 20px;
    top: 88px;
    width: auto !important;
    max-height: calc(100dvh - 104px);
    overflow-y: auto;
    z-index: 1999;
    overscroll-behavior: contain;
  }

  body.menu-open {
    overflow: hidden;
  }

  .hero-grid,
  .page-hero-grid,
  .section-grid-2,
  .contact-grid {
    grid-template-columns: 1fr !important;
  }

  .hero-shell {
    overflow: visible;
    padding-top: 18px;
  }

  .hero-copy,
  .hero-left,
  .hero-right,
  .page-hero-copy,
  .section-intro {
    justify-self: stretch !important;
    max-width: 100% !important;
  }

  .hero-phone-col {
    order: -1;
    min-height: clamp(500px, 62vw, 620px) !important;
  }

  .phone-mockup {
    width: min(100%, 390px) !important;
  }

  .feature-floats {
    position: static !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
    pointer-events: auto;
  }

  .float-card,
  .float-card-1,
  .float-card-2,
  .float-card-3,
  .float-card-4,
  .float-card-5,
  .float-card-6,
  .float-card-7 {
    position: relative !important;
    inset: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    width: 100%;
    white-space: normal;
    text-align: center;
    justify-content: center;
    animation: none !important;
    transform: none !important;
  }

  .modules-grid,
  .pricing-grid,
  .solution-grid,
  .team-grid,
  .team-detailed-grid,
  .layer-flow,
  .bento-grid {
    grid-template-columns: 1fr !important;
  }

  .module-copy {
    min-height: auto !important;
  }

  .module-actions {
    margin-top: auto !important;
  }

  .translator-visual,
  .social-shell,
  .api-code-grid,
  .api-stack {
    grid-template-columns: 1fr !important;
  }

  .api-stack {
    min-height: auto !important;
    grid-template-rows: auto auto !important;
  }

  .api-code-card,
  .api-stack pre,
  .api-visual .api-stack pre {
    min-height: 220px !important;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .container,
  .video-container,
  .site-footer::before {
    width: calc(100% - 24px) !important;
  }

  .mobile-menu {
    left: 12px;
    right: 12px;
    top: 78px;
    max-height: calc(100dvh - 92px);
  }

  .header-inner {
    min-height: 62px !important;
    padding: 10px 12px !important;
    border-radius: 22px !important;
  }

  .brand-mark {
    width: 38px !important;
    height: 38px !important;
    border-radius: 12px !important;
  }

  .brand-name {
    font-size: 1.08rem !important;
  }

  .brand-sub {
    display: none !important;
  }

  .hero {
    padding-top: 16px !important;
  }

  .hero h1 {
    font-size: clamp(2rem, 6vw, 3.45rem) !important;
    line-height: 1.2 !important;
  }

  .section-title,
  .page-hero h1,
  .plain-legal-hero h1 {
    font-size: clamp(1.5rem, 6vw, 2.65rem) !important;
    line-height: 1.2 !important;
  }

  .hero-phone-col {
    min-height: 430px !important;
  }

  .phone-mockup {
    width: min(100%, 300px) !important;
    border-radius: 44px !important;
    padding: 10px !important;
  }

  .phone-screen {
    border-radius: 34px !important;
  }

  .feature-floats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .float-card {
    min-height: 52px;
    padding: 12px 13px !important;
    border-radius: 18px !important;
    font-size: .88rem !important;
    display: flex;
    align-items: center;
  }

  .hero-mini-stats,
  .social-stats-row,
  .social-actions-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
  }

  .mini-stat {
    min-width: 0 !important;
    width: 100%;
  }

  .module-card,
  .price-card,
  .page-hero-copy,
  .page-hero-visual,
  .bento-card,
  .solution-card,
  .timeline-card,
  .team-card,
  .contact-card,
  .form-shell,
  .map-visual,
  .mission-card {
    padding: 20px !important;
    border-radius: 24px !important;
  }

  .module-visual,
  .api-code-card,
  .social-post-card,
  .social-comments-card {
    border-radius: 20px !important;
  }

  .translator-visual,
  .lessons-visual,
  .api-visual,
  .community-visual-network {
    padding: 14px !important;
  }

  .translator-word {
    min-height: 180px;
    font-size: clamp(1.75rem, 10vw, 2.4rem) !important;
  }

  .api-code-card,
  .api-stack pre,
  .api-visual .api-stack pre {
    min-height: 190px !important;
    font-size: .76rem !important;
    line-height: 1.48 !important;
  }

  .social-post-head,
  .comment-item,
  .comment-item.align-right,
  .team-member-head {
    grid-template-columns: 1fr !important;
  }

  .comment-item.align-right .comment-avatar {
    order: -1;
  }

  .social-actions-row {
    grid-template-columns: 1fr;
  }

  .social-action {
    justify-content: center;
    width: 100%;
  }

  .footer-grid,
  .footer-bottom {
    grid-template-columns: 1fr !important;
  }

  .footer-bottom {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .footer-links {
    justify-content: flex-start !important;
  }

  .form-grid,
  .contact-methods {
    grid-template-columns: 1fr !important;
  }

  .section-pad,
  .page-section,
  .mission-section,
  .plain-legal-section {
    padding-top: 0px !important;
    padding-bottom: 42px !important;
  }

  main > section + section {
    margin-top: 34px !important;
  }
}

@media (max-width: 420px) {
  .container,
  .video-container,
  .site-footer::before {
    width: calc(100% - 20px) !important;
  }

  .feature-floats,
  .hero-mini-stats {
    grid-template-columns: 1fr !important;
  }

  .phone-mockup {
    width: min(100%, 280px) !important;
  }

  .btn,
  .module-link,
  .screen-button {
    width: 100%;
  }
}

/* === FINAL STICKY OVERRIDE: header + key side blocks === */
body.inner-page {
  padding-top: 108px;
}

body.inner-page .site-header {
  position: fixed !important;
  top: 16px !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 9999 !important;
  padding-top: 0 !important;
}

body.inner-page .section-grid-2 > .section-intro {
  position: sticky !important;
  top: 124px !important;
  align-self: start !important;
  height: max-content;
  transform: none !important;
  filter: none !important;
}

body.inner-page .section-grid-2 > .section-intro.reveal,
body.inner-page .section-grid-2 > .section-intro.reveal.is-visible {
  transform: none !important;
  filter: none !important;
}

@media (max-width: 1180px) {
  body.inner-page {
    padding-top: 98px;
  }

  body.inner-page .site-header {
    position: fixed !important;
    top: 10px !important;
    padding-top: 0 !important;
  }

  body.inner-page .mobile-menu {
    top: 88px !important;
  }

  body.inner-page .section-grid-2 > .section-intro {
    position: sticky !important;
    top: 104px !important;
  }
}

@media (max-width: 760px) {
  body.inner-page {
    padding-top: 88px;
  }

  body.inner-page .site-header {
    top: 10px !important;
  }

  body.inner-page .mobile-menu {
    top: 78px !important;
    left: 12px !important;
    right: 12px !important;
  }

  body.inner-page .section-grid-2 > .section-intro {
    position: relative !important;
    top: auto !important;
  }
}

/* === FIX: single page scrollbar after CSS merge ===
   Keep only the document/html as the main scroller.
   Body must stay visible, otherwise Chrome can render a second vertical scrollbar. */
html {
  height: auto !important;
  min-height: 100% !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

body {
  height: auto !important;
  min-height: 100% !important;
  max-height: none !important;
  overflow-y: visible !important;
  overflow-x: clip !important;
}

body.menu-open {
  overflow: hidden !important;
}

main,
.site-main,
.page-main,
.home-main,
.wrapper,
.site-wrapper,
.page-wrapper,
.home-wrapper,
.app,
.app-shell,
.layout,
.layout-shell {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow-y: visible !important;
  overflow-x: clip !important;
}

.site-header {
  max-width: 100vw !important;
}


.hero-store-buttons {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
  position: relative;
  z-index: 5;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 178px;
  min-height: 58px;
  padding: 10px 18px;
  border-radius: 20px;
  color: var(--text);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--surface-card) 100%, transparent),
    color-mix(in srgb, var(--surface) 100%, transparent)
  );
  border: 1px solid var(--glass-edge);
  backdrop-filter: blur(18px);
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.16),
    0 0 24px rgba(14, 156, 151, 0.12);
  transition:
    transform .22s ease,
    border-color .22s ease,
    box-shadow .22s ease,
    background .22s ease;
}

.store-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(23, 198, 192, .34);
  box-shadow:
    0 22px 44px rgba(0, 0, 0, 0.2),
    0 0 34px rgba(14, 156, 151, 0.18);
}

.store-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.store-icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.store-btn small {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1;
  font-weight: 600;
}

.store-btn strong {
  display: block;
  color: var(--text);
  font-size: 16px;
  line-height: 1;
  font-weight: 800;
}

@media (max-width: 720px) {
  .hero-store-buttons {
    margin-top: 22px;
    gap: 10px;
  }

  .store-btn {
    width: 100%;
    min-height: 56px;
    border-radius: 18px;
  }
}

.download-section {
  padding-top: 50px;
  padding-bottom: 50px;
}

.download-card {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 46px);
  border-radius: 34px;
  text-align: center;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--surface-card) 100%, transparent),
    color-mix(in srgb, var(--surface) 100%, transparent)
  );
  border: 1px solid var(--glass-edge);
  backdrop-filter: blur(18px);
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.14),
    0 0 0 1px rgba(255, 255, 255, 0.014) inset,
    0 0 26px rgba(14, 156, 151, 0.10);
}

.download-card .eyebrow {
  justify-content: center;
}

.download-card .section-title {
  max-width: 760px;
  margin: 0 auto;
}

.download-card .section-text {
  max-width: 680px;
  margin: 18px auto 0;
}

.download-store-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

@media (max-width: 720px) {
  .download-section {
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .download-store-buttons {
    gap: 10px;
  }

  .download-store-buttons .store-btn {
    width: 100%;
    max-width: 320px;
  }
}


/* Store buttons reveal timing */
/* Store buttons reveal timing */
.hero-store-buttons {
  --reveal-delay: 180ms;
}

.hero-store-buttons .store-btn:nth-child(1),
.download-store-buttons .store-btn:nth-child(1) {
  --reveal-delay: 220ms;
}

.hero-store-buttons .store-btn:nth-child(2),
.download-store-buttons .store-btn:nth-child(2) {
  --reveal-delay: 320ms;
}

.download-card .eyebrow {
  --reveal-delay: 80ms;
}

.download-card .section-title {
  --reveal-delay: 160ms;
}

.download-card .section-text {
  --reveal-delay: 240ms;
}

.download-store-buttons {
  --reveal-delay: 300ms;
}
.reveal {
  opacity: 0;
  transform: translateY(26px) scale(0.985);
  filter: blur(5px);
  transition:
    opacity .72s ease,
    transform .72s cubic-bezier(.22, 1, .36, 1),
    filter .72s ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}



/* === FIX: Platform Architecture overlap === */

/* Обычный intro-блок внутри секции НЕ должен быть sticky.
   Sticky оставляем только для боковых блоков внутри .section-grid-2. */
body.inner-page .page-section > .container:not(.section-grid-2) > .section-intro {
  position: relative !important;
  top: auto !important;
  z-index: 1;
  margin-bottom: 26px;
  transform: none !important;
  filter: none !important;
}

/* Карточки Architecture должны идти ниже intro-блока, без наложения */
body.page-platform .page-section > .container:not(.section-grid-2) > .section-intro + .layer-flow {
  margin-top: 0 !important;
  position: relative;
  z-index: 1;
  transform: none !important;
}

/* Сохраняем sticky только для нужного бокового блока:
   Designed for multiple languages and device scenarios */
body.inner-page .section-grid-2 > .section-intro {
  position: sticky !important;
  top: 124px !important;
  align-self: start !important;
  height: max-content;
  z-index: 2;
}

/* На планшете sticky остаётся */
@media (max-width: 1180px) {
  body.inner-page .section-grid-2 > .section-intro {
    position: sticky !important;
    top: 104px !important;
  }
}

/* На мобилке sticky отключаем, чтобы не перекрывал контент */
@media (max-width: 760px) {
  body.inner-page .section-grid-2 > .section-intro,
  body.inner-page .page-section > .container:not(.section-grid-2) > .section-intro {
    position: relative !important;
    top: auto !important;
  }

  body.page-platform .page-section > .container:not(.section-grid-2) > .section-intro {
    margin-bottom: 18px;
  }
}











html,
body,
#app {
    min-height: 100%;
}


body {
    margin: 0;
    min-height: 100%;
    overflow-x: hidden;
    padding-top: 82px;
}


body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* Фиксированная шапка */
.site-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 2147483647 !important;
}

/* Внутренний контейнер шапки */
.site-header .container,
.site-header .header-inner,
.site-header .container.header-inner {
    position: relative !important;
    z-index: 2147483647 !important;
}



















/* ===== iOS background repaint fix + fixed header ===== */

html,
body,
#app {
    min-height: 100%;
}

html {
    background: var(--background);
}

body {
    margin: 0;
    min-height: 100%;
    overflow-x: hidden;
    padding-top: 82px;
}


body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* Фиксированная шапка */
.site-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 2147483647 !important;
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

/* Внутренний контейнер шапки */
.site-header .container,
.site-header .header-inner,
.site-header .container.header-inner {
    position: relative !important;
    z-index: 2147483647 !important;
}

/* Чтобы якоря не прятались под fixed header */
html {
    scroll-padding-top: 90px;
}

/* Мобильная версия */
@media (max-width: 768px) {
    body {
        padding-top: 72px;
    }

    .site-header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 2147483647 !important;
    }

    html {
        scroll-padding-top: 80px;
    }
}





html, body {
  min-height: 100%;
}









