/* ═══════════════════════════════════════════════════════════════════
   Fuusio — the Kide visual system, shifted from ember to steel.
   Identity: polar night cooled to cobalt, after the Fuusio logo.
   ═══════════════════════════════════════════════════════════════════ */

:root {
    --night-0: #05080d;
    --night-1: #070d16;
    --night-2: #0a121d;

    --steel-1: #9fc6ff;      /* primary */
    --steel-2: #3b82f6;
    --cyan: #67e8f9;
    --violet: #8b9dff;      /* used sparingly */

    --text-1: #ecf2fa;
    --text-2: #94a6bd;
    --text-3: #5f6e80;

    --line: rgba(159, 198, 255, 0.12);
    --line-strong: rgba(159, 198, 255, 0.28);
    --panel: rgba(10, 18, 29, 0.72);

    --font-main: 'Inter', system-ui, sans-serif;
    --font-code: 'JetBrains Mono', monospace;

    --r: 14px;
}

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

svg {
    box-sizing: content-box;
}

html { scroll-behavior: smooth; scroll-padding-top: 6rem; }

body {
    background: var(--night-0);
    color: var(--text-1);
    font-family: var(--font-main);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(159, 198, 255, 0.25); }

/* ── Atmosphere ─────────────────────────────────────────────────── */

.aurora {
    position: fixed;
    inset: -20% -10% auto -10%;
    height: 75vh;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(45% 60% at 18% 22%, rgba(103, 232, 249, 0.12), transparent 70%),
        radial-gradient(50% 65% at 62% 12%, rgba(59, 130, 246, 0.18), transparent 70%),
        radial-gradient(40% 55% at 88% 30%, rgba(139, 157, 255, 0.13), transparent 70%);
    filter: blur(40px);
    animation: aurora-drift 24s ease-in-out infinite alternate;
}

@keyframes aurora-drift {
    from { transform: translateX(-3%) skewY(-1.5deg); opacity: 0.9; }
    to   { transform: translateX(3%)  skewY(1.5deg);  opacity: 1; }
}

.grid-lines {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(ellipse 90% 55% at 50% 0%, black 25%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 90% 55% at 50% 0%, black 25%, transparent 78%);
    opacity: 0.5;
}

/* ── Type ───────────────────────────────────────────────────────── */

h1 {
    font-size: clamp(2.8rem, 6vw, 4.6rem);
    font-weight: 900;
    line-height: 1.04;
    letter-spacing: -0.03em;
    margin-bottom: 1.4rem;
}

h2 {
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 1rem;
}

h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.6rem; letter-spacing: -0.01em; color: var(--text-1); }

p { color: var(--text-2); }
p strong { color: var(--text-1); font-weight: 600; }
p em { color: var(--steel-1); font-style: italic; }

p code, .card code {
    font-family: var(--font-code);
    font-size: 0.86em;
    color: var(--steel-1);
    background: rgba(159, 198, 255, 0.08);
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: 0.08em 0.4em;
    white-space: nowrap;
}

.gradient-text {
    background: linear-gradient(100deg, var(--steel-1) 10%, var(--cyan) 55%, var(--steel-2) 95%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.kicker {
    display: block;
    font-family: var(--font-code);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 0.9rem;
}

/* ── Nav ────────────────────────────────────────────────────────── */

.navbar {
    position: fixed;
    top: 0; width: 100%;
    z-index: 100;
    background: rgba(5, 8, 13, 0.65);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease, background 0.3s ease;
}
.navbar.scrolled { border-bottom-color: var(--line); background: rgba(5, 8, 13, 0.85); }

.nav-content {
    max-width: 1180px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-1);
    text-decoration: none;
}
.logo-mark {
    width: 28px;
    height: 28px;
    display: block;
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.45));
}

.nav-links { display: flex; gap: 1.6rem; align-items: center; }
.nav-links a {
    color: var(--text-2);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.92rem;
    transition: color 0.25s ease;
}
.nav-links a:hover { color: var(--steel-1); }

