:root {
    --primary: #0a1628;
    --secondary: #1a2d4f;
    --accent: #e8231a;
    --accent-light: #ff3b31;
    --accent-grad: linear-gradient(135deg, #ff4535 0%, #e8231a 50%, #c0150d 100%);
    --white: #ffffff;
    --light: #f4f6f9;
    --gray: #6b7280;
    --dark-gray: #374151;
    --border: #e5e7eb;
    --shadow: 0 4px 24px rgba(10,22,40,0.10);
    --shadow-lg: 0 8px 48px rgba(10,22,40,0.18);
    --radius: 10px;
    --transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
}

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

html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }

body {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    background: var(--white);
    color: var(--dark-gray);
    line-height: 1.7;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================== SCROLL REVEAL ===================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ===================== TOP BAR ===================== */
#topbar {
    background: var(--primary);
    color: rgba(255,255,255,0.75);
    font-size: 0.8rem;
    padding: 8px 0;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1001;
}
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.topbar-left { display: flex; align-items: center; gap: 20px; }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.topbar-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}
.topbar-item:hover { color: var(--white); }
.topbar-item svg { width: 13px; height: 13px; stroke: var(--accent); fill: none; stroke-width: 2; flex-shrink: 0; }
.topbar-divider { width: 1px; height: 14px; background: rgba(255,255,255,0.15); }

/* ===================== HEADER ===================== */
#header {
    position: fixed;
    top: 36px;
    left: 0; right: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 2px 16px rgba(10,22,40,0.08);
}
#header.scrolled {
    box-shadow: var(--shadow-lg);
}
.header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 80px;
}
#header.scrolled .header-inner { height: 80px; }

.header-inner nav {
    justify-self: center;
}

.header-inner .nav-right {
    justify-self: end;
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0;
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}
.logo span { color: var(--accent); }

#footer .logo {
    color: var(--white);
}

nav { display: flex; align-items: center; gap: 4px; }
nav a {
    color: var(--dark-gray);
    font-size: 0.92rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 6px;
    transition: var(--transition);
    position: relative;
}
nav a::after {
    content: '';
    position: absolute;
    bottom: 4px; left: 14px; right: 14px;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.3s;
    border-radius: 2px;
}
nav a:hover { color: var(--primary); }
nav a:hover::after { transform: scaleX(1); }
nav a.active { color: var(--primary); font-weight: 600; }
nav a.active::after { transform: scaleX(1); }

