/* ==========================================================================
   Ghostlyglow — Landing Page
   Neon-glow dark UI · vanilla CSS · no frameworks
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
    --bg: #0b0612;
    --bg-soft: #120a1d;
    --bg-card: rgba(255, 255, 255, 0.04);
    --line: rgba(255, 255, 255, 0.09);
    --text: #f3eefc;
    --muted: #b9adcd;
    --lime: #d6ff45;
    --lime-dark: #202b00;
    --purple: #a06bff;
    --orange: #ff8a2a;
    --radius: 18px;
    --radius-sm: 12px;
    --font: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --shadow-glow: 0 0 40px rgba(214, 255, 69, 0.18);
    --shadow-card: 0 18px 50px rgba(0, 0, 0, 0.45);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-padding-top: 90px;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    font-family: var(--font);
    background:
        radial-gradient(900px 500px at 85% -5%, rgba(160, 107, 255, 0.14), transparent 60%),
        radial-gradient(700px 420px at -10% 25%, rgba(214, 255, 69, 0.07), transparent 60%),
        var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

ul,
ol {
    list-style: none;
}

a {
    color: var(--lime);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

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

/* ---------- Accessibility helpers ---------- */
.skip-link {
    position: absolute;
    top: -60px;
    left: 16px;
    z-index: 200;
    background: var(--lime);
    color: #131802;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 700;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 12px;
}

:focus-visible {
    outline: 2px solid var(--lime);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
    position: fixed;
    inset: 0 0 auto 0;
    height: 3px;
    z-index: 120;
    background: transparent;
}

.scroll-progress span {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--purple), var(--lime));
    box-shadow: 0 0 12px rgba(214, 255, 69, 0.7);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font: 600 1rem var(--font);
    padding: 14px 26px;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none !important;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
}

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

.btn-primary {
    background: var(--lime);
    color: #131802;
    box-shadow: 0 8px 30px rgba(214, 255, 69, 0.35);
}

.btn-primary:hover {
    box-shadow: 0 12px 40px rgba(214, 255, 69, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.22);
}

.btn-outline:hover {
    border-color: var(--lime);
    color: var(--lime);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    border-color: var(--line);
    padding: 10px 20px;
    font-size: 0.92rem;
}

.btn-ghost:hover {
    background: var(--lime);
    color: #131802;
}

.btn-small {
    padding: 9px 18px;
    font-size: 0.88rem;
}

/* ==========================================================================
   NAV
   ========================================================================== */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: rgba(11, 6, 18, 0.65);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s, background 0.3s;
}

.site-nav.scrolled {
    border-bottom-color: var(--line);
    background: rgba(11, 6, 18, 0.85);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
}

.brand:hover {
    text-decoration: none;
}

.brand em {
    font-style: normal;
    color: var(--lime);
}

.brand-ghost {
    color: var(--lime);
    filter: drop-shadow(0 0 8px rgba(214, 255, 69, 0.6));
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 34px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--muted);
    font-weight: 500;
    font-size: 0.96rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--lime);
    text-decoration: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 42px;
    padding: 0 11px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    border-radius: 10px;
    cursor: pointer;
}

.nav-toggle .bar {
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
    transition: transform 0.3s var(--ease), opacity 0.2s;
}

.menu-open .nav-toggle .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-open .nav-toggle .bar:nth-child(2) {
    opacity: 0;
}

.menu-open .nav-toggle .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
    position: relative;
    padding: 90px 0 70px;
    overflow: clip;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(110px);
    pointer-events: none;
}

.glow-lime {
    width: 420px;
    height: 420px;
    background: rgba(214, 255, 69, 0.12);
    top: -120px;
    left: -120px;
}

.glow-purple {
    width: 520px;
    height: 520px;
    background: rgba(160, 107, 255, 0.16);
    bottom: -200px;
    right: -140px;
}

.float-ghost {
    position: absolute;
    color: rgba(255, 255, 255, 0.10);
    animation: floaty 7s ease-in-out infinite;
}

.fg-1 {
    top: 120px;
    right: 8%;
}

.fg-2 {
    bottom: 90px;
    left: 5%;
    animation-delay: -3.5s;
}

@keyframes floaty {

    0%,
    100% {
        transform: translateY(0) rotate(-4deg);
    }

    50% {
        transform: translateY(-22px) rotate(5deg);
    }
}

