/* ============================================
   PSYHOZ VPN — monochrome design system
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&family=Space+Mono:wght@400;700&display=swap');

:root {
  --bg:        #0a0a0b;
  --bg-raised: #131314;
  --surface:   #171718;
  --line:      rgba(255,255,255,0.14);
  --line-soft: rgba(255,255,255,0.07);
  --white:     #f6f6f3;
  --text:      #f6f6f3;
  --text-dim:  #8b8b86;
  --text-dim-2:#5c5c58;
  --black:     #050505;

  --warn:      #e2a13a;
  --danger:    #d9534f;

  --font-display: 'Space Grotesk', sans-serif;
  --font-logo:    'Space Grotesk', sans-serif;
  --font-mono:    'Space Mono', monospace;
  --font-body:    'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- texture overlay (subtle grain, no colour) ---------- */
.noise {
  position: fixed; inset: 0; pointer-events: none; z-index: 9998; opacity: 0.035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.scanlines { display: none; }

/* ---------- logo ---------- */
.logo-chrome, .logo-pink { font-family: var(--font-logo); font-weight: 700; letter-spacing: 0.01em; }
.logo-chrome { color: var(--white); }
.logo-pink { color: var(--text-dim); font-weight: 700; }

img.logo-mark {
  display: inline-block;
  width: 22px; height: 22px; object-fit: contain;
  border-radius: 5px;
  margin-right: 0.55rem; position: relative; top: -1px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.6rem;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-pink,
.btn-chrome {
  background: var(--white);
  color: var(--black);
  box-shadow: none;
}
.btn-pink:hover,
.btn-chrome:hover { opacity: 0.85; }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.04); }

.btn:disabled,
.btn.is-loading {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
  transform: none !important;
}

.btn-lg { padding: 1.05rem 2.1rem; font-size: 0.95rem; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,11,0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2rem;
}
.logo { font-size: 1.15rem; letter-spacing: 0.02em; display: flex; align-items: center; }
.nav-links { display: flex; gap: 2rem; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.07em; font-family: var(--font-mono); }
.nav-links a { color: var(--text-dim); transition: color 0.2s; }
.nav-links a:hover { color: var(--white); }
.nav-cta { font-size: 0.75rem; padding: 0.6rem 1.2rem; }
.nav-cta-group { display: flex; gap: 0.6rem; align-items: center; }

/* ---------- mobile burger + dropdown ---------- */
.nav-burger {
  display: none;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  width: 36px; height: 36px; flex: none;
  border: 1px solid var(--line); border-radius: 8px;
  background: transparent; cursor: pointer; padding: 0;
}
.nav-burger span { width: 16px; height: 1.5px; background: var(--white); transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-burger.active span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-burger.active span:nth-child(2) { opacity: 0; }
.nav-burger.active span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  max-height: 0;
  overflow: hidden;
  border-top: 0 solid var(--line-soft);
  background: rgba(10,10,11,0.98);
  transition: max-height 0.25s ease;
}
.nav-mobile.open { max-height: 400px; border-top-width: 1px; }
.nav-mobile a {
  padding: 0.95rem 1.5rem;
  font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--text-dim); border-bottom: 1px solid var(--line-soft);
  transition: color 0.2s, background 0.2s;
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover, .nav-mobile a:active { color: var(--white); background: rgba(255,255,255,0.03); }

/* ---------- cookie consent ---------- */
.cookie-banner {
  position: fixed; left: 1.2rem; right: 1.2rem; bottom: 1.2rem;
  max-width: 560px; margin: 0 auto;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.3rem 1.5rem 1.4rem;
  box-shadow: 0 24px 60px rgba(0,0,0,0.55);
  z-index: 500;
  transform: translateY(140%);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
  pointer-events: none;
}
.cookie-banner.visible { transform: translateY(0); opacity: 1; pointer-events: auto; }
.cookie-close {
  position: absolute; top: 0.7rem; right: 0.9rem;
  background: none; border: none; color: var(--text-dim);
  font-size: 1.2rem; line-height: 1; cursor: pointer; padding: 0.2rem;
}
.cookie-close:hover { color: var(--white); }
.cookie-text {
  font-size: 0.82rem; color: var(--text-dim); line-height: 1.6;
  padding-right: 1.2rem; margin-bottom: 1rem;
}
.cookie-actions { display: flex; justify-content: flex-end; }
.cookie-actions .btn { font-size: 0.76rem; padding: 0.6rem 1.3rem; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 5rem 2rem 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-copy { text-align: left; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  margin-bottom: 1.6rem;
}
.hero-eyebrow .live-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--white);
  animation: dotpulse 1.8s ease-in-out infinite;
}
@keyframes dotpulse { 0%,100%{opacity:1;} 50%{opacity:0.25;} }

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 4.6vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.hero-title .line { display: block; }
.hero-accent { color: var(--text-dim); }

