/* ===== VARIABLES ===== */
:root {
    --bg: #0f172a;
    --bg2: #111827;
    --bg-card: #1e293b;
    --accent: #f4c21c;
    --accent-hover: #e6b218;
    --accent-glow: rgba(244, 194, 28, 0.12);
    --text: #f8fafc;
    --text2: #94a3b8;
    --text3: #64748b;
    --border: rgba(255,255,255,0.07);
    --radius: 12px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== UTILITIES ===== */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.text-accent { color: var(--accent); }

/* MASK REVEAL */
.mask-wrap {
    display: block;
    overflow: hidden;
}
.reveal-inner {
    display: block;
    transform: translateY(110%);
    will-change: transform;
}

/* Section labels */
.section-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-glow);
    border: 1px solid rgba(244,194,28,0.22);
    padding: 4px 13px;
    border-radius: 999px;
    margin-bottom: 18px;
}
.section-header { text-align: center; margin-bottom: 60px; }
.section-title {
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
    font-weight: 800;
    line-height: 1.2;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 13px 26px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.22s ease;
    white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #0f172a; }
.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(244,194,28,0.32);
}
.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1.5px solid rgba(255,255,255,0.15);
}
.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}
.btn-large { padding: 16px 34px; font-size: 1rem; border-radius: 12px; }

.btn-nav-wa {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--accent);
    color: #0f172a;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 9px 18px;
    border-radius: 8px;
    transition: all 0.2s;
    flex-shrink: 0;
}
.btn-nav-wa:hover { background: var(--accent-hover); transform: translateY(-1px); }

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 500;
    padding: 16px 0;
    transition: background 0.35s, box-shadow 0.35s;
}
.navbar.scrolled {
    background: rgba(15,23,42,0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 var(--border);
}
.nav-container {
    display: flex;
    align-items: center;
    gap: 24px;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    font-weight: 800;
    flex-shrink: 0;
}
.logo-img {
    height: 34px;
    width: auto;
    border-radius: 4px;
    image-rendering: pixelated;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-left: auto;
}
.nav-link {
    font-size: 0.875rem;
    color: var(--text2);
    transition: color 0.2s;
}
.nav-link:hover { color: var(--text); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.28s ease;
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--bg);
}

.hero-bg-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 20% 50%, rgba(244,194,28,0.06) 0%, transparent 70%),
        radial-gradient(ellipse 40% 60% at 80% 30%, rgba(99,102,241,0.05) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 52%;
    padding: 120px 0 80px 6vw;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--text2);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: 999px;
    width: fit-content;
    backdrop-filter: blur(6px);
}
.badge-dot {
    width: 7px; height: 7px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 7px #22c55e;
    animation: blink 2s infinite;
    flex-shrink: 0;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.35} }

.hero-title {
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-sub {
    font-size: 1.05rem;
    color: var(--text2);
    line-height: 1.65;
    max-width: 440px;
}

.hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
    opacity: 0;
}

/* Hero scene image */
.hero-image-wrap {
    position: absolute;
    right: 0;
    top: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}
.hero-scene-img {
    width: 100%;
    height: 115%;
    object-fit: cover;
    object-position: center top;
    image-rendering: pixelated;
    will-change: transform;
}
.hero-image-fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--bg) 0%, transparent 40%),
                linear-gradient(to top, var(--bg) 0%, transparent 20%);
    pointer-events: none;
}

/* Scroll hint */
.hero-scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 6vw;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    opacity: 0;
}
.hero-scroll-hint span {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text3);
}
.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse { 0%,100%{transform:scaleY(1);opacity:1} 50%{transform:scaleY(0.6);opacity:0.5} }

/* ===== STORY TRACK ===== */
.story-track {
    height: 400vh;
    position: relative;
}

.story-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    background: var(--bg);
}

/* Each scene */
.scene {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    will-change: opacity, transform;
}

.scene-image-wrap {
    position: absolute;
    right: 0;
    top: 0;
    width: 48%;
    height: 100%;
    overflow: hidden;
}
.scene-img {
    width: 100%;
    height: 115%;
    object-fit: cover;
    object-position: center top;
    image-rendering: pixelated;
    will-change: transform;
}

.scene-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, var(--bg) 40%, rgba(15,23,42,0.55) 70%, transparent 100%),
        linear-gradient(to top, var(--bg) 0%, transparent 18%);
    pointer-events: none;
    z-index: 1;
}

