:root {
    --bg-color: #070b14;
    --bg-deep: #020617;
    --text-main: #f8fafc;
    --text-muted: #9ca3af;
    --accent: #38bdf8;
    --accent-strong: #22d3ee;
    --accent-hover: #0ea5e9;
    --violet: #8b5cf6;
    --card-bg: rgba(15, 23, 42, 0.76);
    --card-bg-solid: #111827;
    --border-color: rgba(148, 163, 184, 0.18);
    --success: #34d399;
    --danger: #f87171;
    --shadow: rgba(0, 0, 0, 0.36);
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 15% 10%, rgba(56, 189, 248, 0.20), transparent 30%),
        radial-gradient(circle at 82% 18%, rgba(139, 92, 246, 0.18), transparent 28%),
        linear-gradient(135deg, var(--bg-deep), var(--bg-color) 46%, #0f172a);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -3;
    background-image:
        linear-gradient(rgba(56, 189, 248, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.08) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.72), rgba(0,0,0,.12));
    animation: grid-drift 28s linear infinite;
}

.background-tech {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: -2;
}

.background-tech::before,
.background-tech::after,
.background-tech span {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(2px);
    opacity: 0.72;
}

.background-tech::before {
    width: 520px;
    height: 520px;
    left: -180px;
    top: 140px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.18), transparent 68%);
    animation: orb-float 18s ease-in-out infinite;
}

.background-tech::after {
    width: 620px;
    height: 620px;
    right: -240px;
    top: 18vh;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.16), transparent 66%);
    animation: orb-float 22s ease-in-out infinite reverse;
}

.background-tech span:nth-child(1) {
    width: 34vw;
    height: 1px;
    left: 8vw;
    top: 28vh;
    background: linear-gradient(90deg, transparent, rgba(56, 189, 248, .7), transparent);
    animation: scan-line 7s ease-in-out infinite;
}

.background-tech span:nth-child(2) {
    width: 28vw;
    height: 1px;
    right: 10vw;
    top: 64vh;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, .68), transparent);
    animation: scan-line 9s ease-in-out infinite reverse;
}

.background-tech span:nth-child(3) {
    width: 9px;
    height: 9px;
    left: 50vw;
    top: 18vh;
    background: var(--accent-strong);
    box-shadow: 0 0 24px var(--accent-strong), 160px 90px 0 rgba(139, 92, 246, .36), -220px 180px 0 rgba(52, 211, 153, .34);
    animation: node-pulse 5s ease-in-out infinite;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

a { color: inherit; }

header {
    background-color: rgba(7, 11, 20, 0.72);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container { display: flex; justify-content: space-between; align-items: center; min-height: 76px; }
.logo { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.22rem; letter-spacing: -0.01em; }
.logo-img { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 0 24px rgba(56, 189, 248, .18); }
nav { display: flex; gap: 24px; align-items: center; }
nav a { color: var(--text-muted); text-decoration: none; font-size: 0.95rem; transition: color 0.2s, text-shadow 0.2s; }
nav a:hover { color: var(--text-main); text-shadow: 0 0 18px rgba(56, 189, 248, .5); }

.lang-control {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 4px 4px 4px 12px;
    border: 1px solid rgba(56, 189, 248, 0.32);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.10), rgba(139, 92, 246, 0.10));
    color: var(--text-muted);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

.lang-control span { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }

.lang-select {
    appearance: none;
    -webkit-appearance: none;
    background: rgba(15, 23, 42, 0.82);
    color: var(--text-main);
    border: 1px solid rgba(148, 163, 184, 0.22);
    padding: 6px 28px 6px 12px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 700;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s, background 0.2s;
    background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%), linear-gradient(135deg, var(--accent) 50%, transparent 50%);
    background-position: calc(100% - 15px) 50%, calc(100% - 10px) 50%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}
.lang-select:hover, .lang-select:focus { border-color: var(--accent); background-color: rgba(15, 23, 42, 0.96); }
.lang-select option { background-color: var(--card-bg-solid); color: var(--text-main); font-weight: 500; }

