:root {
    --bg: #000;
    --white: #fff;
    --gray: #888;
    --card-bg: #0c0c0c;
    --border: rgba(255,255,255,0.1);
    --border-hover: rgba(255,255,255,0.3);
    --green: #22C55E;
    --font: 'Inter', system-ui, sans-serif;
    --mono: 'JetBrains Mono', monospace;
    --ease: cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--white);
    font-family: var(--font);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.no-scroll { overflow: hidden; }

/* ── Global Star Canvas ─────────────────── */
#stars-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ── Custom Cursor ───────────────────────── */
/* Hide default cursor everywhere on desktop */
@media (pointer: fine) {
    *, *::before, *::after { cursor: none !important; }
}

#cursor-dot {
    position: fixed;
    top: 0; left: 0;
    width: 6px; height: 6px;
    background: #fff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width .15s var(--ease), height .15s var(--ease), background .2s;
    will-change: transform;
}

#cursor-ring {
    position: fixed;
    top: 0; left: 0;
    width: 36px; height: 36px;
    border: 1.5px solid rgba(255,255,255,0.6);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width .35s var(--ease), height .35s var(--ease),
                border-color .35s, background .35s, opacity .3s;
    will-change: transform;
}

/* Hover state — ring expands and fills slightly */
body.cursor-hover #cursor-dot {
    width: 8px; height: 8px;
    background: #fff;
}
body.cursor-hover #cursor-ring {
    width: 54px; height: 54px;
    border-color: rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
}

/* Click state */
body.cursor-click #cursor-dot {
    width: 4px; height: 4px;
    background: #fff;
}
body.cursor-click #cursor-ring {
    width: 28px; height: 28px;
    border-color: rgba(255,255,255,0.9);
}

/* ── Shared Layout ──────────────────────── */
.section-inner,
.nav-inner,
.hero-inner,
.footer-inner {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ── SPLASH ─────────────────────────────── */
#splash-screen {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    transition: opacity .5s ease;
}
#splash-screen:not(.active) { opacity: 0; pointer-events: none; }

.splash-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
    text-align: center;
}

.splash-logo { width: 110px; height: 110px; object-fit: contain; }

.splash-domain {
    font-family: var(--mono);
    font-size: .8rem;
    letter-spacing: .25em;
    color: var(--gray);
}

/* ── TERMINAL ───────────────────────────── */
#terminal-screen {
    position: fixed;
    inset: 0;
    z-index: 190;
    background: transparent;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.mac-window {
    width: 100%;
    max-width: 760px;
    height: 62vh;
    background: #1a1a1a;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.07);
}

.mac-header {
    height: 42px;
    background: #2c2c2c;
    display: flex;
    align-items: center;
    padding: 0 14px;
    position: relative;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.mac-buttons { display: flex; gap: 7px; }
.mac-buttons span { width: 12px; height: 12px; border-radius: 50%; }
.mac-buttons .close { background: #ff5f57; }
.mac-buttons .minimize { background: #febc2e; }
.mac-buttons .maximize { background: #28c840; }

.mac-title {
    position: absolute;
    left: 50%; transform: translateX(-50%);
    font-size: .78rem;
    color: #888;
    white-space: nowrap;
}

.mac-body {
    flex: 1;
    padding: 1.25rem 1.5rem;
    font-family: var(--mono);
    font-size: .88rem;
    line-height: 1.7;
    color: #d0d0d0;
    overflow-y: auto;
}
.mac-body::-webkit-scrollbar { display: none; }

.term-ok  { color: #28c840; }
.term-warn { color: #febc2e; }
.term-path { color: #79b8ff; }

.term-logo {
    overflow-x: auto;
    margin: 0.25rem 0;
}
.term-logo pre {
    font-family: var(--mono);
    font-size: 0.55rem;
    line-height: 1.3;
    white-space: pre;
    color: #28c840;
    margin: 0;
}
.term-cursor {
    display: inline-block;
    width: 9px; height: 1.1em;
    background: #d0d0d0;
    vertical-align: middle;
    margin-left: 2px;
    animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ── NAVBAR ─────────────────────────────── */
#navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    transition: background .3s ease, border-color .3s ease;
    border-bottom: 1px solid transparent;
}
#navbar.scrolled {
    background: rgba(0,0,0,.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-color: var(--border);
}

.nav-inner {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo { height: 46px; object-fit: contain; }

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}
.nav-links a {
    text-decoration: none;
    color: var(--gray);
    font-size: .875rem;
    font-weight: 500;
    transition: color .2s;
}
.nav-links a:hover { color: var(--white); }

.nav-cta {
    text-decoration: none;
    background: var(--white);
    color: var(--bg);
    padding: .5rem 1.25rem;
    border-radius: 20px;
    font-size: .875rem;
    font-weight: 700;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,255,255,.2); }

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-inner { height: 86px; }
    .nav-logo { height: 56px; }
    .nav-cta { padding: .6rem 1.4rem; font-size: 1rem; }
}

/* ── BUTTONS ────────────────────────────── */
.glow-button {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--border);
    padding: 1rem 3rem;
    font-family: var(--mono);
    font-size: .95rem;
    letter-spacing: .1em;
    cursor: pointer;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-block;
    transition: border-color .3s, box-shadow .3s;
}
.glow-button::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent);
    transition: left .5s ease;
}
.glow-button:hover::before { left: 100%; }
.glow-button:hover { border-color: rgba(255,255,255,.4); box-shadow: 0 0 24px rgba(255,255,255,.15); }
.glow-button.small { padding: .75rem 2rem; font-size: .85rem; }

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--white);
    color: var(--bg);
    padding: .85rem 2rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: .95rem;
    text-decoration: none;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
    border: none;
    cursor: pointer;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 32px rgba(255,255,255,.25); }
