:root {
    --bg: #07090C;
    --panel: rgba(15, 19, 26, 0.82);
    --surface: rgba(18, 24, 33, 0.92);
    --line: rgba(255, 255, 255, 0.08);
    --text: #F4F6F8;
    --muted: #8C93A0;
    --accent: #FF4D8D;
    --accent-soft: rgba(255, 77, 141, 0.16);
    --accent-2: rgba(230, 214, 188, 0.16);
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(circle at 14% 10%, var(--accent-soft), transparent 24%),
        radial-gradient(circle at 88% 12%, rgba(102, 217, 255, 0.12), transparent 22%),
        radial-gradient(circle at 50% 88%, rgba(165, 107, 255, 0.12), transparent 26%),
        linear-gradient(180deg, #050608 0%, #07090C 45%, #050608 100%);
    color: var(--text);
}

/* Hide scrollbar for screenshot rail */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-up {
    animation: fadeUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }

@keyframes float {
    0% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-12px) scale(1.03); }
    100% { transform: translateY(0px) scale(1); }
}
.animate-float {
    animation: float 8s ease-in-out infinite;
}
.animate-float-delayed {
    animation: float 8s ease-in-out infinite 4s;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 1px rgba(255,255,255,0.05), 0 18px 50px rgba(0,0,0,0.35); }
    50% { box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 24px 68px rgba(0,0,0,0.45), 0 0 36px var(--accent-soft); }
}

.glow-panel {
    background: linear-gradient(180deg, rgba(16, 21, 29, 0.86), rgba(12, 15, 21, 0.94));
    border: 1px solid var(--line);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(16px);
}

.soft-panel {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(14px);
}