.hero-sub {
  margin-top: 1.4rem;
  color: var(--text-dim);
  font-size: 1rem;
  max-width: 460px;
  line-height: 1.6;
}

.route {
  display: flex; align-items: center; gap: 0.55rem;
  margin-top: 2rem; max-width: 460px;
  font-family: var(--font-mono);
  font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-dim);
}
.route-label { white-space: nowrap; }
.route-label--mid { color: var(--text); }
.route-line { flex: 1; min-width: 28px; height: 1px; position: relative; background: repeating-linear-gradient(to right, var(--line) 0 5px, transparent 5px 10px); }
.route-dot { position: absolute; top: -2.5px; left: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--white); animation: routemove 3.2s linear infinite; opacity: 0; }
.route-line--2 .route-dot { animation-delay: 1.6s; }
@keyframes routemove { 0%{ left:0; opacity:0; } 8%{ opacity:1; } 92%{ opacity:1; } 100%{ left:100%; opacity:0; } }

.hero-ctas {
  margin-top: 2.2rem;
  display: flex; flex-wrap: wrap; gap: 0.9rem;
}

/* ---------- hero device mockup ---------- */
.device-mock {
  position: relative;
  min-height: 460px;
  display: flex; align-items: center; justify-content: center;
}

.device-laptop {
  width: min(480px, 100%);
  position: relative;
}
.laptop-screen {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 14px 14px 4px 4px;
  padding: 8px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.55);
}
.laptop-cam { width: 5px; height: 5px; border-radius: 50%; background: var(--text-dim-2); margin: 0 auto 6px; }
.laptop-base {
  height: 12px;
  background: linear-gradient(180deg, var(--surface), var(--bg-raised));
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 10px 10px;
  position: relative;
}
.laptop-base::after {
  content: ''; position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  width: 70px; height: 4px; background: var(--bg); border: 1px solid var(--line); border-top: none;
  border-radius: 0 0 6px 6px;
}

.device-phone {
  width: 168px;
  position: absolute;
  right: -6%;
  bottom: -6%;
}
.phone-frame {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 7px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.55);
}
.phone-notch {
  width: 46%; height: 16px; background: var(--bg);
  border-radius: 10px; margin: 0 auto 6px;
}

/* ---------- app mock (PSYHOZ VPN app UI) ---------- */
.app-mock {
  background: var(--bg);
  border-radius: 8px;
  overflow: hidden;
  font-family: var(--font-mono);
}
.app-mock--laptop { aspect-ratio: 16/10.2; padding: 0.9rem 1.1rem; }
.app-mock--phone { aspect-ratio: 9/17.4; padding: 0.85rem 0.75rem; }

.app-statusbar { display: flex; justify-content: space-between; font-size: 0.6rem; color: var(--text-dim); margin-bottom: 0.7rem; }

.app-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.1rem; }
.app-brand { display: flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; color: var(--text); letter-spacing: 0.02em; }
.app-brand .app-brand-icon { width: 14px; height: 14px; border: 1px solid var(--text); border-radius: 4px; position: relative; }
.app-brand .app-brand-icon::after { content:''; position:absolute; inset: 30%; background: var(--text); border-radius: 1px; }
.app-menu-dots { display: flex; gap: 3px; }
.app-menu-dots span { width: 3px; height: 3px; border-radius: 50%; background: var(--text-dim); }

