:root {
    --bg: #ffffff;
    --bg-soft: #f8fafc;
    --bg-elevated: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --heading-muted: #475569;
    --border: #e5e7eb;
    --navbar-bg: rgba(255, 255, 255, .9);
    --badge-bg: #e8eefc;
    --badge-text: #334155;
    --accent-bg: #0f172a;
    --accent-text: #ffffff;
    --feature-icon-bg: #f1f5f9;
    --shadow-soft: rgba(15, 23, 42, .12);
    --shadow-softer: rgba(15, 23, 42, .08);

    /* Always-dark brand surfaces: same value in both themes on purpose */
    --phone-frame-bg: #111827;
    --cta-bg: #0f172a;
    --cta-text: #94a3b8;
    --footer-bg: #020617;
    --hero-glow: #e8eefc;
}

[data-theme="dark"] {
    --bg: #0b1220;
    --bg-soft: #0f172a;
    --bg-elevated: #111827;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --heading-muted: #94a3b8;
    --border: #1e293b;
    --navbar-bg: rgba(15, 23, 42, .85);
    --badge-bg: #1e2a4a;
    --badge-text: #cbd5e1;
    --accent-bg: #e2e8f0;
    --accent-text: #0f172a;
    --feature-icon-bg: #1e293b;
    --shadow-soft: rgba(0, 0, 0, .5);
    --shadow-softer: rgba(0, 0, 0, .35);
    --hero-glow: #16213f;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
    color: var(--text-primary);
    background: var(--bg);
    transition: background-color .25s ease, color .25s ease;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: min(1120px, calc(100% - 40px));
    margin: auto;
}

/* NAVBAR */
.navbar {
    height: 76px;
    border-bottom: 1px solid var(--border);
    background: var(--navbar-bg);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background-color .25s ease, border-color .25s ease;
}

.nav-content {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 19px;
    font-weight: 700;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-switch {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color .25s ease;
}

.lang-switch button {
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
    padding: 0 12px;
    height: 40px;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}

.lang-switch button.active {
    background: var(--accent-bg);
    color: var(--accent-text);
}

.theme-toggle {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-elevated);
    color: var(--text-primary);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s, background-color .25s ease, border-color .25s ease;
}

.theme-toggle:hover {
    transform: translateY(-2px);
}

.nav-download {
    padding: 11px 18px;
    border-radius: 10px;
    background: var(--accent-bg);
    color: var(--accent-text);
    font-size: 14px;
    font-weight: 600;
    transition: transform .2s, opacity .2s, background-color .25s ease, color .25s ease;
}

.nav-download:hover {
    transform: translateY(-2px);
    opacity: .9;
}

/* HERO */
.hero {
    overflow: hidden;
    background: radial-gradient(
            circle at 75% 35%,
            var(--hero-glow) 0,
            transparent 35%
    ),
    var(--bg-soft);
    transition: background-color .25s ease;
}

.hero-content {
    min-height: 690px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 13px;
    border-radius: 100px;
    background: var(--badge-bg);
    color: var(--badge-text);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    transition: background-color .25s ease, color .25s ease;
}

.hero h1 {
    font-size: clamp(45px, 6vw, 72px);
    line-height: 1.02;
    letter-spacing: -3px;
    margin-bottom: 24px;
}

.hero h1 .line-2 {
    display: block;
    color: var(--heading-muted);
}

.hero-text > p {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 560px;
    margin-bottom: 32px;
}

.hero-qr {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.hero-qr img {
    width: 200px;
    height: 200px;
    padding: 3px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 20px var(--shadow-softer);
}

.hero-buttons {
    display: flex;
    gap: 12px;
}

.play-button {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px 20px;
    background: var(--accent-bg);
    color: var(--accent-text);
    border-radius: 13px;
    transition: transform .2s, background-color .25s ease, color .25s ease;
}

.play-button:hover {
    transform: translateY(-3px);
}

.play-icon {
    font-size: 22px;
}

.play-button small {
    display: block;
    font-size: 11px;
    opacity: .7;
}

.play-button strong {
    display: block;
    font-size: 15px;
}

.hero-info {
    display: flex;
    gap: 18px;
    margin-top: 22px;
    font-size: 13px;
    color: var(--text-secondary);
}

.hero-phone {
    width: 360px;
    display: flex;
    justify-content: center;
}

/* SECTION */
section {
    padding: 110px 0;
}

.section-title {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 55px;
}

.section-title > span {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 1.5px;
}

.section-title h2 {
    font-size: clamp(32px, 5vw, 48px);
    letter-spacing: -1.5px;
    margin: 10px 0 15px;
}

.section-title p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* FEATURES */
.features {
    background: var(--bg);
    transition: background-color .25s ease;
}

.feature-grid {
    display: grid;
    grid-template-columns:
        repeat(4, 1fr);
    gap: 18px;
}

.feature-card {
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: transform .2s,
    box-shadow .2s,
    border-color .25s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow-softer);
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--feature-icon-bg);
    font-size: 22px;
    margin-bottom: 20px;
    transition: background-color .25s ease;
}