.tester-cta {
    color: #120B0F;
    background: linear-gradient(180deg, #FFF1D2 0%, #F5C978 100%);
    border: 1px solid rgba(255, 255, 255, 0.48);
    box-shadow: 0 18px 42px rgba(245, 201, 120, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.tester-cta:hover {
    filter: brightness(1.05);
}

.section-glow {
    background: radial-gradient(circle, rgba(255, 77, 141, 0.18) 0%, rgba(255, 77, 141, 0) 72%);
}

.phone-shell {
    border-radius: 2.7rem;
    padding: 0.45rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 30px 68px rgba(0, 0, 0, 0.42);
    overflow: hidden;
}

.phone-shell img {
    border-radius: 2.3rem;
    display: block;
}

.hero-phone-shell {
    max-width: 12.8rem;
    margin-inline: auto;
}

@media (min-width: 1024px) {
    .hero-phone-shell {
        max-width: 13.2rem;
    }
}

@media (min-width: 1280px) {
    .hero-phone-shell {
        max-width: 14.2rem;
    }
}

@media (max-width: 640px) {
    .phone-shell {
        border-radius: 1.9rem;
        padding: 0.2rem;
    }

    .phone-shell img {
        border-radius: 1.62rem;
    }

    .hero-phone-shell {
        max-width: 8.8rem;
        padding: 0.16rem;
        border-radius: 1.95rem;
        overflow: hidden;
    }

    .hero-phone-shell img {
        border-radius: 1.72rem;
        box-shadow: none;
    }
}

.feature-card {
    background: linear-gradient(180deg, rgba(16, 21, 29, 0.96), rgba(11, 14, 20, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.3);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.keycap-widget {
    --switch-glow: rgba(89, 189, 255, 0.26);
    --switch-edge: rgba(89, 189, 255, 0.52);
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 14% 18%, var(--switch-glow), transparent 56%),
        radial-gradient(circle at 86% 85%, rgba(255, 77, 141, 0.14), transparent 48%),
        linear-gradient(170deg, rgba(17, 22, 31, 0.9), rgba(8, 11, 18, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.keycap-widget::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 68% 22%, var(--switch-glow), transparent 42%);
    opacity: 0.42;
    pointer-events: none;
}

.preset-tabs {
    position: relative;
    z-index: 1;
}

.switch-tab {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(244, 246, 248, 0.82);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    padding: 0.62rem 0.95rem;
    transition: border-color 200ms ease, color 200ms ease, background 200ms ease, transform 200ms ease;
}

.switch-tab:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.switch-tab[data-active="true"] {
    background: color-mix(in srgb, var(--switch-glow) 36%, rgba(255, 255, 255, 0.1));
    border-color: var(--switch-edge);
    color: #ffffff;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 10px 24px rgba(0, 0, 0, 0.35);
}

.keycap-stage {
    position: relative;
    z-index: 1;
    width: fit-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
}

.mechy-keycap {
    display: block;
    width: min(24vw, 105px);
    height: min(24vw, 105px);
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 160ms ease;
}

.mechy-keycap:hover {
    transform: translateY(-2px) scale(1.012);
}

.keycap-state {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center top;
    transition: opacity 90ms ease, transform 120ms ease;
}

.keycap-face {
    display: none;
}

.keycap-state-up {
    opacity: 1;
}

.keycap-state-down {
    opacity: 0;
}

.mechy-keycap.is-pressed .keycap-state,
.mechy-keycap:active .keycap-state {
    transform: translateY(5px);
}

.mechy-keycap.is-pressed {
    transform: translateY(1px) scale(0.998);
}

.mechy-keycap.is-pressed .keycap-state-up,
.mechy-keycap:active .keycap-state-up {
    opacity: 0;
}

.mechy-keycap.is-pressed .keycap-state-down,
.mechy-keycap:active .keycap-state-down {
    opacity: 1;
}

.keycap-prompt {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(244, 246, 248, 0.7);
    animation: float 2.2s ease-in-out infinite;
    margin-top: 0.1rem;
}

@media (max-width: 640px) {
    .hero-cta-group,
    .download-cta-group {
        display: grid !important;
        width: 100%;
        gap: 0.5rem;
        align-items: stretch;
    }

    .hero-cta-group {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .download-cta-group {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-cta-group a,
    .download-cta-group a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 3.2rem;
        padding: 0.78rem 0.42rem;
        text-align: center;
        font-size: 0.68rem;
        line-height: 1.15;
    }

    .preset-tabs {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.45rem;
    }

    .switch-tab {
        min-height: 2.7rem;
        padding: 0.52rem 0.32rem;
        text-align: center;
        font-size: 0.68rem;
        line-height: 1.15;
    }

    .mechy-keycap {
        width: min(38vw, 105px);
        height: min(38vw, 105px);
    }
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 46px rgba(0, 0, 0, 0.42), 0 0 30px var(--accent-soft);
    border-color: rgba(255, 77, 141, 0.34);
}

.store-badge {
    transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.3);
}

.store-badge:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 24px 42px rgba(0, 0, 0, 0.42), 0 0 30px var(--accent-soft);
    filter: brightness(1.03);
}

.faq-item[open] {
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
    border-color: rgba(255, 77, 141, 0.26);
}

.select-card[data-active="true"] {
    border-color: rgba(255, 77, 141, 0.42);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 20px 48px rgba(0, 0, 0, 0.4), 0 0 26px var(--accent-soft);
}

.typing-key {
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.typing-key.active {
    transform: translateY(4px) scale(0.98);
    border-color: color-mix(in srgb, var(--accent) 66%, white 16%);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 0 22px var(--accent-soft);
}

.logo-frame {
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    box-shadow: 0 18px 38px rgba(0,0,0,0.28);
}

.mechy-divider {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
}

.faq-surface {
    background: transparent;
    border: none;
}

.faq-accordion {
    border-radius: 1.6rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, rgba(16, 21, 29, 0.86), rgba(12, 15, 21, 0.94));
    overflow: hidden;
}

.faq-accordion summary {
    list-style: none;
    cursor: pointer;
    padding: 1.35rem 1.4rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #f4f6f8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.faq-accordion summary::-webkit-details-marker {
    display: none;
}

.faq-accordion p {
    margin: 0;
    padding: 0 1.4rem 1.35rem;
    font-size: 1rem;
    line-height: 1.75;
    color: rgba(244, 246, 248, 0.72);
}

.faq-icon-wrap {
    width: 1.5rem;
    height: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.6rem;
    line-height: 1;
    flex-shrink: 0;
}

.faq-minus {
    display: none;
}

.faq-accordion[open] {
    background: linear-gradient(180deg, rgba(20, 26, 36, 0.94), rgba(12, 16, 24, 0.98));
    border-color: rgba(255, 77, 141, 0.35);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35), 0 0 24px rgba(255, 77, 141, 0.12);
}

.faq-accordion[open] .faq-plus {
    display: none;
}

.faq-accordion[open] .faq-minus {
    display: inline;
}