.hero { padding: 86px 0 70px; text-align: center; }
.hero h1 {
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    line-height: 1.05;
    font-weight: 800;
    margin-bottom: 22px;
    letter-spacing: -0.055em;
    background: linear-gradient(135deg, #ffffff 18%, #c7f9ff 38%, var(--accent) 70%, var(--violet));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.subtitle { font-size: 1.18rem; color: var(--text-muted); max-width: 780px; margin: 0 auto 46px auto; }

.download-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; max-width: 980px; margin: 0 auto 55px auto; }
.btn-store {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(145deg, rgba(15,23,42,.86), rgba(17,24,39,.66));
    border: 1px solid var(--border-color);
    padding: 15px 20px;
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-main);
    text-align: left;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color .25s, box-shadow .25s;
    box-shadow: 0 12px 28px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.04);
}
.btn-store:hover { border-color: rgba(56, 189, 248, .76); transform: translateY(-3px); box-shadow: 0 18px 34px rgba(0,0,0,0.32), 0 0 28px rgba(56,189,248,.10); }
.btn-icon { font-size: 1.8rem; line-height: 1; }
.btn-text { display: flex; flex-direction: column; min-width: 0; }
.btn-text small { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 2px; }
.btn-text span { font-size: 0.95rem; font-weight: 700; }

.preview-box {
    background: linear-gradient(145deg, rgba(15, 23, 42, .88), rgba(17, 24, 39, .72));
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 24px;
    text-align: left;
    max-width: 890px;
    margin: 0 auto;
    box-shadow: 0 18px 50px var(--shadow), inset 0 1px 0 rgba(255,255,255,.04);
}
.preview-line {
    display: grid;
    grid-template-columns: minmax(110px, max-content) minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding: 14px 16px;
    border-radius: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.86rem;
}
.preview-line .url {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
    text-decoration-thickness: 1px;
}
code { font-family: 'JetBrains Mono', monospace; background-color: rgba(0, 0, 0, 0.3); padding: 3px 6px; border-radius: 4px; color: #e5e7eb; font-size: 0.9rem; }
.bad-url { background-color: rgba(248, 113, 113, 0.06); border-left: 4px solid var(--danger); }
.bad-url .url { color: var(--danger); text-decoration: line-through; opacity: 0.85; }
.good-url { background-color: rgba(52, 211, 153, 0.08); border-left: 4px solid var(--success); }
.good-url .url { color: var(--success); font-weight: 700; text-decoration: none; }
.good-url .url:hover { text-decoration: underline; }
.label { font-weight: 800; color: var(--text-main); font-family: 'Outfit', sans-serif; }
.arrow-down { text-align: center; margin: 12px 0; color: var(--text-muted); font-size: 0.85rem; font-weight: 700; }

.features { padding: 72px 0; border-top: 1px solid var(--border-color); }
.features h2, .platforms h2 { text-align: center; font-size: 2rem; font-weight: 800; margin-bottom: 45px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.card { background: var(--card-bg); border: 1px solid var(--border-color); padding: 32px; border-radius: 18px; box-shadow: 0 14px 34px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.04); }
.card h3 { margin-bottom: 14px; font-size: 1.25rem; }
.card p { color: var(--text-muted); font-size: 0.95rem; }

.platforms { padding: 72px 0; border-top: 1px solid var(--border-color); }
.table-wrapper { overflow-x: auto; border-radius: 18px; }
table { width: 100%; border-collapse: collapse; background: var(--card-bg); overflow: hidden; border: 1px solid var(--border-color); }
th, td { padding: 18px 24px; text-align: left; border-bottom: 1px solid var(--border-color); font-size: 0.95rem; }
th { background-color: rgba(17, 24, 39, 0.76); font-weight: 700; color: var(--text-main); }
tr:last-child td { border-bottom: 0; }
.highlight code { color: var(--accent); font-weight: 700; }

footer { padding: 48px 0 54px; border-top: 1px solid var(--border-color); text-align: center; color: var(--text-muted); font-size: 0.9rem; }
.footer-meta { margin-bottom: 10px; }
.footer-note { margin-top: 0; }
.footer-meta a { text-decoration: none; color: var(--text-main); transition: color 0.2s, text-shadow .2s; font-weight: 700; }
.footer-meta a:hover { color: var(--accent); text-shadow: 0 0 18px rgba(56,189,248,.45); }

@keyframes grid-drift { from { background-position: 0 0, 0 0; } to { background-position: 54px 54px, 54px 54px; } }
@keyframes orb-float { 0%, 100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(38px,-28px,0) scale(1.08); } }
@keyframes scan-line { 0%, 100% { transform: translateX(-16px); opacity: .28; } 50% { transform: translateX(16px); opacity: .82; } }
@keyframes node-pulse { 0%, 100% { transform: scale(.82); opacity: .36; } 50% { transform: scale(1.15); opacity: .9; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

@media (max-width: 768px) {
    .hero { padding-top: 54px; }
    .nav-container { flex-direction: column; height: auto; padding: 16px 24px; gap: 14px; }
    nav { gap: 14px; flex-wrap: wrap; justify-content: center; }
    .preview-line { grid-template-columns: 1fr; gap: 6px; }
    .download-grid { grid-template-columns: 1fr; }
}
