/* ============================================================
   STYLE.CSS - TUKPUL.ID v3.1 Ultimate
   Clean, Balanced, Premium Feel
   ============================================================ */

/* ============================================================
   1. CUSTOM PROPERTIES
   ============================================================ */
:root {
    --primary: #0f172a;
    --primary-light: #1e293b;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-subtle: #eff6ff;
    --success: #059669;
    --success-subtle: #ecfdf5;
    --warning: #d97706;
    --warning-subtle: #fffbeb;
    --danger: #dc2626;
    --danger-subtle: #fef2f2;
    --soft-bg: #f8fafc;
    --soft-bg-alt: #f1f5f9;
    --white: #ffffff;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.03);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.04), 0 2px 4px rgba(0,0,0,0.03);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.05), 0 2px 8px rgba(0,0,0,0.03);
    --shadow-xl: 0 12px 32px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.03);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --transition-fast: 0.15s ease;
    --transition-base: 0.25s ease;
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--soft-bg);
    font-family: var(--font-sans);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 15px;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover { color: var(--accent-hover); }

img { max-width: 100%; height: auto; }

/* ============================================================
   3. LAYOUT
   ============================================================ */
.main-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-container {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    width: 100%;
    padding: 1rem;
}

@media (min-width: 992px) {
    .app-container {
        max-width: 960px;
        padding: 2.5rem 2rem;
    }
}

/* ============================================================
   4. SECTION SPACING - KONSISTEN
   ============================================================ */
