:root {
  color-scheme: dark;
  --bg: #07111f;
  --bg-2: #0d1b2c;
  --surface: rgba(255, 255, 255, 0.075);
  --surface-strong: rgba(255, 255, 255, 0.13);
  --border: rgba(255, 255, 255, 0.15);
  --text: #f5f8fc;
  --muted: #b8c6d8;
  --soft: #7f90a6;
  --facebook: #1877f2;
  --facebook-light: #58a6ff;
  --green: #28c76f;
  --red: #ff3b47;
  --warning: #ffae42;
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 82% 6%, rgba(24, 119, 242, 0.32), transparent 28rem),
    radial-gradient(circle at 20% 88%, rgba(40, 199, 111, 0.13), transparent 24rem),
    linear-gradient(140deg, #050b14 0%, var(--bg) 48%, #0d1b2c 100%);
  color: var(--text);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background-image:
    linear-gradient(120deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(62deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 92px 92px, 120px 120px;
  mask-image: linear-gradient(to bottom, #000, rgba(0, 0, 0, 0.3));
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.boot-loader {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  gap: 18px;
  background: #050b14;
  animation: boot-fallback 0.45s ease 1.4s forwards;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.boot-loader.is-hidden {
  visibility: hidden;
  opacity: 0;
}

.boot-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.boot-mark span {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 16px;
  background: var(--facebook);
  box-shadow: 0 18px 55px rgba(24, 119, 242, 0.36);
}

.boot-mark strong {
  font-size: 34px;
}

.boot-line {
  width: min(320px, 72vw);
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.boot-line span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--facebook), var(--green));
  animation: load 1.2s ease-in-out infinite;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  width: min(1180px, calc(100% - 32px));
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto;
  padding: 18px 0;
  backdrop-filter: blur(18px);
}

.brand,
.site-nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--facebook), #0b4fb3);
  box-shadow: 0 12px 34px rgba(24, 119, 242, 0.28);
}

.site-nav {
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(6, 16, 29, 0.78);
}

.site-nav a {
  padding: 10px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  min-height: calc(100vh - 82px);
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  align-items: center;
  gap: 52px;
  padding: 54px 0 82px;
}

.status-line,
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--facebook-light);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.status-line span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 7px rgba(40, 199, 111, 0.16);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(48px, 7.5vw, 92px);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 24px;
  line-height: 1.12;
}

.hero-text,
.muted,
.copy-block p,
.feature-card p,
.download-band p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.hero-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: var(--facebook);
  color: #fff;
  box-shadow: 0 18px 40px rgba(24, 119, 242, 0.28);
}

.button.is-disabled {
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.12);
  color: var(--muted);
  box-shadow: none;
}

.button.secondary {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 38px 0 0;
}

.hero-facts div {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.065);
}

