Files
amnezia_web-PRO/landing/styles.css
Андрей Бобырев 448fe3b360 feat(landing): VPN guide UI from reference site
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-14 17:17:10 +03:00

950 lines
15 KiB
CSS

*,
*::before,
*::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
:root {
--teal: #1d9e75;
--teal-light: #e1f5ee;
--teal-dark: #085041;
--blue: #378add;
--blue-dark: #185fa5;
--amber: #ba7517;
--bg: #0d0f12;
--bg2: #141720;
--bg3: #1c202b;
--bg4: #232837;
--border: rgba(255, 255, 255, 0.08);
--border2: rgba(255, 255, 255, 0.14);
--text: #f0f2f5;
--muted: #8a93a8;
--muted2: #5e6880;
--font: "Outfit", system-ui, sans-serif;
--mono: "JetBrains Mono", ui-monospace, monospace;
}
html {
scroll-behavior: smooth;
}
body {
font-family: var(--font);
background: var(--bg);
color: var(--text);
min-height: 100vh;
line-height: 1.6;
-webkit-font-smoothing: antialiased;
}
.site-header {
position: sticky;
top: 0;
z-index: 100;
background: rgba(13, 15, 18, 0.92);
backdrop-filter: blur(20px);
border-bottom: 1px solid var(--border);
padding: 0 1.5rem;
}
.header-inner {
max-width: 900px;
margin: 0 auto;
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
min-height: 56px;
flex-wrap: wrap;
padding: 8px 0;
}
.logo {
display: flex;
align-items: center;
gap: 10px;
font-weight: 700;
font-size: 17px;
letter-spacing: -0.02em;
text-decoration: none;
color: var(--text);
}
.logo-icon {
width: 32px;
height: 32px;
border-radius: 9px;
background: linear-gradient(135deg, var(--teal), #0a5c45);
display: flex;
align-items: center;
justify-content: center;
font-size: 15px;
}
.header-actions {
display: flex;
align-items: center;
gap: 10px;
flex-wrap: wrap;
}
.header-admin {
padding: 8px 14px;
border-radius: 10px;
border: 1px solid var(--border2);
background: var(--bg3);
font-family: var(--font);
font-size: 13px;
font-weight: 600;
color: #5fd8b0;
text-decoration: none;
transition:
border-color 0.18s,
background 0.18s;
}
.header-admin:hover {
border-color: rgba(29, 158, 117, 0.45);
background: rgba(29, 158, 117, 0.1);
}
.status-pill {
display: flex;
align-items: center;
gap: 6px;
padding: 5px 12px;
border-radius: 20px;
border: 1px solid rgba(29, 158, 117, 0.3);
background: rgba(29, 158, 117, 0.08);
font-size: 12px;
color: var(--teal);
font-weight: 500;
}
.status-dot {
width: 6px;
height: 6px;
border-radius: 50%;
background: var(--teal);
box-shadow: 0 0 6px var(--teal);
animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
0%,
100% {
opacity: 1;
}
50% {
opacity: 0.5;
}
}
.hero {
max-width: 900px;
margin: 0 auto;
padding: 2.5rem 1.5rem 1.25rem;
text-align: center;
}
.hero-badge {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 5px 14px;
border-radius: 20px;
border: 1px solid var(--border2);
background: var(--bg3);
font-size: 12px;
color: #5fd8b0;
font-weight: 600;
letter-spacing: 0.06em;
text-transform: uppercase;
margin-bottom: 1rem;
}
.hero h1 {
font-size: clamp(26px, 6vw, 44px);
font-weight: 700;
letter-spacing: -0.03em;
line-height: 1.15;
margin-bottom: 0.5rem;
background: linear-gradient(135deg, #f0f2f5 30%, #8a93a8);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.hero p {
font-size: clamp(14px, 2.5vw, 16px);
color: var(--muted);
max-width: 520px;
margin: 0 auto 1.25rem;
}
.hero p strong {
color: var(--text);
font-weight: 600;
}
.server-summary {
max-width: 900px;
margin: 0 auto 1.5rem;
padding: 0 1.5rem;
}
.server-summary-card {
background: var(--bg2);
border: 1px solid var(--border);
border-radius: 18px;
padding: 1.25rem 1.5rem;
}
.server-summary-label {
font-size: 11px;
font-weight: 600;
color: #5fd8b0;
text-transform: uppercase;
letter-spacing: 0.08em;
margin-bottom: 12px;
}
.server-addr-label {
display: block;
font-size: 13px;
color: var(--muted);
margin-bottom: 8px;
}
.server-addr-row {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 10px;
margin-bottom: 14px;
}
.addr-box {
flex: 1;
min-width: 180px;
font-family: var(--mono);
font-size: 14px;
padding: 10px 14px;
background: var(--bg4);
border: 1px solid var(--border);
border-radius: 10px;
color: var(--text);
word-break: break-all;
}
.copy-btn {
padding: 10px 18px;
border-radius: 10px;
border: none;
background: linear-gradient(135deg, var(--teal), #0a6b4f);
color: #fff;
font-family: var(--font);
font-size: 13px;
font-weight: 600;
cursor: pointer;
transition: filter 0.15s;
}
.copy-btn:hover {
filter: brightness(1.06);
}
.copy-btn.copied {
background: var(--bg4);
color: #5fd8b0;
border: 1px solid rgba(29, 158, 117, 0.4);
}
.services-line {
font-size: 13.5px;
color: var(--muted);
line-height: 1.55;
}
.services-line strong {
color: var(--text);
font-weight: 600;
}
.server-note {
margin-top: 10px;
font-size: 12.5px;
color: var(--muted2);
line-height: 1.5;
}
.page-nav {
max-width: 900px;
margin: 0 auto 1.5rem;
padding: 0 1.5rem;
display: flex;
gap: 8px;
flex-wrap: wrap;
}
.page-nav-btn {
display: flex;
align-items: center;
gap: 8px;
padding: 11px 20px;
border-radius: 12px;
border: 1px solid var(--border);
background: var(--bg3);
font-family: var(--font);
font-size: 14px;
font-weight: 500;
color: var(--muted);
cursor: pointer;
transition: all 0.18s;
flex: 1;
justify-content: center;
min-width: 160px;
}
.page-nav-btn:hover {
border-color: var(--border2);
color: var(--text);
}
.page-nav-btn.active {
background: var(--bg4);
color: var(--text);
border-color: var(--border2);
}
.page-section {
display: none;
}
.page-section.visible {
display: block;
}
.vpn-switcher {
max-width: 900px;
margin: 0 auto;
padding: 0 1.5rem;
}
.vpn-tabs {
display: flex;
background: var(--bg3);
border: 1px solid var(--border);
border-radius: 14px;
padding: 4px;
gap: 4px;
margin-bottom: 1.25rem;
}
.vpn-tab {
flex: 1;
padding: 10px 16px;
border-radius: 10px;
border: none;
background: transparent;
font-family: var(--font);
font-size: 14px;
font-weight: 500;
color: var(--muted);
cursor: pointer;
transition: all 0.2s;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
}
.vpn-tab.active {
background: var(--bg4);
color: var(--text);
border: 1px solid var(--border2);
}
.vpn-tab-badge {
font-size: 10px;
padding: 2px 7px;
border-radius: 8px;
font-weight: 600;
}
.wg-badge {
background: rgba(55, 138, 221, 0.15);
color: #7ab8f5;
}
.amn-badge {
background: rgba(29, 158, 117, 0.15);
color: #5fd8b0;
}
.platform-selector {
display: flex;
gap: 6px;
margin-bottom: 1.25rem;
flex-wrap: wrap;
}
.plat-btn {
display: flex;
align-items: center;
gap: 7px;
padding: 8px 14px;
border-radius: 10px;
border: 1px solid var(--border);
background: var(--bg3);
font-family: var(--font);
font-size: 13px;
font-weight: 500;
color: var(--muted);
cursor: pointer;
transition: all 0.18s;
flex: 1;
justify-content: center;
min-width: 80px;
}
.plat-btn:hover {
border-color: var(--border2);
color: var(--text);
}
.plat-btn.wg-active {
background: rgba(55, 138, 221, 0.1);
border-color: rgba(55, 138, 221, 0.4);
color: #7ab8f5;
}
.plat-btn.amn-active {
background: rgba(29, 158, 117, 0.1);
border-color: rgba(29, 158, 117, 0.4);
color: #5fd8b0;
}
.content {
max-width: 900px;
margin: 0 auto;
padding: 0 1.5rem 3rem;
}
.vpn-section {
display: none;
}
.vpn-section.visible {
display: block;
}
.steps-panel {
display: none;
}
.steps-panel.visible {
display: block;
animation: fadeUp 0.2s ease;
}
.region-panel {
display: none;
}
.region-panel.visible {
display: block;
animation: fadeUp 0.2s ease;
}
@keyframes fadeUp {
from {
opacity: 0;
transform: translateY(6px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.guide-card {
background: var(--bg2);
border: 1px solid var(--border);
border-radius: 20px;
overflow: hidden;
}
.guide-card-header {
padding: 1.25rem 1.5rem;
border-bottom: 1px solid var(--border);
display: flex;
align-items: center;
gap: 12px;
background: var(--bg3);
}
.plat-icon-lg {
width: 44px;
height: 44px;
border-radius: 13px;
display: flex;
align-items: center;
justify-content: center;
font-size: 22px;
flex-shrink: 0;
}
.ios-icon {
background: linear-gradient(135deg, #1c4f8a, #2d7be5);
}
.android-icon {
background: linear-gradient(135deg, #1a5c38, #2ea86a);
}
.windows-icon {
background: linear-gradient(135deg, #173a6e, #0077d4);
}
.macos-icon {
background: linear-gradient(135deg, #3a3a3a, #666);
}
.guide-card-header-text h2 {
font-size: 17px;
font-weight: 600;
margin-bottom: 2px;
}
.guide-card-header-text p {
font-size: 12.5px;
color: var(--muted);
}
.step-list {
list-style: none;
}
.step-item {
display: flex;
gap: 14px;
padding: 1rem 1.5rem;
border-bottom: 1px solid var(--border);
align-items: flex-start;
transition: background 0.15s;
}
.step-item:last-child {
border-bottom: none;
}
.step-item:hover {
background: rgba(255, 255, 255, 0.02);
}
.step-circle {
width: 28px;
height: 28px;
border-radius: 50%;
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: center;
font-size: 12px;
font-weight: 700;
margin-top: 1px;
}
.wg-circle {
background: rgba(55, 138, 221, 0.15);
color: #7ab8f5;
border: 1px solid rgba(55, 138, 221, 0.25);
}
.amn-circle {
background: rgba(29, 158, 117, 0.15);
color: #5fd8b0;
border: 1px solid rgba(29, 158, 117, 0.25);
}
.step-body {
flex: 1;
}
.step-body p {
font-size: 14.5px;
line-height: 1.6;
}
.step-body p b {
color: #fff;
font-weight: 600;
}
.code-tag {
font-family: var(--mono);
font-size: 12px;
background: var(--bg4);
color: #7ab8f5;
padding: 1px 7px;
border-radius: 5px;
border: 1px solid var(--border2);
}
.alt-step {
font-size: 12.5px;
color: var(--muted);
margin-top: 5px;
padding: 6px 10px;
background: var(--bg4);
border-radius: 8px;
border-left: 2px solid var(--border2);
}
.notice {
padding: 1rem 1.5rem;
display: flex;
gap: 10px;
align-items: flex-start;
border-top: 1px solid var(--border);
}
.notice-tip {
background: rgba(186, 117, 23, 0.08);
}
.notice-success {
background: rgba(29, 158, 117, 0.08);
}
.notice-icon {
font-size: 16px;
flex-shrink: 0;
margin-top: 1px;
}
.notice p {
font-size: 13.5px;
line-height: 1.6;
}
.notice-tip p {
color: #e8b76a;
}
.notice-success p {
color: #5fd8b0;
}
.ip-check-section {
margin-top: 1.5rem;
}
.ip-check-section h3 {
font-size: 15px;
font-weight: 600;
margin-bottom: 0.875rem;
}
.check-cards {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 10px;
}
.check-card {
background: var(--bg2);
border: 1px solid var(--border);
border-radius: 14px;
padding: 1rem 1.125rem;
font-size: 13.5px;
line-height: 1.6;
}
.check-card .n {
font-weight: 700;
color: var(--teal);
margin-right: 4px;
}
.trouble-section {
margin-top: 2rem;
}
.trouble-section h3 {
font-size: 15px;
font-weight: 600;
margin-bottom: 0.875rem;
}
.trouble-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 10px;
}
.trouble-card {
background: var(--bg2);
border: 1px solid var(--border);
border-radius: 14px;
padding: 1rem 1.125rem;
}
.trouble-icon {
font-size: 18px;
margin-bottom: 7px;
}
.trouble-title {
font-size: 13.5px;
font-weight: 600;
margin-bottom: 6px;
}
.trouble-list {
font-size: 12.5px;
color: var(--muted);
line-height: 1.8;
list-style: none;
}
.trouble-list li {
padding-left: 10px;
position: relative;
}
.trouble-list li::before {
content: "·";
position: absolute;
left: 0;
color: var(--teal);
font-weight: 700;
}
.region-tabs {
display: flex;
background: var(--bg3);
border: 1px solid var(--border);
border-radius: 14px;
padding: 4px;
gap: 4px;
margin-bottom: 1.25rem;
}
.region-tab {
flex: 1;
padding: 10px 16px;
border-radius: 10px;
border: none;
background: transparent;
font-family: var(--font);
font-size: 14px;
font-weight: 500;
color: var(--muted);
cursor: pointer;
transition: all 0.2s;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
}
.region-tab.active {
background: var(--bg4);
color: var(--text);
border: 1px solid var(--border2);
}
.region-hero {
text-align: center;
padding: 0.5rem 1rem 1.5rem;
}
.region-hero h2 {
font-size: clamp(20px, 4vw, 32px);
font-weight: 700;
letter-spacing: -0.02em;
margin-bottom: 0.4rem;
background: linear-gradient(135deg, #f0f2f5 30%, #8a93a8);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.region-hero p {
font-size: 14px;
color: var(--muted);
}
.warn-box {
background: rgba(186, 117, 23, 0.08);
border-radius: 14px;
padding: 1rem 1.25rem;
margin-bottom: 1.25rem;
border: 1px solid rgba(186, 117, 23, 0.2);
display: flex;
gap: 10px;
align-items: flex-start;
}
.warn-box p {
font-size: 13.5px;
color: #e8b76a;
line-height: 1.6;
}
.addr-card {
background: var(--bg3);
border: 1px solid var(--border);
border-radius: 14px;
padding: 1rem 1.25rem;
margin-top: 10px;
}
.addr-card-title {
font-size: 11px;
font-weight: 600;
color: var(--muted);
text-transform: uppercase;
letter-spacing: 0.05em;
margin-bottom: 10px;
}
.addr-row {
display: flex;
justify-content: space-between;
align-items: center;
padding: 6px 0;
border-bottom: 1px solid var(--border);
font-size: 13.5px;
gap: 12px;
}
.addr-row:last-child {
border-bottom: none;
}
.addr-label {
color: var(--muted);
flex-shrink: 0;
}
.addr-val {
font-family: var(--mono);
font-size: 12.5px;
color: var(--text);
text-align: right;
}
.site-footer {
border-top: 1px solid var(--border);
padding: 1.75rem 1.5rem 2rem;
text-align: center;
font-size: 12px;
color: var(--muted2);
}
.site-footer-lead {
color: var(--muted);
margin-bottom: 6px;
}
.support-line {
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
gap: 0.35rem 0.5rem;
margin-top: 12px;
font-size: 12px;
}
.support-title {
color: var(--text);
font-weight: 700;
}
.support-sep {
opacity: 0.45;
user-select: none;
}
.support-line a {
color: #5fd8b0;
text-decoration: none;
white-space: nowrap;
}
.support-line a:hover {
text-decoration: underline;
}
.support-blurb {
margin: 10px auto 0;
max-width: 36rem;
font-size: 11px;
line-height: 1.45;
color: var(--muted2);
}
.disclaimer-footer {
margin-top: 16px;
font-size: 11px;
color: var(--muted2);
line-height: 1.45;
max-width: 28rem;
margin-left: auto;
margin-right: auto;
}
::-webkit-scrollbar {
width: 6px;
}
::-webkit-scrollbar-track {
background: var(--bg);
}
::-webkit-scrollbar-thumb {
background: var(--bg4);
border-radius: 3px;
}
@media (max-width: 600px) {
.hero {
padding: 1.75rem 1.25rem 1rem;
}
.page-nav,
.vpn-switcher,
.content,
.server-summary {
padding-left: 1.25rem;
padding-right: 1.25rem;
}
.step-item {
padding: 0.875rem 1rem;
}
.guide-card-header {
padding: 1rem;
}
.notice {
padding: 0.875rem 1rem;
}
.vpn-tab-badge {
display: none;
}
.page-nav-btn {
font-size: 13px;
padding: 9px 12px;
}
}