.nav-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* ── Buttons ────────────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.8rem 1.6rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: var(--font-main);
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.86rem;
    border-radius: 8px;
}

.btn-primary {
    background: linear-gradient(120deg, var(--steel-2), var(--cyan));
    color: #04121f !important;
    box-shadow: 0 4px 24px rgba(59, 130, 246, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(103, 232, 249, 0.4); }

.btn-secondary {
    background: rgba(159, 198, 255, 0.08);
    border: 1px solid var(--line-strong);
    color: var(--text-1);
}
.btn-secondary:hover { background: rgba(159, 198, 255, 0.16); transform: translateY(-2px); }

.btn-outline {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--text-1) !important;
    font-size: 0.88rem;
    padding: 0.55rem 1.1rem;
}
.btn-outline:hover { border-color: var(--steel-1); color: var(--steel-1) !important; }

/* ── Layout ─────────────────────────────────────────────────────── */

main { max-width: 1180px; margin: 0 auto; padding: 8.5rem 2rem 3rem; }
section { margin-bottom: 8.5rem; }
.section-header { max-width: 700px; margin: 0 auto 3.5rem; text-align: center; }

/* ── Hero ───────────────────────────────────────────────────────── */

.hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
    padding: 2.5rem 0 4rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 1rem;
    background: rgba(103, 232, 249, 0.08);
    border: 1px solid rgba(103, 232, 249, 0.28);
    color: var(--cyan);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-bottom: 1.6rem;
}
.badge-pulse {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--cyan);
    animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.subtitle { font-size: 1.13rem; margin-bottom: 2.2rem; }
.cta-group { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-footnote {
    margin-top: 1.6rem;
    font-family: var(--font-code);
    font-size: 0.8rem;
    color: var(--text-3);
    letter-spacing: 0.02em;
}

/* ── Hero logo stage ────────────────────────────────────────────── */

.logo-stage {
    position: relative;
    display: grid;
    place-items: center;
    padding: 3rem 1rem;
}
.logo-stage::before {
    content: "";
    position: absolute;
    width: 78%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.32), transparent 68%);
    filter: blur(30px);
    animation: halo 6s ease-in-out infinite alternate;
}
@keyframes halo {
    from { transform: scale(0.94); opacity: 0.75; }
    to   { transform: scale(1.06); opacity: 1; }
}

.logo-hero {
    position: relative;
    width: min(278px, 68%);
    height: auto;
    filter: drop-shadow(0 18px 42px rgba(59, 130, 246, 0.42));
    animation: float 7s ease-in-out infinite alternate;
}
@keyframes float {
    from { transform: translateY(-8px) rotate(-1.5deg); }
    to   { transform: translateY(8px)  rotate(1.5deg); }
}

/* ── Screenshot Carousel ────────────────────────────────────────── */

.screenshots-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

.carousel-viewport {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 1.5rem 0.5rem 2rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--steel-2) transparent;
}

.carousel-viewport::-webkit-scrollbar {
    height: 6px;
}
.carousel-viewport::-webkit-scrollbar-track {
    background: rgba(159, 198, 255, 0.05);
    border-radius: 10px;
}
.carousel-viewport::-webkit-scrollbar-thumb {
    background: var(--line-strong);
    border-radius: 10px;
}
.carousel-viewport::-webkit-scrollbar-thumb:hover {
    background: var(--steel-2);
}

.shot-card {
    flex: 0 0 280px;
    scroll-snap-align: center;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}
.shot-card:hover {
    transform: translateY(-6px);
    border-color: var(--line-strong);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 24px rgba(59, 130, 246, 0.15);
}

.phone-mockup {
    position: relative;
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    background: #020408;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
    aspect-ratio: 9 / 19.5;
}

.phone-mockup img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.shot-card:hover .phone-mockup img {
    transform: scale(1.02);
}