.btn-primary.mt-2 { margin-top: 2rem; }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: transparent;
    color: var(--white);
    padding: .85rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: .95rem;
    text-decoration: none;
    border: 1px solid var(--border);
    transition: background .25s, border-color .25s;
    cursor: pointer;
}
.btn-ghost:hover { background: rgba(255,255,255,.06); border-color: var(--border-hover); }

.btn-ghost-sm {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    transition: gap .25s var(--ease);
}
.btn-ghost-sm:hover { gap: 1rem; }

/* ── HERO ───────────────────────────────── */
#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.hero-inner {
    padding-top: 100px;
    padding-bottom: 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}
@media (max-width: 900px) {
    .hero-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0;
    }
    .desktop-photo { display: none; }
    .mobile-photo {
        display: block;
        width: 100%;
        max-width: 480px;
        margin: 0 auto 3rem auto;
    }
    .hero-left { flex: none; width: 100%; }
    .hero-right { display: none; }
    .scroll-hint { bottom: 5rem; }
}

.hero-left { flex: 1; max-width: 600px; }
.mobile-photo { display: none; }

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: .45rem 1rem;
    font-size: .8rem;
    color: var(--gray);
    margin-bottom: 2rem;
    transition: border-color .4s ease;
}
.status-dot {
    width: 7px; height: 7px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
    animation: pulse-dot 2s infinite;
    transition: background .4s ease, box-shadow .4s ease;
}
#status-text {
    transition: opacity .3s ease;
}
#status-text.fade {
    opacity: 0;
}
@keyframes pulse-dot {
    0%   { box-shadow: 0 0 0 0 rgba(var(--dot-rgb),.45); }
    70%  { box-shadow: 0 0 0 8px rgba(var(--dot-rgb),0); }
    100% { box-shadow: 0 0 0 0 rgba(var(--dot-rgb),0); }
}

.hero-name {
    font-size: clamp(4.5rem, 11vw, 8.5rem);
    font-weight: 800;
    line-height: .93;
    letter-spacing: -.04em;
    margin-bottom: 1.5rem;
}

.hero-tagline {
    color: var(--gray);
    font-size: 1rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-btns { display: flex; flex-wrap: wrap; gap: 1rem; }
@media (max-width: 900px) { .hero-btns { justify-content: center; } }

.hero-right { flex: 0 0 480px; }
.hero-photo-wrap { position: relative; }
.hero-photo {
    width: 100%;
    object-fit: contain;
    display: block;
}

/* ── TICKER ─────────────────────────────── */
.ticker-wrap {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: .9rem 0;
    background: rgba(255,255,255,.02);
}
.ticker {
    display: flex;
    width: max-content;
    animation: ticker-anim 28s linear infinite;
}
@keyframes ticker-anim {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.ticker-item { font-family: var(--mono); color: var(--gray); font-size: .85rem; padding: 0 2rem; white-space: nowrap; }
.ticker-sep  { color: var(--gray); display: flex; align-items: center; }

.scroll-hint {
    position: absolute;
    bottom: 2rem; left: 50%;
    transform: translateX(-50%);
    color: var(--gray);
    font-size: 1.1rem;
    animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,-8px); } }