.hero-facts dt {
  margin-bottom: 6px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-facts dd {
  margin: 0;
  font-weight: 800;
}

.hero-visual {
  position: relative;
  min-height: 560px;
  perspective: 1200px;
}

.phone-stage {
  position: absolute;
  right: 38px;
  top: 48px;
  width: 390px;
  height: 500px;
  transform: rotateY(-11deg) rotateX(4deg);
  transform-style: preserve-3d;
}

.phone-shell {
  position: absolute;
  inset: 0;
  padding: 24px;
  border: 3px solid rgba(255, 255, 255, 0.78);
  border-radius: 44px;
  background: linear-gradient(145deg, #edf7ff, #506f82 72%);
  box-shadow:
    40px 42px 0 rgba(12, 34, 55, 0.55),
    0 42px 80px rgba(0, 0, 0, 0.42);
}

.phone-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(160deg, #07111f, #0e3454);
}

.preview-window {
  position: absolute;
  inset: 30px 26px auto;
  height: 184px;
  border: 3px solid var(--facebook);
  border-radius: 20px;
  background:
    radial-gradient(circle at 70% 36%, rgba(24, 119, 242, 0.8), transparent 88px),
    linear-gradient(145deg, #142b4a, #07111f);
}

.kbps-chip {
  position: absolute;
  right: 14px;
  bottom: 14px;
  min-width: 96px;
  padding: 9px 11px;
  border: 1px solid rgba(40, 199, 111, 0.7);
  border-radius: 8px;
  background: rgba(3, 12, 18, 0.78);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  text-align: right;
}

.kbps-chip small,
.kbps-chip strong {
  display: block;
}

.kbps-chip small {
  color: var(--green);
  font-size: 10px;
  font-weight: 900;
}

.kbps-chip strong {
  margin-top: 2px;
  font-size: 22px;
  line-height: 1;
}

.rec-dot,
.live-dot {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--red);
}

.rec-dot {
  position: absolute;
  left: 18px;
  top: 18px;
}

.fb-logo {
  position: absolute;
  right: 80px;
  top: 40px;
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 18px;
  background: var(--facebook);
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
}

.opening-slate {
  position: absolute;
  left: 18px;
  bottom: 16px;
  width: 150px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  background: rgba(5, 11, 20, 0.82);
}

.opening-slate strong,
.opening-slate span {
  display: block;
}

.opening-slate strong {
  font-size: 15px;
}

.opening-slate span {
  margin-top: 4px;
  color: var(--warning);
  font-size: 12px;
  font-weight: 900;
}

.audio-panel {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 124px;
  display: grid;
  grid-template-columns: 118px 1fr;
  align-items: end;
  gap: 18px;
  padding: 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.14);
}

.audio-panel strong,
.audio-panel small {
  display: block;
}

.audio-panel small {
  margin-top: 5px;
  color: var(--muted);
}

.meters {
  display: flex;
  height: 78px;
  align-items: end;
  gap: 8px;
}

.meters span {
  width: 12px;
  border-radius: 99px 99px 0 0;
  background: linear-gradient(to top, var(--green), #9fffd0);
  animation: meter 1.5s ease-in-out infinite;
}

.meters span:nth-child(2n) {
  animation-delay: 0.22s;
}

.meters span:nth-child(3n) {
  animation-delay: 0.38s;
}

.reconnect-banner {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  color: #07111f;
}

.network-strip {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 8px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.reconnect-banner button {
  border: 0;
  border-radius: 8px;
  padding: 10px 12px;
  background: #101823;
  color: #fff;
  font-weight: 800;
}

.signal-card,
.floating-chip {
  position: absolute;
  border-radius: 999px;
  font-weight: 800;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.signal-card {
  left: 28px;
  top: 102px;
  z-index: 2;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 10px;
  padding: 16px 20px;
  background: var(--facebook);
}

.signal-card small {
  grid-column: 2;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.floating-chip {
  left: 8px;
  bottom: 130px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.92);
  color: #07111f;
}

.floating-chip.right {
  left: auto;
  right: 4px;
  top: 52px;
  bottom: auto;
}

.section {
  padding: 92px 0;
}

.two-column,
.app-flow,
.preview-section,
.opening-section,
.download-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: center;
}

.copy-block {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.platform-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.platform {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-weight: 800;
}

.platform.active {
  border-color: rgba(24, 119, 242, 0.7);
  background: rgba(24, 119, 242, 0.2);
  color: #fff;
}

.opening-console {
  padding: 22px;
  border: 1px solid rgba(255, 174, 66, 0.36);
  border-radius: 8px;
  background:
    linear-gradient(150deg, rgba(255, 174, 66, 0.13), transparent 34%),
    rgba(255, 255, 255, 0.065);
}

.opening-video {
  min-height: 220px;
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 22px;
  border: 2px solid rgba(255, 174, 66, 0.6);
  border-radius: 8px;
  background:
    radial-gradient(circle at 80% 20%, rgba(24, 119, 242, 0.5), transparent 9rem),
    linear-gradient(145deg, #121b29, #06101d);
}

.opening-video span,
.opening-video small {
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}

.opening-video strong {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
}

.opening-video small {
  color: var(--warning);
  text-transform: none;
}

.opening-timeline {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.opening-step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 4px 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.opening-step.active {
  border-color: rgba(40, 199, 111, 0.5);
  background: rgba(40, 199, 111, 0.12);
}

.opening-step span {
  display: grid;
  width: 42px;
  height: 42px;
  grid-row: span 2;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--facebook-light);
  font-weight: 900;
}

.opening-step strong {
  color: #fff;
}

.opening-step em {
  color: var(--muted);
  font-style: normal;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 40px 0 92px;
}

.network-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 48px;
  align-items: center;
}

.network-panel {
  padding: 22px;
  border: 1px solid rgba(24, 119, 242, 0.34);
  border-radius: 8px;
  background:
    radial-gradient(circle at 88% 10%, rgba(40, 199, 111, 0.18), transparent 16rem),
    rgba(255, 255, 255, 0.07);
}

.network-main {
  min-height: 190px;
  padding: 24px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(24, 119, 242, 0.32), rgba(6, 16, 29, 0.86));
}

.network-main span,
.network-main small,
.network-stats span {
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}

.network-main strong {
  display: block;
  margin: 14px 0 6px;
  color: #fff;
  font-size: clamp(58px, 8vw, 92px);
  line-height: 0.95;
}

.network-main small {
  text-transform: none;
}

.network-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.network-stats div {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.065);
}

.network-stats span,
.network-stats strong {
  display: block;
}

.network-stats span {
  margin-bottom: 8px;
  font-size: 12px;
}

.network-stats strong {
  font-size: 18px;
}

.feature-card {
  min-height: 260px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.045));
}