.feature-card h3 {
    margin-bottom: 10px;
    font-size: 17px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

/* SCREENSHOTS */
.screenshots {
    background: var(--bg-soft);
    transition: background-color .25s ease;
}

.screenshot-wrapper {
    position: relative;
}

.screenshot-list {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 20px 30px;
    scrollbar-width: none;
}

.screenshot-list::-webkit-scrollbar {
    display: none;
}

.screenshot-card-main,
.screenshot-card {
    position: relative;
    flex: 0 0 235px;
    border-radius: 28px;
    padding: 7px;
    background: linear-gradient(160deg, #262f3d, var(--phone-frame-bg) 55%, #05070d);
    box-shadow:
        0 20px 40px var(--shadow-soft),
        inset 0 0 0 1px rgba(255, 255, 255, .06);
}

.screenshot-card-main {
    transform: rotate(6deg);
}

.screenshot-card-main img,
.screenshot-card img {
    display: block;
    width: 100%;
    border-radius: 22px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05);
}

/* Punch-hole front camera */
.screenshot-card-main::before,
.screenshot-card::before {
    content: "";
    position: absolute;
    top: 4%;
    left: 50%;
    transform: translateX(-50%);
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #000;
    box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .08);
    z-index: 2;
    pointer-events: none;
}

/* Bottom gesture-navigation bar */
.screenshot-card-main::after,
.screenshot-card::after {
    content: "";
    position: absolute;
    bottom: 3%;
    left: 50%;
    transform: translateX(-50%);
    width: 32%;
    height: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, .55);
    z-index: 2;
    pointer-events: none;
}

/* Physical side buttons */
.phone-btn {
    position: absolute;
    background: linear-gradient(90deg, #05070d, #2a3546);
    z-index: 0;
}

.phone-btn-power {
    right: -3px;
    top: 18%;
    width: 3px;
    height: 9%;
    border-radius: 0 3px 3px 0;
}

.phone-btn-volume-up {
    left: -3px;
    top: 15%;
    width: 3px;
    height: 6%;
    border-radius: 3px 0 0 3px;
}

.phone-btn-volume-down {
    left: -3px;
    top: 22%;
    width: 3px;
    height: 6%;
    border-radius: 3px 0 0 3px;
}

/* CTA */
.cta {
    padding: 100px 0;
    background: var(--cta-bg);
    color: #ffffff;
    text-align: center;
}

.cta-content {
    max-width: 650px;
    margin: auto;
}

.cta-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: rgba(255, 255, 255, .1);
    font-size: 30px;
}

.cta h2 {
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 15px;
}

.cta p {
    color: var(--cta-text);
    margin-bottom: 30px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    padding: 15px 22px;
    background: white;
    color: #0f172a;
    border-radius: 12px;
    font-weight: 700;
    transition: transform .2s;
}

.cta-button:hover {
    transform: translateY(-3px);
}

/* FOOTER */
footer {
    background: var(--footer-bg);
    color: white;
    padding: 35px 0;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    font-size: 13px;
}

.footer-logo {
    font-weight: 700;
}

.footer-links {
    display: flex;
    gap: 20px;
    color: #94a3b8;
}

.footer-links a:hover {
    color: white;
}

.footer-content > p {
    color: #64748b;
}

/* MOBILE */
@media (max-width: 850px) {
    .hero-content {
        padding: 70px 0;
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 60px;
    }

    .hero-text {
        max-width: 650px;
    }

    .hero-text > p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-qr {
        justify-content: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-info {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-phone {
        width: 100%;
    }

    .feature-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }
}

@media (max-width: 550px) {
    .container {
        width: min(100% - 28px, 1120px);
    }

    .navbar {
        height: 65px;
    }

    .logo {
        font-size: 16px;
    }

    .logo-icon {
        width: 34px;
        height: 34px;
    }

    .nav-actions {
        gap: 6px;
    }

    .lang-switch button {
        padding: 0 8px;
        height: 34px;
        font-size: 11px;
    }

    .theme-toggle {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        font-size: 14px;
    }

    .nav-download {
        display: none;
    }

    .hero-content {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 46px;
        letter-spacing: -2px;
    }

    .hero-text > p {
        font-size: 16px;
    }

    section {
        padding: 75px 0;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 25px;
    }

    .screenshot-list {
        gap: 16px;
        padding-left: 5px;
    }

    .screenshot-card {
        flex-basis: 205px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        order: 2;
    }
}
