/* ========================
   DESIGN TOKENS
======================== */
:root {
    --primary: #E64D2E;
    --primary-dark: #c93d21;
    --navy: #0A1A2F;
    --navy-light: #122240;
    --surface: #F7F8FA;
    --white: #FFFFFF;
    --text: #1A1A2E;
    --text-light: #5A6178;
    --text-muted: #8E94A7;
    --border: #E4E7EE;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 2px 8px rgba(10,26,47,0.06);
    --shadow-md: 0 8px 30px rgba(10,26,47,0.08);
    --shadow-lg: 0 20px 60px rgba(10,26,47,0.12);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================
   RESET & BASE
======================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ========================
   SCROLLBAR
======================== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--navy); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ========================
   ANIMATIONS
======================== */
.anim-fade {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--transition), transform 0.7s var(--transition);
}
.anim-fade.visible { opacity: 1; transform: translateY(0); }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes scrollDown {
    0% { transform: translateY(0); opacity: 0; }
    30% { opacity: 1; }
    60% { opacity: 1; }
    100% { transform: translateY(16px); opacity: 0; }
}

/* ========================
   BUTTONS
======================== */
.btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--primary); color: var(--white);
    padding: 14px 32px; border-radius: 8px;
    font-weight: 600; font-size: 0.95rem;
    transition: all var(--transition);
    box-shadow: 0 4px 15px rgba(230,77,46,0.3);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 6px 25px rgba(230,77,46,0.4); }

.btn-outline {
    display: inline-flex; align-items: center; gap: 8px;
    border: 2px solid rgba(255,255,255,0.35); color: var(--white);
    padding: 13px 32px; border-radius: 8px;
    font-weight: 600; font-size: 0.95rem;
    transition: all var(--transition);
    backdrop-filter: blur(4px);
}
.btn-outline:hover { background: var(--white); color: var(--navy); border-color: var(--white); }

.btn-secondary {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--navy); color: var(--white);
    padding: 14px 32px; border-radius: 8px;
    font-weight: 600; font-size: 0.95rem;
    transition: all var(--transition);
}
.btn-secondary:hover { background: var(--primary); transform: translateY(-2px); }

.btn-nav {
    background: var(--primary); color: var(--white);
    padding: 10px 24px; border-radius: 8px;
    font-weight: 600; font-size: 0.85rem;
    transition: all var(--transition);
}
.btn-nav:hover { background: var(--primary-dark); }

/* ========================
   LANGUAGE TOGGLE
======================== */
.lang-toggle {
    display: flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,0.15); backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.25);
    color: var(--white); padding: 7px 14px; border-radius: 50px;
    font-size: 0.8rem; font-weight: 600;
    transition: all var(--transition);
    cursor: pointer;
}
.lang-toggle:hover { background: rgba(255,255,255,0.25); }
nav#navbar.scrolled .lang-toggle { background: var(--surface); color: var(--text); border-color: var(--border); }

/* ========================
   WHATSAPP BUTTON
======================== */
.whatsapp-float {
    position: fixed; bottom: 28px; right: 28px; z-index: 99;
    width: 60px; height: 60px;
    background: #25D366; color: var(--white);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    transition: all var(--transition);
    animation: float 3s ease-in-out infinite;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 30px rgba(37,211,102,0.5); }

/* ========================
   NAVIGATION
======================== */
nav#navbar {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 90;
    padding: 20px 0;
    transition: all 0.4s ease;
}
nav#navbar.scrolled {
    background: rgba(255,255,255,0.97); backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm); padding: 12px 0;
}
.nav-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-logo-wrap {
    background: rgba(255,255,255,0.95); border-radius: 8px; padding: 4px 8px;
    display: flex; align-items: center; justify-content: center;
    transition: background var(--transition);
}
nav#navbar.scrolled .nav-logo-wrap { background: transparent; }
.nav-logo { height: 30px; }
.nav-brand-text { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.1rem; color: var(--white); letter-spacing: 2px; transition: color var(--transition); }
nav#navbar.scrolled .nav-brand-text { color: var(--navy); }