@keyframes bob-mobile { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ── SECTIONS ───────────────────────────── */
.section {
    padding: 7rem 0;
    position: relative;
    border-top: 1px solid var(--border);
}

.section-header { margin-bottom: 4rem; text-align: center; }
.section-header .section-desc { margin: 0 auto; }

.section-tag {
    display: block;
    font-size: .75rem;
    letter-spacing: .12em;
    color: var(--gray);
    margin-bottom: 1.25rem;
}
.section-title {
    font-size: clamp(2.8rem, 6vw, 4.8rem);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.05;
    margin-bottom: 1.25rem;
}

/* Animated title words — origin story */
.animated-title .anim-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px) skewX(-5deg);
    transition: opacity .5s var(--ease), transform .5s var(--ease);
    margin-right: .25em;
}
.animated-title.active .anim-word:nth-child(1) { opacity:1; transform:none; transition-delay:.05s; }
.animated-title.active .anim-word:nth-child(2) { opacity:1; transform:none; transition-delay:.18s; }
.animated-title.active .anim-word:nth-child(3) { opacity:1; transform:none; transition-delay:.31s; }
.animated-title.active .anim-word:nth-child(4) { opacity:1; transform:none; transition-delay:.44s; }
.section-desc {
    color: var(--gray);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 580px;
}

/* ── CARDS (unified) ────────────────────── */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: 0 14px 36px rgba(255,255,255,.05);
}
.card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: .75rem; }
.card p { color: var(--gray); line-height: 1.65; font-size: .95rem; }

.card-icon { font-size: 1.8rem; margin-bottom: 1.25rem; display: block; }
.card-top-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; }
.badge {
    background: rgba(255,255,255,.08);
    padding: .25rem .75rem;
    border-radius: 20px;
    font-size: .75rem;
    font-family: var(--mono);
}

/* ── GRIDS ──────────────────────────────── */
.cards-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.two-col-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
}

/* ── TIMELINE ───────────────────────────── */
.timeline { position: relative; padding-left: 2.5rem; margin-top: 2rem; }
.timeline-line {
    position: absolute;
    left: 0; top: 8px; bottom: 0;
    width: 1px;
    background: var(--border);
}
.timeline-item { position: relative; padding-bottom: 3.5rem; }
.timeline-dot {
    position: absolute;
    left: -2.9rem; top: .25rem;
    width: 10px; height: 10px;
    border-radius: 50%;
    border: 1px solid var(--white);
    background: var(--bg);
}
.timeline-year {
    display: block;
    font-family: var(--mono);
    font-size: .75rem;
    letter-spacing: .1em;
    color: var(--gray);
    margin-bottom: .4rem;
}
.timeline-item h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: .35rem; }
.timeline-item p { color: var(--gray); font-size: .95rem; line-height: 1.55; }

.timeline-item:not(:last-child)::after {
    content: '\f078';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: -3.05rem;
    bottom: 0.75rem;
    color: var(--gray);
    background: var(--bg);
    font-size: 0.8rem;
    padding: 0.4rem 0;
    line-height: 1;
}

/* ── STATS ──────────────────────────────── */
.stats-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 3.5rem;
}
@media (min-width: 640px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }

.stat-card { text-align: center; padding: 2rem 1rem; }
.stat-card h3 { font-size: 3.2rem; font-weight: 800; letter-spacing: -.04em; margin-bottom: .4rem; }
.stat-card p { color: var(--gray); font-size: .88rem; }

/* Tech Stack */
.tech-stack { text-align: center; margin-top: 3rem; }
.tech-label { font-family: var(--mono); font-size: .72rem; letter-spacing: .2em; color: var(--gray); margin-bottom: 1.5rem; display: block; }
.tech-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.tech-pills span {
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: .4rem .9rem;
    font-size: .85rem;
    color: var(--gray);
    background: var(--card-bg);
    transition: border-color .2s, color .2s;
}
.tech-pills span:hover { border-color: var(--border-hover); color: var(--white); }