.shot-info {
    width: 100%;
    margin-top: 1rem;
    text-align: center;
}
.shot-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 0.25rem;
}
.shot-desc {
    font-size: 0.82rem;
    color: var(--text-2);
    line-height: 1.4;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.carousel-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--panel);
    border: 1px solid var(--line);
    color: var(--text-1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}
.carousel-btn:hover {
    background: rgba(159, 198, 255, 0.14);
    border-color: var(--steel-1);
    color: var(--cyan);
    transform: scale(1.05);
}

.carousel-dots {
    display: flex;
    gap: 0.5rem;
}
.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--line);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.dot.active {
    background: var(--cyan);
    transform: scale(1.3);
}

/* ── Lightbox modal ─────────────────────────────────────────────── */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(4, 7, 12, 0.92);
    backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.lightbox.open {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-img {
    max-height: 78vh;
    max-width: 85vw;
    border-radius: 16px;
    border: 1px solid var(--line-strong);
    box-shadow: 0 20px 60px rgba(0,0,0,0.8), 0 0 40px rgba(59, 130, 246, 0.25);
    object-fit: contain;
}

.lightbox-caption {
    margin-top: 1rem;
    text-align: center;
    color: var(--text-1);
    font-size: 1.05rem;
    font-weight: 600;
}
.lightbox-desc {
    font-size: 0.9rem;
    color: var(--text-2);
    margin-top: 0.25rem;
}

.lightbox-close {
    position: absolute;
    top: -45px;
    right: 0;
    background: transparent;
    border: none;
    color: var(--text-2);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0.2rem;
    transition: color 0.2s;
}
.lightbox-close:hover { color: var(--cyan); }

/* ── Features Grid ──────────────────────────────────────────────── */

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }

.card {
    position: relative;
    padding: 2rem;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r);
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
    overflow: hidden;
}
.card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}
.card:hover {
    transform: translateY(-4px);
    border-color: var(--line-strong);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}
.card p { font-size: 0.94rem; }

.card-icon {
    width: 44px;
    height: 44px;
    max-width: 44px;
    max-height: 44px;
    flex: 0 0 44px;
    border-radius: 10px;
    background: rgba(103, 232, 249, 0.08);
    border: 1px solid rgba(103, 232, 249, 0.2);
    color: var(--cyan);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
}
.card-icon svg {
    width: 22px;
    height: 22px;
    max-width: 22px;
    max-height: 22px;
    display: block;
}

/* ── Video ──────────────────────────────────────────────────────── */

.video-frame {
    position: relative;
    max-width: 880px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    background: var(--night-2);
    border: 1px solid var(--line);
    border-radius: var(--r);
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(159, 198, 255, 0.04);
}
.video-frame::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
    z-index: 2;
    pointer-events: none;
}
.video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* Video facade & lazy loader */
.video-facade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #000;
    overflow: hidden;
}
.video-thumbnail {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.82;
    transition: transform 0.4s ease, opacity 0.4s ease;
}
.video-facade:hover .video-thumbnail {
    transform: scale(1.03);
    opacity: 0.95;
}
.play-btn-backdrop {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(5, 8, 13, 0.4) 0%, rgba(5, 8, 13, 0.75) 100%);
}
.video-play-btn {
    position: relative;
    z-index: 1;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--steel-2), var(--cyan));
    border: none;
    color: #04121f;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5), 0 0 20px rgba(103, 232, 249, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.video-play-btn svg {
    margin-left: 4px;
}
.video-facade:hover .video-play-btn {
    transform: scale(1.1);
    box-shadow: 0 12px 38px rgba(59, 130, 246, 0.65), 0 0 30px rgba(103, 232, 249, 0.5);
}
.play-caption {
    position: relative;
    z-index: 1;
    margin-top: 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-1);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    letter-spacing: 0.02em;
}
.video-footnote {
    margin-top: 1.4rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-3);
}
.video-footnote a {
    color: var(--text-2);
    text-decoration: none;
    border-bottom: 1px solid var(--line-strong);
    transition: color 0.2s, border-color 0.2s;
}
.video-footnote a:hover { color: var(--steel-1); border-bottom-color: var(--steel-1); }