.app-status-row { display: flex; align-items: center; justify-content: space-between; margin: 0.9rem 0 0.7rem; }
.app-status-left { display: flex; align-items: center; gap: 0.4rem; font-size: 0.66rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--text); }
.app-status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--white); animation: dotpulse 1.8s ease-in-out infinite; }
.app-status-loc { font-size: 0.58rem; color: var(--text-dim); }

.app-list { display: flex; flex-direction: column; gap: 0.4rem; }
.app-row {
  display: flex; align-items: center; justify-content: space-between;
  border: 1px solid var(--line); border-radius: 7px;
  padding: 0.5rem 0.6rem; font-size: 0.6rem;
}
.app-row--active { border-color: var(--white); background: rgba(255,255,255,0.045); }
.app-row-left { display: flex; align-items: center; gap: 0.4rem; }
.app-row-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--text-dim-2); }
.app-row--active .app-row-dot { background: var(--white); }
.app-row-proto { color: var(--text-dim); }

.app-sparkline { display: flex; align-items: flex-end; gap: 3px; height: 20px; margin-top: 0.75rem; }
.app-sparkline span { flex: 1; background: var(--line); border-radius: 1px; }

.app-toggle { width: 24px; height: 13px; border: 1px solid var(--line); border-radius: 999px; position: relative; flex-shrink: 0; }
.app-toggle::after { content: ''; position: absolute; top: 1px; right: 1px; width: 9px; height: 9px; border-radius: 50%; background: var(--white); }

.app-config-row {
  display: flex; align-items: center; justify-content: space-between;
  border: 1px solid var(--line); border-radius: 8px; padding: 0.5rem 0.65rem;
  margin-top: 0.9rem; font-size: 0.62rem;
}
.app-config-row .cfg-name { color: var(--text); }
.app-config-row .cfg-proto { color: var(--text-dim); }

.app-stats-row { display: flex; justify-content: space-between; margin-top: 0.7rem; font-size: 0.58rem; color: var(--text-dim); }
.app-stats-row b { color: var(--text); font-weight: 400; }

/* ---------- section heading ---------- */
.section-title {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}
.bracket { color: var(--text-dim-2); }
.section-sub {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 3rem;
}

/* ---------- tariffs / pricing cards ---------- */
.tariffs { padding: 6rem 1.5rem; max-width: 1200px; margin: 0 auto; }

.cd-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.cd-card {
  position: relative;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 2.1rem 1.7rem 1.9rem;
  text-align: left;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.cd-card:hover { transform: translateY(-6px); border-color: var(--text-dim); }

.cd-card--featured {
  border-color: var(--white);
  background: linear-gradient(160deg, rgba(255,255,255,0.045), rgba(255,255,255,0.01));
}
.cd-badge {
  position: absolute; top: -12px; right: 20px;
  background: var(--white); color: var(--black);
  font-family: var(--font-mono); font-size: 0.65rem; font-weight: 700;
  padding: 0.3rem 0.8rem; border-radius: 999px;
  letter-spacing: 0.05em;
}

.cd-disc {
  width: 40px; height: 40px; margin-bottom: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.cd-disc::before { content: ''; width: 14px; height: 14px; border: 1.5px solid var(--text); border-radius: 50%; }
.cd-disc--pink::before { border-radius: 3px; }
.cd-disc--lime::before { border-radius: 0; width: 12px; height: 12px; transform: rotate(45deg); }
.cd-hole, .cd-shine { display: none; }

.cd-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  margin-bottom: 0.6rem;
}
.cd-desc { color: var(--text-dim); font-size: 0.82rem; margin-bottom: 1.4rem; line-height: 1.55; }

.cd-specs { margin-bottom: 1.6rem; text-align: left; }
.cd-specs li {
  display: flex; justify-content: space-between;
  font-size: 0.8rem; padding: 0.55rem 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text-dim);
  font-family: var(--font-mono);
}
.cd-specs li:last-child { border-bottom: none; }
.cd-specs li b { color: var(--text); font-weight: 700; }

.cd-cta { width: 100%; font-size: 0.8rem; text-align: center; }

