/* MCTL Rewards landing — Direction C "Minimal Editorial".
   Warm off-white, single restrained blue accent, very large Onest type,
   hairline dividers. The product mockups (.mck-*) keep the real app's dark
   Telegram palette so the shots read as authentic. Fonts loaded in Base.astro. */

:root {
  --bg: #fafaf7;
  --ink: #15171b;
  --muted: #6a6e76;
  --accent: #2d7df6;
  --line: #e7e6e1;
  --wrap: 1000px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Onest', system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---- layout ---- */
.wrap,
.container {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 60px;
}

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--ink);
  color: #fff;
  font-weight: 500;
  font-size: 16px;
  padding: 15px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
  background: #000;
  transform: translateY(-1px);
  box-shadow: 0 12px 26px -14px rgba(0, 0, 0, 0.55);
}

.btn.sm {
  padding: 11px 20px;
  font-size: 14.5px;
}

.btn.line {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn.line:hover {
  background: rgba(0, 0, 0, 0.03);
  box-shadow: none;
}

.btn .arrow,
.arrow {
  color: currentColor;
  font-weight: 600;
}

/* ---- nav ---- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 34px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.logo {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 15px;
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 34px;
  color: var(--muted);
  font-size: 15px;
}

.navlinks a:not(.btn) {
  position: relative;
  transition: color 0.2s ease;
}

.navlinks a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.navlinks a:not(.btn):hover {
  color: var(--ink);
}

.navlinks a:not(.btn):hover::after {
  transform: scaleX(1);
}

/* ---- hero ---- */
.hero {
  padding: 60px 0 70px;
}

.eyebrow {
  font-size: 15px;
  color: var(--accent);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 9px;
}

.eyebrow::before {
  content: '';
  width: 26px;
  height: 1px;
  background: var(--accent);
}

.hero h1 {
  font-size: 84px;
  margin: 26px 0 0;
  letter-spacing: -0.04em;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.herorow {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 50px;
  margin-top: 30px;
}

.hero p {
  margin: 0;
  font-size: 21px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 440px;
}

.heroctas {
  display: flex;
  gap: 14px;
}

/* one orchestrated page-load reveal (guarded by reduced-motion below) */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero .eyebrow,
.hero h1,
.herorow {
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero h1 {
  animation-delay: 0.08s;
}

.herorow {
  animation-delay: 0.16s;
}

/* ---- dividers + value strip ---- */
.rule {
  height: 1px;
  background: var(--line);
}

.strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding: 34px 0;
}

.strip div b {
  display: block;
  font-size: 15px;
  font-weight: 600;
}

.strip div p {
  margin: 5px 0 0;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.45;
}

/* ---- sections ---- */
section {
  padding: 90px 0;
}

.lbl {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.h2 {
  font-size: 52px;
  margin-top: 22px;
  letter-spacing: -0.035em;
}

/* ---- how it works ---- */
.steps {
  margin-top: 54px;
}

.step {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: 40px;
  align-items: baseline;
  padding: 36px 0;
  border-top: 1px solid var(--line);
}

.step:last-child {
  border-bottom: 1px solid var(--line);
}

.step .idx {
  font-size: 18px;
  color: var(--accent);
  font-weight: 500;
}

.step h3 {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.step p {
  margin: 0;
  font-size: 17px;
  color: var(--muted);
  line-height: 1.55;
}

.step p b {
  color: var(--ink);
  font-weight: 500;
}

/* ---- operator section ---- */
.opslead {
  margin-top: 22px;
  font-size: 19px;
  color: var(--muted);
  max-width: 580px;
  line-height: 1.55;
}

.opsphones {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-top: 56px;
}

.opsphones figure {
  margin: 0;
  text-align: center;
}

.opsphones figcaption {
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
}

.opsgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  margin-top: 66px;
}

.opsgrid h3 {
  margin-top: 6px;
  font-size: 28px;
  letter-spacing: -0.028em;
}

.tagline {
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.caps {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.caps li {
  position: relative;
  padding-left: 24px;
  font-size: 16.5px;
  color: var(--muted);
  line-height: 1.5;
}

.caps li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
}

.caps li b {
  color: var(--ink);
  font-weight: 600;
}

/* ---- showcase ---- */
.showcase {
  text-align: center;
}

.phones {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 40px;
  margin-top: 60px;
}

.phones figure {
  margin: 0;
  transition: transform 0.25s ease;
}

.phones figure:hover {
  transform: translateY(-6px);
}

.phones figcaption {
  margin-top: 20px;
  font-size: 14px;
  color: var(--muted);
}

/* ---- final CTA ---- */
.cta {
  text-align: center;
  padding: 110px 0;
}

.cta h2 {
  font-size: 64px;
  letter-spacing: -0.04em;
}

.cta p {
  margin: 18px 0 0;
  font-size: 19px;
  color: var(--muted);
}

.cta .btn {
  margin-top: 36px;
}

/* ---- footer ---- */
.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 34px 0 60px;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--line);
}

.foot a {
  color: var(--muted);
  margin-left: 26px;
  transition: color 0.2s ease;
}

.foot a:hover {
  color: var(--ink);
}

/* ---- legal / content pages (privacy, terms, 404) ---- */
.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 72px 0;
}

.doc h1 {
  font-size: clamp(34px, 5vw, 52px);
  margin: 0 0 8px;
  letter-spacing: -0.03em;
}

.doc .draft {
  display: inline-block;
  background: rgba(45, 125, 246, 0.08);
  color: var(--accent);
  border: 1px solid rgba(45, 125, 246, 0.25);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 13px;
  margin-bottom: 24px;
}

.doc h2 {
  margin-top: 32px;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.doc p,
.doc li {
  color: var(--muted);
  line-height: 1.65;
}

.doc a {
  color: var(--accent);
}

.doc a.back {
  display: inline-block;
  margin-top: 32px;
}

/* ============================================================
   Product mockups — dark Telegram palette (faithful to the app)
   ============================================================ */
.mck-phone {
  --mck-bg: #0e1621;
  --mck-card: #19242f;
  --mck-pill: #2f88e5;
  --mck-accent: #3b92ee;
  --mck-ink: #fff;
  --mck-sub: #7c8b9a;
  --mck-line: rgba(255, 255, 255, 0.055);
  width: var(--w);
  height: var(--h);
  flex: 0 0 auto;
  background: #0a0f16;
  border-radius: calc(var(--w) * 0.135);
  padding: calc(var(--w) * 0.03);
  box-shadow: 0 40px 80px -28px rgba(15, 25, 45, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  position: relative;
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
}

.mck-screen {
  width: 100%;
  height: 100%;
  border-radius: calc(var(--w) * 0.105);
  overflow: hidden;
  background: var(--mck-bg);
  position: relative;
}

.mck-notch {
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(var(--w) * 0.3);
  height: calc(var(--w) * 0.04);
  background: #000;
  border-radius: 20px;
  z-index: 5;
}

/* real app screenshots inside the device frame (replaces the old CSS mockups) */
.mck-shot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* ---- responsive ---- */
@media (max-width: 860px) {
  .wrap,
  .container {
    padding: 0 24px;
  }
  .nav {
    padding: 24px 0;
  }
  .navlinks {
    gap: 18px;
    font-size: 14px;
  }
  .hero {
    padding: 40px 0 50px;
  }
  .hero h1 {
    font-size: clamp(40px, 11vw, 66px);
  }
  .herorow {
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
  }
  .hero p {
    max-width: none;
  }
  section {
    padding: 60px 0;
  }
  .h2 {
    font-size: clamp(30px, 7vw, 44px);
  }
  .cta {
    padding: 72px 0;
  }
  .cta h2 {
    font-size: clamp(34px, 8vw, 52px);
  }
  .strip {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .step {
    grid-template-columns: 40px 1fr;
    gap: 8px 18px;
  }
  .step .idx {
    grid-row: span 2;
  }
  .step h3,
  .step p {
    grid-column: 2;
  }
  .step p {
    margin-top: 8px;
  }
  .opsgrid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .opsphones {
    flex-direction: column;
    align-items: center;
    gap: 44px;
  }
  .phones {
    flex-wrap: wrap;
    gap: 28px;
  }
}

@media (max-width: 540px) {
  .navlinks a:not(.btn) {
    display: none;
  }
}

/* ---- motion preferences ---- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .hero .eyebrow,
  .hero h1,
  .herorow {
    opacity: 1;
    transform: none;
  }
}