.nav-cta {
    background: var(--accent-grad);
    color: var(--white) !important;
    padding: 10px 22px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    margin-left: 8px;
    transition: var(--transition) !important;
    border: none !important;
}
.nav-cta:hover {
    background: linear-gradient(135deg, #e8231a 0%, #c0150d 50%, #a01008 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(232,35,26,0.4) !important;
}
.nav-cta::after { display: none !important; }

.nav-wa {
    background: linear-gradient(135deg, #25d366 0%, #1da851 100%);
    color: var(--white) !important;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.92rem;
    margin-left: 8px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: var(--transition);
    white-space: nowrap;
}
.nav-wa svg { width: 17px; height: 17px; flex-shrink: 0; }
.nav-wa:hover {
    background: linear-gradient(135deg, #1da851 0%, #158f3f 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37,211,102,0.35);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
}
.hamburger span {
    display: block;
    width: 26px; height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================== SLIDER ===================== */
#slider {
    position: relative;
    width: 100%;
    height: calc(100vh - 108px);
    min-height: 560px;
    overflow: hidden;
    background: #050d1a;
    margin-top: 116px;
    display: flex;
    flex-direction: column;
}
.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    align-items: center;
    padding-bottom: 160px;
}
.slide.active { opacity: 1; z-index: 2; }
.slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.06);
    transition: transform 6s ease;
}
.slide.active .slide-bg { transform: scale(1); }
.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(3,8,18,0.97) 0%, rgba(3,8,18,0.75) 50%, rgba(3,8,18,0.15) 100%);
}
.slide-content {
    position: relative;
    z-index: 3;
    max-width: 680px;
}
.slide-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(232,35,26,0.18);
    border: 1px solid rgba(232,35,26,0.4);
    color: var(--accent-light);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 24px;
}
.slide-tag::before {
    content: '';
    width: 6px; height: 6px;
    background: var(--accent);
    border-radius: 50%;
}
.slide-content h1,
.slide-heading {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -1px;
    display: block;
}
.slide-content h1 em,
.slide-heading em {
    font-style: normal;
    color: var(--accent-light);
    display: inline;
}
.slide-content p:not(.slide-heading) {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.78);
    margin-bottom: 36px;
    max-width: 520px;
}
.slide-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary {
    background: var(--accent-grad);
    color: var(--white);
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
}
.btn-primary:hover {
    background: linear-gradient(135deg, #e8231a 0%, #c0150d 50%, #a01008 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(232,35,26,0.45);
}
.btn-outline {
    background: transparent;
    color: var(--white);
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid rgba(255,255,255,0.4);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-outline:hover {
    border-color: var(--white);
    background: rgba(255,255,255,0.08);
    transform: translateY(-2px);
}

.slider-bottom {
    position: absolute;
    bottom: 100px;
    left: 0; right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
}

.slider-counter {
    display: flex;
    align-items: baseline;
    gap: 3px;
    font-weight: 700;
    color: var(--white);
}
.counter-current {
    font-size: 2rem;
    line-height: 1;
    color: var(--white);
}
.counter-sep {
    font-size: 1rem;
    color: rgba(255,255,255,0.4);
    margin: 0 2px;
}
.counter-total {
    font-size: 1rem;
    color: rgba(255,255,255,0.45);
}

.slider-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}
.slider-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    cursor: pointer;
    transition: var(--transition);
    border: none;
}
.slider-dot.active {
    background: var(--accent-grad);
    width: 28px;
    border-radius: 4px;
}

.slider-arrows {
    display: flex;
    gap: 10px;
}

.slider-arrow-side {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 52px; height: 52px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.25);
    background: rgba(5,13,26,0.45);
    color: var(--white);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
    backdrop-filter: blur(8px);
}
.slider-arrow-side svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2.5; }
.slider-arrow-left  { left: 20px; }
.slider-arrow-right { right: 20px; }
.slider-arrow-side:hover {
    background: var(--accent-grad);
    border-color: transparent;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 6px 24px rgba(232,35,26,0.4);
}
.slider-arrow {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.08);
    color: var(--white);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
    backdrop-filter: blur(6px);
}
.slider-arrow:hover {
    background: var(--accent-grad);
    border-color: var(--accent);
}
.slider-arrow svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }

.slider-stats {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    z-index: 10;
    background: rgba(5,13,26,0.85);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255,255,255,0.08);
}
.slider-stats-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    divide-x: 1px solid rgba(255,255,255,0.1);
}
.stat-item {
    padding: 18px 24px;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.08);
}
.stat-item:last-child { border-right: none; }
.stat-num {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-light);
    line-height: 1;
    margin-bottom: 4px;
}.stat-label {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* ===================== FOOTER ===================== */
#footer {
    background: var(--primary);
    color: rgba(255,255,255,0.75);
    padding-top: 70px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.4fr;
    gap: 48px;
    padding-bottom: 56px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.8;
    margin: 18px 0 24px;
    color: rgba(255,255,255,0.6);
    max-width: 300px;
}
.footer-socials { display: flex; gap: 10px; }
.social-link {
    width: 38px; height: 38px;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
    color: rgba(255,255,255,0.6);
}
.social-link:hover {
    background: var(--accent-grad);
    border-color: var(--accent);
    color: var(--white);
    transform: translateY(-2px);
}
.social-link svg { width: 16px; height: 16px; fill: currentColor; }

.footer-col h4 {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 28px; height: 2px;
    background: var(--accent);
    border-radius: 2px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}
