:root {
    --bg: #09111f;
    --bg-soft: #101a2c;
    --card: rgba(12, 19, 34, .86);
    --card-2: rgba(17, 27, 44, .96);
    --line: rgba(255,255,255,.08);
    --text: #edf2ff;
    --muted: #9fb0d0;
    --brand: #2d73ff;
    --brand-2: #1a4fc9;
    --accent: #ffd54f;
    --green: #18b466;
    --shadow: 0 28px 60px rgba(0,0,0,.35);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --container: 1180px;
}

html[data-theme="light"] {
    --bg: #eef3fb;
    --bg-soft: #ffffff;
    --card: rgba(255,255,255,.84);
    --card-2: rgba(255,255,255,.96);
    --line: rgba(13,27,46,.09);
    --text: #0f1a2b;
    --muted: #5d6f8e;
    --brand: #2d73ff;
    --brand-2: #1a4fc9;
    --shadow: 0 22px 45px rgba(59,95,151,.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(45,115,255,.22), transparent 28%),
        radial-gradient(circle at top right, rgba(24,180,102,.16), transparent 22%),
        linear-gradient(180deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 80%, #0a1220) 100%);
    min-height: 100vh;
    transition: background .3s ease, color .3s ease;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: min(var(--container), calc(100% - 32px)); margin: 0 auto; }
.card-glass {
    background: linear-gradient(180deg, color-mix(in srgb, var(--card) 92%, transparent), color-mix(in srgb, var(--card-2) 96%, transparent));
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(14px);
    background: color-mix(in srgb, var(--bg) 76%, transparent);
    border-bottom: 1px solid var(--line);
}
.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 0;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-weight: 800;
    letter-spacing: .02em;
}
.brand-center { justify-content: center; }
.brand-icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: 0 14px 30px rgba(45,115,255,.34);
    overflow: hidden;
    padding: 8px;
}
.brand-icon img { width: 100%; height: 100%; object-fit: contain; }
.brand-text { font-size: clamp(20px, 2vw, 32px); }

.header-controls,
.lang-switch {
    display: flex;
    align-items: center;
    gap: 12px;
}
.lang-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.05);
    border: 1px solid var(--line);
    font-size: 13px;
    font-weight: 800;
    transition: transform .18s ease, background .18s ease;
}
.lang-pill:hover { transform: translateY(-1px); }
.lang-pill.is-active {
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff;
    border-color: transparent;
}
.lang-pill img {
    width: 26px;
    height: 18px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 0 0 1px rgba(255,255,255,.16);
}

.theme-switch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.05);
    color: var(--text);
    user-select: none;
}
.theme-side {
    font-size: 15px;
    line-height: 1;
    opacity: .7;
}
.theme-control {
    position: relative;
    width: 56px;
    height: 30px;
    display: inline-flex;
}
.theme-control input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    margin: 0;
}
.theme-slider {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, #d3d8e2, #b4bfce);
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
    transition: background .28s ease;
}
.theme-slider::before {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    top: 3px;
    left: 3px;
    border-radius: 50%;
    background: linear-gradient(180deg, #ffffff, #f4f6fa);
    box-shadow: 0 6px 16px rgba(0,0,0,.18);
    transition: transform .28s ease, background .28s ease;
}
.theme-control input:checked + .theme-slider {
    background: linear-gradient(180deg, #4b5568, #2a3140);
}
.theme-control input:checked + .theme-slider::before {
    transform: translateX(26px);
    background: linear-gradient(180deg, #e8b75f, #b06e14);
}
html[data-theme="dark"] .theme-side-dark,
html[data-theme="light"] .theme-side-light { opacity: 1; }

.hero-section { padding: 42px 0 24px; }
.hero-layout {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 28px;
    align-items: center;
}
.hero-copy h1 {
    margin: 14px 0 12px;
    font-size: clamp(34px, 6vw, 62px);
    line-height: 1.03;
    letter-spacing: -1.7px;
}
.hero-kicker {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.06);
    border: 1px solid var(--line);
    font-size: 13px;
    font-weight: 800;
    color: #cbd7ef;
}
.hero-text {
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.7;
    max-width: 720px;
}
.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}
.info-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.06);
    font-size: 14px;
    font-weight: 700;
}
.chip-icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}
.chip-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}
.download-btn,
.ghost-btn,
.admin-save-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 18px;
    font-weight: 800;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.download-btn:hover,