.tariffs-footnote {
  text-align: center; margin-top: 2.4rem;
  font-family: var(--font-mono); font-size: 0.76rem; color: var(--text-dim-2);
  max-width: 620px; margin-left: auto; margin-right: auto; line-height: 1.7;
}
.tariffs-footnote a { color: var(--text-dim); text-decoration: underline; text-underline-offset: 2px; }
.tariffs-footnote a:hover { color: var(--white); }

/* ---------- how to / terminal ---------- */
.howto { padding: 5rem 1.5rem 6rem; max-width: 1100px; margin: 0 auto; }

.howto-paths {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.6rem;
  align-items: start;
  margin-bottom: 2.6rem;
}

.howto-path { display: flex; flex-direction: column; gap: 1rem; }
.howto-path--secondary { opacity: 0.86; }

.howto-path-head { display: flex; align-items: baseline; gap: 0.7rem; flex-wrap: wrap; }
.howto-path-tag {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-dim-2); border: 1px solid var(--line-soft); border-radius: 999px; padding: 0.25rem 0.7rem;
}
.howto-path-tag--primary { color: var(--black); background: var(--white); border-color: var(--white); }
.howto-path-title { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; letter-spacing: 0.01em; }

.howto-path-cta { align-self: flex-start; font-size: 0.8rem; }

.terminal--dim { box-shadow: none; opacity: 0.92; }
.terminal--dim .terminal-body { font-size: 0.8rem; }

.howto-note {
  text-align: center; color: var(--text-dim); font-size: 0.85rem; line-height: 1.7;
  max-width: 640px; margin: 0 auto 2.6rem;
}
.howto-note .hl { color: var(--white); font-weight: 600; }

.terminal {
  width: 100%;
  background: var(--bg-raised);
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);
  overflow: hidden;
}
.terminal-bar {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1rem;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--line-soft);
}
.dot { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--text-dim-2); background: transparent; }
.terminal-title { margin-left: 0.5rem; font-size: 0.72rem; color: var(--text-dim); font-family: var(--font-mono); }
.terminal-body { padding: 1.5rem; font-size: 0.85rem; line-height: 1.9; font-family: var(--font-mono); }
.terminal-body .prompt { color: var(--text); margin-right: 0.4rem; }
.terminal-body .hl { color: var(--white); font-weight: 700; }
.terminal-body .dim { color: var(--text-dim); font-size: 0.78rem; }
.terminal-body .success { color: var(--text); margin-top: 0.5rem; }
.terminal-body .success::before { content: '✓ '; }
.blink { animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

.platforms {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem;
}
.platform-chip {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  padding: 0.85rem 1.3rem;
  border-radius: 10px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  transition: border-color 0.2s, transform 0.2s;
  display: flex; align-items: center; gap: 0.7rem;
}
.platform-chip:hover { border-color: var(--white); transform: translateY(-3px); }
.platform-icon { width: 16px; height: 16px; border: 1.3px solid var(--text-dim); border-radius: 3px; flex-shrink: 0; position: relative; }
.platform-icon--phone { width: 10px; height: 16px; border-radius: 2.5px; }
.platform-icon--laptop { width: 18px; height: 12px; border-radius: 2px; }
.platform-icon--laptop::after { content: ''; position: absolute; left: -3px; right: -3px; bottom: -4px; height: 1.3px; background: var(--text-dim); }
.platform-icon--desktop { width: 16px; height: 12px; border-radius: 2px; }
.platform-icon--desktop::after { content: ''; position: absolute; left: 50%; bottom: -5px; width: 6px; height: 3px; border: 1.3px solid var(--text-dim); border-top: none; transform: translateX(-50%); }

/* ---------- faq ---------- */
.faq { padding: 5rem 1.5rem 6rem; max-width: 760px; margin: 0 auto; }
.faq-list { display: flex; flex-direction: column; gap: 0.7rem; }
.faq-item {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.4rem;
}
.faq-item summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; float: right; color: var(--text-dim); }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { margin-top: 0.8rem; color: var(--text-dim); font-size: 0.85rem; line-height: 1.6; }