.feature-card.wide {
  grid-column: span 2;
}

.icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  margin-bottom: 52px;
  border-radius: 14px;
  background: rgba(24, 119, 242, 0.22);
  color: var(--facebook-light);
  font-weight: 900;
}

.schedule-board {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.schedule-row {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.schedule-row.active {
  background: rgba(24, 119, 242, 0.18);
}

.schedule-row span,
.schedule-row em {
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

.share-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.share-card img {
  display: block;
}

.share-card figcaption {
  padding: 14px 16px;
  color: var(--muted);
  font-size: 14px;
}

.download-band {
  margin: 40px 0 92px;
  padding: 34px;
  border: 1px solid rgba(24, 119, 242, 0.35);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(24, 119, 242, 0.24), rgba(40, 199, 111, 0.09)),
    rgba(255, 255, 255, 0.06);
}

code {
  color: #8fc5ff;
  overflow-wrap: anywhere;
}

.site-footer {
  display: flex;
  width: min(1180px, calc(100% - 32px));
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 auto;
  padding: 30px 0 42px;
  color: var(--muted);
}

.site-footer span {
  color: var(--text);
  font-weight: 900;
}

.site-footer a {
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
}

.download-page {
  min-height: 100vh;
}

.download-main {
  display: grid;
  min-height: calc(100vh - 130px);
  place-items: center;
  padding: 58px 0;
}

.download-panel {
  width: min(780px, 100%);
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.download-panel h1 {
  font-size: clamp(38px, 6vw, 70px);
}

.download-status {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.download-status div {
  padding: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

@keyframes load {
  from {
    transform: translateX(-120%);
  }
  to {
    transform: translateX(260%);
  }
}

@keyframes boot-fallback {
  to {
    visibility: hidden;
    opacity: 0;
  }
}

@keyframes meter {
  0%,
  100% {
    transform: scaleY(0.72);
  }
  50% {
    transform: scaleY(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 960px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .hero,
  .two-column,
  .app-flow,
  .preview-section,
  .opening-section,
  .download-band,
  .network-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 34px;
  }

  .hero-visual {
    min-height: 610px;
  }

  .phone-stage {
    left: 50%;
    right: auto;
    transform: translateX(-50%) rotateY(-8deg) rotateX(3deg);
  }

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

@media (max-width: 640px) {
  main,
  .site-header,
  .site-footer {
    width: min(100% - 24px, 1180px);
  }

  h1 {
    font-size: clamp(44px, 14vw, 64px);
  }

  .hero-facts,
  .feature-grid,
  .schedule-row,
  .network-stats {
    grid-template-columns: 1fr;
  }

  .site-nav {
    flex-wrap: wrap;
    overflow-x: visible;
    border-radius: 18px;
  }

  .site-nav a {
    flex: 1 1 calc(50% - 8px);
    text-align: center;
  }

  .feature-card.wide {
    grid-column: span 1;
  }

  .hero-visual {
    min-height: 560px;
  }

  .phone-stage {
    width: min(340px, 92vw);
    height: 458px;
  }

  .signal-card {
    left: 0;
    top: 20px;
  }

  .floating-chip {
    left: 0;
    bottom: 42px;
  }

  .floating-chip.right {
    right: 0;
    top: 76px;
    bottom: auto;
  }

  .reconnect-banner {
    grid-template-columns: 1fr;
  }

  .download-band,
  .download-panel {
    padding: 22px;
  }
}
