:root {
  --bg: #0b0f17;
  --bg-alt: #121826;
  --surface: #1a2234;
  --text: #f4f6fb;
  --text-muted: #9aa3b5;
  --accent: #5b8cff;
  --accent-hover: #7aa3ff;
  --radius: 14px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}

html.is-desktop #desktop-block {
  display: flex;
}

html.is-desktop #app-main {
  display: none !important;
}

html.is-mobile #desktop-block {
  display: none !important;
}

html.is-desktop body {
  overflow: hidden;
}

body.device-blocked {
  overflow: hidden;
}

.desktop-block {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  padding-top: calc(24px + var(--safe-top));
  background: linear-gradient(145deg, #0b0f17 0%, #1a1f2e 100%);
}

.desktop-block[hidden] {
  display: none !important;
}

.desktop-block__card {
  max-width: 420px;
  width: 100%;
  padding: 32px 28px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.desktop-block__icon {
  color: var(--accent);
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
}

.desktop-block__title {
  margin: 0 0 12px;
  font-size: 1.35rem;
  font-weight: 700;
}

.desktop-block__body {
  margin: 0 0 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.desktop-block__url-label {
  margin: 0 0 6px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.desktop-block__url {
  margin: 0;
  font-size: 0.8rem;
  word-break: break-all;
  color: var(--accent);
  background: rgba(91, 140, 255, 0.1);
  padding: 10px 12px;
  border-radius: 8px;
}

.app-main[hidden] {
  display: none !important;
}

.app-main {
  min-height: 100dvh;
  padding-bottom: calc(24px + var(--safe-bottom));
}

.site-header {
  padding: calc(12px + var(--safe-top)) 20px 8px;
}

.logo {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.hero {
  padding: 24px 20px 40px;
  background: radial-gradient(ellipse 120% 80% at 50% -20%, rgba(91, 140, 255, 0.35), transparent 55%),
    var(--bg);
}

.hero__eyebrow {
  margin: 0 0 8px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 600;
}

.hero__title {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 6vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.hero__subtitle {
  margin: 0 0 24px;
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 34ch;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:active {
  transform: scale(0.98);
}

@media (hover: hover) {
  .btn--primary:hover {
    background: var(--accent-hover);
  }
}

.section {
  padding: 40px 20px;
}

.section--alt {
  background: var(--bg-alt);
}

.section__title {
  margin: 0 0 20px;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card {
  padding: 18px 16px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

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

.step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.step__num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  border-radius: 50%;
  font-size: 0.95rem;
}

.step h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.proof {
  text-align: center;
}

.proof__quote {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-muted);
}

.proof__author {
  margin: 0 0 24px;
  font-size: 0.85rem;
}

.proof__stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
}

.proof__stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.cta-section {
  text-align: center;
}

.cta-section__text {
  margin: 0 0 20px;
  color: var(--text-muted);
  max-width: 32ch;
  margin-left: auto;
  margin-right: auto;
}

.site-footer {
  padding: 32px 20px calc(16px + var(--safe-bottom));
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer__links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 12px;
}

.site-footer__links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-decoration: none;
}

.site-footer__copy {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media (min-width: 480px) {
  body.device-mobile .app-main {
    max-width: 480px;
    margin: 0 auto;
  }
}
