:root {
    --tosca: #14B8A6;
    --teal: #0D9488;
    --cyan: #06B6D4;
    --sky: #0EA5E9;
    --blue: #0284C7;
    --navy: #1E3A5F;
    --dark: #1E293B;
    --gray-600: #475569;
    --gray-300: #CBD5E1;
    --light: #F8FAFC;
    --white: #FFFFFF;
    --shadow-sm: 0 2px 8px rgba(14, 165, 233, 0.08);
    --shadow-md: 0 8px 24px rgba(14, 165, 233, 0.12);
    --shadow-lg: 0 16px 48px rgba(14, 165, 233, 0.18);
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --transition: all 0.3s ease;
}

/* ========== DARK MODE - Elegan & Hangat ========== */
[data-theme="dark"] {
    --light: #1A2332;
    --white: #243447;
    --dark: #E8ECF1;
    --navy: #60A5FA;
    --teal: #2DD4BF;
    --blue: #3B82F6;
    --tosca: #14B8A6;
    --cyan: #22D3EE;
    --gray-600: #B0BEC5;
    --gray-300: #37474F;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.45);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background: linear-gradient(180deg, #F8FAFC 0%, #E0F2FE 100%);
    background-attachment: fixed;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    border: none;
    cursor: pointer;
    font-family: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: 80px 0;
}

.section-heading {
    text-align: center;
    margin-bottom: 48px;
}

.section-heading h2 {
    font-size: 2.25rem;
    color: var(--navy);
    margin-bottom: 10px;
}

.section-heading p {
    color: var(--gray-600);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

.bg-light {
    background: linear-gradient(180deg, #ECFDF5 0%, #E0F2FE 100%);
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 8px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.logo-top {
    font-size: 2rem;
    font-weight: 800;
    color: var(--teal);
    letter-spacing: 1.5px;
}

.logo-bottom {
    font-size: 1rem;
    font-weight: 800;
    color: #1E3A5F;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    font-size: 0.95rem;
    color: var(--dark);
    font-weight: 500;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--teal);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--tosca), var(--cyan));
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    padding: 4px;
}

.hamburger span {
    width: 26px;
    height: 3px;
    background: var(--teal);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-cta {
    margin-left: 8px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    border: none;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1.05rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--tosca), var(--cyan), var(--blue));
    color: white;
    box-shadow: 0 4px 14px rgba(6, 182, 212, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(6, 182, 212, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--teal);
    border: 2px solid var(--tosca);
}

.btn-secondary:hover {
    background: var(--tosca);
    color: white;
    border-color: var(--tosca);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--teal);
    border: 2px solid var(--tosca);
}

.btn-outline:hover {
    background: linear-gradient(135deg, var(--tosca), var(--cyan));
    color: white;
    border-color: transparent;
}

.w-full {
    width: 100%;
}

.hero {
    padding: 130px 0 80px;
    background-image: url('../images/bg.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* Gradasi epik: transparan ke atas, solid ke bawah agar menyatu dengan konten */
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.4) 0%, rgba(248, 250, 252, 0.8) 60%, var(--light) 100%);
    z-index: 0;
}

.hero > .container {
    position: relative;
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3rem;
    line-height: 1.2;
    color: var(--navy);
    margin-bottom: 22px;
}

.hero-content h1 span {
    background: linear-gradient(90deg, var(--teal), var(--blue));
    -webkit-background-clip: text;
    color: transparent;
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--gray-600);
    margin-bottom: 32px;
    max-width: 520px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-visual svg {
    width: 100%;
    height: auto;
}

.stats-section {
    padding: 40px 0 60px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-card {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.12) 0%, rgba(20, 184, 166, 0.02) 100%);
}

.stat-card h3 {
    font-size: 1.4rem;
    color: var(--teal);
    margin-bottom: 6px;
}

.stat-card p {
    font-size: 0.92rem;
    color: var(--gray-600);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
}

.price-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 28px 22px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    border: 1px solid #EEF2F6;
}

.price-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.price-card.popular {
    border: 2px solid transparent;
    background: linear-gradient(var(--white), var(--white)) padding-box, linear-gradient(135deg, var(--tosca), var(--cyan), var(--blue)) border-box;
    transform: scale(1.03);
}

.badge {
    position: absolute;
    top: -12px;
    right: 18px;
    background: linear-gradient(90deg, var(--tosca), var(--cyan));
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
}

.price-card h3 {
    font-size: 1.25rem;
    color: var(--navy);
    margin-bottom: 12px;
}

