/* ==========================================================================
   Nodeme — AI Concierge for Hotels
   Brand direction: Apple-marketing-page style. White/soft-gray canvas,
   near-black type, system font stack (SF Pro on Apple devices), one blue
   accent, huge centered headlines, generous whitespace, quiet shadows.
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-raised: #f5f5f7;
  --bg-raised-2: #fbfbfd;
  --ink: #1d1d1f;
  --ink-dim: #424245;
  --ink-faint: #6e6e73; /* WCAG AA: 5.07:1 on white, 4.66:1 on --bg-raised */
  --accent: #0071e3;
  --accent-bright: #0077ed;
  --accent-soft: rgba(0, 113, 227, 0.1);
  --green: #157a43; /* WCAG AA: 5.39:1 on white */
  --line: rgba(0, 0, 0, 0.08);
  --line-bright: rgba(0, 0, 0, 0.14);
  --shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.28);
  --radius: 22px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --maxw: 1180px;
}

* {
  box-sizing: border-box;
  /* Grid/flex items default min-width to their content's min-content size,
     not 0 — long untranslated-length strings (RU/AR CTA labels, table
     cells, etc.) can silently force a track wider than the viewport.
     Resetting this globally is the standard fix. */
  min-width: 0;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

main,
header,
footer {
  position: relative;
  z-index: 1;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.8rem, 6vw, 5.6rem);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.28rem;
  line-height: 1.3;
  font-weight: 600;
}

p {
  margin: 0;
  color: var(--ink-dim);
  font-weight: 400;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ---------------------------------- header --------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: saturate(180%) blur(20px);
  background: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s ease;
}

.site-header .wrap:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.brand svg {
  width: 22px;
  height: 22px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 0.82rem;
  font-weight: 400;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-dim);
  transition: color 0.2s ease;
}
.nav-links a:hover {
  color: var(--ink);
}