.hero-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--lime);
    background: rgba(214, 255, 69, 0.08);
    border: 1px solid rgba(214, 255, 69, 0.25);
    padding: 8px 16px;
    border-radius: 999px;
    margin-bottom: 26px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--lime);
    box-shadow: 0 0 0 0 rgba(214, 255, 69, 0.6);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    70% {
        box-shadow: 0 0 0 9px rgba(214, 255, 69, 0);
    }
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.4rem);
    font-weight: 800;
    max-width: 17ch;
    margin-bottom: 22px;
}

.glow-text {
    color: var(--lime);
    text-shadow: 0 0 24px rgba(214, 255, 69, 0.55);
}

.hero-sub {
    color: var(--muted);
    font-size: 1.1rem;
    max-width: 58ch;
    margin-bottom: 34px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-bottom: 28px;
}

/* Password chip */
.pass-chip {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    background: var(--bg-card);
    border: 1px dashed rgba(214, 255, 69, 0.4);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
}

.pass-label {
    color: var(--muted);
    font-size: 0.88rem;
}

.pass-chip code {
    font: 700 1.15rem ui-monospace, 'Cascadia Code', Consolas, monospace;
    background: rgba(214, 255, 69, 0.12);
    color: var(--lime);
    padding: 4px 16px;
    border-radius: 8px;
}

.copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text);
    font: 600 0.85rem var(--font);
    padding: 7px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.copy-btn:hover {
    border-color: var(--lime);
    color: var(--lime);
}

/* Hero stats bar */
.hero-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 38px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 6px;
}

.hero-stats li {
    display: flex;
    flex-direction: column;
    padding: 12px 34px;
    border-right: 1px solid var(--line);
}

.hero-stats li:last-child {
    border-right: 0;
}

.hero-stats strong {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--lime);
    text-shadow: 0 0 16px rgba(214, 255, 69, 0.4);
    line-height: 1.2;
}

.hero-stats span {
    font-size: 0.78rem;
    color: var(--muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Hero showcase */
.hero-showcase {
    position: relative;
    width: 100%;
    max-width: 920px;
    margin: 70px auto 0;
}

.showcase-glow {
    position: absolute;
    inset: 15% -5% auto;
    height: 75%;
    background: linear-gradient(90deg, rgba(214, 255, 69, 0.16), rgba(160, 107, 255, 0.22), rgba(255, 138, 42, 0.14));
    filter: blur(80px);
    pointer-events: none;
}

.browser-frame {
    position: relative;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-card), var(--shadow-glow);
    transform: perspective(1400px) rotateX(7deg);
    transform-origin: top center;
    transition: transform 0.6s var(--ease);
}

.hero-showcase:hover .browser-frame {
    transform: perspective(1400px) rotateX(0deg);
}

.float-chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(18, 10, 29, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 11px 20px;
    font-weight: 600;
    font-size: 0.92rem;
    box-shadow: var(--shadow-card);
    animation: floaty 6.5s ease-in-out infinite;
    pointer-events: none;
}

.fc-1 {
    top: 6%;
    left: -60px;
    border-color: rgba(214, 255, 69, 0.45);
}

.fc-2 {
    top: 46%;
    right: -52px;
    border-color: rgba(255, 138, 42, 0.45);
    animation-delay: -2.2s;
}

.fc-3 {
    bottom: -20px;
    left: 7%;
    border-color: rgba(160, 107, 255, 0.55);
    animation-delay: -4.4s;
}

.browser-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 11px 14px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.d-red {
    background: #ff5f57;
}

.d-yellow {
    background: #febc2e;
}

.d-green {
    background: #28c840;
}

.url-pill {
    margin-left: 12px;
    font-size: 0.75rem;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    padding: 3px 14px;
    border-radius: 999px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.browser-frame img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: top;
}

/* ==========================================================================
   MARQUEE
   ========================================================================== */
.marquee {
    border-block: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
    padding: 16px 0;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 30s linear infinite;
}

.marquee:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-list {
    display: flex;
    align-items: center;
    gap: 34px;
    padding-right: 34px;
    white-space: nowrap;
}

.marquee-list li {
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}

.marquee-list li:nth-child(even) {
    color: var(--lime);
    font-size: 0.8rem;
}

@keyframes marquee {
    to {
        transform: translateX(-50%);
    }
}

/* ==========================================================================
   SECTIONS (shared)
   ========================================================================== */
.section {
    padding: 96px 0;
}

.section-alt {
    background:
        radial-gradient(700px 400px at 50% 0%, rgba(160, 107, 255, 0.08), transparent 65%),
        var(--bg-soft);
    border-block: 1px solid var(--line);
}

.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 56px;
}

.kicker {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 14px;
}

.section-head h2 {
    font-size: clamp(1.8rem, 3.6vw, 2.6rem);
    margin-bottom: 14px;
}