.nav-links { display: flex; gap: 36px; }
.nav-links a {
    font-size: 0.82rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
    color: rgba(255,255,255,0.85); transition: color var(--transition);
    position: relative;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
    background: var(--primary); transition: width var(--transition);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }
nav#navbar.scrolled .nav-links a { color: var(--text-light); }
nav#navbar.scrolled .nav-links a:hover { color: var(--navy); }

.nav-actions { display: flex; align-items: center; gap: 16px; }

.mobile-toggle { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.mobile-toggle span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: all var(--transition); }
nav#navbar.scrolled .mobile-toggle span { background: var(--navy); }

/* ========================
   MOBILE MENU
======================== */
.mobile-menu {
    position: fixed; inset: 0; z-index: 95; background: var(--navy);
    display: flex; align-items: center; justify-content: center;
    transform: translateX(100%); transition: transform 0.5s ease;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-inner { text-align: center; display: flex; flex-direction: column; gap: 28px; }
.mobile-link {
    font-family: 'Outfit', sans-serif; font-size: 1.6rem; font-weight: 700;
    color: rgba(255,255,255,0.7); transition: color var(--transition);
}
.mobile-link:hover { color: var(--white); }
.btn-mobile-cta {
    background: var(--primary); color: var(--white); padding: 14px 40px;
    border-radius: 8px; font-weight: 700; display: inline-block; margin-top: 12px;
}

/* ========================
   HERO
======================== */
.hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    background: url('https://images.unsplash.com/photo-1497215728101-856f4ea42174?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    transform: scale(1.05);
    transition: transform 0.3s ease-out;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(10,26,47,0.92) 0%, rgba(18,34,64,0.85) 50%, rgba(230,77,46,0.15) 100%);
}
.hero-content {
    position: relative; z-index: 2;
    max-width: 1024px; padding: 0 24px; text-align: center;
}
.hero-badge {
    display: inline-block;
    font-family: 'Outfit', sans-serif; font-size: 0.75rem; font-weight: 700;
    letter-spacing: 4px; color: var(--primary);
    border: 1px solid rgba(230,77,46,0.3); padding: 8px 24px;
    border-radius: 50px; margin-bottom: 28px; margin-top:60px;
}
.hero-title {
    font-family: 'Outfit', sans-serif; font-weight: 800;
    font-size: clamp(2.5rem, 6vw, 4.2rem); line-height: 1.15;
    color: var(--white); margin-bottom: 24px; margin-top:60px;
}
.hero-accent { color: var(--primary); }
.hero-sub {
    font-size: 1.1rem; color: rgba(255,255,255,0.7);
    max-width: 560px; margin: 0 auto 40px; line-height: 1.8;
}
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-scroll {
    position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
    width: 24px; height: 40px; border: 2px solid rgba(255,255,255,0.3);
    border-radius: 12px; display: flex; justify-content: center;
}
.scroll-indicator {
    width: 4px; height: 8px; background: var(--white); border-radius: 2px;
    margin-top: 6px; animation: scrollDown 2s infinite;
}

/* ========================
   CLIENTS (ace.co.id style)
======================== */
.section-clients { padding: 80px 0 60px; background: var(--surface); }

.clients-header { text-align: center; margin-bottom: 48px; }
.clients-badge {
    display: inline-block; background: rgba(230,77,46,0.1); color: var(--primary);
    font-size: 0.75rem; font-weight: 700; letter-spacing: 2px;
    padding: 8px 20px; border-radius: 50px; margin-bottom: 20px;
}
.clients-title {
    font-family: 'Outfit', sans-serif; font-weight: 800;
    font-size: clamp(1.6rem, 3.5vw, 2.4rem); color: var(--navy);
    line-height: 1.3; margin-bottom: 12px; 
}
.clients-sub {
    font-size: 1rem; color: var(--text-light); max-width: 560px;
    margin: 0 auto; line-height: 1.7; 
}