.lang-switch {
  display: flex;
  gap: 2px;
  font-size: 0.74rem;
  font-weight: 600;
}
.lang-switch a {
  text-decoration: none;
  color: var(--ink-faint);
  padding: 4px 8px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.lang-switch a.is-active {
  color: var(--ink);
  background: var(--bg-raised);
}
.lang-switch a:hover {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-toggle {
  display: none;
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.nav-links-mobile {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 8px 0 18px;
  border-top: 1px solid var(--line);
}
.nav-links-mobile a {
  text-decoration: none;
  color: var(--ink-dim);
  font-size: 0.98rem;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
}
.nav-links-mobile.is-open {
  display: flex;
}

/* ---------------------------------- buttons -------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  text-align: center;
}
.btn:active {
  transform: scale(0.98);
}
.btn-primary {
  background: var(--accent);
  color: #ffffff;
}
.btn-primary:hover {
  background: var(--accent-bright);
}
.btn-ghost {
  background: transparent;
  color: var(--accent);
  border-color: transparent;
  padding-inline: 6px;
}
.btn-ghost:hover {
  color: var(--accent-bright);
}
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-bright);
}
.btn-outline:hover {
  border-color: var(--ink);
}
.btn-block {
  width: 100%;
  white-space: normal;
}

/* ---------------------------------- hero ----------------------------------- */

.hero {
  padding: 96px 0 0;
  text-align: center;
}

.hero .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.hero-copy h1 {
  margin: 14px 0 20px;
}

.hero-copy h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #0071e3, #a755f7 60%, #ff5c8d 120%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy p.lede {
  font-size: 1.3rem;
  line-height: 1.45;
  color: var(--ink-dim);
  max-width: 46ch;
  margin: 0 auto 34px;
}

.hero-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 56px;
  align-items: center;
  font-size: 1.02rem;
}
.hero-actions .btn-primary {
  padding: 14px 30px;
}

.hero-stats {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 760px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding-top: 30px;
}
.hero-stats .stat {
  flex: 1;
  min-width: 150px;
  padding: 0 18px;
  border-right: 1px solid var(--line);
}
.hero-stats .stat:last-child {
  border-right: none;
}
.hero-stats .stat b {
  display: block;
  font-family: var(--sans);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.hero-stats .stat span {
  font-size: 0.82rem;
  color: var(--ink-faint);
}

/* ------------------------------- phone mockup ------------------------------ */

.phone-stage {
  display: flex;
  justify-content: center;
  position: relative;
  padding: 70px 0 40px;
}

.phone-stage::before {
  /* Sized as min(fixed, % of container) instead of a fixed 640px + a
     clipping overflow:hidden on .phone-stage — that clip was also cutting
     off the .channel-chip badges, which intentionally sit outside the
     phone's own bounds. Scaling the glow down on narrow screens keeps it
     from ever needing to overflow in the first place. */
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(640px, 90%);
  height: min(460px, 65%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 113, 227, 0.14), transparent 65%);
  filter: blur(6px);
  z-index: 0;
}

.phone {
  position: relative;
  z-index: 1;
  width: 300px;
  height: 612px;
  border-radius: 52px;
  padding: 12px;
  background: linear-gradient(160deg, #eceef0, #cfd2d6 55%, #e7e9eb);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.6), inset 0 0 0 2px rgba(0, 0, 0, 0.06);
}

.phone-notch {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 26px;
  background: #0b0b0c;
  border-radius: 999px;
  z-index: 3;
}

.phone-screen {
  position: relative;
  height: 100%;
  border-radius: 42px;
  overflow: hidden;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.phone-bar {
  background: #f6f6f8;
  color: var(--ink);
  padding: 42px 18px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}
.phone-bar .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #34c759);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}
.phone-bar .who b {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  font-family: var(--sans);
}
.phone-bar .who span {
  font-size: 0.66rem;
  color: var(--ink-faint);
}

.phone-thread {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  overflow: hidden;
  background: #ffffff;
}

.bubble {
  max-width: 82%;
  padding: 9px 13px;
  border-radius: 18px;
  font-size: 0.82rem;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(6px);
  animation: bubble-in 0.32s ease forwards;
}
@keyframes bubble-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.bubble.guest {
  align-self: flex-end;
  background: var(--accent);
  color: #ffffff;
  border-bottom-right-radius: 5px;
}
.bubble.bot {
  align-self: flex-start;
  background: #e9e9eb;
  color: var(--ink);
  border-bottom-left-radius: 5px;
}
.bubble .tag {
  display: block;
  margin-top: 5px;
  font-size: 0.64rem;
  font-weight: 700;
  opacity: 0.75;
}

.typing {
  align-self: flex-start;
  background: #e9e9eb;
  padding: 10px 14px;
  border-radius: 18px;
  border-bottom-left-radius: 5px;
  display: inline-flex;
  gap: 4px;
}
.typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9a9a9e;
  animation: blink 1.2s infinite ease-in-out;
}
.typing span:nth-child(2) {
  animation-delay: 0.18s;
}
.typing span:nth-child(3) {
  animation-delay: 0.36s;
}
@keyframes blink {
  0%,
  80%,
  100% {
    opacity: 0.25;
  }
  40% {
    opacity: 1;
  }
}

.phone-input {
  padding: 10px 12px 14px;
  display: flex;
  gap: 8px;
  border-top: 1px solid var(--line);
}
.phone-input .field {
  flex: 1;
  background: #f2f2f4;
  border-radius: 999px;
  height: 32px;
}
.phone-input .send {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
}

.channel-chip {
  position: absolute;
  z-index: 2;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 9px 13px;
  font-size: 0.76rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 16px 30px -14px rgba(0, 0, 0, 0.25);
}
.channel-chip.c1 {
  top: 16%;
  left: calc(50% - 260px);
}
.channel-chip.c2 {
  bottom: 22%;
  right: calc(50% - 270px);
}
[dir="rtl"] .channel-chip.c1 {
  left: auto;
  right: calc(50% - 260px);
}
[dir="rtl"] .channel-chip.c2 {
  right: auto;
  left: calc(50% - 270px);
}

/* ------------------------------- marquee/logos ------------------------------ */

.marquee-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
  background: var(--bg-raised);
}
.marquee-band .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.92rem;
  color: var(--ink-faint);
  text-align: center;
}
.marquee-band .wrap span b {
  color: var(--ink);
  font-size: 1.5rem;
  font-weight: 700;
  display: block;
  letter-spacing: -0.02em;
}

