/* yumoff.com — the messenger's own page. Dark like the app; the accent is the icon's blue. */
:root {
  --bg: #0b0d12;
  --surface: #141821;
  --surface-2: #1b2030;
  --line: #262c3b;
  --text: #eef1f7;
  --muted: #9aa3b5;
  --blue: #5eb5f7;
  --blue-2: #3a6ff0;
  --violet: #8e6cf0;
  --radius: 22px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: Montserrat, Inter, sans-serif; line-height: 1.15; margin: 0; }

/* soft coloured light behind everything */
.glow { position: fixed; z-index: -1; width: 620px; height: 620px; border-radius: 50%; filter: blur(110px); opacity: .32; pointer-events: none; }
.g1 { background: var(--blue-2); top: -220px; right: -160px; }
.g2 { background: var(--violet); bottom: -260px; left: -200px; opacity: .22; }

/* header */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 28px;
  padding: 14px max(16px, calc((100vw - 1160px) / 2));
  background: rgba(11, 13, 18, .72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}
.brand { display: flex; align-items: center; gap: 10px; font: 800 20px Montserrat, sans-serif; letter-spacing: 1px; }
.top nav { display: flex; gap: 24px; margin-left: auto; color: var(--muted); font-weight: 500; }
.top nav a:hover { color: var(--text); }
.top-right { display: flex; align-items: center; gap: 10px; }
.lang { background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 10px; padding: 6px 10px; font: 600 13px Inter, sans-serif; cursor: pointer; }
.lang:hover { color: var(--text); border-color: var(--muted); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 24px; border-radius: 16px;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  color: #fff; font-weight: 600;
  box-shadow: 0 10px 30px rgba(58, 111, 240, .35);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(58, 111, 240, .45); }
.btn span { display: flex; flex-direction: column; line-height: 1.2; }
.btn small { font-weight: 500; opacity: .8; font-size: 12px; }
.btn.ghost { background: var(--surface); box-shadow: none; border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--muted); }
.btn.small { padding: 9px 16px; border-radius: 12px; font-size: 14px; box-shadow: none; }
.btn.big { padding: 18px 30px; font-size: 17px; }

