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

html, body {
    height: 100%;
    background: radial-gradient(ellipse at center, #1a1f2c 0%, #0d121b 75%, #070b12 100%);
    color: #e2e8f0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.48;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.scene {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 20px 12px;
}

.device {
    width: 100%;
    max-width: 620px;
    background: linear-gradient(145deg, #2f3745, #252d3c);
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid #3c4552;
    box-shadow: 
        0 70px 140px -40px rgba(0,0,0,0.92),
        inset 0 1.5px 0 #4a5a75,
        inset 0 -2px 3px #0d111a;
    position: relative;
    isolation: isolate;
}

.top-bar {
    height: 88px;
    background: linear-gradient(to bottom, #3a4453, #2f3745);
    border-bottom: 1px solid #252e3b;
    display: flex;
    align-items: center;
    padding: 0 28px;
    gap: 28px;
    position: relative;
}

.logo-slot {
    flex-shrink: 0;
    width: 165px;
    height: 60px;
    background: #1c2331;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 
        inset 0 2px 5px #00000090,
        0 1px 0 #3cbef215;
    display: grid;
    place-items: center;
    transition: transform 0.18s ease;
}

.logo-slot img {
    width: 145px;
    height: auto;
    display: block;
}

.model {
    font-size: 13.2px;
    font-weight: 600;
    letter-spacing: 1.8px;
    color: #6e829c;
    text-transform: uppercase;
    text-shadow: 0 1px 0 #000000b0;
}

.main-panel {
    padding: 36px 28px 44px;
    background: linear-gradient(to bottom, #2a333f 0%, #303948 100%);
}

h1.debossed {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.4px;
    color: #d1deff;
    margin-bottom: 20px;
    text-shadow: 0 2px 5px #000000c0;
}

.debossed {
    font-size: 13.8px;
    font-weight: 600;
    letter-spacing: 1.2px;
    color: #8899b2;
    text-transform: uppercase;
    margin-bottom: 14px;
    text-shadow: 0 1px 1px #000000d0;
}

.intro-text,
.module-text {
    font-size: 15.8px;
    line-height: 1.62;
    color: #c7d2fe;
    margin-bottom: 16px;
}

.module-intro {
    font-size: 15.4px;
    color: #a5b4fc;
    margin-bottom: 22px;
}

.input-frame {
    background: #1c2331;
    border-radius: 16px;
    padding: 5px;
    box-shadow: 
        inset 0 4px 10px #00000080,
        0 1px 0 #3cbef225;
    margin-bottom: 18px;
}

#linkInput {
    width: 100%;
    padding: 17px 20px;
    background: transparent;
    border: none;
    color: #e2e8f0;
    font-size: 17px;
    font-family: inherit;
    outline: none;
    caret-color: #3cbef2;
    word-break: break-all;
}

#linkInput::placeholder {
    color: #5a6b82;
}

#verifyBtn {
    width: 100%;
    padding: 17px;
    background: linear-gradient(145deg, #3cbef2, #2aa8e0);
    color: #0e1e2b;
    font-size: 17px;
    font-weight: 700;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    box-shadow: 
        0 8px 20px #3cbef270,
        inset 0 -2px 0 #1e8bc8;
    transition: all 0.22s ease;
}

#verifyBtn:hover {
    transform: translateY(-1px);
    box-shadow: 
        0 12px 28px #3cbef290,
        inset 0 -2px 0 #1e8bc8;
}

#verifyBtn:active {
    transform: translateY(1px);
    box-shadow: 
        0 4px 12px #3cbef260,
        inset 0 1px 0 #5ccaff;
}

.result-field {
    min-height: 68px;
    margin-top: 22px;
    padding: 18px 22px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    background: #1e2530;
    border: 1px solid #2c3748;
    box-shadow: inset 0 2px 6px #00000070;
    transition: all 0.28s ease;
}

.result-field.success {
    background: #1a352a;
    border-color: #3cb45070;
    color: #92e8a8;
    box-shadow: inset 0 0 24px #3cb45035;
}