.speed {
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--teal);
    margin-bottom: 16px;
    line-height: 1;
}

.speed span {
    font-size: 1rem;
    color: var(--gray-600);
    font-weight: 400;
}

.package-features {
    margin-bottom: 20px;
}

.package-features li {
    padding: 6px 0;
    font-size: 0.95rem;
    border-bottom: 1px dashed #E2E8F0;
}

.price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 20px;
}

.price span {
    font-size: 0.9rem;
    color: var(--gray-600);
    font-weight: 400;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.feature-card {
    background: var(--white);
    padding: 30px 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 2.2rem;
    margin-bottom: 14px;
}

.feature-card h4 {
    font-size: 1.08rem;
    color: var(--navy);
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.6;
}

.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.column-visual svg {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
}

/* About Us Carousel */
.about-carousel {
    position: relative;
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16/9;
    box-shadow: var(--shadow-md);
}

.carousel-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    background: transparent;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding: 20px 15%; /* Membuat gambar samping mengintip */
    gap: 16px;
}

.carousel-inner::-webkit-scrollbar {
    display: none;
}

.carousel-item {
    flex: 0 0 100%;
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    scroll-snap-align: center;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transform: scale(0.85); /* Gambar tidak aktif lebih kecil */
    opacity: 0.4;
    transition: transform 0.4s ease, opacity 0.4s ease, box-shadow 0.4s ease;
}

.carousel-item.active {
    transform: scale(1); /* Gambar aktif normal */
    opacity: 1;
    box-shadow: var(--shadow-lg);
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.85);
    color: var(--navy);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    opacity: 0; /* Transparan awalnya */
}

/* Munculkan tombol saat kursor di area carousel */
.about-carousel:hover .carousel-control {
    opacity: 1;
}

.carousel-control:hover {
    background: var(--teal);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-control.prev {
    left: 12px;
}

.carousel-control.next {
    right: 12px;
}

[data-theme="dark"] .carousel-control {
    background: rgba(36, 52, 71, 0.9);
    color: var(--dark);
}

[data-theme="dark"] .carousel-control:hover {
    background: var(--teal);
    color: white;
}

.column-content h2 {
    font-size: 2rem;
    color: var(--navy);
    margin-bottom: 20px;
}

.column-content p {
    margin-bottom: 14px;
    color: var(--gray-600);
}

.visi-misi {
    margin-top: 24px;
}

.visi-misi h4 {
    color: var(--teal);
    margin: 16px 0 6px;
    font-size: 1rem;
}

.coverage-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: center;
}

.coverage-list li {
    padding: 10px 0;
    border-bottom: 1px dashed #CFFAFE;
    color: var(--dark);
}

.coverage-map-placeholder svg {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
}

.mt-2 {
    margin-top: 18px;
}

.faq-container {
    max-width: 760px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #E2E8F0;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 18px 0;
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--navy);
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.faq-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tosca), var(--cyan));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    line-height: 1;
    flex-shrink: 0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.active .faq-answer {
    max-height: 240px;
    padding-bottom: 18px;
}

.faq-item.active .faq-icon {
    content: "−";
}

