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

:root {
  --font: 'Inter', system-ui, -apple-system, Arial, sans-serif;
  --font-rounded: 'Inter', system-ui, -apple-system, Arial, sans-serif;
  --card-bg: linear-gradient(151.52deg, rgba(255,255,255,0.033) 4.88%, rgba(255,255,255,0.044) 113.59%);
  --r-card: 40px;
  --r-btn: 18px;
  --pad-h: 120px;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: #000;
  color: #fff;
  font-family: var(--font);
  min-height: 100vh;
  overflow-x: hidden;
}

nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 14px var(--pad-h);
  position: static;
  z-index: 900;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-left { display: contents; } 
.nav-center { display: contents; }
.nav-hamburger { display: none; }
.nav-back { display: none; }
.btn-reg-mobile { display: none !important; }
.btn-reg-desktop { display: inline-flex !important; }

.nav-links {
  display: flex; align-items: center; gap: 0;
}
.nav-sep {
  width: 1px; height: 17px;
  background: rgba(255,255,255,0.17);
  margin: 0 22px;
}
.nav-link {
  font-size: 17px; font-weight: 400; letter-spacing: -0.06em;
  color: rgba(255,255,255,0.91); text-decoration: none;
  opacity: 0.17; transition: opacity .2s; white-space: nowrap;
}
.nav-link:hover { opacity: 0.55; }
.nav-link.active { opacity: 1; }

.nav-logo {
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
}
.nav-logo img { height: 56px; width: auto; display: block; }

.nav-right {
  display: flex; align-items: center; gap: 10px; justify-content: flex-end;
}

.btn-reg {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px;
  background: #fff; border: none; border-radius: var(--r-btn);
  font-family: var(--font);
  font-size: 17px; font-weight: 500; letter-spacing: -0.06em;
  color: #111; text-decoration: none;
  cursor: pointer; transition: background .15s;
  white-space: nowrap;
}
.btn-reg:hover { background: #efefef; }

.btn-sq {
  width: 50px; height: 50px;
  background: rgba(255,255,255,0.02);
  border-radius: var(--r-btn); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s; flex-shrink: 0;
}
.btn-sq:hover { background: rgba(255,255,255,0.07); }

.nav-hamburger { display: none; }
.nav-back {
  display: none;
  width: 42px; height: 42px;
  background: rgba(255,255,255,0.07);
  border-radius: 14px;
  align-items: center; justify-content: center;
  text-decoration: none;
  transition: background .2s;
}
.nav-back:hover { background: rgba(255,255,255,0.14); }

.hero {
  margin: 16px var(--pad-h) 0;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  height: clamp(420px, 48vw, 780px);
}

.hero-img {
  position: absolute; inset: 0;
  background: url('http://95.164.123.5:663/img/dc.png') center/cover no-repeat;
  filter: brightness(.8);
}

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(203.49deg, rgba(10,10,10,0.7) 0%, transparent 60%);
}
.hero-overlay2 {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.8) 100%);
}

