:root {
  --bg: #0b0b0d;
  --bg-elevated: #121218;
  --surface: #18181e;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f4f4f6;
  --muted: #9ca3af;
  --gold: #ffc400;
  --orange: #ff5a1f;
  --pink: #ff2d95;
  --cyan: #00b0ff;
  --green: #00c853;
  --purple: #7c4dff;
  --radius: 16px;
  --font: "Manrope", system-ui, -apple-system, sans-serif;
  --font-display: "Unbounded", var(--font);
  --gradient: linear-gradient(135deg, var(--gold) 0%, var(--orange) 45%, var(--pink) 100%);
  --shadow-glow: 0 0 80px rgba(255, 90, 31, 0.25);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  cursor: default;
}

html {
  scroll-behavior: smooth;
  cursor: default;
}

body {
  overflow-x: hidden;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  cursor: default;
}

html.fonts-ready body {
  font-family: var(--font);
}

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

button,
.btn,
label[for],
input,
select,
textarea,
[role="button"] {
  cursor: pointer;
}

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

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

/* Nav */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 1rem 0;
  transition: background 0.25s, box-shadow 0.25s, backdrop-filter 0.25s;
}

.nav--scrolled {
  background: rgba(11, 11, 13, 0.94);
  box-shadow: 0 1px 0 var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

html.fonts-ready .brand {
  font-family: var(--font-display);
}

.brand__logo {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  object-fit: contain;
  box-shadow: 0 8px 24px rgba(255, 90, 31, 0.35);
}

.brand__name {
  font-weight: 800;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}

.nav__links a:hover {
  color: var(--text);
}

.nav__cta {
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
}

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

.btn--primary {
  background: var(--gradient);
  color: #1a0a06;
  box-shadow: 0 12px 32px rgba(255, 90, 31, 0.35);
}

.btn--primary:hover {
  filter: brightness(1.06);
  box-shadow: 0 16px 40px rgba(255, 90, 31, 0.45);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn--lg {
  padding: 1rem 1.75rem;
  font-size: 1.05rem;
  border-radius: 14px;
}

/* Hero */
.hero {
  position: relative;
  padding: 8rem 0 5rem;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(255, 196, 0, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(255, 45, 149, 0.12), transparent),
    radial-gradient(ellipse 50% 30% at 10% 60%, rgba(0, 176, 255, 0.08), transparent);
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  perspective: 1200px;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 196, 0, 0.12);
  border: 1px solid rgba(255, 196, 0, 0.25);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
}

.hero__badge--servers {
  background: rgba(0, 176, 255, 0.1);
  border-color: rgba(0, 176, 255, 0.28);
  color: var(--cyan);
}

.hero__badge:first-child::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0.02em;
  margin-bottom: 1.25rem;
}

html.fonts-ready .hero h1 {
  font-family: var(--font-display);
}

.hero h1 span {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 32rem;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.hero__note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

/* Phone mockup — 3D */
@keyframes phone-float {
  0%, 100% {
    transform: perspective(1100px) rotateY(-8deg) rotateX(4deg) translateY(0);
  }
  50% {
    transform: perspective(1100px) rotateY(-5deg) rotateX(2deg) translateY(-14px);
  }
}

.phone {
  position: relative;
  justify-self: end;
  width: min(340px, 100%);
  transform-style: preserve-3d;
  transform: perspective(1100px) rotateY(-8deg) rotateX(4deg);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  contain: layout style;
}

@media (prefers-reduced-motion: no-preference) {
  .phone {
    animation: phone-float 7s ease-in-out infinite;
  }
}

.phone:hover {
  animation-play-state: paused;
  transform: perspective(1100px) rotateY(-4deg) rotateX(2deg) translateY(-8px) scale(1.02);
}

.phone__frame {
  border-radius: 36px;
  padding: 12px;
  background: linear-gradient(155deg, #3d3d48 0%, #16161c 52%, #0a0a0c 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    var(--shadow-glow),
    0 36px 72px rgba(0, 0, 0, 0.5),
    24px 32px 48px rgba(0, 0, 0, 0.35);
  transform: translateZ(12px);
}

.phone__screen {
  border-radius: 28px;
  overflow: hidden;
  background: #0b0b0d;
  aspect-ratio: 9 / 18;
  width: 100%;
  min-height: 520px;
}

.phone .app-ui {
  padding: 14px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 11px;
  color: var(--text);
}

.phone .app-ui__statusbar {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
}

.phone .app-ui__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 6px;
}

.phone .app-ui__dw,
.phone .app-ui__vpn {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #ffc400;
}

html.fonts-ready .phone .app-ui__dw,
html.fonts-ready .phone .app-ui__vpn {
  font-family: var(--font-display);
}

.phone .app-ui__logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 0 12px rgba(255, 90, 31, 0.5));
}