.section-sub {
    color: var(--muted);
    font-size: 1.05rem;
}

/* ==========================================================================
   DEMO CARDS
   ========================================================================== */
.demo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.demo-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}

.demo-card:hover {
    transform: translateY(-6px);
    border-color: rgba(214, 255, 69, 0.45);
    box-shadow: var(--shadow-card), 0 0 34px rgba(214, 255, 69, 0.12);
}

.shot {
    display: block;
    height: 380px;
    overflow: hidden;
    position: relative;
    background: var(--bg-soft);
}

.shot::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 70px;
    background: linear-gradient(transparent, rgba(11, 6, 18, 0.75));
    pointer-events: none;
}

.shot img {
    width: 100%;
    height: auto;
    transition: transform 7s ease-in-out;
}

.demo-card:hover .shot img,
.shot:focus-visible img {
    transform: translateY(calc(-100% + 380px));
}

.demo-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 20px 22px;
    border-top: 1px solid var(--line);
}

.demo-meta h3 {
    font-size: 1.1rem;
    margin-bottom: 3px;
}

.demo-meta p {
    color: var(--muted);
    font-size: 0.85rem;
}

.demo-meta .btn {
    flex-shrink: 0;
    background: rgba(214, 255, 69, 0.1);
    color: var(--lime);
    border: 1px solid rgba(214, 255, 69, 0.3);
}

.demo-meta .btn:hover {
    background: var(--lime);
    color: #131802;
}

/* ==========================================================================
   BENTO FEATURES
   ========================================================================== */
.bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.bento-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 24px;
    transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s;
}

.bento-card:hover {
    transform: translateY(-4px);
    border-color: rgba(160, 107, 255, 0.5);
    background: rgba(160, 107, 255, 0.06);
}

.bento-card h3 {
    font-size: 1.02rem;
    margin-bottom: 8px;
}

.bento-card p {
    color: var(--muted);
    font-size: 0.9rem;
}

.bento-lg {
    grid-column: span 2;
    padding: 34px 30px;
    background: linear-gradient(135deg, rgba(214, 255, 69, 0.06), rgba(160, 107, 255, 0.07));
}

.bento-lg h3 {
    font-size: 1.35rem;
}

.bento-lg p {
    font-size: 0.98rem;
    max-width: 46ch;
}

.f-ico {
    width: 28px;
    height: 28px;
    color: var(--lime);
    margin-bottom: 16px;
    filter: drop-shadow(0 0 10px rgba(214, 255, 69, 0.35));
}

/* color swatches decoration */
.swatches {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.swatches span {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--c);
    box-shadow: 0 0 14px var(--c);
    transition: transform 0.25s var(--ease);
}

.bento-card:hover .swatches span {
    transform: translateY(-4px);
}

.bento-card:hover .swatches span:nth-child(2) {
    transition-delay: 0.05s;
}

.bento-card:hover .swatches span:nth-child(3) {
    transition-delay: 0.1s;
}

.bento-card:hover .swatches span:nth-child(4) {
    transition-delay: 0.15s;
}

.bento-card:hover .swatches span:nth-child(5) {
    transition-delay: 0.2s;
}

/* cart mock decoration */
.cart-mock {
    position: relative;
    display: inline-flex;
    color: var(--orange);
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(255, 138, 42, 0.4));
}

.cart-badge {
    position: absolute;
    top: -10px;
    right: -16px;
    background: var(--lime);
    color: #131802;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 999px;
}

/* ==========================================================================
   STEPS
   ========================================================================== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    counter-reset: step;
}

.step-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 34px 28px 30px;
    overflow: hidden;
    transition: transform 0.3s var(--ease), border-color 0.3s;
}

.step-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 138, 42, 0.5);
}

.step-num {
    position: absolute;
    top: -14px;
    right: 10px;
    font-size: 5.4rem;
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.14);
    line-height: 1;
    pointer-events: none;
}

.step-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.step-card p {
    color: var(--muted);
    font-size: 0.93rem;
    margin-bottom: 20px;
}

/* ==========================================================================
   RATING BAND
   ========================================================================== */
.rating-band {
    margin: 20px 0;
    padding: 80px 0;
    background:
        radial-gradient(600px 300px at 50% 50%, rgba(214, 255, 69, 0.1), transparent 70%),
        var(--bg-soft);
    border-block: 1px solid var(--line);
    text-align: center;
}

.rating-inner h2 {
    font-size: clamp(1.7rem, 3.2vw, 2.4rem);
    margin-bottom: 12px;
}

