/* =========================================================
   1. GLOBAL & ROOT VARIABLES
========================================================= */
:root {
    --wt-primary: #0b2a4a;       /* Navy Blue Utama */
    --wt-primary-light: #15406f;
    --wt-navy: #0b2a4a;
    --wt-blue: #15b2ff;          /* Biru Terang (Accent) */
    --wt-accent: #15b2ff;
    --wt-red: #ef4444;
    --wt-bg: #f5f7fb;
    --wt-text-body: #475569;
    --wt-text-head: #0b2a4a;
}

body {
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", sans-serif;
    background-color: #ffffff;
    color: #1c1f23;
    line-height: 1.6;
}

section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* Utilities */
.shadow-soft { box-shadow: 0 12px 30px rgba(10,34,65,0.10); }
.section-title { font-weight: 800; margin-bottom: 0.75rem; color: var(--wt-navy); letter-spacing: -0.5px; }
.section-subtitle { max-width: 640px; margin: 0 auto 2rem auto; color: #606775; font-size: 1.1rem; }

/* Buttons */
.btn-primary { 
    background-color: var(--wt-accent); 
    border-color: var(--wt-accent); 
    font-weight: 600; 
    padding: 10px 24px;
    border-radius: 8px;
}
.btn-primary:hover { background-color: #0e9ee3; border-color: #0e9ee3; }
.btn-outline-light { border-width: 1.5px; }

/* =========================================================
   2. NAVBAR
========================================================= */
.navbar { background: rgba(11, 42, 74, 0.98); backdrop-filter: blur(10px); }
.navbar-brand span { font-weight: 700; letter-spacing: 0.03em; }
.navbar .nav-link { color: #f5f5f5 !important; font-weight: 500; font-size: 0.95rem; }
.navbar .nav-link:hover { color: var(--wt-accent) !important; }

/* =========================================================
   3. HERO SECTION
========================================================= */
.hero {
    background: radial-gradient(circle at top left, #173f72 0, #0b2a4a 45%, #041429 100%);
    color: #ffffff;
    padding-top: 8rem;
    padding-bottom: 6rem;
}
.hero h1 { font-size: clamp(2.3rem, 3.2vw, 3.5rem); font-weight: 800; line-height: 1.2; }
.hero p.lead { font-size: 1.1rem; max-width: 520px; opacity: 0.9; }
.hero-badge { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; border-radius: 999px; }

.hero-card {
    background: rgba(6, 21, 40, 0.9);
    border-radius: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}
.hero-card h5 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.08em; color: #c9d6ea; }
.testimonial-item-fixed { min-height: 190px; }

/* =========================================================
   4. PROBLEMS SECTION
========================================================= */
#problems { background-color: #f8f9fa; padding: 80px 0; overflow-x: hidden; }

.wt-badge {
    background-color: rgba(11, 42, 74, 0.08); color: var(--wt-navy);
    font-weight: 700; font-size: 0.75rem; text-transform: uppercase;
    letter-spacing: 1px; padding: 6px 12px; border-radius: 30px;
    display: inline-block; margin-bottom: 15px;
}
.wt-title { color: var(--wt-navy); font-weight: 800; line-height: 1.2; margin-bottom: 20px; }
.wt-desc { color: #64748b; font-size: 1.1rem; line-height: 1.6; }

/* Problem Cards */
.wt-card-problem {
    border: 2px dashed #cbd5e1; border-radius: 16px; padding: 30px;
    background: transparent; height: 100%; transition: 0.3s;
}
.wt-card-problem:hover { background: #fff; border-color: #94a3b8; }

.wt-card-solution {
    background: #ffffff; border: 1px solid rgba(21, 178, 255, 0.2);
    border-radius: 16px; padding: 30px; height: 100%; position: relative;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08); overflow: hidden;
}
.wt-card-solution::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0;
    height: 5px; background: var(--wt-blue);
}
.wt-card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; font-weight: 700; font-size: 1.1rem; }

/* Lists */
ul.wt-list { list-style: none; padding: 0; margin: 0; }
ul.wt-list li { display: flex; align-items: flex-start; margin-bottom: 12px; font-size: 0.95rem; color: #475569; line-height: 1.5; }
ul.wt-list li i { flex-shrink: 0; margin-right: 12px; margin-top: 3px; font-size: 1.1rem; }

.btn-wt-navy {
    background-color: var(--wt-navy); color: white; border-radius: 8px;
    padding: 10px 24px; font-weight: 600; border: none; transition: 0.2s;
}
.btn-wt-navy:hover { background-color: #15406f; color: white; }

/* =========================================================
   5. FEATURES SECTION
========================================================= */
#features { background-color: #ffffff; padding: 100px 0; }
#features .section-title { color: var(--wt-navy); font-weight: 800; margin-bottom: 20px; letter-spacing: -0.5px; }
#features .section-subtitle { color: #64748b; font-size: 1.1rem; max-width: 700px; margin: 0 auto; line-height: 1.6; }

.feature-card {
    background: #fff; border: 1px solid #f1f5f9; border-radius: 20px;
    padding: 2rem 1.5rem !important; height: 100%; position: relative;
    overflow: hidden; z-index: 1; text-align: center;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.feature-card:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(11, 42, 74, 0.08); border-color: transparent; }
.feature-card h5 { color: var(--wt-navy); font-weight: 700; font-size: 1.15rem; margin-bottom: 0.6rem; }
.feature-card p { color: #64748b; font-size: 0.95rem; line-height: 1.6; margin-bottom: 0; }

.feature-card::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(248,250,252,0.5) 100%);
    z-index: -1; opacity: 0; transition: 0.3s;
}
.feature-card:hover::after { opacity: 1; }

/* Feature Icons */
.icon-wrapper {
    width: 64px; height: 64px; border-radius: 14px; display: flex;
    align-items: center; justify-content: center; font-size: 2rem;
    margin: 0 auto 1rem auto; transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.feature-card:hover .icon-wrapper { transform: scale(1.15) rotate(-6deg); border-radius: 20px; }

/* Theme Colors */
.theme-blue { background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%); color: #0284c7; }
.theme-purple { background: linear-gradient(135deg, #f3e8ff 0%, #d8b4fe 100%); color: #9333ea; }
.theme-green { background: linear-gradient(135deg, #dcfce7 0%, #86efac 100%); color: #16a34a; }
.theme-orange { background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%); color: #ea580c; }
.theme-red { background: linear-gradient(135deg, #fee2e2 0%, #fca5a5 100%); color: #dc2626; }
.theme-teal { background: linear-gradient(135deg, #ccfbf1 0%, #5eead4 100%); color: #0d9488; }
.theme-indigo { background: linear-gradient(135deg, #e0cffc 0%, #c4b5fd 100%); color: #6610f2; }
.theme-pink   { background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%); color: #db2777; }
.theme-cyan   { background: linear-gradient(135deg, #cffafe 0%, #a5f3fc 100%); color: #0891b2; }
.theme-gold   { background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); color: #d97706; }
.theme-slate  { background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%); color: #475569; }
.theme-lime   { background: linear-gradient(135deg, #ecfccb 0%, #d9f99d 100%); color: #65a30d; }

/* 🔥 THEME COLORS BARU (Untuk Fitur Tambahan) 🔥 */
.theme-emerald { background: linear-gradient(135deg, #d1fae5 0%, #6ee7b7 100%); color: #059669; }
.theme-sky     { background: linear-gradient(135deg, #e0f2fe 0%, #7dd3fc 100%); color: #0284c7; }
.theme-rose    { background: linear-gradient(135deg, #ffe4e6 0%, #fda4af 100%); color: #e11d48; }


/* =========================================================
   6. PRICING SECTION (NEW MODERN SAAS DESIGN)
========================================================= */
.pricing-section.premium-pricing {
    background: linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
    padding-top: 5rem;
    padding-bottom: 6rem;
}

/* Card Base Style */
.pricing-card-pro {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 0; /* Content padding handled by inner containers */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pricing-card-pro:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(11, 42, 74, 0.1);
    border-color: #cbd5e1;
}

/* Popular Card (Growth) */
.pricing-card-pro.popular {
    border: 2px solid var(--wt-primary);
    box-shadow: 0 25px 50px -12px rgba(11, 42, 74, 0.15);
    z-index: 2;
    transform: scale(1.02);
}

.pricing-card-pro.popular:hover {
    transform: scale(1.02) translateY(-8px);
    box-shadow: 0 30px 60px -15px rgba(11, 42, 74, 0.25);
}

/* Header & Typography */
.pricing-header {
    padding: 2.5rem 2rem 1rem 2rem;
    text-align: center;
}

.plan-name {
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    background: #f1f5f9;
    color: #64748b;
}

.popular .plan-name {
    background: rgba(11, 42, 74, 0.1);
    color: var(--wt-primary);
}

.price-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    color: var(--wt-navy);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.price-currency {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 8px;
    margin-right: 4px;
}

.price-value {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -2px;
}

.price-period {
    align-self: flex-end;
    font-size: 1rem;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 8px;
    margin-left: 4px;
}

/* Feature List */
.pricing-features {
    padding: 0 2rem 2rem 2rem;
    flex-grow: 1;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.5;
}

/* Custom SVG Check Icon */
.feature-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-right: 12px;
    margin-top: 2px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* Buttons */
.pricing-footer {
    padding: 0 2rem 2.5rem 2rem;
    margin-top: auto;
}

.btn-plan {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.2s;
    text-align: center;
    display: block;
    text-decoration: none;
}

.btn-plan-outline {
    background: transparent;
    border: 2px solid #e2e8f0;
    color: var(--wt-navy);
}

.btn-plan-outline:hover {
    border-color: var(--wt-navy);
    background: var(--wt-navy);
    color: #fff;
}

.btn-plan-solid {
    background: var(--wt-primary);
    border: 2px solid var(--wt-primary);
    color: #fff;
    box-shadow: 0 10px 20px -5px rgba(11, 42, 74, 0.3);
}

.btn-plan-solid:hover {
    background: #1e3a8a;
    border-color: #1e3a8a;
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(11, 42, 74, 0.4);
    color: #fff;
}

/* Badge Most Popular */
.badge-popular-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--wt-primary);
    color: #fff;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 8px 0;
}

/* Modern Billing Toggle */
.toggle-wrapper {
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 6px 8px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
.billing-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: color 0.2s;
}
.billing-label.active {
    color: var(--wt-navy);
}

/* --- BADGE SWITCH TOGGLE (ANIMATED DIM/GLOW) --- */
/* Kondisi Default (Monthly/Inactive) -> Redup */
.discount-badge {
    background-color: #f1f5f9;  /* Abu-abu */
    color: #94a3b8;             /* Teks Abu */
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    margin-left: 6px;
    letter-spacing: 0.5px;
    
    /* State Redup */
    opacity: 0.7;
    transform: scale(0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none;
    vertical-align: middle;
}

/* Kondisi Active (Yearly) -> Highlighted */
.billing-label.active .discount-badge {
    background-color: #dcfce7;  /* Hijau Fresh */
    color: #166534;             /* Teks Hijau Tegas */
    opacity: 1;
    transform: scale(1);        /* Ukuran Normal */
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25); /* Glow Effect */
}

/* Switch UI */
.switch { position: relative; display: inline-block; width: 48px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #cbd5e1; transition: .3s; border-radius: 24px; }
.slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: white; transition: .3s; border-radius: 50%; }
input:checked + .slider { background-color: var(--wt-primary); }
input:checked + .slider:before { transform: translateX(24px); }

/* --- SAVINGS PILL (ANIMATED COLLAPSE/EXPAND) --- */
/* Logic: Saat monthly (default), tingginya 0 sehingga tidak ada space kosong. */
.savings-container {
    /* State Awal (Hidden/Monthly) */
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-top: 0;
    
    /* Animasi Transisi Halus */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    display: flex;
    justify-content: center;
    align-items: center;
}

/* State Aktif (Visible/Yearly) */
.savings-container.show-savings {
    max-height: 40px; /* Cukup untuk menampung badge */
    opacity: 1;
    margin-top: 0.75rem; /* Jarak dibuat dinamis saat muncul */
}

.savings-pill {
    background-color: #ecfdf5; 
    color: #059669;            
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #d1fae5;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.badge-icon {
    font-size: 0.9rem;
    line-height: 1;
}

/* =========================================================
   7. ABOUT SECTION
========================================================= */
#about { background-color: #ffffff; padding: 100px 0; }
.badge-origin {
    background-color: #e0f2fe; color: #0284c7; font-weight: 700; font-size: 0.8rem;
    padding: 8px 16px; border-radius: 50px; display: inline-flex; align-items: center;
    gap: 8px; margin-bottom: 20px; letter-spacing: 0.5px; text-transform: uppercase;
}
#about .section-title { font-size: 2.2rem; line-height: 1.2; margin-bottom: 20px; }
#about p { color: #475569; font-size: 1.05rem; line-height: 1.7; margin-bottom: 20px; }

.target-list { list-style: none; padding: 0; margin: 20px 0 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.target-list li { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; font-weight: 600; color: var(--wt-navy); }
.target-list li i { color: var(--wt-blue); font-size: 1.2rem; }

.about-card-dark {
    background: linear-gradient(145deg, #0b2a4a 0%, #06182c 100%); color: white;
    padding: 40px; border-radius: 24px; box-shadow: 0 20px 40px rgba(11, 42, 74, 0.25);
    position: relative; overflow: hidden;
}
.about-card-dark::before {
    content: ''; position: absolute; top: -50px; right: -50px; width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(21, 178, 255, 0.15) 0%, rgba(255,255,255,0) 70%); border-radius: 50%;
}
.card-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 25px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 15px; }

.premium-list { list-style: none; padding: 0; margin-bottom: 30px; }
.premium-list li { display: flex; align-items: start; margin-bottom: 18px; font-size: 1rem; color: rgba(255,255,255,0.9); line-height: 1.5; }
.premium-list li i { color: #4ade80; margin-right: 12px; margin-top: 2px; font-size: 1.1rem; }

.btn-glow {
    background-color: var(--wt-blue); color: white; width: 100%; padding: 14px;
    border-radius: 12px; font-weight: 700; border: none; transition: 0.3s;
    box-shadow: 0 4px 15px rgba(21, 178, 255, 0.4);
}
.btn-glow:hover { background-color: #38bdf8; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(21, 178, 255, 0.5); color: white; }

/* =========================================================
   8. CONTACT SECTION
========================================================= */
#contact { background-color: #f8fafc; padding: 100px 0; position: relative; }
#contact .section-title { font-size: 2rem; margin-bottom: 20px; line-height: 1.2; }
#contact p { color: #64748b; font-size: 1.05rem; line-height: 1.6; }

.contact-benefits { list-style: none; padding: 0; margin: 30px 0; }
.contact-benefits li { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; font-weight: 600; color: var(--wt-navy); font-size: 0.95rem; }
.contact-benefits li i { color: var(--wt-blue); font-size: 1.2rem; }

.contact-meta { margin-top: 40px; padding-top: 30px; border-top: 1px solid #e2e8f0; }
.meta-item { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 20px; }
.meta-icon {
    width: 40px; height: 40px; background-color: rgba(11, 42, 74, 0.1); color: var(--wt-navy);
    border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.meta-text h6 { margin: 0; font-weight: 700; color: var(--wt-navy); }
.meta-text p { margin: 0; font-size: 0.9rem; color: #64748b; }

.contact-card {
    background: #ffffff; padding: 40px; border-radius: 24px;
    box-shadow: 0 20px 40px -5px rgba(11, 42, 74, 0.08); border: 1px solid rgba(11, 42, 74, 0.05);
}

.form-floating > .form-control { border: 1px solid #e2e8f0; border-radius: 12px; height: 56px; padding-left: 20px; }
.form-floating > .form-control:focus { border-color: var(--wt-blue); box-shadow: 0 0 0 4px rgba(21, 178, 255, 0.15); }
.form-floating > label { padding-left: 20px; color: #94a3b8; }
.form-floating > textarea.form-control { height: 140px; }

.btn-submit-modern {
    background-color: var(--wt-navy); color: white; width: 100%; padding: 14px;
    border-radius: 12px; font-weight: 700; font-size: 1rem; border: none;
    transition: 0.3s; display: flex; align-items: center; justify-content: center; gap: 10px;
}
.btn-submit-modern:hover { background-color: #1e3a8a; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(11, 42, 74, 0.15); color: white; }

/* =========================================================
   9. FOOTER
========================================================= */
footer { background-color: #050d18; color: #9ca5b8; padding: 4rem 0 2rem 0; }
footer h5 { color: #fff; margin-bottom: 1.5rem; font-weight: 700; }
footer ul { list-style: none; padding: 0; }
footer ul li { margin-bottom: 0.75rem; }
footer a { color: #9ca5b8; text-decoration: none; transition: color 0.2s; }
footer a:hover { color: #fff; }
.social-links a { display: inline-flex; width: 36px; height: 36px; background: rgba(255,255,255,0.1); align-items: center; justify-content: center; border-radius: 50%; margin-right: 10px; transition: 0.3s; }
.social-links a:hover { background: var(--wt-blue); color: #fff; }

/* =========================================================
   10. RESPONSIVE MEDIA QUERIES
========================================================= */
@media (max-width: 991px) {
    .hero h1 { font-size: 2.5rem; }
    .target-list { grid-template-columns: 1fr; }
    .about-card-dark, .contact-card, .wt-card-solution { margin-top: 40px; }
    .contact-card { padding: 25px; }
    .wt-title { font-size: 1.75rem; }
    
    .pricing-card-pro.popular { transform: none; margin-bottom: 2rem; }
    .pricing-card-pro.popular:hover { transform: none; }
}

@media (max-width: 768px) {
    section { padding-top: 3rem; padding-bottom: 3rem; }
    .pricing-header { padding: 1.5rem; }
    .price-value { font-size: 2.8rem; }
}