:root {
  --paper: #f2f0e8;
  --paper-2: #e9e5da;
  --ink: #171517;
  --ink-2: #242027;
  --red: #d82339;
  --violet: #7768ff;
  --muted: #756f72;
  --line: rgba(23,21,23,.18);
  --dark-line: rgba(242,240,232,.17);
  --danger: #ff6276;
  --max: 1500px;
}

* { box-sizing: border-box; }
html { min-width: 0; overflow-x: hidden; scroll-behavior: smooth; background: var(--paper); }
body { width: 100%; max-width: 100%; min-width: 0; margin: 0; overflow-x: hidden; color: var(--ink); font-family: Inter, "Segoe UI", Arial, sans-serif; background: radial-gradient(circle at 82% 17%, rgba(119,104,255,.12), transparent 31%), linear-gradient(135deg, var(--paper), #f7f5ee); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
::selection { color: #fff; background: var(--red); }

.traffic-map { position: fixed; z-index: 0; inset: 0; width: 100%; height: 100%; opacity: .35; pointer-events: none; }
.grain { position: fixed; z-index: 0; inset: 0; pointer-events: none; opacity: .12; background-image: linear-gradient(rgba(23,21,23,.11) 1px, transparent 1px), linear-gradient(90deg,rgba(23,21,23,.11) 1px,transparent 1px); background-size: 80px 80px; mask-image: linear-gradient(90deg,transparent,#000 48%,transparent); }
.layout { position: relative; z-index: 1; width: min(calc(100% - 84px), var(--max)); min-height: 100vh; margin-inline: auto; }

.header { min-height: 97px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; width: max-content; align-items: center; gap: 13px; }
.brand__flag { width: 38px; height: 38px; display: grid; grid-template-columns: repeat(3,1fr); overflow: hidden; border: 1px solid var(--ink); transform: rotate(-5deg); transition: transform .35s; }
.brand__flag i { height: 100%; background: var(--ink); animation: flag-bars 2.4s ease-in-out infinite alternate; }
.brand__flag i:nth-child(2) { background: var(--paper); animation-delay: -.7s; }
.brand__flag i:nth-child(3) { background: var(--red); animation-delay: -1.3s; }
.brand:hover .brand__flag { transform: rotate(0deg); }
.brand__name { font-size: 30px; font-weight: 950; letter-spacing: -.075em; }
.header__section { color: #565057; font-size: 11px; font-weight: 900; letter-spacing: .18em; white-space: nowrap; }
.header__section i { color: var(--red); font-style: normal; }
.header__live { justify-self: end; display: inline-flex; align-items: center; gap: 9px; color: #716a72; font-size: 11px; font-weight: 900; letter-spacing: .1em; white-space: nowrap; }
.header__live i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(216,35,57,.28); animation: live-pulse 2.2s ease-out infinite; }

.main { min-height: 760px; display: grid; grid-template-columns: minmax(0,1.08fr) minmax(430px,.72fr); gap: clamp(60px,7vw,120px); align-items: center; padding: 69px 0 79px; }
.welcome, .access { min-width: 0; }
.welcome { animation: enter .7s .05s both; }
.welcome__meta { display: flex; align-items: center; gap: 12px; max-width: 760px; margin-bottom: 42px; color: #8b8388; font: 700 11px/1 Consolas, monospace; }
.welcome__meta i { height: 1px; flex: 1; background: linear-gradient(90deg, var(--red), transparent); }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 21px; color: var(--red); font-size: 12px; font-weight: 950; letter-spacing: .2em; }
.eyebrow span { width: 40px; height: 3px; background: var(--violet); animation: eye-grow 2.5s ease-in-out infinite alternate; }
h1 { margin: 0; font-size: clamp(68px,6.7vw,108px); line-height: .9; letter-spacing: -.066em; }
h1 em { color: var(--red); font-style: normal; }
h1 > span { color: var(--violet); }
.lead { max-width: 680px; margin: 31px 0 0; color: #6e676b; font-size: 17px; line-height: 1.7; }

.transfer { max-width: 800px; margin-top: 43px; border: 1px solid var(--line); background: rgba(255,255,255,.37); box-shadow: 0 24px 75px rgba(45,35,39,.09); }
.transfer__header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 13px 17px; border-bottom: 1px solid var(--line); color: #7c7378; font-size: 10px; font-weight: 900; letter-spacing: .15em; }
.transfer__header span:last-child { color: var(--red); }
.transfer__canvas { min-height: 116px; display: grid; grid-template-columns: 50px 1fr 62px 1fr 50px; align-items: center; gap: 8px; padding: 18px; overflow: hidden; }
.node { position: relative; width: 47px; height: 47px; display: grid; place-items: center; border: 1px solid var(--ink); font: 900 10px Consolas, monospace; }
.node i { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--red); animation: node-pulse 1.6s ease-in-out infinite; }
.node--source i { right: -4px; }
.node--target i { left: -4px; background: var(--violet); }
.route { height: 22px; display: flex; align-items: center; justify-content: space-around; border-top: 1px solid #a69ca2; border-bottom: 1px solid #a69ca2; }
.route i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: route-flow 2.2s linear infinite; }
.route i:nth-child(2) { animation-delay: -.4s; }.route i:nth-child(3) { animation-delay: -.8s; }.route i:nth-child(4) { animation-delay: -1.2s; }.route i:nth-child(5) { animation-delay: -1.6s; }
.route--b i { background: var(--violet); animation-direction: reverse; }
.hub { position: relative; width: 62px; height: 62px; display: grid; place-items: center; color: #fff; background: var(--ink); font-size: 26px; font-weight: 950; }
.hub::before { position: absolute; inset: -8px; content: ""; border: 1px solid rgba(216,35,57,.55); animation: hub-spin 9s linear infinite; }
.hub i { position: absolute; width: 7px; height: 7px; background: var(--red); }
.hub i:first-of-type { top: -11px; left: -11px; }.hub i:last-of-type { right: -11px; bottom: -11px; background: var(--violet); }
.transfer__channels { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-top: 1px solid var(--line); }
.transfer__channels > div { min-height: 81px; display: grid; grid-template-columns: 28px 1fr; align-content: center; gap: 4px 9px; padding: 14px; border-right: 1px solid var(--line); }
.transfer__channels > div:last-child { border-right: 0; }
.transfer__channels span { grid-row: 1 / 3; color: var(--red); font: 700 10px Consolas, monospace; }
.transfer__channels strong { font-size: 12px; }
.transfer__channels small { color: #8c8388; font-size: 11px; }

.access { width: 100%; max-width: 545px; justify-self: end; animation: enter .78s .14s both; }
.login-card { position: relative; padding: 38px 38px 30px; color: var(--paper); background: var(--ink); box-shadow: 0 35px 100px rgba(34,27,31,.32); }
.login-card::before { position: absolute; top: 0; right: 0; width: 105px; height: 7px; content: ""; background: linear-gradient(90deg,var(--violet),var(--red)); }
.login-card__index { margin-bottom: 24px; color: #716a73; font: 700 10px Consolas, monospace; }
.login-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.login-card__head > div > span { color: #c3b8c0; font-size: 11px; font-weight: 900; letter-spacing: .16em; }
.login-card h2 { margin: 10px 0 0; font-size: 38px; letter-spacing: -.045em; }
.secure-icon { position: relative; width: 44px; height: 44px; flex: 0 0 auto; border: 1px solid #59515a; }
.secure-icon::before { position: absolute; top: 17px; left: 13px; width: 16px; height: 13px; content: ""; background: var(--red); }
.secure-icon::after { position: absolute; top: 9px; left: 16px; width: 10px; height: 10px; content: ""; border: 3px solid var(--red); border-bottom: 0; border-radius: 7px 7px 0 0; }
.login-card__intro { margin: 17px 0 0; color: #aaa0a8; font-size: 14px; line-height: 1.6; }
.login-form { display: grid; gap: 9px; margin-top: 25px; }
.login-form > label:not(.remember) { margin-top: 6px; color: #c7bbc4; font-size: 12px; font-weight: 900; letter-spacing: .08em; }
.field { position: relative; }
.field input { width: 100%; height: 56px; padding: 0 96px 0 15px; border: 1px solid #4c454d; border-radius: 0; outline: 0; color: var(--paper); background: #242026; font-size: 15px; transition: border-color .2s, box-shadow .2s, background .2s; }
.field input::placeholder { color: #817981; }
.field input:focus { border-color: var(--violet); background: #2a252c; box-shadow: 0 0 0 3px rgba(119,104,255,.16); }
.field > span, .password-toggle { position: absolute; top: 50%; right: 15px; transform: translateY(-50%); }
.field > span { color: #7f757e; font: 800 11px Consolas, monospace; }
.password-toggle { padding: 7px 0; border: 0; color: #a89fff; background: transparent; cursor: pointer; font-size: 11px; font-weight: 900; }
.remember { min-height: 38px; display: flex; align-items: center; gap: 9px; color: #aaa0a8; font-size: 13px; }
.remember input { width: 16px; height: 16px; accent-color: var(--red); }
.submit { height: 57px; display: flex; align-items: center; justify-content: space-between; padding: 0 19px; border: 0; color: #fff; background: var(--red); cursor: pointer; font-size: 13px; font-weight: 950; letter-spacing: .1em; transition: transform .2s, box-shadow .2s, background .2s; }
.submit:hover { transform: translateY(-2px); background: #ed3046; box-shadow: 0 10px 30px rgba(216,35,57,.25); }
.submit span:last-child { font-size: 23px; font-weight: 400; }
.login-error { display: flex; gap: 12px; margin-top: 5px; padding: 14px; border-left: 4px solid var(--danger); color: #ffd9df; background: #3a1c25; animation: error-in .35s both; }
.login-error[hidden] { display: none; }
.login-error__icon { width: 23px; height: 23px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 50%; color: #2b1118; background: var(--danger); font-weight: 900; }
.login-error strong { font-size: 13px; }.login-error p { margin: 4px 0 0; color: #e8bbc4; font-size: 12px; line-height: 1.45; }
.security { display: flex; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid #39333a; color: #928891; }
.security p { margin: 0; font-size: 12px; line-height: 1.5; }
.security > span { width: 14px; height: 17px; flex: 0 0 auto; margin-top: 2px; background: var(--violet); clip-path: polygon(50% 0,100% 18%,90% 72%,50% 100%,10% 72%,0 18%); }
.download { display: grid; grid-template-columns: 44px minmax(0,1fr) auto; align-items: center; gap: 15px; margin-top: 19px; padding: 17px 18px; border: 1px solid var(--line); background: rgba(255,255,255,.34); transition: transform .25s,border-color .25s,background .25s; }
.download:hover { transform: translateY(-3px); border-color: rgba(216,35,57,.55); background: rgba(255,255,255,.62); }
.download__icon { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--red); color: var(--red); font-size: 23px; }
.download small { display: block; margin-bottom: 5px; color: var(--red); font-size: 10px; font-weight: 950; letter-spacing: .12em; }
.download strong { display: block; font-size: 13px; }.download__type { color: #81787d; font: 700 11px Consolas, monospace; }

.queue { display: grid; grid-template-columns: 210px repeat(3,minmax(0,1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.queue__title, .queue__line { min-height: 99px; padding: 17px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.queue__title { display: grid; align-content: center; gap: 9px; background: var(--ink); color: #fff; }
.queue__title span { color: #9c929b; font-size: 10px; font-weight: 900; letter-spacing: .12em; }.queue__title strong { font-size: 16px; }
.queue__line { display: grid; grid-template-columns: 1fr repeat(6,5px) auto; align-items: center; gap: 7px; }
.queue__line > span { font: 700 11px Consolas, monospace; }.queue__line i { width: 5px; height: 18px; background: var(--violet); animation: queue-wave .7s ease-in-out infinite alternate; }
.queue__line i:nth-of-type(2n) { height: 8px; animation-delay: -.25s; }.queue__line i:nth-of-type(3n) { height: 13px; animation-delay: -.45s; }
.queue__line b { margin-left: 7px; color: var(--red); font-size: 9px; letter-spacing: .08em; }
.footer { min-height: 79px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #827a7f; font-size: 11px; font-weight: 800; letter-spacing: .08em; }

@keyframes enter { from { opacity: 0; transform: translateY(23px); } to { opacity: 1; transform: none; } }
@keyframes flag-bars { to { transform: translateY(7px); opacity: .65; } }
@keyframes live-pulse { to { box-shadow: 0 0 0 10px rgba(216,35,57,0); } }
@keyframes eye-grow { to { width: 57px; } }
@keyframes node-pulse { 50% { transform: scale(1.7); opacity: .35; } }
@keyframes route-flow { from { transform: translateX(-42px); opacity: 0; } 20%,80% { opacity: 1; } to { transform: translateX(42px); opacity: 0; } }
@keyframes hub-spin { to { transform: rotate(360deg); } }
@keyframes queue-wave { to { height: 4px; opacity: .45; } }
@keyframes error-in { from { opacity: 0; transform: translateY(-7px); } }

@media (max-width: 1140px) {
  .main { grid-template-columns: 1fr; gap: 62px; }
  .welcome__meta { max-width: none; }
  .access { max-width: 650px; justify-self: start; }
  h1 { font-size: clamp(72px,10vw,108px); }
  .queue { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .queue__title { grid-column: 1 / -1; min-height: 75px; }
}
@media (max-width: 760px) {
  .layout { width: calc(100% - 40px); }
  .header { min-height: 82px; grid-template-columns: 1fr auto; }
  .header__section { display: none; }
  .main { gap: 50px; padding: 54px 0 61px; }
  h1 { font-size: clamp(59px,14.5vw,88px); }
  .lead { font-size: 16px; }
  .queue { grid-template-columns: 1fr; }
  .queue__title { grid-column: auto; }
  .login-card { padding: 31px 23px 26px; }
  .footer { min-height: 123px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; }
}
@media (max-width: 520px) {
  .layout { width: calc(100% - 30px); }
  .header__live { font-size: 9px; letter-spacing: .07em; }
  .welcome__meta { margin-bottom: 33px; }.eyebrow { font-size: 10px; letter-spacing: .14em; }
  h1 { font-size: clamp(53px,15.5vw,70px); line-height: .94; }
  .transfer { margin-top: 35px; }
  .transfer__canvas { grid-template-columns: 40px 1fr 50px 1fr 40px; gap: 5px; padding: 18px 10px; }
  .node { width: 39px; height: 39px; }.hub { width: 50px; height: 50px; font-size: 21px; }
  .transfer__channels { grid-template-columns: 1fr; }
  .transfer__channels > div { min-height: 65px; border-right: 0; border-bottom: 1px solid var(--line); }
  .transfer__channels > div:last-child { border-bottom: 0; }
  .login-card { padding: 28px 19px 24px; }.login-card h2 { font-size: 33px; }
  .download { grid-template-columns: 39px minmax(0,1fr); padding: 14px; }.download__icon { width: 37px; height: 37px; }.download__type { display: none; }
}
@media (max-width: 350px) {
  .layout { width: calc(100% - 24px); }.header__live { display: none; }.header { grid-template-columns: 1fr; }
  h1 { font-size: 49px; }.login-card { padding-inline: 14px; }
  .transfer__canvas { grid-template-columns: 34px 1fr 44px 1fr 34px; }.node { width: 34px; height: 34px; }.hub { width: 44px; height: 44px; }
  .download strong { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
