:root {
  color-scheme: dark;
  --bg: #08090d;
  --panel: #111319;
  --panel-2: #171a22;
  --line: rgba(255,255,255,.11);
  --muted: #969ba9;
  --text: #f5f7fb;
  --acid: #cbff3d;
  --blue: #9dc5ff;
  --danger: #ff857e;
  --radius: 22px;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 85% -5%, rgba(116,146,255,.18), transparent 35%),
    radial-gradient(circle at 5% 35%, rgba(203,255,61,.07), transparent 28%),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
.shell {
  width: min(100%, 560px);
  margin: 0 auto;
  padding: max(24px, env(safe-area-inset-top)) 18px max(30px, env(safe-area-inset-bottom));
}

.hero { padding: 18px 2px 24px; }
.brand-mark { display: flex; gap: 4px; height: 24px; margin-bottom: 28px; align-items: end; }
.brand-mark span { display: block; width: 7px; border-radius: 5px; background: var(--acid); transform: skew(-13deg); }
.brand-mark span:nth-child(1) { height: 14px; }
.brand-mark span:nth-child(2) { height: 22px; }
.brand-mark span:nth-child(3) { height: 17px; }
.eyebrow, .step-label { color: var(--acid); font-size: 11px; font-weight: 800; letter-spacing: .14em; }
h1 { margin: 12px 0 16px; font-size: clamp(42px, 13vw, 66px); line-height: .96; letter-spacing: -.055em; font-weight: 770; }
.lead { margin: 0; color: #b7bbc7; font-size: 17px; line-height: 1.5; max-width: 490px; }

.privacy-strip {
  display: flex; gap: 12px; align-items: center;
  margin: 0 0 14px; padding: 14px 16px;
  border: 1px solid rgba(203,255,61,.23); border-radius: 16px;
  background: rgba(203,255,61,.06);
}
.privacy-icon { flex: 0 0 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--acid); color: #101209; font-weight: 900; }
.privacy-strip strong, .privacy-strip span { display: block; }
.privacy-strip strong { font-size: 13px; }
.privacy-strip span { margin-top: 3px; color: #9ca28e; font-size: 11px; line-height: 1.35; }

.card { background: linear-gradient(145deg, rgba(23,26,34,.96), rgba(14,16,21,.96)); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 14px 0; box-shadow: 0 18px 45px rgba(0,0,0,.16); }
.file-picker { display: grid; place-items: center; min-height: 190px; margin-top: 16px; padding: 26px; border: 1px dashed rgba(255,255,255,.24); border-radius: 17px; text-align: center; cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.file-picker:active { transform: scale(.985); background: rgba(255,255,255,.025); }
.file-picker input { position: absolute; opacity: 0; pointer-events: none; }
.picker-symbol { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 14px; border-radius: 50%; background: var(--acid); color: #0c0e08; font-size: 28px; font-weight: 300; }
.file-picker strong { font-size: 18px; }
.file-picker small { color: var(--muted); line-height: 1.4; margin-top: 7px; }
.file-summary { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 14px; border-radius: 15px; background: rgba(255,255,255,.045); }
.file-glyph { display: grid; place-items: center; flex: 0 0 44px; height: 44px; border-radius: 12px; background: #262b37; color: var(--acid); font-size: 12px; font-weight: 900; }
.file-meta { min-width: 0; flex: 1; }
.file-meta strong, .file-meta span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-meta span { color: var(--muted); font-size: 12px; margin-top: 4px; }
.icon-button { border: 0; background: transparent; color: var(--muted); font-size: 26px; padding: 6px; }
.error { margin-top: 14px; padding: 12px 14px; color: #ffd1ce; background: rgba(255,98,88,.11); border: 1px solid rgba(255,98,88,.2); border-radius: 12px; font-size: 13px; line-height: 1.45; }

.route-diagram { display: grid; grid-template-columns: 1fr 36px 1fr; align-items: center; margin: 20px 0; }
.route-node { display: flex; align-items: center; gap: 9px; min-width: 0; }
.route-node strong, .route-node small { display: block; }
.route-node strong { font-size: 13px; }
.route-node small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.node-dot { flex: 0 0 11px; height: 11px; border-radius: 50%; box-shadow: 0 0 0 5px rgba(255,255,255,.04); }
.node-dot.direct { background: var(--blue); }
.node-dot.vpn { background: var(--acid); }
.route-line { height: 1px; background: var(--line); position: relative; }
.route-line span { position: absolute; right: -1px; top: -2px; width: 5px; height: 5px; border-top: 1px solid var(--muted); border-right: 1px solid var(--muted); transform: rotate(45deg); }
.service-grid { display: flex; flex-wrap: wrap; gap: 7px; }
.service-grid span { padding: 8px 10px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.025); color: #d9dce4; font-size: 11px; }
.route-note { margin: 16px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.route-note b { color: #dce1eb; }

.actions { margin: 18px 0 32px; }
.primary-button, .share-button, .download-button { width: 100%; min-height: 58px; border-radius: 16px; border: 0; font-weight: 760; cursor: pointer; }
.primary-button { display: flex; align-items: center; justify-content: space-between; padding: 0 19px; background: var(--acid); color: #0c0e08; font-size: 16px; box-shadow: 0 12px 34px rgba(203,255,61,.13); }
.primary-button:disabled { background: #252830; color: #6f7480; box-shadow: none; cursor: default; }
.button-arrow { font-size: 22px; }
.result-panel { margin-top: 12px; padding: 17px; border: 1px solid rgba(203,255,61,.25); border-radius: 19px; background: rgba(203,255,61,.055); }
.result-head { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.success-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--acid); color: #0a0c07; font-weight: 900; }
.result-head strong, .result-head span { display: block; }
.result-head span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.share-button { background: var(--text); color: #0b0c10; }
.download-button { margin-top: 8px; background: transparent; border: 1px solid var(--line); color: var(--text); }

.howto { padding: 8px 2px 24px; }
.howto ol { list-style: none; padding: 0; margin: 18px 0; }
.howto li { display: flex; align-items: flex-start; gap: 13px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.howto li > span { display: grid; place-items: center; flex: 0 0 28px; height: 28px; border: 1px solid var(--line); border-radius: 50%; color: var(--acid); font-size: 12px; font-weight: 800; }
.howto p { margin: 2px 0 0; color: #b9bdc8; font-size: 14px; line-height: 1.45; }
.howto b { color: var(--text); }
.warning { padding: 12px 14px; border-radius: 13px; background: rgba(255,179,71,.07); border: 1px solid rgba(255,179,71,.16); color: #d2b98d !important; font-size: 12px !important; }
footer { display: flex; justify-content: space-between; gap: 20px; padding: 21px 2px 4px; border-top: 1px solid var(--line); color: #696e7a; font-size: 10px; }

.hidden { display: none !important; }
@media (min-width: 700px) {
  .shell { padding-top: 52px; }
  .card { padding: 24px; }
}
@media (prefers-reduced-motion: no-preference) {
  .card, .privacy-strip { animation: rise .45s ease both; }
  .route-card { animation-delay: .08s; }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}