.cta-section {
    background: linear-gradient(135deg, #CCFBF1 0%, #E0F2FE 100%);
    border-radius: var(--radius-xl);
    margin: 0 20px;
}

[data-theme="dark"] .cta-section {
    background: linear-gradient(135deg, #1A3A4A 0%, #1E3050 100%);
}

.cta-box {
    text-align: center;
    padding: 48px 24px;
}

.cta-box h2 {
    font-size: 2rem;
    color: var(--navy);
    margin-bottom: 12px;
}

.cta-box p {
    font-size: 1.05rem;
    color: var(--gray-600);
    margin-bottom: 28px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.cta-note {
    font-size: 0.92rem;
    color: var(--teal);
    font-weight: 500;
}

footer {
    background: var(--navy);
    color: #E0F2FE;
    padding: 60px 0 24px;
}

[data-theme="dark"] footer {
    background: #0F1923;
    color: #B0BEC5;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
    gap: 36px;
    margin-bottom: 36px;
}

.footer-logo {
    font-size: 1.3rem;
    color: var(--tosca);
    margin-bottom: 12px;
}

.footer-col h4 {
    font-size: 1rem;
    color: #5EEAD4;
    margin-bottom: 16px;
}

.footer-col p {
    font-size: 0.92rem;
    opacity: 0.8;
    margin-bottom: 16px;
}

.footer-col ul li {
    margin-bottom: 10px;
    font-size: 0.92rem;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.footer-col ul li:hover {
    opacity: 1;
}

.footer-col ul li a {
    color: inherit;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--tosca);
    transform: translateY(-2px);
}

.contact-list li a {
    word-break: break-all;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a:hover {
    color: var(--tosca);
}

.wa-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
    z-index: 900;
    transition: var(--transition);
}

.wa-float:hover {
    transform: scale(1.08);
    color: white;
}

.wa-tooltip {
    position: absolute;
    right: 64px;
    background: #1E293B;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
}

.wa-float:hover .wa-tooltip {
    opacity: 1;
}

.back-top {
    position: fixed;
    bottom: 28px;
    left: 28px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tosca), var(--cyan));
    color: white;
    font-size: 1.1rem;
    box-shadow: var(--shadow-md);
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.back-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-top:hover {
    transform: translateY(-3px);
    color: white;
}

@media (max-width:1024px) {

    .hero-grid,
    .two-column,
    .coverage-wrapper {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }
}

@media (max-width:768px) {
    .nav-links {
        position: absolute;
        top: 64px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 24px;
        gap: 14px;
        box-shadow: var(--shadow-md);
        transform: translateY(-140%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .hamburger {
        display: flex;
    }

    .pricing-grid,
    .features-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .section {
        padding: 52px 0;
    }

    .hero {
        padding: 100px 0 52px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .cta-section {
        margin: 0;
        border-radius: var(--radius-lg);
    }
}

@media (prefers-reduced-motion:reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========== DARK MODE - Aturan tambahan ========== */

/* Navbar */
[data-theme="dark"] .navbar {
    background: rgba(26, 35, 50, 0.92);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .logo-top {
    color: #2DD4BF;
}

[data-theme="dark"] .logo-bottom {
    color: #60A5FA;
}

[data-theme="dark"] .nav-link {
    color: #B0BEC5;
}

[data-theme="dark"] .nav-link:hover {
    color: #2DD4BF;
}

[data-theme="dark"] .theme-toggle {
    color: #FBBF24 !important;
}

/* Hero overlay */
[data-theme="dark"] .hero::before {
    background: linear-gradient(180deg, rgba(26, 35, 50, 0.6) 0%, rgba(26, 35, 50, 0.85) 60%, var(--light) 100%);
}

/* Section headings */
[data-theme="dark"] .section-title {
    color: var(--dark);
}

[data-theme="dark"] .section-subtitle {
    color: var(--gray-600);
}

/* Card hover in dark mode */
[data-theme="dark"] .stat-card:hover {
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.15) 0%, rgba(45, 212, 191, 0.03) 100%);
}

[data-theme="dark"] .price-card {
    border-color: #37474F;
}

[data-theme="dark"] .package-features li {
    border-bottom-color: #37474F;
}

[data-theme="dark"] .faq-item {
    border-bottom-color: #37474F;
}

[data-theme="dark"] .coverage-list li {
    border-bottom-color: #37474F;
}

/* CTA buttons in dark mode */
[data-theme="dark"] .btn-secondary {
    background: var(--white);
    color: #2DD4BF;
    border-color: #2DD4BF;
}

[data-theme="dark"] .btn-outline {
    color: #2DD4BF;
    border-color: #2DD4BF;
}

/* Footer dark mode adjustments */
[data-theme="dark"] .footer-col h4 {
    color: #2DD4BF;
}

[data-theme="dark"] .footer-logo {
    color: #2DD4BF;
}

[data-theme="dark"] .footer-bottom {
    border-top-color: rgba(255, 255, 255, 0.05);
}

/* Background pola bintang/titik halus (Data Center vibe) */
[data-theme="dark"] body {
    background-color: var(--light);
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1.5px, transparent 1.5px);
    background-size: 45px 45px;
}

/* Override bg-light agar menyatu dengan background body di dark mode */
[data-theme="dark"] .bg-light {
    background: transparent;
}

/* Support bar */
.support-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.support-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.support-item img {
    height: 32px;
    object-fit: contain;
    border-radius: 4px;
}

.support-item span {
    font-size: 0.85rem;
    font-weight: 700;
    color: #E0F2FE;
    text-align: left;
    line-height: 1.2;
}

[data-theme="dark"] .support-item span {
    color: #B0BEC5;
}

/* Mobile nav dark mode */
@media (max-width:768px) {
    [data-theme="dark"] .nav-links {
        background: var(--white);
    }
}