/* hero */
.hero {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center;
  max-width: 1160px; margin: 0 auto; padding: 70px 16px 40px; min-height: calc(100vh - 64px);
}
.pill { display: inline-block; padding: 7px 14px; border-radius: 99px; background: rgba(94, 181, 247, .12); color: var(--blue); font-weight: 600; font-size: 14px; margin-bottom: 22px; }
h1 { font-size: clamp(40px, 6vw, 68px); font-weight: 800; letter-spacing: -1px; }
.grad { background: linear-gradient(90deg, var(--blue), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 19px; color: var(--muted); max-width: 540px; margin: 22px 0 32px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; }
.cta.center { justify-content: center; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: 14px; }
.ticks li::before { content: "✓"; color: var(--blue); margin-right: 7px; font-weight: 700; }

/* phones */
.phone {
  border-radius: 34px; padding: 9px; background: #05060a;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), inset 0 0 0 1.5px #2a3040;
  overflow: hidden;
}
.phone img { border-radius: 26px; width: 100%; aspect-ratio: 9 / 20; object-fit: cover; object-position: top; }
.hero-phones { position: relative; height: 640px; }
.hero-phones .phone { position: absolute; width: 270px; }
.hero-phones .front { left: 50%; top: 10px; transform: translateX(-30%) rotate(4deg); z-index: 2; animation: float 7s ease-in-out infinite; }
.hero-phones .back { left: 50%; top: 70px; transform: translateX(-100%) rotate(-7deg); opacity: .9; animation: float 7s ease-in-out -3.5s infinite; }
.hero-phones.small { height: 560px; }
.hero-phones.small .phone { width: 240px; }
@keyframes float { 50% { margin-top: -14px; } }

/* sections */
.block { max-width: 1160px; margin: 0 auto; padding: 90px 16px; }
h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; text-align: center; letter-spacing: -.5px; }
.sub { color: var(--muted); text-align: center; font-size: 18px; margin: 14px auto 46px; max-width: 620px; }
.sub.left { text-align: left; margin-left: 0; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px;
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: #3a4560; }
.ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; background: rgba(94, 181, 247, .12); margin-bottom: 16px; }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* screenshots: a row that scrolls sideways */
.shots { display: flex; gap: 26px; overflow-x: auto; padding: 10px 4px 26px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.shots figure { margin: 0; flex: 0 0 230px; scroll-snap-align: center; text-align: center; }
.shots figcaption { color: var(--muted); margin-top: 14px; font-weight: 500; }

/* two columns */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.split h2 { text-align: left; }
.steps { padding-left: 22px; margin: 0; }
.steps li { margin: 0 0 16px; color: var(--muted); }
.steps b { color: var(--text); }
.lock { display: grid; place-items: center; }
.lock-card { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 30px 40px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.lock-card .me { align-self: flex-end; } .lock-card .them { align-self: flex-start; }
.bubble { padding: 10px 16px; border-radius: 16px; font-weight: 500; }
.bubble.me { background: #2b4d86; }
.bubble.them { background: #262c3b; }
.bubble.enc { background: #0f1220; color: #6f7a92; font-family: ui-monospace, Menlo, monospace; border: 1px dashed #3a4560; }
.arrow { color: var(--blue); font-size: 22px; }
.lock-cap { color: var(--muted); font-size: 14px; margin-top: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips span { padding: 9px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 15px; }

/* the web version in a browser window */
.browser { max-width: 900px; margin: 0 auto; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.browser .bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #191d28; }
.browser .bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a4052; }
.browser .bar i:first-child { background: #ef5f57; } .browser .bar i:nth-child(2) { background: #f5bf4f; } .browser .bar i:nth-child(3) { background: #58c757; }
.browser .bar span { margin: 0 auto; color: var(--muted); font-size: 13px; background: #0f1219; padding: 3px 18px; border-radius: 8px; }

/* download */
.download { text-align: center; }
.download { background: radial-gradient(ellipse at top, rgba(58, 111, 240, .18), transparent 60%); border-radius: 34px; }
.dl-logo { margin: 0 auto 18px; filter: drop-shadow(0 12px 30px rgba(58, 111, 240, .5)); }
.howto { max-width: 520px; margin: 36px auto 0; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 20px; }
.howto summary { cursor: pointer; font-weight: 600; }
.howto ol { color: var(--muted); margin: 12px 0 4px; padding-left: 20px; }

footer.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; justify-content: space-between; max-width: 1160px; margin: 0 auto; padding: 34px 16px 50px; border-top: 1px solid var(--line); color: var(--muted); }
.foot .brand { font-size: 16px; color: var(--text); }
.foot .links { display: flex; gap: 22px; }
.foot a:hover { color: var(--text); }

/* appearing on scroll (only with the script running: without it everything simply shows) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-phones .phone { animation: none; }
}

/* narrower screens */
@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .top nav { display: none; }
  .top-right { margin-left: auto; }
}
@media (max-width: 820px) {
  .hero, .split { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; min-height: 0; text-align: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .cta, .ticks { justify-content: center; }
  .hero-phones { height: 520px; }
  .hero-phones .phone { width: 220px; }
  .split h2, .sub.left { text-align: center; margin-left: auto; }
  .split.rev .hero-phones { order: 2; }
  .chips { justify-content: center; }
  .block { padding: 64px 16px; }
}
@media (max-width: 520px) {
  .grid { grid-template-columns: 1fr; }
  .hero-phones { height: 440px; }
  .hero-phones .phone { width: 180px; }
  .btn { width: 100%; justify-content: center; }
  .foot { flex-direction: column; text-align: center; }
}