.rating-inner p {
    color: var(--muted);
    max-width: 56ch;
    margin: 0 auto;
    font-size: 1.05rem;
}

.stars {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 22px;
}

.stars svg {
    width: 34px;
    height: 34px;
    fill: var(--lime);
    filter: drop-shadow(0 0 12px rgba(214, 255, 69, 0.55));
    animation: starPop 2.6s ease-in-out infinite;
}

.stars svg:nth-child(2) {
    animation-delay: 0.15s;
}

.stars svg:nth-child(3) {
    animation-delay: 0.3s;
}

.stars svg:nth-child(4) {
    animation-delay: 0.45s;
}

.stars svg:nth-child(5) {
    animation-delay: 0.6s;
}

@keyframes starPop {

    0%,
    100% {
        transform: scale(1);
    }

    12% {
        transform: scale(1.18) rotate(6deg);
    }
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-wrap {
    max-width: 760px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
    transition: border-color 0.3s;
}

.faq-item[open] {
    border-color: rgba(214, 255, 69, 0.4);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.02rem;
    padding: 20px 22px;
    list-style: none;
}

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

.faq-icon {
    position: relative;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
}

.faq-icon::before,
.faq-icon::after {
    content: "";
    position: absolute;
    inset: 50% auto auto 50%;
    width: 13px;
    height: 2px;
    background: var(--lime);
    translate: -50% -50%;
    transition: rotate 0.3s var(--ease);
}

.faq-icon::after {
    rotate: 90deg;
}

.faq-item[open] .faq-icon::after {
    rotate: 0deg;
}

.faq-item p {
    color: var(--muted);
    padding: 0 22px 22px;
    font-size: 0.96rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    border-top: 1px solid var(--line);
    background: var(--bg-soft);
    padding: 44px 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    gap: 26px;
}

.footer-links a {
    color: var(--muted);
    font-size: 0.92rem;
}

.footer-links a:hover {
    color: var(--lime);
    text-decoration: none;
}

.copyright {
    color: var(--muted);
    font-size: 0.85rem;
}

/* ==========================================================================
   TOAST
   ========================================================================== */
.toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    translate: -50% 0;
    background: var(--lime);
    color: #131802;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 12px 24px;
    border-radius: 999px;
    box-shadow: 0 10px 34px rgba(214, 255, 69, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
    z-index: 150;
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ==========================================================================
   REVEAL ANIMATION (JS-enhanced, invisible only when JS is present)
   ========================================================================== */
.js .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js .reveal.in {
    opacity: 1;
    transform: none;
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
    }

    .marquee-track {
        animation: none;
        width: auto;
        flex-wrap: wrap;
    }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 980px) {
    .nav-toggle {
        display: inline-flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        background: #0d0716;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 30px 50px rgba(0, 0, 0, 0.5);
        padding: 16px 20px 24px;
        visibility: hidden;
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
    }

    .menu-open .nav-menu {
        visibility: visible;
        opacity: 1;
        transform: none;
    }

    .nav-links {
        flex-direction: column;
        gap: 2px;
    }

    .nav-links a {
        display: block;
        padding: 12px 8px;
        font-size: 1.05rem;
        color: var(--text);
        border-bottom: 1px solid var(--line);
    }

    .nav-cta {
        justify-content: center;
        margin-top: 10px;
    }

    .fc-1 {
        left: 6px;
    }

    .fc-2 {
        right: 6px;
    }

    .demo-grid,
    .steps-grid {
        grid-template-columns: 1fr 1fr;
    }

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

    .bento-lg {
        grid-column: span 2;
    }
}

@media (max-width: 640px) {
    .section {
        padding: 68px 0;
    }

    .hero {
        padding: 56px 0 60px;
    }

    .demo-grid,
    .steps-grid,
    .bento {
        grid-template-columns: 1fr;
    }

    .bento-lg {
        grid-column: span 1;
    }

    .shot {
        height: 320px;
    }

    .demo-card:hover .shot img,
    .shot:focus-visible img {
        transform: translateY(calc(-100% + 320px));
    }

    .float-ghost,
    .float-chip {
        display: none;
    }

    .hero-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
        padding: 0;
        overflow: hidden;
    }

    .hero-stats li {
        padding: 14px 10px;
        align-items: center;
        text-align: center;
        border-bottom: 1px solid var(--line);
    }

    .hero-stats li:nth-child(even) {
        border-right: 0;
    }

    .hero-stats li:nth-child(n+3) {
        border-bottom: 0;
    }

    .hero-showcase {
        margin-top: 44px;
    }

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