/* ---------------------------------- sections -------------------------------- */

section {
  padding: 120px 0;
}

.section-head {
  max-width: 620px;
  margin: 0 0 56px;
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}
.section-head h2 {
  margin-top: 12px;
}
.section-head p {
  margin-top: 18px;
  font-size: 1.15rem;
  line-height: 1.5;
}

/* how it works */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step {
  background: var(--bg-raised);
  border-radius: var(--radius);
  padding: 34px 30px;
  position: relative;
}
.step .num {
  font-family: var(--sans);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.85;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.step h3 {
  margin-bottom: 10px;
}
.step p {
  font-size: 0.96rem;
}

/* channels */

.channels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.channel-card {
  border-radius: var(--radius);
  padding: 36px 30px;
  background: var(--bg-raised);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.channel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -30px rgba(0, 0, 0, 0.3);
}
.channel-card .icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 22px;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}
.channel-card h3 {
  margin-bottom: 8px;
}
.channel-card p {
  font-size: 0.96rem;
}

/* features */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.feature {
  background: #ffffff;
  padding: 38px 30px;
}
.feature .icon {
  font-size: 1.5rem;
  margin-bottom: 18px;
  display: block;
}
.feature h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.feature p {
  font-size: 0.92rem;
}

/* free-bot / pricing model */

.model {
  background: var(--bg-raised);
  border-radius: 28px;
  padding: 70px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}
.model > * {
  min-width: 0;
}
.model-list {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.model-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 1rem;
  color: var(--ink-dim);
}
.model-list li .mark {
  color: var(--green);
  font-weight: 800;
  flex-shrink: 0;
}
.price-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 40px 34px;
  text-align: center;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.2);
}
.price-card .big {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 3.6rem;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 10px 0 6px;
}
.price-card .big sup {
  font-size: 1.2rem;
  vertical-align: super;
  color: var(--ink-faint);
}
.price-card .fine {
  font-size: 0.8rem;
  color: var(--ink-faint);
  margin-top: 18px;
}

/* support */

.support {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}
.support-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(31, 174, 95, 0.1);
  color: var(--green);
  border-radius: 999px;
  padding: 7px 16px;
  font-weight: 600;
  font-size: 0.82rem;
  margin-bottom: 20px;
}
.support-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.support-grid .item {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
}
.support-grid .item b {
  display: block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 6px;
  color: var(--ink);
}
.support-grid .item span {
  font-size: 0.88rem;
  color: var(--ink-faint);
}

/* dashboard preview (staff side) */

.dashboard-section .wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: center;
}
.dashboard-section .wrap > * {
  min-width: 0;
}

.browser-mock {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #ffffff;
}
.browser-bar {
  background: var(--bg-raised);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid var(--line);
}
.browser-bar .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.browser-bar .dot.r {
  background: #ff5f56;
}
.browser-bar .dot.y {
  background: #ffbd2e;
}
.browser-bar .dot.g {
  background: #27c93f;
}
.browser-bar .url {
  margin-inline-start: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px 14px;
  font-size: 0.74rem;
  color: var(--ink-faint);
}