.section-spacing {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

@media (min-width: 992px) {
    .section-spacing {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

/* Section Background Alternating */
.section-white {
    background: var(--white);
    border-radius: var(--radius-xl);
    margin-left: -0.5rem;
    margin-right: -0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

@media (min-width: 992px) {
    .section-white {
        margin-left: -1.5rem;
        margin-right: -1.5rem;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        border: 1px solid var(--border-light);
        box-shadow: var(--shadow-sm);
    }
}

.section-soft {
    background: var(--soft-bg-alt);
    margin-left: -0.5rem;
    margin-right: -0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

@media (min-width: 992px) {
    .section-soft {
        margin-left: -1.5rem;
        margin-right: -1.5rem;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        border-radius: var(--radius-xl);
    }
}

/* ============================================================
   5. HEADER & NAVIGASI
   ============================================================ */
.site-header {
    position: relative;
    z-index: 100;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid transparent;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-logo img { display: block; }

.nav-link-custom {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.nav-link-custom:hover {
    color: var(--primary);
    background: var(--border-light);
}

.btn-nav-primary {
    font-size: 0.82rem;
    font-weight: 600;
    background: var(--primary);
    color: #fff !important;
    border-radius: 20px;
    padding: 8px 18px;
    text-decoration: none;
    transition: all var(--transition-fast);
    white-space: nowrap;
    box-shadow: var(--shadow-xs);
}

.btn-nav-primary:hover {
    background: #000;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Admin Nav */
.admin-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* ============================================================
   6. HERO
   ============================================================ */
.hero-section { 
    padding-top: 1.5rem;
    padding-bottom: 2rem;
}

@media (min-width: 992px) {
    .hero-section {
        padding-top: 2.5rem;
        padding-bottom: 3.5rem;
    }
}

.hero-badge .badge {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.hero-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.15;
    color: var(--text-primary);
}

.text-highlight {
    background: linear-gradient(135deg, var(--accent) 0%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 520px;
}

.hero-benefits { gap: 0.6rem; }

.benefit-item {
    display: inline-flex;
    align-items: center;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    box-shadow: var(--shadow-xs);
}

/* ============================================================
   7. CONVERT CARD
   ============================================================ */
.convert-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 24px;
    border: 1px solid var(--border-light);
    position: relative;
    transition: box-shadow var(--transition-base);
}

.convert-card:hover {
    box-shadow: var(--shadow-xl);
}

@media (min-width: 992px) {
    .convert-card { padding: 28px; }
}

.card-badge .badge {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

/* ============================================================
   8. FORM ELEMENTS
   ============================================================ */
.form-label-compact {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 4px;
    display: block;
}

.form-control-custom,
.form-select-custom {
    width: 100%;
    border-radius: var(--radius-sm);
    padding: 9px 12px;
    border: 1px solid var(--border);
    font-weight: 400;
    font-size: 0.85rem;
    background: var(--soft-bg);
    color: var(--text-primary);
    transition: all var(--transition-fast);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-select-custom {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23475569' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px 10px;
    padding-right: 32px;
}

.form-control-custom:focus,
.form-select-custom:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
    background: var(--white);
    outline: none;
}

.form-control-custom::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

/* ============================================================
   9. RESULT BOX
   ============================================================ */
.result-box {
    background: var(--accent-subtle);
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-md);
    padding: 12px 16px;
}

.result-label {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    opacity: 0.8;
}

.result-value {
    color: #1d4ed8;
    font-weight: 700;
    font-size: 1.6rem;
    letter-spacing: -0.5px;
    margin-top: 2px;
    line-height: 1.2;
}

/* ============================================================
   10. BUTTON WHATSAPP
   ============================================================ */
.btn-wa-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: #25D366;
    color: #fff;
    border-radius: var(--radius-md);
    padding: 12px 20px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.2);
}

.btn-wa-primary:hover {
    background: #22c35e;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}

.btn-wa-primary:active {
    transform: translateY(0);
}

/* ============================================================
   11. RATE TABLE
   ============================================================ */
.rate-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    background: var(--white);
    border: 1px solid var(--border-light);
}

.rate-table-modern {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    min-width: 440px;
}

.rate-table-modern thead th {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    padding: 13px 16px;
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
    white-space: nowrap;
}

.rate-table-modern thead th:first-child { border-radius: var(--radius-lg) 0 0 0; }
.rate-table-modern thead th:last-child { border-radius: 0 var(--radius-lg) 0 0; }

.rate-table-modern tbody td {
    padding: 11px 16px;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.rate-table-modern tbody tr:last-child td { border-bottom: none; }

.rate-table-modern tbody tr {
    transition: background var(--transition-fast);
}

.rate-table-modern tbody tr:hover {
    background: #f8fafc;
}

.provider-badge {
    display: inline-block;
    background: var(--border-light);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 4px;
    border: 1px solid var(--border);
}

/* ============================================================
   12. STEP CARDS
   ============================================================ */
.step-card {
    padding: 24px 16px;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    transition: all var(--transition-base);
    height: 100%;
    text-align: center;
}

.step-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.step-number {
    display: none;
}

.step-icon-svg {
    width: 40px;
    height: 40px;
    margin: 0 auto 10px;
    color: var(--accent);
    opacity: 0.85;
}

.step-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.step-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* ============================================================
   13. FAQ
   ============================================================ */
.faq-list { max-width: 720px; margin: 0 auto; }

.faq-item {
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    margin-bottom: 8px;
    overflow: hidden;
    transition: all var(--transition-fast);
}

.faq-item:hover {
    border-color: #cbd5e1;
}

.faq-item[open] {
    border-color: var(--accent);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    font-weight: 600;
    color: var(--text-primary);
    padding: 14px 16px;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    user-select: none;
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
    transition: transform var(--transition-fast);
    flex-shrink: 0;
    margin-left: 12px;
}

.faq-item[open] .faq-question::after {
    transform: rotate(-135deg);
    border-color: var(--accent);
}

.faq-answer {
    padding: 0 16px 14px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.faq-answer p { margin-bottom: 0; }

/* ============================================================
   14. CTA FINAL
   ============================================================ */
.cta-card {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: 1px solid #334155;
}

/* ============================================================
   15. SECTION HEADERS
   ============================================================ */
.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.section-subtitle {
    font-size: 0.85rem;
    max-width: 480px;
    margin: 0 auto;
}

/* ============================================================
   16. FOOTER
   ============================================================ */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 2rem 0 1rem;
    margin-top: 2rem;
}

.footer-top { padding-bottom: 1rem; }

.footer-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 360px;
}

.footer-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #25D366;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-contact-link:hover { color: #1da851; }

.footer-operational {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.footer-heading {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li { margin-bottom: 5px; }

.footer-links a,
.footer-links span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-links a:hover { color: var(--accent); }

.footer-bottom {
    border-top: 1px solid var(--border-light);
}

.copyright {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.trust-disclaimer {
    font-size: 0.7rem;
}

.engineered-by {
    margin-top: 4px;
}

.cepyn-link {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.6rem;
    letter-spacing: 1px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 700;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0;
}

.cepyn-link:hover {
    color: var(--accent);
    letter-spacing: 1.5px;
}

/* Huruf C flip horizontal */
.cepyn-c {
    display: inline-block;
    transform: scaleX(-1);
    font-weight: 700;
}

.cepyn-label {
    margin-left: 4px;
    font-weight: 400;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

/* ============================================================
   17. FLOATING WHATSAPP
   ============================================================ */
.floating-wa {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
    transition: all var(--transition-base);
    text-decoration: none;
}

.floating-wa:hover {
    transform: scale(1.06);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
}

@media (min-width: 992px) {
    .floating-wa {
        bottom: 28px;
        right: 28px;
        width: 54px;
        height: 54px;
    }
}

/* ============================================================
   18. HAMBURGER MENU
   ============================================================ */
.hamburger-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 36px;
    height: 36px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 7px;
    transition: all var(--transition-fast);
    z-index: 1001;
}

.hamburger-btn:hover {
    background: var(--border-light);
    border-color: #94a3b8;
}

.hamburger-line {
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--text-primary);
    border-radius: 1px;
    transition: all 0.25s ease;
    transform-origin: center;
}

.hamburger-btn.active .hamburger-line:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.hamburger-btn.active .hamburger-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger-btn.active .hamburger-line:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(3px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active { opacity: 1; visibility: visible; }

.mobile-menu-panel {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    max-width: 82vw;
    height: 100vh;
    height: 100dvh;
    background: var(--white);
    padding: 22px 18px;
    overflow-y: auto;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
    z-index: 1001;
}

.mobile-menu-overlay.active .mobile-menu-panel { right: 0; }

.mobile-menu-header {
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-light);
}

.mobile-menu-close {
    width: 32px;
    height: 32px;
    background: var(--soft-bg);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--text-secondary);
}

.mobile-menu-close:hover {
    background: var(--danger-subtle);
    border-color: #fecaca;
    color: var(--danger);
}

.mobile-menu-link {
    display: block;
    padding: 12px 14px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    margin-bottom: 2px;
    transition: all var(--transition-fast);
}

.mobile-menu-link:hover {
    background: var(--accent-subtle);
    color: var(--accent);
}

body.menu-open { overflow: hidden; }

/* ============================================================
   19. VALIDATION ERROR
   ============================================================ */
.form-control-custom.is-error,
.form-select-custom.is-error {
    border-color: var(--danger) !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08) !important;
}

.validation-alert {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    border-radius: 10px;
    min-width: 280px;
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ============================================================
   20. UTILITIES
   ============================================================ */
.fs-7 { font-size: 0.88rem !important; }
.fs-8 { font-size: 0.78rem !important; }

/* ============================================================
   21. RESPONSIVE
   ============================================================ */
@media (max-width: 575.98px) {
    .hero-title { font-size: 1.6rem; letter-spacing: -0.5px; }
    .hero-subtitle { font-size: 0.88rem; }
    .benefit-item { font-size: 0.7rem; padding: 4px 10px; }
    .convert-card { padding: 18px; border-radius: var(--radius-lg); }
    .result-value { font-size: 1.3rem; }
    .btn-wa-primary { font-size: 0.82rem; padding: 10px 16px; }
    .rate-table-modern { font-size: 0.72rem; min-width: 380px; }
    .rate-table-modern thead th,
    .rate-table-modern tbody td { padding: 8px 10px; }
    .section-title { font-size: 1.1rem; }
    .section-spacing { padding-top: 2rem; padding-bottom: 2rem; }
    .footer-top .row > div { margin-bottom: 14px; }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-title { font-size: 2rem; }
}

/* ============================================================
   22. PRINT
   ============================================================ */
@media print {
    .floating-wa,
    .btn-wa-primary,
    .site-header,
    .site-footer,
    .mobile-menu-overlay,
    .hamburger-btn { display: none !important; }
    body { background: #fff; }
}