.result-field.error {
    background: #351a28;
    border-color: #e2608040;
    color: #ff98a8;
    box-shadow: inset 0 0 24px #e2608035;
}

.mirrors-module .title {
    margin-bottom: 20px;
}

.mirrors-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mirror-entry {
    background: #242c38;
    border-radius: 14px;
    padding: 20px 22px;
    box-shadow: 
        0 3px 10px #00000050,
        inset 0 1px 0 #3cbef218;
    cursor: pointer;
    transition: all 0.22s ease;
    position: relative;
    overflow: hidden;
}

.mirror-entry:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 32px #00000060,
        inset 0 1px 0 #3cbef235;
}

.mirror-url {
    font-family: ui-monospace, monospace;
    font-size: 15.8px;
    line-height: 1.52;
    color: #a8bfff;
    word-break: break-all;
    margin-bottom: 10px;
    user-select: none;
}

.mirror-latency {
    font-size: 13.2px;
    color: #6e829c;
}

.copy-hint {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 12.4px;
    color: #3cbef290;
    opacity: 0;
    transition: opacity 0.24s ease;
    pointer-events: none;
}

.mirror-entry:hover .copy-hint {
    opacity: 0.9;
}

.feature-list {
    list-style: none;
    margin: 24px 0;
}

.feature-list li {
    padding: 11px 0 11px 28px;
    position: relative;
    font-size: 15.2px;
    color: #cbd5e1;
}

.feature-list li:before {
    content: "→";
    position: absolute;
    left: 4px;
    color: #3cbef2;
    font-weight: 700;
}

.bottom-signature {
    text-align: center;
    padding: 24px 0 32px;
    font-size: 13px;
    color: #5a6b82;
    border-top: 1px solid #252e3a;
    background: #272f3b;
}

@media (max-width: 520px) {
    .device {
        border-radius: 24px;
    }
    .top-bar {
        padding: 0 20px;
        height: 80px;
    }
    .main-panel {
        padding: 28px 20px 40px;
    }
    .logo-slot img {
        width: 132px;
    }
    h1.debossed {
        font-size: 24px;
    }
}

h1.debossed,
h2.debossed {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: #d1deff;
    margin: 0 0 20px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.45);
}

h2.debossed {
    font-size: 21px;
    margin: 48px 0 24px;
}

.module-text.after-list {
    margin-top: 20px;
    font-size: 15px;
    color: #a5b4fc;
    font-weight: 500;
}

.module-text strong {
    color: #c7d2fe;
    font-weight: 600;
}

.intro-module,
.status-module,
.overview-module,
.security-module,
.faq-module,
.conclusion-module {
    margin-bottom: 56px;
}

.faq-module .module-text {
    margin-bottom: 28px;
    padding-left: 4px;
    border-left: 3px solid #3cbef240;
}

.faq-module .module-text strong {
    display: block;
    margin-bottom: 8px;
    color: #a8bfff;
    font-size: 16.5px;
}

.mirrors-module .module-text.after-list strong {
    color: #8cd4ff;
    word-break: break-all;
}

.bottom-signature {
    font-size: 13px;
    letter-spacing: 0.4px;
    padding: 28px 0 36px;
    color: #64748b;
    background: linear-gradient(to top, #1f2735, #272f3b);
}

@media (max-width: 520px) {
    h1.debossed {
        font-size: 23px;
        line-height: 1.28;
    }
    h2.debossed {
        font-size: 19px;
        margin: 40px 0 20px;
    }
    .main-panel {
        padding: 28px 18px 40px;
    }
    .intro-text,
    .module-text {
        font-size: 15.2px;
    }
    .feature-list li {
        font-size: 14.8px;
        padding-left: 26px;
    }
    .mirror-url {
        font-size: 15px;
    }
}

@media (min-width: 768px) {
    .device {
        max-width: 680px;
        border-radius: 36px;
    }
    .main-panel {
        padding: 44px 36px 52px;
    }
    h1.debossed {
        font-size: 30px;
    }
    h2.debossed {
        font-size: 23px;
    }
}