.phone .app-ui__title-line {
  width: 110px;
  height: 2px;
  margin: 6px auto 2px;
  border-radius: 99px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 196, 0, 0.6),
    rgba(255, 45, 149, 0.35),
    transparent
  );
}

/* Глобус — как в первой версии */
.phone .app-ui__globe {
  position: relative;
  height: 140px;
  margin: 8px 0 4px;
  display: grid;
  place-items: center;
}

.phone .app-ui__globe-glow {
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 196, 0, 0.25) 0%, transparent 68%);
}

@media (prefers-reduced-motion: no-preference) {
  .phone .app-ui__globe-glow {
    animation: globe-pulse 3s ease-in-out infinite;
  }
}

.phone .app-ui__globe--on .app-ui__globe-glow {
  background: radial-gradient(circle, rgba(255, 196, 0, 0.32) 0%, transparent 68%);
}

@keyframes globe-pulse {
  0%, 100% { transform: scale(0.94); opacity: 0.75; }
  50% { transform: scale(1.05); opacity: 1; }
}

.phone .app-ui__globe-sphere {
  position: relative;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(120, 200, 255, 0.4) 0%, transparent 42%),
    radial-gradient(circle at 70% 72%, rgba(20, 40, 90, 0.9) 0%, transparent 50%),
    linear-gradient(145deg, #1a3a5c 0%, #0d1f33 40%, #061018 100%);
  border: 2px solid rgba(56, 189, 248, 0.4);
  box-shadow:
    inset -10px -14px 28px rgba(0, 0, 0, 0.45),
    inset 8px 10px 18px rgba(100, 180, 255, 0.14),
    0 0 36px rgba(56, 189, 248, 0.22);
  overflow: hidden;
}

.phone .app-ui__globe--on .app-ui__globe-sphere {
  border-color: rgba(255, 196, 0, 0.55);
  box-shadow:
    inset -10px -14px 28px rgba(0, 0, 0, 0.45),
    inset 8px 10px 18px rgba(255, 200, 100, 0.12),
    0 0 40px rgba(255, 196, 0, 0.35);
}

.phone .app-ui__globe-grid {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 11px,
      rgba(255, 255, 255, 0.07) 11px,
      rgba(255, 255, 255, 0.07) 12px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 11px,
      rgba(255, 255, 255, 0.05) 11px,
      rgba(255, 255, 255, 0.05) 12px
    );
}

.phone .app-ui__globe-shine {
  position: absolute;
  top: 14%;
  left: 20%;
  width: 28%;
  height: 18%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  filter: blur(4px);
}

/* Карточки */
.phone .app-ui__card {
  background: linear-gradient(180deg, rgba(28, 28, 36, 0.95) 0%, rgba(16, 16, 22, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.phone .app-ui__card--status {
  display: flex;
  align-items: center;
  gap: 10px;
}

.phone .app-ui__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(255, 196, 0, 0.8);
}

.phone .app-ui__card-title {
  font-size: 13px;
  font-weight: 700;
}

.phone .app-ui__card-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.phone .app-ui__label {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}

.phone .app-ui__seg {
  display: flex;
  gap: 4px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
}

.phone .app-ui__seg span {
  flex: 1;
  text-align: center;
  font-size: 9px;
  font-weight: 700;
  padding: 6px 2px;
  border-radius: 9px;
  color: var(--muted);
  border: 1px solid transparent;
}

.phone .app-ui__seg .is-active {
  color: #fff;
}

.phone .app-ui__seg .is-awg {
  background: linear-gradient(90deg, rgba(255, 45, 149, 0.55), rgba(255, 45, 149, 0.28));
  border-color: rgba(255, 45, 149, 0.5);
}

.phone .app-ui__proto-name {
  font-size: 12px;
  font-weight: 700;
  margin: 8px 0 4px;
}

.phone .app-ui__hint {
  font-size: 10px;
  line-height: 1.4;
  color: var(--muted);
}

.phone .app-ui__server {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
}

.phone .app-ui__server-name {
  font-size: 13px;
  font-weight: 700;
}

.phone .app-ui__server-sub {
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
}

.phone .app-ui__arrow {
  font-size: 20px;
  color: var(--muted);
  flex-shrink: 0;
}


/* Sections */
section {
  padding: 5rem 0;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
}

html.fonts-ready .section-head h2 {
  font-family: var(--font-display);
}

.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
}

.features {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.features__row {
  display: grid;
  gap: 1.25rem;
}

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

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  border-color: rgba(255, 196, 0, 0.25);
  transform: translateY(-2px);
}

.card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.card__icon--gold { background: rgba(255, 196, 0, 0.15); }
.card__icon--pink { background: rgba(255, 45, 149, 0.15); }
.card__icon--cyan { background: rgba(0, 176, 255, 0.15); }
.card__icon--green { background: rgba(0, 200, 83, 0.15); }
.card__icon--purple { background: rgba(124, 77, 255, 0.15); }
.card__icon--orange { background: rgba(255, 90, 31, 0.15); }

.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-wrap: balance;
  line-height: 1.3;
}