/* ── REVIEWS ────────────────────────────── */
.reviews-double { display: flex; flex-direction: column; gap: 1.25rem; overflow: hidden; }
.reviews-carousel { width: 100vw; overflow: hidden; padding: .5rem 0; }
.reviews-track {
    display: flex;
    width: max-content;
    gap: 1.25rem;
    padding: 0 2rem;
    animation: scroll-track 32s linear infinite;
}
.reviews-track.reverse { animation-direction: reverse; }
.reviews-track:hover { animation-play-state: paused; }
@keyframes scroll-track {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.review-card {
    width: 340px;
    flex-shrink: 0;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.75rem;
    transition: border-color .3s;
}
.review-card:hover { border-color: var(--border-hover); }
.review-stars { color: #F59E0B; font-size: .85rem; margin-bottom: 1rem; }
.review-text { font-size: .97rem; line-height: 1.65; font-style: italic; color: #ccc; margin-bottom: 1.25rem; }
.review-footer { display: flex; align-items: center; gap: 1rem; }
.review-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); }
.review-meta { display: flex; flex-direction: column; }
.review-author { font-weight: 700; font-size: .95rem; text-align: left; }
.review-role { color: var(--gray); font-size: .8rem; margin-top: .2rem; text-align: left; }

/* ── PLAYGROUND ─────────────────────────── */
.playground-wrap { display: flex; flex-direction: column; align-items: center; gap: 1.75rem; }

.game-tabs {
    display: flex;
    gap: .5rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: .4rem;
}
.game-tab {
    background: transparent;
    border: none;
    color: var(--gray);
    padding: .6rem 1.5rem;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--mono);
    font-size: .85rem;
    transition: background .25s, color .25s;
}
.game-tab:hover { color: var(--white); }
.game-tab.active { background: rgba(255,255,255,.1); color: var(--white); }

.game-frame {
    width: 100%;
    max-width: 520px;
    position: relative;
    padding: 0;
    overflow: hidden;
}
#gameCanvas {
    width: 100%;
    height: auto;
    display: block;
    background: #030303;
}
.game-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: calc(100% - 48px);
    background: rgba(0,0,0,.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    z-index: 5;
}
.game-overlay.hidden { display: none; }
.game-overlay h3 { font-size: 1.4rem; }
.game-overlay p { color: var(--gray); font-size: .9rem; }

.game-hud {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    border-top: 1px solid var(--border);
    background: var(--card-bg);
}
.hud-label { font-family: var(--mono); font-size: .72rem; letter-spacing: .15em; color: var(--gray); }
.hud-score { font-family: var(--mono); font-size: 1.1rem; font-weight: 700; }

/* ── PRICING ────────────────────────────── */
.pricing-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    margin-bottom: 3.5rem;
}
.pricing-card { padding: 2.5rem; }
.pricing-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.pricing-icon { font-size: 1.8rem; }
.pricing-badge {
    font-family: var(--mono);
    font-size: .72rem;
    letter-spacing: .12em;
    color: var(--gray);
    border: 1px solid var(--border);
    padding: .25rem .75rem;
    border-radius: 20px;
}
.pricing-amount {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -.04em;
    margin-bottom: 1rem;
    line-height: 1;
}
.pricing-amount span {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--gray);
    letter-spacing: 0;
}

/* ── CONTACT ────────────────────────────── */
.contact-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    margin-bottom: 2rem;
}
.contact-card {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    text-decoration: none;
    color: var(--white);
    padding: 1.5rem;
}
.contact-card i { font-size: 1.4rem; color: var(--gray); flex-shrink: 0; }
.contact-label { display: block; font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; color: var(--gray); margin-bottom: .2rem; }
.contact-value { display: block; font-size: .97rem; font-weight: 500; }

.social-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.social-chip {
    display: flex; align-items: center; gap: .5rem;
    text-decoration: none;
    color: var(--white);
    padding: .6rem 1.25rem;
    font-size: .88rem;
    transition: background .25s, border-color .25s;
}

/* ── FOOTER ─────────────────────────────── */
#footer {
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    position: relative;
    z-index: 2;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-domain {
    font-family: var(--mono);
    font-size: .82rem;
    letter-spacing: .18em;
    color: var(--gray);
}
#footer p { color: var(--gray); font-size: .85rem; }

/* ── FLOATING WA ────────────────────────── */
.floating-wa {
    position: fixed;
    bottom: 2rem; left: 2rem;
    width: 58px; height: 58px;
    background: #111;
    color: #fff;
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    text-decoration: none;
    z-index: 150;
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px);
    transition: opacity .3s, transform .3s, border-color .3s, box-shadow .3s;
    animation: wa-pulse 3s infinite;
}
.floating-wa.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.floating-wa:hover { 
    transform: translateY(-4px) scale(1.06); 
    border-color: rgba(37,211,102,0.6); 
    box-shadow: 0 8px 30px rgba(37,211,102,0.25); 
    animation-play-state: paused;
}