/* ---------- 404 page ---------- */
.nf {
  min-height: calc(100vh - 65px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 2rem;
  position: relative;
}
.nf-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-dim); border: 1px solid var(--line); border-radius: 999px; padding: 0.4rem 0.9rem;
  margin-bottom: 1.8rem;
}
.nf-eyebrow .live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-dim-2); }
.nf-code {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(4rem, 16vw, 9rem); line-height: 1; letter-spacing: -0.02em;
  color: var(--white); position: relative;
}
.nf-code .digit-4:first-child { color: var(--text-dim-2); }
.nf-route {
  display: flex; align-items: center; gap: 0.55rem; margin: 1.6rem 0 0.6rem; max-width: 420px; width: 100%;
  font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-dim-2);
}
.nf-route-line { flex: 1; min-width: 24px; height: 1px; background: repeating-linear-gradient(to right, var(--line) 0 5px, transparent 5px 10px); }
.nf-title { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; margin: 1.2rem 0 0.7rem; }
.nf-sub { color: var(--text-dim); font-size: 0.92rem; max-width: 440px; line-height: 1.6; margin-bottom: 2.2rem; }
.nf-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; }
.nf-terminal {
  margin-top: 3rem; width: 100%; max-width: 420px;
  background: var(--bg-raised); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.45); text-align: left;
}
.nf-terminal-bar { display: flex; align-items: center; gap: 0.5rem; padding: 0.7rem 1rem; background: rgba(255,255,255,0.03); border-bottom: 1px solid var(--line-soft); }
.nf-dot { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--text-dim-2); }
.nf-terminal-title { margin-left: 0.5rem; font-size: 0.72rem; color: var(--text-dim); font-family: var(--font-mono); }
.nf-terminal-body { padding: 1.3rem 1.5rem; font-size: 0.82rem; line-height: 1.9; font-family: var(--font-mono); }
.nf-terminal-body .prompt { color: var(--text); margin-right: 0.4rem; }
.nf-terminal-body .err { color: #d9534f; }
.nf-terminal-body .dim { color: var(--text-dim); font-size: 0.78rem; }

@media (max-width: 520px) {
  .nf { padding: 1.5rem 1.1rem 2.5rem; }
  .nf-title { font-size: 1.1rem; }
  .nf-sub { font-size: 0.85rem; }
  .nf-ctas { width: 100%; }
  .nf-ctas .btn { flex: 1 1 auto; text-align: center; }
  .nf-terminal { margin-top: 2.2rem; }
  .nf-terminal-body { padding: 1rem 1.1rem; font-size: 0.76rem; line-height: 1.75; }
}

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line-soft); padding: 3rem 1.5rem 1.5rem; }
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem;
}
.footer-logo { font-size: 1.05rem; display: flex; align-items: center; }
.footer-links { display: flex; gap: 1.6rem; flex-wrap: wrap; font-size: 0.82rem; font-family: var(--font-mono); }
.footer-links a { color: var(--text-dim); transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { text-align: center; color: var(--text-dim-2); font-size: 0.75rem; margin-top: 2rem; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 3rem; }
  .hero-copy { text-align: center; }
  .hero-eyebrow { margin-left: auto; margin-right: auto; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .device-mock { margin-top: 2rem; min-height: 380px; }
}

@media (min-width: 901px) {
  .nav-mobile { display: none !important; }
}

@media (max-width: 900px) {
  .cd-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-mobile { display: flex; }
  .howto-paths { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .device-phone { display: none; }
  .nav-inner { padding: 0.85rem 1.1rem; }
  .nav-cta-group .nav-cta.btn-outline { display: none; }
  .hero-ctas .btn { flex: 1 1 auto; text-align: center; }
  .hero { padding: 2.5rem 1.25rem 2rem; }
}


/* ---------- platform chips: ссылки и «скоро» ---------- */
a.platform-chip { transition: border-color 0.2s ease, background 0.2s ease; }
a.platform-chip:hover { border-color: var(--white); background: rgba(255,255,255,0.04); }
.platform-chip--soon { opacity: 0.5; }

/* пункты верхнего меню не переносятся на вторую строку */
.nav-links a { white-space: nowrap; }