.client-grid {
    display: flex; flex-wrap: wrap; justify-content: center;
    align-items: center; gap: 32px 40px;
    max-width: 1000px; margin: 0 auto;
    padding: 20px 0;
}
.client-logo {
    height: 45px; width: auto; object-fit: contain;
    filter: grayscale(1); opacity: 0.5;
    transition: all var(--transition);
}
.client-logo:hover { filter: grayscale(0); opacity: 1; }

.clients-footer { text-align: center; margin-top: 40px; }
.clients-more {
    font-size: 0.9rem; color: var(--text-muted);
    font-style: italic; margin-bottom: 20px;
}
.btn-clients {
    display: inline-block; padding: 12px 28px;
    border: 2px solid var(--navy); color: var(--navy);
    border-radius: 8px; font-weight: 600; font-size: 0.9rem;
    transition: all var(--transition);
}
.btn-clients:hover { background: var(--navy); color: var(--white); }

/* ========================
   SECTION HEADERS
======================== */
.section-label {
    font-family: 'Outfit', sans-serif; font-size: 0.75rem; font-weight: 700;
    letter-spacing: 4px; color: var(--primary); text-transform: uppercase;
    margin-bottom: 10px;
}
.section-header { text-align: center; max-width: 650px; margin: 0 auto 60px; }
.section-title {
    font-family: 'Outfit', sans-serif; font-weight: 800;
    font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--navy);
    line-height: 1.25; margin-bottom: 16px;
}
.section-title.light { color: var(--white); }
.section-desc { font-size: 1.05rem; color: var(--text-light); line-height: 1.8; }

/* ========================
   SOLUTIONS
======================== */
.section-solutions { padding: 100px 0; background: var(--white); }
.solutions-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 24px; }

.sol-card {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 36px;
    transition: all 0.4s ease; position: relative;
}
.sol-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-4px); }

.sol-card-icon {
    width: 56px; height: 56px; border-radius: 14px;
    background: linear-gradient(135deg, rgba(230,77,46,0.1), rgba(230,77,46,0.05));
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; color: var(--primary); margin-bottom: 20px;
}
.sol-card-title {
    font-family: 'Outfit', sans-serif; font-weight: 700;
    font-size: 1.25rem; color: var(--navy); margin-bottom: 10px;
}
.sol-card-brief { font-size: 0.95rem; color: var(--text-light); line-height: 1.7; margin-bottom: 0; }

.sol-card-detail {
    max-height: 0; overflow: hidden; transition: max-height 0.5s ease, opacity 0.4s ease;
    opacity: 0; margin-top: 0;
}
.sol-card.expanded .sol-card-detail { max-height: 1200px; opacity: 1; margin-top: 20px; }
.sol-card-detail p { font-size: 0.92rem; color: var(--text-light); line-height: 1.8; margin-bottom: 16px; }

.sol-features {
    list-style: none; display: flex; flex-direction: column; gap: 10px;
    margin: 16px 0;
}
.sol-features li {
    font-size: 0.88rem; color: var(--text); display: flex; align-items: flex-start; gap: 10px;
}
.sol-features li i { color: var(--primary); margin-top: 4px; font-size: 0.75rem; }

.sol-why { font-size: 0.9rem; color: var(--navy); background: var(--surface); padding: 16px; border-radius: 10px; border-left: 3px solid var(--primary); }

.sol-toggle {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.85rem; font-weight: 600; color: var(--primary);
    margin-top: 16px; transition: all var(--transition);
}
.sol-toggle i { transition: transform var(--transition); font-size: 0.7rem; }
.sol-card.expanded .sol-toggle i { transform: rotate(180deg); }