@keyframes wa-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37,211,102, 0.4); }
    30% { box-shadow: 0 0 0 15px rgba(37,211,102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102, 0); }
}

/* ── SCROLL REVEALS ─────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.active { opacity: 1; transform: none; }
.reveal-up { opacity: 0; transform: translateY(36px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal-up.active { opacity: 1; transform: none; }
.reveal-slide { opacity: 0; transform: translateX(-28px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal-slide.active { opacity: 1; transform: none; }

/* ── MOBILE OPTIMIZATIONS ───────────────── */
@media (max-width: 768px) {
    /* Navbar */
    .nav-inner { padding: 0 1.25rem; height: 64px; }
    .nav-logo { height: 36px; }
    .nav-cta { padding: .4rem 1rem; font-size: .8rem; }
    
    /* Layout & Sections */
    .section { padding: 4.5rem 0; }
    .section-inner, .hero-inner, .footer-inner { padding: 0 1.5rem; }
    .section-header { text-align: center; margin-bottom: 2.5rem; }
    .section-header .section-desc { margin: 0 auto; font-size: .95rem; }
    .section-title { font-size: 2.2rem; margin-bottom: .75rem; }
    
    /* Hero */
    .hero-inner { padding-top: 5rem; padding-bottom: 2rem; gap: 2rem; flex-direction: column-reverse; text-align: center; }
    .status-pill { margin-bottom: 0.75rem; }
    .hero-name { display: none; }
    .hero-tagline { font-size: .95rem; margin-bottom: 1.5rem; padding: 0 1rem; }
    .mobile-photo { display: block !important; margin-top: -4rem; margin-bottom: 2rem; }
    .hero-photo-wrap { max-width: 400px; margin: 0 auto; }
    #hero .scroll-hint { position: static; transform: none; text-align: center; padding: 1.25rem 0 1rem; animation: bob-mobile 2s ease-in-out infinite; }
    .section .scroll-hint { bottom: 1.5rem; }
    .hero-btns { justify-content: center; flex-direction: column; gap: 1rem; width: 100%; max-width: 280px; margin: 0 auto; }
    .hero-btns a { width: 100%; justify-content: center; }
    
    /* Terminal */
    .mac-window { height: 65vh; margin: 0; border-radius: 8px; }
    
    /* Cards & Grids */
    .cards-grid, .two-col-grid, .stats-grid, .contact-grid { 
        grid-template-columns: 1fr; gap: 1rem;
    }
    .card { padding: 1.5rem 1.25rem; text-align: center; }
    .card-top-row { justify-content: center; flex-direction: column; gap: .75rem; }
    .card-icon { margin: 0 auto; font-size: 1.6rem; }
    
    /* Reviews */
    .reviews-carousel { padding: 0; }
    .review-card { width: 85vw; max-width: 320px; padding: 1.25rem; text-align: center; }
    
    /* Playground */
    .game-tabs { flex-wrap: wrap; justify-content: center; border-radius: 12px; }
    .game-tab { padding: .5rem .75rem; width: 100%; text-align: center; font-size: .8rem; }
    #gameCanvas { width: 100%; height: auto; border-radius: 0; }
    .game-frame { border-radius: 12px; overflow: hidden; }
    
    /* Stats & Timeline */
    .stat-card { padding: 1.5rem 1rem; }
    .stat-card h3 { font-size: 2.2rem; }
    .timeline { padding-left: 0; text-align: center; }
    .timeline-line, .timeline-dot { display: none; }
    .timeline-item { padding-bottom: 2rem; }
    
    /* Footer & Socials */
    .social-row { justify-content: center; }
    .footer-inner { flex-direction: column; text-align: center; gap: 1rem; padding-bottom: 1rem; }
    
    /* Contact Specifics */
    .contact-card { flex-direction: column; text-align: center; gap: .75rem; padding: 1.25rem; }
    .contact-card i { margin: 0 auto; font-size: 1.6rem; }
    
    /* Remove hover states on touch */
    .card:hover { transform: none; box-shadow: none; border-color: var(--border); }
    .glow-button:hover { box-shadow: none; border-color: var(--border); }
    .btn-primary:hover { transform: none; box-shadow: none; }
}