.dash-body {
  padding: 28px;
}
.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}
.dash-stat {
  background: var(--bg-raised);
  border-radius: 14px;
  padding: 16px;
}
.dash-stat b {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.dash-stat span {
  font-size: 0.7rem;
  color: var(--ink-faint);
}

.dash-table-wrap {
  position: relative;
  overflow-x: auto;
}
.dash-table-wrap::before,
.dash-table-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 20px;
  pointer-events: none;
}
.dash-table-wrap::before {
  left: 0;
  background: linear-gradient(to right, #ffffff, transparent);
}
.dash-table-wrap::after {
  right: 0;
  background: linear-gradient(to left, #ffffff, transparent);
}
.dash-scroll-hint {
  display: none;
  font-size: 0.72rem;
  color: var(--ink-faint);
  text-align: center;
  margin-top: 10px;
}
@media (max-width: 640px) {
  .dash-scroll-hint {
    display: block;
  }
}
.dash-table {
  width: 100%;
  min-width: 460px;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.dash-table th {
  text-align: start;
  color: var(--ink-faint);
  font-weight: 600;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}
.dash-table td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-dim);
}
.dash-table tr:last-child td {
  border-bottom: none;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
}
.status-chip.new {
  background: rgba(255, 69, 58, 0.12);
  color: #d70015;
}
.status-chip.pending {
  background: rgba(255, 159, 10, 0.15);
  color: #a15c00;
}
.status-chip.done {
  background: rgba(52, 199, 89, 0.14);
  color: #1f8a3d;
}

/* audience */

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* faq */

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-list details {
  background: #ffffff;
  padding: 24px 28px;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--ink-faint);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-list details[open] summary::after {
  content: "–";
}
.faq-list p {
  margin-top: 14px;
  font-size: 0.96rem;
  max-width: 68ch;
}

/* CTA */

.cta {
  text-align: center;
  border-radius: 32px;
  padding: 96px 40px;
  background: linear-gradient(180deg, #0b0b0c, #1d1d1f);
  color: #fff;
}
.cta .eyebrow {
  color: #7dd0ff;
}
.cta h2 {
  max-width: 640px;
  margin: 0 auto 18px;
  color: #ffffff;
}
.cta p {
  max-width: 520px;
  margin: 0 auto 38px;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
}
.cta .actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta .btn-outline {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}
.cta .btn-outline:hover {
  border-color: #fff;
}

.cta-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 560px;
  margin: 0 auto 18px;
}
.cta-form input {
  flex: 1;
  min-width: 180px;
  padding: 13px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.95rem;
  font-family: var(--sans);
}
.cta-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}
.cta-form input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.55);
}
.cta-note {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}
.cta-form-success {
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  background: rgba(52, 199, 89, 0.16);
  border: 1px solid rgba(52, 199, 89, 0.4);
  border-radius: 16px;
  padding: 18px 24px;
  max-width: 480px;
  margin: 0 auto;
}
.cta-note a {
  color: #7dd0ff;
  text-decoration: underline;
}

/* footer */

.site-footer {
  padding: 64px 0 34px;
  background: var(--bg-raised-2);
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer-grid h4 {
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink-faint);
  margin-bottom: 16px;
}
.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.88rem;
}
.footer-grid ul a {
  text-decoration: none;
  color: var(--ink-dim);
}
.footer-grid ul a:hover {
  color: var(--ink);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--ink-faint);
}

/* ---------------------------------- reveal ----------------------------------- */

/* Only hide [data-reveal] content once JS confirms it can reveal it again
   (html.js, set by an inline script in <head>). Without JS — crawlers,
   no-JS clients, anything that doesn't run main.js — content stays fully
   visible by default instead of vanishing forever. */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
html.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* -------------------------------- responsive -------------------------------- */

@media (max-width: 980px) {
  .steps,
  .channels,
  .features {
    grid-template-columns: 1fr;
  }
  .model {
    grid-template-columns: 1fr;
    padding: 44px 28px;
  }
  .support {
    grid-template-columns: 1fr;
  }
  .dashboard-section .wrap {
    grid-template-columns: 1fr;
  }
  .dashboard-section .wrap .browser-mock {
    order: -1;
  }
  .dash-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .audience-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-stats .stat {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding-bottom: 16px;
  }
}

/* Separate, wider breakpoint from the content-stacking one above: the
   desktop nav's six links plus lang switch plus CTA pill need more room
   than 980px, especially in Russian/Arabic where labels run longer — at
   980-1100px the brand name was colliding with the first nav link. */
@media (max-width: 1100px) {
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 640px) {
  /* The mobile menu already surfaces every nav link; drop the header's
     "Request a demo" pill so brand + lang switch + hamburger fit next to
     each other without forcing the top bar wider than the viewport. */
  .header-actions .btn-primary {
    display: none;
  }
}

@media (max-width: 560px) {
  section {
    padding: 76px 0;
  }
  .hero {
    padding-top: 60px;
  }
  .cta {
    padding: 60px 24px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .channel-chip {
    display: none;
  }
}