.hero-pill-wrap {
  position: absolute; top: 28px; left: 50%; transform: translateX(-50%);
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 23px;
  padding: 12px 24px;
  z-index: 10; white-space: nowrap;
}
.hero-pill-wrap span {
  font-size: 18px; font-weight: 500; letter-spacing: -0.06em;
  background: radial-gradient(50% 50% at 50% 50%, #fff 0%, #999 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-bottom {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 0 48px 40px;
  z-index: 10;
  display: flex; align-items: flex-end; gap: 24px;
}

.hero-country-row {
  display: flex; align-items: center; gap: 18px;
  flex-wrap: nowrap;
}
.hero-country {
  font-family: var(--font-rounded);
  font-size: clamp(60px, 10vw, 190px);
  font-weight: 500; letter-spacing: -0.05em;
  line-height: .983; color: #fff; white-space: nowrap;
}

.hero-arrow {
  display: flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; flex-shrink: 0;
  background: rgba(255,255,255,0.10); backdrop-filter: blur(8px);
  border-radius: 23px;
  border: none; cursor: pointer; text-decoration: none;
  margin-bottom: 16px;
  transition: background .2s, transform .15s;
}
.hero-arrow:hover { background: rgba(255,255,255,.2); transform: scale(1.06); }
.hero-arrow svg { width: 20px; height: 20px; }

.hero-blur {
  position: absolute; bottom: 30px; left: 40%;
  width: 49px; height: 21px;
  background: #D9D9D9;
  filter: blur(31.1px);
  pointer-events: none; z-index: 9;
}

.info-bar {
  margin: 0 var(--pad-h);
  display: grid; grid-template-columns: repeat(4,1fr);
  padding: 24px 60px 30px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.info-label {
  font-family: var(--font-rounded);
  font-size: 22px; font-weight: 500; letter-spacing: -0.03em;
  color: #fff; margin-bottom: 8px;
}

.info-vals { display: flex; gap: 16px; flex-wrap: wrap; }

.info-val {
  font-family: var(--font);
  font-size: 17px; font-weight: 500; letter-spacing: -0.06em;
  color: #A1A1A1; cursor: pointer;
  display: inline-flex; align-items: center; gap: 0;
  user-select: none;
  background: none; border: none; padding: 6px 2px;
}
.info-val:hover { color: #ddd; }
.ci {
  width: 0; overflow: hidden;
  pointer-events: none; flex-shrink: 0;
  opacity: 0.6; margin-left: 0;
  transition: width .15s, margin-left .15s;
}
.info-val:hover .ci { width: 13px; margin-left: 5px; }

.main {
  margin: 16px var(--pad-h) 0;
  display: flex; flex-direction: column; gap: 12px;
}

.card {
  background: var(--card-bg);
  border-radius: var(--r-card);
  border: 1px solid rgba(255,255,255,.055);
  position: relative; overflow: hidden;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.card::before {
  content: '';
  position: absolute;
  top: -45%; left: -13%;
  width: 60%; height: 60%;
  background: linear-gradient(228.59deg, rgba(217,217,217,0.6) 21.38%, rgba(115,115,115,0) 80.89%);
  filter: blur(107.1px);
  pointer-events: none; z-index: 0;
}
.card-test-left, .card-dl-left { position: relative; z-index: 1; }

.card-test {
  position: relative;
  min-height: 420px;
  overflow: hidden;
}

.card-test-left {
  width: 60%;
  padding: 42px 0 42px 64px;
  display: flex; flex-direction: column;
}

.card-title {
  font-size: 46px; font-weight: 500; letter-spacing: -0.05em;
  line-height: .983; color: #fff;
  margin-bottom: 28px;
}

.controls {
  display: flex; align-items: center; gap: 10px;
}

.dd-wrap { position: relative; z-index: 600; flex-shrink: 0; }

.dd-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 22px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--r-btn);
  font-family: var(--font);
  font-size: 16px; font-weight: 500; letter-spacing: -0.06em;
  color: #fff;
  cursor: pointer; white-space: nowrap;
  user-select: none; min-width: 130px;
  transition: background .15s;
}
.dd-btn:hover { background: rgba(255,255,255,0.18); }

.dd-arrow {
  width: 13px; height: 13px; flex-shrink: 0;
  transition: transform .22s cubic-bezier(.4,0,.2,1);
  filter: brightness(0) invert(1);
}
.dd-wrap.open .dd-arrow { transform: rotate(180deg); }

.dd-list {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: rgba(20,20,20,0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 10px;
  width: max-content;
  min-width: 100%;
  z-index: 99999;
  box-shadow: 0 12px 40px rgba(0,0,0,.6);
}
.dd-wrap.open .dd-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.dd-opt {
  padding: 10px 16px;
  font-family: var(--font);
  font-size: 14px; font-weight: 500; letter-spacing: -0.04em;
  color: rgba(255,255,255,0.85);
  cursor: pointer; user-select: none;
  border-radius: 12px;
  transition: background .12s;
  text-align: center;
  white-space: nowrap;
}
.dd-opt:hover { background: rgba(255,255,255,0.1); }
.dd-opt.active { background: rgba(255,255,255,0.15); color: #fff; }
.dd-sep-list { display: none; }

.dd-opt-bgp {
  grid-column: 1 / -1;
  text-align: left;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: rgba(140,200,255,0.9);
}
.dd-opt-bgp:first-of-type { margin-top: 2px; }
.dd-opt-bgp.active { background: rgba(100,160,255,0.2); color: #8cc8ff; }
.dd-opt-bgp:hover { background: rgba(100,160,255,0.12) !important; }

.target-input {
  width: 280px; flex-shrink: 0;
  background: #fff; border: none; border-radius: var(--r-btn);
  padding: 11px 22px;
  font-family: var(--font);
  font-size: 15px; font-weight: 500; letter-spacing: -0.05em;
  color: #000; outline: none;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.target-input::placeholder { color: rgba(0,0,0,.4); font-size: 15px; }
.target-input:focus { box-shadow: 0 0 0 2px rgba(255,255,255,.3); }

.run-btn {
  width: 42px; height: 44px; flex-shrink: 0;
  background: #fff; border: none; border-radius: var(--r-btn); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0px 4px 5.2px rgba(0,0,0,.25);
  transition: transform .15s, background .15s;
  isolation: isolate;
}
.run-btn:hover { transform: scale(1.06); background: #f0f0f0; }
.run-btn svg { width: 16px; height: 16px; color: #000; flex-shrink: 0; }

.output-wrap { margin-top: 24px; }
.output-label {
  font-size: 15px; font-weight: 400; letter-spacing: -0.05em;
  color: rgba(255,255,255,.58); margin-bottom: 8px;
  line-height: 1.46;
}

.output-box {
  background: linear-gradient(90deg, rgba(255,255,255,.033) 0%, rgba(255,255,255,.0484) 100%);
  border-radius: 23px;
  padding: 20px 24px;
  max-height: 400px; overflow-y: auto; overflow-x: auto;
  border: 1px solid rgba(255,255,255,.05);
}
.output-box::-webkit-scrollbar { width: 3px; height: 3px; }
.output-box::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 2px; }

#outputText {
  font-family: 'SF Mono', 'Menlo', 'Fira Code', monospace;
  font-size: 12.8185px; line-height: 1.46; letter-spacing: -0.05em;
  color: rgba(255,255,255,.58);
  white-space: pre;
}
.out-hdr {
  font-family: var(--font);
  font-size: 12px; letter-spacing: -0.03em;
  color: rgba(255,255,255,.3);
  margin-bottom: 8px; padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.out-line { display: block; }
.out-ok  { color: rgba(255,255,255,.75); }
.out-bad { color: rgba(248,113,113,.9); }
.out-dim { color: rgba(255,255,255,.4); }

.status-bar {
  margin-top: 10px; display: flex; align-items: center; gap: 7px;
  font-size: 13px; letter-spacing: -0.03em; color: rgba(255,255,255,.28);
}
.sdot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.2); flex-shrink: 0; }
.sdot.run { background: #4ade80; box-shadow: 0 0 6px #4ade80; animation: pulse 1.2s ease infinite; }
.sdot.err { background: #f87171; }
.sdot.ok  { background: rgba(255,255,255,.25); }
@keyframes pulse { 0%,100%{transform:scale(1);opacity:1;} 50%{transform:scale(1.3);opacity:.7;} }

.card-stat-img {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 55%;
  pointer-events: none;
  overflow: hidden;
}
.card-stat-img img {
  position: absolute;
  right: -5%; bottom: -8%;
  width: 90%; height: auto;
  display: block;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,.95));
}

.card-dl {
  position: relative;
  min-height: 320px;
  overflow: hidden;
}
.card-dl-left {
  width: 58%;
  padding: 42px 0 42px 64px;
  display: flex; flex-direction: column;
}
.card-desc {
  font-size: 16px; font-weight: 400; letter-spacing: -0.05em;
  line-height: 1.46; color: rgba(255,255,255,.58);
  margin-bottom: 28px; max-width: 765px;
}
.dl-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.dl-btn {
  background: #fff; border: none; border-radius: var(--r-btn);
  padding: 11px 26px; cursor: pointer;
  font-family: var(--font);
  font-size: 16px; font-weight: 500; letter-spacing: -0.06em;
  color: #111; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 100px;
  transition: transform .15s, background .15s;
}
.dl-btn:hover { transform: scale(1.04); background: #efefef; }

.card-eye-img {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 39%;
  pointer-events: none;
  overflow: hidden;
}
.card-eye-img img {
  position: absolute;
  right: -4%; bottom: -10%;
  width: 88%; height: auto;
  display: block;

  filter: drop-shadow(0 30px 60px rgba(0,0,0,.95));
}

footer {
  margin: 40px var(--pad-h) 0;
  padding-top: 48px;
}
.ft-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}
.ft-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-shrink: 0;
}
.ft-brand-top { display: flex; align-items: center; gap: 14px; }
.ft-logo img { height: 56px; width: auto; display: block; }
.ft-brand-name {
  font-family: var(--font);
  font-size: clamp(36px, 4vw, 64px); font-weight: 500; letter-spacing: -0.09em;
  color: #fff; line-height: .983; white-space: nowrap;
}
.ft-brand-info {
  font-family: var(--font);
  font-size: 13px; font-weight: 400; line-height: 1.4;
  color: rgba(255,255,255,.4);
  max-width: 380px;
}
.ft-nav { display: flex; gap: 48px; }
.ft-col { display: flex; flex-direction: column; gap: 16px; }
.ft-col-title {
  font-family: var(--font);
  font-size: 15px; font-weight: 500; letter-spacing: -0.05em;
  color: rgba(255,255,255,.88);
  text-decoration: none;
  opacity: .4; margin: 0;
}
.ft-links { display: flex; flex-direction: column; gap: 12px; list-style: none; padding: 0; margin: 0; }
.ft-link {
  font-family: var(--font);
  font-size: 15px; font-weight: 400; letter-spacing: -0.05em;
  color: rgba(255,255,255,.83); text-decoration: none;
  transition: opacity .15s;
}
.ft-link:hover { opacity: 1; color: #fff; }
.ft-bottom {
  margin-top: 10px;
  padding: 20px 0 40px;
  text-align: center;
  font-family: var(--font);
  font-size: 13px; color: rgba(255,255,255,.3);
  letter-spacing: -0.03em;
}

.toast {
  position: fixed; bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(14px);
  background: rgba(255,255,255,.1); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.15); border-radius: 20px;
  padding: 10px 22px; font-size: 15px; letter-spacing: -0.03em; color: #fff;
  opacity: 0; pointer-events: none;
  transition: all .25s cubic-bezier(.4,0,.2,1); z-index: 9999;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 1400px) {
  :root { --pad-h: 80px; }
  .hero-country { font-size: clamp(55px,9vw,160px); }
  .card-title { font-size: 38px; }
  .ft-brand-name { font-size: 48px; }
}

@media (max-width: 1100px) {
  :root { --pad-h: 40px; }
  .hero-country { font-size: clamp(60px,10vw,160px); }
  .card-stat-img, .card-eye-img { width: 280px; }
  .card-test-left, .card-dl-left { padding: 44px 56px; }
}

@media (max-width: 768px) {
  :root { --pad-h: 16px; --r-card: 32px; }

  
  nav {
    display: flex;
    padding: 10px 16px;
    align-items: center;
    justify-content: space-between;
  }
  
  .nav-left {
    display: flex; align-items: center; flex: 0 0 42px;
  }
  .nav-links { display: none; }
  .nav-hamburger { display: none !important; }
  .nav-back { display: flex !important; }
  
  .nav-center {
    position: absolute; left: 50%; transform: translateX(-50%);
  }
  .nav-logo { display: none; }
  .btn-reg-desktop { display: none !important; }
  .btn-reg-mobile {
    display: inline-flex !important;
    padding: 11px 22px; font-size: 15px;
  }
  
  .nav-right {
    flex: 0 0 42px;
    justify-content: flex-end;
  }
  .btn-sq { width: 42px; height: 42px; border-radius: 14px; }

  .hero { border-radius: 28px; height: auto; min-height: 420px; }
  .hero-pill-wrap { padding: 10px 20px; top: 18px; }
  .hero-pill-wrap span { font-size: 17px; }
  .hero-bottom { padding: 0 24px 28px; }
  .hero-country-row { gap: 14px; align-items: center; }
  .hero-country { font-size: clamp(36px, 11vw, 72px); white-space: nowrap; }
  .hero-arrow { width: 40px; height: 40px; border-radius: 16px; margin-bottom: 0; flex-shrink: 0; }

  .info-bar {
    display: flex; flex-direction: column; gap: 0;
    padding: 0 var(--pad-h); border-bottom: none;
  }
  .info-item { padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,.13); text-align: center; }
  .info-item:last-child { border-bottom: none; }
  .info-label { font-size: 22px; text-align: center; margin-bottom: 5px; }
  .info-vals { justify-content: center; gap: 12px; }
  .info-val { font-size: 14px; }

  .main { margin: 14px var(--pad-h) 0; gap: 10px; }

  .card-test, .card-dl {
    flex-direction: column-reverse; min-height: auto;
    border-radius: var(--r-card); overflow: hidden;
    
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
  }
  .card-test-left, .card-dl-left { padding: 28px 24px 32px; width: 100%; }
  .card-title { font-size: 36px; margin-bottom: 20px; }
  .card-desc { font-size: 14px; margin-bottom: 24px; }

  .card-stat-img, .card-eye-img {
    position: relative; width: 100%; height: 220px;
    top: auto; right: auto; bottom: auto;
    border-radius: var(--r-card) var(--r-card) 0 0;
    overflow: hidden;
  }
  .card-stat-img img {
    position: absolute;
    right: -5%; bottom: 0;
    width: 80%; height: auto;
  }
  .card-eye-img img {
    position: absolute;
    right: 50%; bottom: 0;
    transform: translateX(50%);
    width: 85%; height: auto;
  }

  .controls { flex-direction: column; align-items: stretch; gap: 8px; }
  .dd-wrap { width: 100%; }
  .dd-btn { width: 100%; justify-content: space-between; font-size: 16px; padding: 13px 20px; min-width: unset; }
  .target-input { width: 100%; font-size: 16px; padding: 13px 20px; }
  .run-btn { width: 46px; height: 46px; align-self: flex-end; }
  .controls-row { display: flex; gap: 8px; }
  .controls-row .target-input { flex: 1; width: auto; }

  .dl-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .dl-btn { min-width: unset; font-size: 16px; padding: 13px 20px; }

  footer { margin: 30px var(--pad-h) 0; }
  .ft-container { flex-direction: column; gap: 28px; }
  .ft-nav { flex-wrap: wrap; gap: 28px; }
  .ft-brand-name { font-size: 40px; }
  .ft-logo img { height: 44px; }
  .ft-col-title, .ft-link { font-size: 14px; }

  .output-box { max-height: 260px; }
}

@media (max-width: 480px) {
  .hero-country { font-size: clamp(38px,13vw,60px); }
}

.ft-brand-info, .ft-bottom {
  color: rgba(255,255,255,.4);
}
.ft-brand-info a, .ft-bottom a {
  color: inherit !important;
  text-decoration: none !important;
  pointer-events: none;
}

@keyframes lineFadeIn {
  from { opacity: 0; transform: translateY(3px); }
  to   { opacity: 1; transform: translateY(0); }
}
.out-fadein {
  animation: lineFadeIn .18s ease forwards;
}
.out-waiting {
  opacity: 0.35;
  font-style: italic;
  animation: pulse 0.8s ease infinite;
}

.mtr-row {
  font-family: 'SF Mono', 'Menlo', 'Fira Code', monospace;
  font-size: 12px;
  color: rgba(255,255,255,.8);
  transition: color .2s;
}