/* Custom styles for Coway Agent Premium Landing Page */
:root {
    --primary: #0084ff;
    --primary-dark: #005ecf;
    --primary-light: #eef7ff;
    --secondary: #ff9900;
    --dark: #0b0f19;
    --dark-card: #141c2f;
    --light: #f8fafc;
    --gray-text: #64748b;
    --border-color: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--light);
    color: #1e293b;
    line-height: 1.6;
}

/* Header & Nav */
header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.logo-text {
    margin-right: auto;
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #334155;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero-section {
    padding: 140px 24px 80px;
    background: linear-gradient(185deg, #f0f7ff 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 132, 255, 0.1);
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 12px;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-badge .pulse {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    animation: pulse-blue 1.5s infinite;
}

@keyframes pulse-blue {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 132, 255, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(0, 132, 255, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 132, 255, 0); }
}

.hero-title {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.25;
    color: #0f172a;
    margin-bottom: 16px;
}

.hero-title span {
    color: var(--primary);
}

.hero-desc {
    color: var(--gray-text);
    font-size: 16px;
    margin-bottom: 32px;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 132, 255, 0.3);
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 132, 255, 0.4);
}

.btn-secondary {
    background-color: white;
    color: #334155;
    border: 1px solid var(--border-color);
    text-decoration: none;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 12px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

/* Video Frame Mockup */
.video-mockup {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.8);
    aspect-ratio: 16/9;
    background-color: #000;
}

.video-mockup iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Section Styling */
.section {
    padding: 80px 24px;
}

.section-dark {
    background-color: var(--dark);
    color: white;
}

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

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 12px;
    display: block;
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
}

.section-dark .section-title {
    color: white;
}

.section-desc {
    color: var(--gray-text);
    margin-top: 12px;
    font-size: 15px;
}

/* Section A: Price Comparison */
.comparison-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: start;
}

.calculator-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.calc-title {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.input-group {
    margin-bottom: 24px;
}

.input-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 8px;
}

.input-slider {
    width: 100%;
    margin-bottom: 8px;
    accent-color: var(--primary);
}

.slider-output {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 14px;
    color: var(--primary-dark);
}

.comparison-result {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 24px;
    border-t: 1px solid var(--border-color);
    padding-top: 24px;
}

.result-box {
    padding: 16px;
    border-radius: 12px;
    text-align: center;
}

.result-box-red {
    background-color: #fff1f2;
    border: 1px solid #fecdd3;
}

.result-box-green {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.box-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-text);
}

.result-box-red .box-title { color: #be123c; }
.result-box-green .box-title { color: #15803d; }

.box-val {
    font-size: 24px;
    font-weight: 800;
    margin-top: 8px;
}

.result-box-red .box-val { color: #e11d48; }
.result-box-green .box-val { color: #16a34a; }

.box-desc {
    font-size: 11px;
    color: var(--gray-text);
    margin-top: 4px;
}

.saving-highlight {
    background-color: var(--primary-light);
    border: 1px dashed var(--primary);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    margin-top: 20px;
    font-weight: 700;
    color: var(--primary-dark);
}

.comparison-text-card {
    padding-top: 12px;
}

.comparison-text-card h3 {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 16px;
}

.comparison-text-card p {
    color: var(--gray-text);
    margin-bottom: 24px;
}

.benefit-list {
    list-style: none;
    space-y: 12px;
}

.benefit-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #334155;
    margin-bottom: 12px;
}

.benefit-list li i {
    color: #10b981;
    margin-top: 3px;
}

/* Section B: Emotional parent */
.emotional-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.emotional-img-container {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.emotional-img-container img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.pain-glow-overlay {
    position: absolute;
    bottom: 25%;
    right: 25%;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.6) 0%, rgba(239, 68, 68, 0) 70%);
    animation: pain-glow 2s infinite;
    pointer-events: none;
}

@keyframes pain-glow {
    0% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.6); opacity: 0.9; }
    100% { transform: scale(1); opacity: 0.5; }
}

.emotional-text-card {
    padding: 10px;
}

.emotional-text-card h3 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.3;
}

.emotional-text-card p {
    color: #94a3b8;
    margin-bottom: 20px;
    font-size: 15px;
}