/* ========================
   WHY US
======================== */
.section-why { padding: 100px 0; background: var(--navy); color: var(--white); overflow: hidden; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.why-desc { color: rgba(255,255,255,0.6); font-size: 1.05rem; line-height: 1.8; margin-bottom: 40px; }

.why-points { display: flex; flex-direction: column; gap: 28px; }
.why-point { display: flex; gap: 20px; align-items: flex-start; }
.why-icon {
    width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
    background: rgba(230,77,46,0.12); display: flex; align-items: center; justify-content: center;
    color: var(--primary); font-size: 1.1rem;
}
.why-point h4 { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.05rem; margin-bottom: 6px; }
.why-point p { font-size: 0.9rem; color: rgba(255,255,255,0.55); line-height: 1.7; }

.why-image { position: relative; }
.why-image img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.why-badge {
    position: absolute; bottom: -20px; left: -20px;
    background: var(--primary); padding: 24px 28px; border-radius: var(--radius);
    display: flex; flex-direction: column;
}
.why-badge-num { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 2.4rem; line-height: 1; }
.why-badge-text { font-size: 0.75rem; font-weight: 600; letter-spacing: 1px; opacity: 0.9; }

/* ========================
   ABOUT
======================== */
.section-about { padding: 100px 0; background: var(--surface); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-image img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.about-desc { font-size: 1rem; color: var(--text-light); line-height: 1.8; margin-bottom: 20px; }

.about-stats { display: flex; gap: 48px; margin: 32px 0; }
.about-stat { display: flex; flex-direction: column; }
.about-stat-num { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 2.2rem; color: var(--navy); }
.about-stat-text { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; }

/* ========================
   CTA
======================== */
.section-cta { padding: 80px 0; background: var(--white); }
.cta-box {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    border-radius: var(--radius-lg); padding: 64px; text-align: center;
    position: relative; overflow: hidden;
}
.cta-box::before {
    content: ''; position: absolute; top: -50%; right: -20%; width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(230,77,46,0.15), transparent 70%);
    border-radius: 50%;
}
.cta-box h2 {
    font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 2rem;
    color: var(--white); margin-bottom: 16px; position: relative;
}
.cta-box p { color: rgba(255,255,255,0.6); font-size: 1.05rem; max-width: 500px; margin: 0 auto 32px; position: relative; }
.btn-cta {
    display: inline-flex; align-items: center; gap: 10px;
    background: #25D366; color: var(--white); padding: 16px 36px;
    border-radius: 8px; font-weight: 700; font-size: 1rem;
    transition: all var(--transition); position: relative;
    box-shadow: 0 4px 20px rgba(37,211,102,0.3);
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 30px rgba(37,211,102,0.4); }

/* ========================
   FOOTER
======================== */
.site-footer { background: var(--navy); color: var(--white); padding: 80px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 48px; margin-bottom: 48px; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-logo img { height: 32px; filter: brightness(0) invert(1); }
.footer-logo span { font-family: 'Outfit', sans-serif; font-weight: 800; letter-spacing: 2px; }
.footer-desc { font-size: 0.9rem; color: rgba(255,255,255,0.5); line-height: 1.7; margin-bottom: 20px; }
.footer-socials { display: flex; gap: 12px; }
.footer-socials a {
    width: 38px; height: 38px; border-radius: 10px;
    background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem; transition: all var(--transition);
}
.footer-socials a:hover { background: var(--primary); }

.footer-col h4 {
    font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 0.95rem;
    margin-bottom: 20px; padding-left: 14px; border-left: 3px solid var(--primary);
}
.footer-col a, .footer-col p {
    display: block; font-size: 0.88rem; color: rgba(255,255,255,0.45);
    margin-bottom: 12px; transition: color var(--transition); line-height: 1.6;
}
.footer-col a:hover { color: var(--white); }
.footer-col p i { color: var(--primary); margin-right: 8px; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08); padding-top: 28px;
    text-align: center;
}
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.35); }

/* ========================
   RESPONSIVE
======================== */
@media (max-width: 1024px) {
    .why-grid, .about-grid { grid-template-columns: 1fr; gap: 48px; }
    .why-image { order: -1; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-toggle { display: flex; }
    .btn-nav { display: none; }
    .lang-toggle { padding: 5px 10px; font-size: 0.75rem; }
    .solutions-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 2.2rem; }
    .hero-sub { font-size: 1rem; }
    .cta-box { padding: 40px 24px; }
    .about-stats { flex-direction: column; gap: 24px; }
}

@media (max-width: 480px) {
    .hero-btns { flex-direction: column; }
    .why-badge { position: static; margin-top: 20px; display: inline-flex; flex-direction: row; align-items: center; gap: 12px; }
}