.scene-content {
    position: relative;
    z-index: 2;
    width: 52%;
    padding: 0 40px 0 8vw;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.scene-num {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    opacity: 0.8;
}

.scene-title {
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.scene-desc {
    font-size: 1rem;
    color: var(--text2);
    line-height: 1.7;
    max-width: 400px;
}

.scene-cta {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent);
    transition: gap 0.2s;
    letter-spacing: 0.02em;
}
.scene-cta:hover { text-decoration: underline; }

.scene-btn {
    width: fit-content;
}

/* Story progress bar */
.story-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255,255,255,0.06);
    z-index: 10;
}
.story-progress-fill {
    height: 100%;
    background: var(--accent);
    width: 0%;
    transition: width 0.05s linear;
}

/* ===== SERVICES ===== */
.services {
    padding: 110px 0;
    background: var(--bg2);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    opacity: 0;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.service-card:hover {
    border-color: rgba(244,194,28,0.35);
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(244,194,28,0.08);
}

.service-icon {
    width: 50px; height: 50px;
    background: var(--accent-glow);
    border: 1px solid rgba(244,194,28,0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 16px;
}
.service-title {
    font-size: 0.98rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.service-list { display: flex; flex-direction: column; gap: 6px; }
.service-list li {
    font-size: 0.85rem;
    color: var(--text2);
    padding-left: 16px;
    position: relative;
}
.service-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 0.75rem;
}

/* ===== ABOUT ===== */
.about {
    padding: 110px 0;
    background: var(--bg);
}
.about-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: center;
}
.about-visual { display: flex; justify-content: center; }
.about-char-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    width: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    opacity: 0;
}
.about-char {
    width: 180px;
    height: auto;
    image-rendering: pixelated;
    animation: charFloat 3s ease-in-out infinite;
}
@keyframes charFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }

.about-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
}
.about-text { font-size: 1rem; color: var(--text2); line-height: 1.75; }
.about-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.about-tag {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text2);
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 5px 12px;
    border-radius: 999px;
}

/* ===== BENEFITS ===== */
.benefits { padding: 110px 0; background: var(--bg2); }
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    opacity: 0;
}
.benefit-item {
    text-align: center;
    padding: 28px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.25s, transform 0.25s;
}
.benefit-item:hover { border-color: rgba(244,194,28,0.3); transform: translateY(-3px); }
.benefit-icon {
    width: 46px; height: 46px;
    background: var(--accent-glow);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin: 0 auto 14px;
}
.benefit-item h3 { font-size: 0.92rem; font-weight: 700; margin-bottom: 8px; }
.benefit-item p { font-size: 0.82rem; color: var(--text2); line-height: 1.5; }

/* ===== CONTACT ===== */
.contact {
    padding: 120px 0;
    background: var(--bg);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.contact::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(244,194,28,0.05) 0%, transparent 70%);
    pointer-events: none;
}
.contact-inner { position: relative; }
.contact-text { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.contact-sub { font-size: 1rem; color: var(--text2); }
.contact-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 16px;
}

/* ===== FOOTER ===== */
.footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 48px 0 24px; }
.footer-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
    align-items: start;
    margin-bottom: 36px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.footer-info p { font-size: 0.84rem; color: var(--text2); margin-bottom: 5px; }