.ghost-btn:hover,
.admin-save-btn:hover { transform: translateY(-2px); }
.download-btn {
    padding: 14px 20px;
    color: #fff;
    background: linear-gradient(135deg, #2f7cff, #1f58d4 58%, #173c98);
    box-shadow: 0 16px 32px rgba(47,124,255,.32);
}
.download-btn.is-card { width: 100%; justify-content: flex-start; }
.download-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: rgba(255,255,255,.14);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    padding: 8px;
}
.download-icon img { width: 100%; height: 100%; object-fit: contain; }
.download-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
}
.download-text strong { font-size: 18px; }
.download-text small { font-size: 13px; opacity: .9; }
.ghost-btn {
    padding: 16px 20px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.05);
    color: var(--text);
}
.small-btn { padding: 12px 14px; font-size: 14px; }

.hero-visual {
    border-radius: var(--radius-xl);
    padding: 14px;
    position: relative;
    overflow: hidden;
}
.hero-slider,
.build-media {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
}
.slider-track,
.build-track {
    display: flex;
    transition: transform .35s ease;
}
.slide,
.build-slide {
    min-width: 100%;
}
.slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}
.build-slide img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.slider-arrow,
.build-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(4, 10, 20, .48);
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: grid;
    place-items: center;
}
.slider-arrow.prev,
.build-arrow.prev { left: 14px; }
.slider-arrow.next,
.build-arrow.next { right: 14px; }
.slider-dots,
.build-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 0;
    cursor: pointer;
    background: rgba(255,255,255,.38);
}
.dot.is-active { background: #fff; }
.hero-mini-card {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(8, 12, 22, .76);
    border: 1px solid rgba(255,255,255,.12);
    backdrop-filter: blur(10px);
}
.mini-tag,
.build-tag,
.build-size {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 800;
}
.mini-tag,
.build-tag {
    background: rgba(255,255,255,.12);
    color: white;
}
.section-block { padding: 32px 0; }
.section-heading { margin-bottom: 18px; }
.section-heading h2 {
    margin: 0 0 10px;
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -1px;
}
.section-heading p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
    font-size: 16px;
    max-width: 760px;
}
.build-grid,
.feature-grid,
.faq-grid {
    display: grid;
    gap: 20px;
}
.build-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.faq-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.build-card,
.feature-card,
.faq-card,
.cta-box,
.simple-wrap {
    border-radius: 24px;
}
.build-card { overflow: hidden; }
.build-body { padding: 18px; }
.build-title-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}
.build-title-row h3 {
    margin: 0;
    font-size: 22px;
    letter-spacing: -.5px;
}
.build-size {
    background: rgba(255,255,255,.06);
    border: 1px solid var(--line);
    color: var(--muted);
}
.build-body p,
.feature-card p,
.faq-card p,
.cta-box p,
.simple-wrap p {
    color: var(--muted);
    line-height: 1.7;
    margin: 0 0 16px;
}
.feature-card,
.faq-card { padding: 22px; }
.feature-card h3,
.faq-card h3 { margin: 0 0 10px; font-size: 20px; }
.faq-card.has-image {
    padding: 0;
    overflow: hidden;
}
.faq-media {
    aspect-ratio: 16 / 8;
    background: rgba(255,255,255,.06);
}
.faq-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.faq-body { padding: 22px; }
.cta-box {
    padding: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.cta-box h2,
.simple-wrap h1 {
    margin: 0 0 10px;
    font-size: clamp(30px, 4vw, 46px);
    letter-spacing: -1px;
}
.site-footer {
    padding: 24px 0 38px;
    border-top: 1px solid var(--line);
}
.footer-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: var(--muted);
}
.footer-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.simple-page { padding: 40px 0; }
.simple-wrap {
    max-width: 840px;
    margin: 0 auto;
    padding: 28px;
}
.back-btn { margin-bottom: 16px; }

@media (max-width: 1080px) {
    .hero-layout,
    .cta-box {
        grid-template-columns: 1fr;
    }
    .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .faq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .build-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cta-box { display: grid; }
}

@media (max-width: 760px) {
    .header-row,
    .header-controls,
    .hero-actions,
    .footer-row {
        flex-direction: column;
        align-items: stretch;
    }
    .build-grid,
    .feature-grid,
    .faq-grid,
    .hero-layout { grid-template-columns: 1fr; }
    .slide img { height: 320px; }
    .slider-arrow,
    .build-arrow { display: none; }
    .hero-badges { display: grid; grid-template-columns: 1fr; }
    .hero-mini-card {
        position: static;
        margin-top: 14px;
    }
    .build-title-row { flex-direction: column; align-items: flex-start; }
}