.card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
}

.card__lead {
  margin-bottom: 1rem;
}

.tor-modes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.tor-chain {
  display: inline-block;
  margin-top: 0.15rem;
  padding: 0.2em 0.55em;
  border-radius: 999px;
  font-size: 0.92em;
  font-weight: 700;
  color: var(--gold);
  background: rgba(255, 196, 0, 0.1);
  border: 1px solid rgba(255, 196, 0, 0.22);
  white-space: nowrap;
}

.tor-modes__item {
  padding: 1rem;
  border-radius: 12px;
  background: rgba(124, 77, 255, 0.08);
  border: 1px solid rgba(124, 77, 255, 0.2);
}

.tor-modes__item strong {
  display: block;
  font-size: 0.95rem;
  color: var(--purple);
  margin-bottom: 0.5rem;
}

.tor-modes__item p {
  font-size: 0.85rem;
  line-height: 1.5;
}

.tor-modes__item code {
  font-size: 0.8em;
  color: var(--cyan);
  background: rgba(0, 0, 0, 0.25);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

/* Protocols */
.protocols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.protocol {
  text-align: center;
  padding: 1.25rem 0.75rem;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.protocol__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 auto 0.75rem;
}

.protocol strong {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.protocol span {
  font-size: 0.75rem;
  color: var(--muted);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding-left: 3.5rem;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  background: var(--gradient);
  color: var(--bg);
  font-weight: 800;
  font-size: 1.1rem;
  display: grid;
  place-items: center;
}

.step h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.step p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Download CTA */
.cta {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255, 90, 31, 0.12), transparent 60%);
  pointer-events: none;
}

.cta h2 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
  position: relative;
}

html.fonts-ready .cta h2 {
  font-family: var(--font-display);
}

.cta p {
  color: var(--muted);
  margin-bottom: 1.75rem;
  position: relative;
}

.cta__meta {
  font-size: 0.9rem;
  color: var(--gold);
  margin-top: 1rem;
  position: relative;
}

/* Support / Telegram bot */
.support-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2.25rem 2.5rem;
  position: relative;
  overflow: hidden;
}

.support-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 50%, rgba(0, 176, 255, 0.1), transparent 55%);
  pointer-events: none;
}

.support-banner__copy {
  flex: 1 1 280px;
  position: relative;
}

.support-banner h2 {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 0.65rem;
}

html.fonts-ready .support-banner h2 {
  font-family: var(--font-display);
}

.support-banner p {
  color: var(--muted);
  max-width: 42rem;
  margin: 0;
}

.support-banner__btn {
  flex-shrink: 0;
  position: relative;
}

#support {
  padding-bottom: 3rem;
}

/* Footer */
.footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer__support a {
  color: var(--gold);
  font-weight: 600;
  transition: color 0.2s;
}

.footer__support a:hover {
  color: var(--text);
}

/* Появление блоков при прокрутке */
html.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

html.js .reveal-opacity {
  opacity: 0;
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

html.js .reveal-opacity.is-visible {
  opacity: 1;
}

html.js .reveal-stagger > * {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

html.js .reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

html.js .reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.04s; }
html.js .reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.1s; }
html.js .reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.16s; }
html.js .reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.22s; }
html.js .reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.28s; }
html.js .reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.34s; }
html.js .reveal-stagger.is-visible > *:nth-child(7) { transition-delay: 0.4s; }

