:root {
  --cream: #fcf5eb;
  --ink: #1c1e21;
  --ink-deep: #111b21;
  --green: #25d366;
  --green-deep: #1ebe57;
  --muted: #5e5e5e;
  --mint: #e6ffda;
  --blue: #0373e9;
  --header: 80px;
  --content: 1080px;
  --sans: "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html[dir="rtl"] body { text-align: right; }
html[dir="rtl"] .site-header {
  grid-template-columns: 1fr auto 1fr;
}
html[dir="rtl"] .brand { justify-self: end; }
html[dir="rtl"] .header-actions { justify-self: start; }
html[dir="rtl"] .hero-copy { left: auto; right: 8%; text-align: right; }
html[dir="rtl"] .more svg { transform: scaleX(-1); }
html[dir="rtl"] .news-nav button svg { transform: scaleX(-1); }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.45;
}
img { max-width: 100%; display: block; }
button, a { font-family: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 32px;
  background: var(--cream);
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck { border-bottom-color: rgba(17, 27, 33, 0.08); }
.brand { display: flex; align-items: center; justify-self: start; }
.brand img { height: 30px; width: auto; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-link, .nav-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 500;
  line-height: 20px;
  background: none;
  border: 0;
  padding: 0;
}
.nav-link:hover, .nav-button:hover { opacity: 0.72; }
.nav-button .chevron { transition: transform 0.2s ease; }
.nav-button[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.nav-item { position: relative; }
.dropdown {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 196px;
  padding: 8px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(17, 27, 33, 0.14);
}
.dropdown a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 500;
}
.dropdown a:hover { background: #f6f1e8; }
.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-actions .btn { min-width: 106px; }
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  justify-self: end;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 20px;
  border-radius: 50px;
  font-size: 17px;
  line-height: 16px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn--green {
  background: var(--green);
  color: var(--ink);
  border-color: var(--ink);
  font-weight: 500;
}
.btn--green:hover { background: var(--green-deep); }
.btn--white {
  background: #fff;
  color: var(--ink);
  border-color: var(--ink-deep);
  font-weight: 500;
  min-height: 47px;
}
.btn--white:hover { background: #f7f7f7; }
.btn--hero {
  min-height: 52px;
  min-width: 122px;
  margin-top: 28px;
  font-weight: 400;
}
.btn--mac { min-height: 52px; padding: 12px 22px; font-weight: 400; }
.btn--line {
  min-height: 44px;
  padding: 10px 22px;
  background: #fff;
  border: 1px solid var(--ink);
  border-radius: 50px;
  font-size: 17px;
}
.btn--line:hover { background: #f6f6f6; }

.hero { padding: 32px 32px 0; }
.hero-card {
  position: relative;
  width: 100%;
  aspect-ratio: 1856 / 656;
  border-radius: 25px;
  overflow: hidden;
  background: #c9b8a4;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 16, 12, 0.28) 0%, rgba(20, 16, 12, 0.08) 26%, rgba(20, 16, 12, 0) 46%);
  pointer-events: none;
}
.hero-copy {
  position: absolute;
  left: 20.9%;
  top: 8%;
  width: min(323px, 34%);
  color: #fff;
  z-index: 2;
}
.hero-copy h1 {
  margin: 0;
  font-size: clamp(56px, 4.22vw, 81px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}
.hero-copy p {
  margin: 18px 0 0;
  font-size: 19px;
  line-height: 25px;
}
.sticker {
  position: absolute;
  z-index: 2;
  height: auto;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.12));
}
.sticker-class { left: 55.6%; top: 9.3%; width: 23.5%; }
.sticker-bubble { left: 69%; top: 22.6%; width: 9.4%; }
.sticker-secure { left: 56.3%; top: 34.1%; width: 14.1%; }
.sticker-react { left: 58.1%; top: 40.5%; width: 5%; }
.fine-print {
  margin: 14px 8px 0 auto;
  width: max-content;
  max-width: 100%;
  color: var(--muted);
  font-size: 13px;
  line-height: 16px;
}

.hello {
  display: flex;
  justify-content: center;
  padding: 56px 24px;
}
.hello img { width: min(1360px, 100%); height: auto; }
.hello--narrow { display: none; }

.statement {
  width: min(900px, calc(100% - 80px));
  margin: 8px auto 36px;
  text-align: center;
}
.statement h2 {
  margin: 0;
  font-size: clamp(32px, 2.55vw, 49px);
  font-weight: 400;
  line-height: 1.15;
}

.band { padding: 72px 0; }
.split {
  width: min(var(--content), calc(100% - 80px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.9fr;
  gap: 72px;
  align-items: center;
}
.split--reverse { grid-template-columns: 0.9fr 1.05fr; }
.split--reverse .visual { order: 2; }
.copy h2 {
  margin: 0;
  max-width: 450px;
  font-size: clamp(40px, 3.18vw, 61px);
  font-weight: 400;
  line-height: 1.05;
}
.copy p {
  margin: 18px 0 0;
  max-width: 450px;
  font-size: 19px;
  line-height: 25px;
}
.more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-size: 17px;
  line-height: 16px;
}
.more:hover { opacity: 0.7; }
.visual img { width: 100%; height: auto; }
.visual--phone { display: flex; justify-content: center; }
.visual--phone img { width: min(332px, 78%); }
.mac-shot { width: min(586px, 100%); margin-left: -12px; }

.band--dark {
  background: var(--ink-deep);
  color: #fff;
  padding: 96px 0;
}
.band--dark .more { color: #fff; }

.groups-stage, .express-stage {
  position: relative;
  height: 640px;
}
.groups-stage .group-chat {
  position: absolute;
  width: 430px;
  max-width: 92%;
  left: 0;
  top: 86px;
  z-index: 0;
}
.groups-stage .group-phone {
  position: absolute;
  width: 300px;
  right: 0;
  top: 0;
  margin: 0;
  z-index: 1;
}
.express-stage .person {
  width: min(325px, 72%);
  border-radius: 28px;
}
.express-stage .status {
  position: absolute;
  width: min(270px, 62%);
  left: 18px;
  bottom: 18px;
}
.business-phone { width: min(326px, 80%); margin-left: auto; }

.news {
  background: var(--mint);
  padding: 88px 0 96px;
  position: relative;
  z-index: 1;
}
.news-layout {
  display: grid;
  grid-template-columns: minmax(240px, 436px) minmax(0, 1fr);
  column-gap: clamp(28px, 7.3vw, 140px);
  align-items: stretch;
  padding-left: max(32px, calc((100% - 1440px) / 2));
}
.news-copy {
  display: flex;
  flex-direction: column;
  min-height: 514px;
}
.news-copy h2 {
  margin: 0;
  max-width: 7.2em;
  font-size: clamp(42px, 3.2vw, 61px);
  font-weight: 400;
  line-height: 1;
}
.news-copy p {
  margin: 16px 0 0;
  max-width: 436px;
  font-size: 13px;
  line-height: 17.5px;
}
.news-nav { display: flex; gap: 16px; margin-top: auto; padding-top: 40px; }
.news-nav button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  display: grid;
  place-items: center;
}
.news-nav button:hover:not(:disabled) { background: rgba(255, 255, 255, 0.45); }
.news-nav button:disabled { opacity: 0.35; cursor: default; }
.news-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 0 32px 0 0;
}
.news-track::-webkit-scrollbar { display: none; }
.news-card {
  flex: 0 0 504px;
  scroll-snap-align: start;
  background: #fff;
  border-radius: 25px;
  min-height: 514px;
  padding: 56px;
  display: flex;
  flex-direction: column;
}
.card-mark {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.news-card h3 {
  margin: 28px 0 0;
  font-size: 33px;
  font-weight: 400;
  line-height: 1;
}
.news-card p {
  margin: 20px 0 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 22px;
}
.news-card .btn--line {
  margin-top: auto;
  align-self: flex-start;
  min-height: 50px;
  padding: 14px 22px;
}

.site-footer {
  background: var(--ink-deep);
  color: #fff;
  margin-top: 0;
  padding: 64px 0 28px;
}
.footer-top {
  width: min(1120px, calc(100% - 80px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 200px repeat(4, 1fr);
  gap: 12px 24px;
}
.footer-brand img { height: 37px; width: auto; }
.footer-brand .btn--green {
  margin-top: 72px;
  border-color: transparent;
  min-width: 122px;
}
.site-footer h2 {
  margin: 8px 0 18px;
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.62);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: 16px; }
.site-footer li a { font-size: 19px; line-height: 23px; }
.site-footer li a:hover { text-decoration: underline; }
.footer-bottom {
  width: min(1120px, calc(100% - 80px));
  margin: 56px auto 0;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13px;
  line-height: 16px;
}
.footer-bottom .legal { color: var(--blue); font-size: 13px; }
.footer-bottom .legal:hover { text-decoration: underline; }
.socials { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.socials a { display: grid; place-items: center; color: #fff; }
.socials a:hover { opacity: 0.7; }
.lang { position: relative; }
.lang-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: var(--ink-deep);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
}
.lang-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  width: 220px;
  max-height: 280px;
  overflow: auto;
  background: #fff;
  color: var(--ink);
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}
.lang-menu button {
  display: block;
  width: 100%;
  text-align: start;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 15px;
}
.lang-menu button:hover, .lang-menu button[aria-current="true"] { background: #f3f0ea; }

@media (max-width: 1100px) {
  .hero-copy { left: 6%; top: 10%; width: min(300px, 46%); }
  .news-copy { min-height: 0; }
  .news-card { flex-basis: min(504px, 82vw); min-height: 460px; padding: 36px; }
  .news-card h3 { font-size: 28px; }
  .sticker { display: none; }
  .split, .split--reverse { grid-template-columns: 1fr; gap: 36px; }
  .split--reverse .visual { order: 0; }
  .mac-shot, .business-phone, .groups-stage .group-phone { margin: 0 auto; }
  .groups-stage, .express-stage { height: auto; min-height: 0; }
  .groups-stage .group-chat, .groups-stage .group-phone, .express-stage .status { position: static; width: min(320px, 100%); margin: 12px auto 0; }
  .news-layout { grid-template-columns: 1fr; row-gap: 28px; padding-right: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand .btn--green { margin-top: 24px; }
}

@media (max-width: 860px) {
  .site-header { grid-template-columns: 1fr auto auto; }
  .nav-toggle { display: grid; place-items: center; }
  .header-actions .btn--white { display: none; }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 20px;
    background: var(--cream);
    border-bottom: 1px solid rgba(17, 27, 33, 0.08);
  }
  .site-nav.is-open { display: flex; }
  .site-nav .nav-link, .site-nav .nav-button {
    padding: 14px 8px;
    justify-content: space-between;
  }
  .dropdown {
    position: static;
    transform: none;
    box-shadow: none;
    background: transparent;
    padding: 0 0 8px 12px;
  }
  .hero { padding: 16px 16px 0; }
  .hero-card { border-radius: 20px; }
  .hero-copy h1 { font-size: 48px; }
  .hero-copy p { font-size: 16px; line-height: 22px; }
  .fine-print { margin-right: 4px; font-size: 12px; }
  .hello { padding: 28px 0; }
  .hello--wide { display: none; }
  .hello--narrow { display: flex; }
  .statement { width: min(100% - 40px, 640px); }
  .band { padding: 48px 0; }
  .split, .split--reverse { width: min(100% - 40px, var(--content)); }
  .news { padding-top: 48px; }
  .news-card { flex-basis: 300px; min-height: 420px; padding: 28px; }
  .news-card h3 { font-size: 24px; }
  .site-footer { padding-top: 72px; }
  .footer-top, .footer-bottom { width: min(100% - 40px, 1120px); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .socials { margin-left: 0; }
}

/* Security Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(17, 27, 33, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-overlay[hidden] {
  display: none;
}

.modal-content {
  background: #fff;
  border-radius: 20px;
  padding: 48px 40px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(17, 27, 33, 0.3);
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-title {
  margin: 0 0 20px;
  font-size: 32px;
  font-weight: 600;
  color: var(--ink-deep);
  line-height: 1.2;
}

.modal-body {
  margin: 0 0 20px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
}

.cf-slot {
  display: flex;
  justify-content: center;
  width: 100%;
  min-height: 65px;
  margin: 0 0 24px;
}

.cf-slot[hidden] {
  display: none;
}

.cf-error {
  margin: -8px 0 16px;
  color: #d93025;
  font-size: 14px;
}

.cf-error[hidden] {
  display: none;
}

.modal-button {
  width: 100%;
  min-height: 52px;
  font-size: 18px;
  font-weight: 500;
}

.modal-button:disabled {
  opacity: 0.55;
  cursor: default;
}

@media (max-width: 768px) {
  .modal-content {
    padding: 36px 28px;
  }
  
  .modal-title {
    font-size: 28px;
  }
  
  .modal-body {
    font-size: 16px;
  }
  
  .modal-button {
    min-height: 48px;
    font-size: 17px;
  }
}