.footer-col ul li a::before {
    content: '';
    width: 4px; height: 4px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
    opacity: 0;
    transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--white); padding-left: 4px; }
.footer-col ul li a:hover::before { opacity: 1; }

.footer-contact-item {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    align-items: flex-start;
}
.footer-contact-icon {
    width: 36px; height: 36px;
    background: rgba(232,35,26,0.12);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.footer-contact-icon svg { width: 16px; height: 16px; stroke: var(--accent); fill: none; stroke-width: 2; }
.footer-contact-item span {
    font-size: 0.86rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.6;
}
.footer-contact-item a { color: rgba(255,255,255,0.65); transition: var(--transition); }
.footer-contact-item a:hover { color: var(--accent-light); }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 0;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
    flex-wrap: wrap;
    gap: 12px;
}
.footer-privacy {
    color: rgba(255,255,255,0.4);
    font-size: 0.82rem;
    transition: var(--transition);
}
.footer-privacy:hover { color: var(--white); }
.footer-bottom a { color: var(--accent); transition: var(--transition); }
.footer-bottom a:hover { color: var(--accent-light); }

/* ===================== MOBILE NAV ===================== */
.mobile-nav {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 300px;
    background: var(--primary);
    z-index: 1002;
    display: flex;
    flex-direction: column;
    padding: 24px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
    box-shadow: -8px 0 40px rgba(0,0,0,0.3);
}
.mobile-nav.open {
    transform: translateX(0);
}

.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(5,13,26,0.6);
    z-index: 1001;
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity 0.35s;
}
.mobile-nav-overlay.open {
    display: block;
    opacity: 1;
}

.mobile-nav-close {
    align-self: flex-end;
    background: rgba(255,255,255,0.08);
    border: none;
    border-radius: 8px;
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: var(--white);
    margin-bottom: 24px;
    transition: var(--transition);
}
.mobile-nav-close:hover { background: rgba(232,35,26,0.2); }
.mobile-nav-close svg { width: 20px; height: 20px; }

.mobile-nav-logo {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}
.mobile-nav-links a {
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    font-weight: 500;
    padding: 12px 16px;
    border-radius: 8px;
    transition: var(--transition);
    border-left: 3px solid transparent;
}
.mobile-nav-links a:hover,
.mobile-nav-links a.active {
    color: var(--white);
    background: rgba(255,255,255,0.06);
    border-left-color: var(--accent);
    padding-left: 20px;
}

.mobile-nav-btns {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
    .slider-stats-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    nav { display: none; }
    .hamburger { display: flex; }
    .nav-cta { display: none; }
    .nav-wa { display: none; }
    .header-inner {
        grid-template-columns: 1fr auto;
    }
    .header-inner nav { display: none; }
    .slide-content h1 { font-size: 2rem; }
    .slider-stats-inner { grid-template-columns: repeat(2, 1fr); }
    .slider-bottom { padding: 0 16px; bottom: 96px; }
    .slider-arrow-side { width: 40px; height: 40px; }
    .slider-arrow-left  { left: 10px; }
    .slider-arrow-right { right: 10px; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    #slider { margin-top: 108px; }
    .topbar-left { flex-wrap: wrap; gap: 10px; }
    .topbar-right { display: none; }
}

@media (max-width: 480px) {
    .slide-btns { flex-direction: column; }
    .btn-primary, .btn-outline { justify-content: center; }
    .slider-stats-inner { grid-template-columns: repeat(2, 1fr); }
    .stat-item { padding: 14px 12px; }
    .stat-num { font-size: 1.4rem; }
}

/* ===================== MARQUEE BAR ===================== */
.marquee-bar {
    background: var(--primary);
    overflow: hidden;
    padding: 14px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 20px;
    width: max-content;
    animation: marqueeScroll 25s linear infinite;
    white-space: nowrap;
}

.marquee-track span {
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(255,255,255,0.75);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.marquee-dot {
    color: var(--accent) !important;
    font-size: 0.6rem !important;
}

@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