/* Section C: Baby Milk Ombak */
.baby-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.baby-img-container {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
    border: 1px solid white;
}

.baby-img-container img {
    width: 100%;
    display: block;
}

.temp-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffefe6;
    color: #ea580c;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 8px;
    margin-bottom: 12px;
}

/* Section D: Mineral Education */
.science-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: center;
}

.science-img-container {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.science-img-container img {
    width: 100%;
    display: block;
}

/* Catalog section */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.product-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0, 132, 255, 0.08);
    border-color: var(--primary-light);
}

.product-img-box {
    background-color: #f8fafc;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.product-img-box i {
    font-size: 64px;
    color: var(--gray-text);
}

.product-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--dark);
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
}

.product-badge-promo {
    background: #e11d48;
}

.product-body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
}

.product-subtitle {
    font-size: 12px;
    color: var(--gray-text);
    margin-bottom: 16px;
}

.package-tabs {
    display: flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 10px;
    margin-bottom: 16px;
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    padding: 8px 4px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn.active {
    background: white;
    color: var(--primary-dark);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.pricing-box {
    margin-bottom: 20px;
}

.pricing-label {
    font-size: 11px;
    color: var(--gray-text);
    font-weight: 700;
    text-transform: uppercase;
}

.pricing-val {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-dark);
    margin-top: 4px;
}

.pricing-val span {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-text);
}

.spec-list {
    list-style: none;
    margin-bottom: 24px;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    flex-grow: 1;
}

.spec-list li {
    font-size: 12px;
    color: #475569;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.spec-list li i {
    color: var(--primary);
}

/* FAQ Section */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.01);
}

.faq-btn {
    width: 100%;
    padding: 20px;
    text-align: left;
    font-weight: 700;
    font-size: 15px;
    color: #0f172a;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-btn i {
    color: var(--primary);
    transition: transform 0.2s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: #fafbfc;
}

.faq-answer p {
    padding: 20px;
    font-size: 14px;
    color: #475569;
    border-top: 1px solid var(--border-color);
}

/* Float WhatsApp Widget */
.float-wa {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 100;
    text-decoration: none;
    transition: all 0.3s ease;
}

.float-wa:hover {
    transform: scale(1.08) rotate(8deg);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5);
}

.float-wa i {
    font-size: 32px;
}

/* Footer styling */
footer {
    background-color: var(--dark);
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 60px 24px 30px;
    color: #94a3b8;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: white;
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 20px;
}

.footer-col p {
    font-size: 13px;
    line-height: 1.6;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s ease;
}

.footer-col ul li a:hover {
    color: white;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    font-size: 11px;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .hero-ctas {
        justify-content: center;
    }
    .comparison-grid, .emotional-grid, .baby-grid, .science-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .emotional-grid .emotional-img-container, .science-grid .science-img-container {
        order: -1;
    }
    .hero-title {
        font-size: 32px;
    }
}


/* Presto Player Override */
presto-player { visibility: visible !important; }
.presto-iframe-fallback-container { height: 100%; }
.presto-fallback-iframe { display: block !important; width: 100% !important; height: 100% !important; }

/* Mobile Adjustments */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .logo-text img {
        height: 35px !important;
    }
    .nav-container {
        padding: 12px 20px;
        justify-content: center;
    }
    .hero-section {
        padding: 100px 20px 60px;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }
    .calculator-card {
        padding: 20px;
    }
    .comparison-result {
        flex-direction: column;
    }
    .result-box {
        width: 100%;
        margin-bottom: 12px;
    }
}

/* Lead Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.modal-content {
    background-color: white;
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    padding: 30px;
    position: relative;
    transform: translateY(30px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f1f5f9;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.modal-header h3 {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
}

.modal-header p {
    font-size: 14px;
    color: #64748b;
}

/* Fluent Form Resets for Modal */
.modal-body .ff-el-group {
    margin-bottom: 20px;
}

.modal-body .ff-el-form-control {
    border-radius: 12px;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    background-color: #f8fafc;
}

.modal-body .ff-el-form-control:focus {
    border-color: var(--primary);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(0, 132, 255, 0.15);
}

.modal-body .ff-btn-submit {
    border-radius: 12px !important;
    font-weight: 700 !important;
    text-transform: none !important;
    font-size: 16px !important;
}