/* Вложенные stagger (Tor внутри карточки) */
html.js .card--wide.reveal.is-visible .tor-modes.reveal-stagger > * {
  opacity: 0;
  transform: translateY(16px);
}

html.js .card--wide.reveal.is-visible .tor-modes.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html.js .reveal,
  html.js .reveal-opacity,
  html.js .reveal-stagger > *,
  html.js .card--wide.reveal.is-visible .tor-modes.reveal-stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Tablet & mobile */
@media (max-width: 1024px) {
  .container {
    width: min(1120px, 94vw);
  }

  .nav {
    padding: 0.75rem 0;
    padding-top: max(0.75rem, env(safe-area-inset-top));
  }

  .nav__inner {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 0.75rem;
  }

  .nav__links {
    display: none !important;
  }

  .brand {
    flex: 1;
    min-width: 0;
  }

  .nav__cta {
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
    margin-left: auto;
  }

  .hero {
    padding: 6.5rem 0 3rem;
    padding-top: max(6.5rem, calc(5rem + env(safe-area-inset-top)));
    overflow: visible;
  }

  .hero__copy {
    order: 2;
    width: 100%;
  }

  .hero h1 {
    font-size: clamp(1.85rem, 7vw, 2.6rem);
  }

  .hero__lead {
    font-size: 1rem;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero__badges {
    justify-content: center;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
  }

  .phone {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative;
    z-index: 2;
    order: 1;
    width: min(300px, 92vw);
    max-width: 300px;
    margin: 0 auto 0.5rem;
    contain: none;
    transform: none;
    animation: none;
    flex-shrink: 0;
  }

  .phone__frame {
    transform: none;
  }

  .phone__screen {
    min-height: 540px;
  }

  .phone:hover {
    transform: none;
  }

  section {
    padding: 3.5rem 0;
  }

  .section-head {
    margin-bottom: 2.5rem;
  }

  .section-head p {
    font-size: 0.95rem;
  }

  .features__row--3,
  .features__row--2 {
    grid-template-columns: 1fr;
  }

  .card--wide {
    padding: 1.25rem;
  }

  .tor-modes {
    grid-template-columns: 1fr;
  }

  .tor-modes__item code {
    word-break: break-all;
  }

  .protocols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .protocol {
    padding: 1rem 0.5rem;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .cta {
    padding: 2.25rem 1.5rem;
    border-radius: 20px;
  }

  .cta h2 {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .cta .btn {
    width: 100%;
    max-width: 320px;
  }

  .footer {
    padding-bottom: max(2rem, env(safe-area-inset-bottom));
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
}

@media (hover: none) {
  .card:hover {
    transform: none;
  }
}

@keyframes phone-float-mobile {
  0%, 100% {
    transform: perspective(900px) rotateY(0deg) rotateX(2deg) translateY(0);
  }
  50% {
    transform: perspective(900px) rotateY(0deg) rotateX(2deg) translateY(-12px);
  }
}

@media (max-width: 1024px) and (prefers-reduced-motion: no-preference) {
  .phone {
    animation: phone-float-mobile 8s ease-in-out infinite;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .phone {
    animation: none;
    transform: none;
  }

  .phone:hover {
    transform: none;
  }

  .phone__frame {
    transform: none;
  }
}

@media (max-width: 600px) {
  .brand__name {
    font-size: 1rem;
  }

  .brand__logo {
    width: 36px;
    height: 36px;
  }

  .nav__cta {
    padding: 0.65rem 0.85rem;
    font-size: 0.8rem;
  }

  .hero__badge {
    font-size: 0.75rem;
  }

  .hero h1 br {
    display: none;
  }

  .phone {
    width: min(280px, 92vw);
    max-width: 280px;
  }

  .phone__screen {
    min-height: 500px;
  }

  .phone .app-ui {
    font-size: 10px;
  }

  .protocols {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .nav__cta {
    font-size: 0;
    gap: 0;
    padding: 0.65rem 0.75rem;
    min-width: 44px;
  }

  .nav__cta::after {
    content: "APK";
    font-size: 0.75rem;
    font-weight: 700;
  }

  .hero__actions .btn--lg {
    padding: 0.95rem 1.25rem;
    font-size: 0.95rem;
  }
}