.footer-info a { color: var(--text2); transition: color 0.2s; }
.footer-info a:hover { color: var(--accent); }
.footer-links { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.footer-links a { font-size: 0.84rem; color: var(--text2); transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 22px; text-align: center; }
.footer-bottom p { font-size: 0.78rem; color: var(--text3); }

/* ===== PIXEL ASSISTANT ===== */
.pixel-assistant {
    position: fixed;
    bottom: 96px;
    right: 20px;
    z-index: 600;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.pixel-char-btn {
    background: white;
    border: 2.5px solid var(--accent);
    border-radius: 12px;
    cursor: pointer;
    padding: 6px;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pixelFloat 2.5s ease-in-out infinite;
    box-shadow: 0 6px 20px rgba(244,194,28,0.25);
    transition: transform 0.2s;
    overflow: hidden;
}
.pixel-char-btn:hover { transform: scale(1.08); animation-play-state: paused; }

.pixel-char-img {
    width: 56px;
    height: auto;
    image-rendering: pixelated;
}

@keyframes pixelFloat {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

.pixel-bubble {
    display: none;
    background: var(--bg-card);
    border: 2px solid var(--accent);
    border-radius: 16px;
    padding: 18px;
    width: 238px;
    box-shadow: 0 10px 36px rgba(0,0,0,0.45);
    position: relative;
    animation: popIn 0.2s cubic-bezier(0.34,1.56,0.64,1);
}
.pixel-bubble.open { display: block; }
@keyframes popIn {
    from { opacity: 0; transform: scale(0.8) translateY(10px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
.pixel-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px; right: 22px;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-top: 10px solid var(--accent);
}
.pixel-close {
    position: absolute;
    top: 8px; right: 10px;
    background: none; border: none;
    color: var(--text3);
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}
.pixel-close:hover { color: var(--text); }
.pixel-msg {
    font-size: 0.84rem;
    color: var(--text);
    line-height: 1.55;
    margin-bottom: 14px;
    padding-right: 18px;
}
.pixel-btns { display: flex; gap: 8px; }
.pixel-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 0.77rem;
    font-weight: 700;
    padding: 8px 8px;
    border-radius: 8px;
    transition: all 0.18s;
}
.pixel-wa { background: #25d366; color: #fff; }
.pixel-wa:hover { background: #1fb85a; transform: translateY(-1px); }
.pixel-ig {
    background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: #fff;
}
.pixel-ig:hover { opacity: 0.88; transform: translateY(-1px); }

/* ===== WA FLOAT ===== */
.wa-float {
    position: fixed;
    bottom: 24px; right: 20px;
    z-index: 600;
    width: 56px; height: 56px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 22px rgba(37,211,102,0.42);
    transition: all 0.25s;
}
.wa-float:hover { background: #1fb85a; transform: scale(1.1); }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
    .hero-content { width: 60%; padding-left: 4vw; }
    .hero-image-wrap { width: 45%; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .benefits-grid { grid-template-columns: repeat(2, 1fr); }
    .about-container { grid-template-columns: 1fr; gap: 48px; }
    .about-visual { display: none; }
    .footer-container { grid-template-columns: 1fr 1fr; }
    .footer-links { align-items: flex-start; }

    .scene-content { width: 58%; padding-left: 5vw; }
    .scene-image-wrap { width: 46%; }
}

@media (max-width: 700px) {
    /* Navbar */
    .nav-links {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0; left: 0; right: 0;
        background: rgba(15,23,42,0.98);
        backdrop-filter: blur(14px);
        padding: 80px 24px 36px;
        border-bottom: 1px solid var(--border);
        gap: 0;
    }
    .nav-links.open { display: flex; }
    .nav-link { padding: 14px 0; font-size: 1rem; border-bottom: 1px solid var(--border); }
    .btn-nav-wa { display: none; }
    .nav-toggle { display: flex; }

    /* Hero mobile */
    .hero { min-height: 100svh; }
    .hero-content {
        width: 100%;
        padding: 100px 24px 80px;
    }
    .hero-image-wrap {
        position: absolute;
        top: 0; right: 0;
        width: 100%;
        height: 100%;
        opacity: 0.18;
    }
    .hero-image-fade {
        background: linear-gradient(to bottom, transparent 30%, var(--bg) 80%),
                    linear-gradient(to right, var(--bg) 0%, transparent 60%);
    }
    .hero-cta { flex-direction: column; }
    .hero-cta .btn { width: 100%; justify-content: center; }
    .hero-scroll-hint { display: none; }

    /* Scene mobile */
    .scene { flex-direction: column; align-items: stretch; }
    .scene-image-wrap {
        position: absolute;
        top: 0; right: 0;
        width: 100%;
        height: 100%;
        opacity: 0.2;
    }
    .scene-overlay {
        background: linear-gradient(to bottom, transparent 30%, var(--bg) 70%),
                    var(--bg);
        opacity: 0.85;
    }
    .scene-content {
        width: 100%;
        padding: 0 24px;
        justify-content: flex-end;
        padding-bottom: 60px;
        position: relative;
        z-index: 2;
        height: 100%;
        display: flex;
    }
    .scene-title { font-size: clamp(1.8rem, 7vw, 2.6rem); }

    /* Services */
    .services-grid { grid-template-columns: 1fr; }

    /* Benefits */
    .benefits-grid { grid-template-columns: 1fr 1fr; }

    /* Contact */
    .contact-buttons { flex-direction: column; }
    .contact-buttons .btn { width: 100%; justify-content: center; }

    /* Footer */
    .footer-container { grid-template-columns: 1fr; gap: 20px; }
    .footer-links { align-items: flex-start; flex-direction: row; }

    /* Pixel */
    .pixel-assistant { right: 14px; bottom: 88px; }
    .wa-float { right: 14px; bottom: 20px; }
}

@media (max-width: 420px) {
    .benefits-grid { grid-template-columns: 1fr; }
}