/* ── Community & Social Grid ────────────────────────────────────── */

.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.4rem;
    margin-top: 2.5rem;
}

.community-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.8rem;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r);
    text-decoration: none;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.community-card:hover {
    transform: translateY(-4px);
    border-color: var(--line-strong);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.community-icon {
    width: 44px;
    height: 44px;
    max-width: 44px;
    max-height: 44px;
    flex: 0 0 44px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
}
.community-icon svg {
    width: 24px;
    height: 24px;
    max-width: 24px;
    max-height: 24px;
    display: block;
}

.community-icon.play {
    background: rgba(103, 232, 249, 0.1);
    color: var(--cyan);
    border: 1px solid rgba(103, 232, 249, 0.25);
}
.community-icon.reddit {
    background: rgba(255, 69, 0, 0.1);
    color: #ff5722;
    border: 1px solid rgba(255, 69, 0, 0.25);
}
.community-icon.insta {
    background: rgba(225, 48, 108, 0.1);
    color: #f06292;
    border: 1px solid rgba(225, 48, 108, 0.25);
}
.community-icon.github {
    background: rgba(159, 198, 255, 0.1);
    color: var(--steel-1);
    border: 1px solid rgba(159, 198, 255, 0.25);
}

.community-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
}
.community-card p {
    font-size: 0.88rem;
    margin-bottom: 1rem;
}
.community-handle {
    font-family: var(--font-code);
    font-size: 0.84rem;
    color: var(--cyan);
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* ── Banner ─────────────────────────────────────────────────────── */

.banner {
    position: relative;
    text-align: center;
    padding: 4.5rem 2rem;
    border: 1px solid var(--line);
    border-radius: 20px;
    background:
        radial-gradient(60% 120% at 50% 0%, rgba(59, 130, 246, 0.14), transparent 70%),
        radial-gradient(50% 100% at 80% 100%, rgba(103, 232, 249, 0.08), transparent 70%),
        var(--panel);
    overflow: hidden;
}
.banner h2 { margin-bottom: 0.8rem; }
.banner p { max-width: 44em; margin: 0 auto 2rem; }

.banner-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.banner-links { display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap; }
.banner-links a {
    color: var(--text-2);
    font-size: 0.9rem;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.banner-links a:hover { color: var(--steel-1); border-bottom-color: var(--steel-1); }

/* ── Footer ─────────────────────────────────────────────────────── */

footer {
    padding: 3.5rem 2rem 2.5rem;
    border-top: 1px solid var(--line);
    color: var(--text-3);
    font-size: 0.88rem;
}
.footer-content {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.footer-links {
    display: flex;
    gap: 1.6rem;
    align-items: center;
    flex-wrap: wrap;
}
.footer-links a, footer a {
    color: var(--text-2);
    text-decoration: none;
    transition: color 0.2s ease;
}
.footer-links a:hover, footer a:hover { color: var(--steel-1); }

/* ── Reveal on scroll ───────────────────────────────────────────── */

.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease-out, transform 0.7s ease-out; }
.js .reveal.show { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}

/* ── Responsive ─────────────────────────────────────────────────── */

@media (max-width: 980px) {
    .hero { grid-template-columns: 1fr; gap: 2rem; padding-top: 1rem; text-align: left; }
    .logo-stage { padding: 1rem; }
    .shot-card { flex: 0 0 250px; }
}

@media (max-width: 768px) {
    .nav-content { padding: 0.8rem 1.2rem; }
    .nav-links { display: none; } /* keep it uncluttered on mobile, actions visible */
    main { padding-top: 6.5rem; padding-left: 1.2rem; padding-right: 1.2rem; }
    section { margin-bottom: 6rem; }
    .footer-content { flex-direction: column; text-align: center; }
}
