/* CSS Variables */
:root {
    --container-max: 1200px;
    --gutter: 24px;
    --radius-card: 16px;
    --radius-chip: 14px;
    --shadow: 0 8px 24px rgba(11, 18, 32, 0.08);
    --brand: #21A657;
    --brand-dark: #0A3A2A;
    --accent: #FFD81A;
    --danger: #E53935;
    --bg: #FFFFFF;
    --bg-soft: #F2F6FB;
    --ink: #0B1220;
    --muted: #5F6B7A;
    --line: #E9EEF5;
    --h1: clamp(28px, 4vw, 36px);
    --h2: clamp(22px, 3vw, 28px);
    --h3: clamp(18px, 2.5vw, 22px);
    --p: 16px;
    --small: 14px;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

section {
    padding: 72px 0;
    padding-bottom: 30px;
    padding-top: 30px;
}

@media (max-width: 768px) {
    section {
        padding: 56px 0;
    }
}

@media (max-width: 480px) {
    section {
        padding: 40px 0;
    }
}

/* Buttons */
.btn-primary {
    background: var(--brand);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-chip);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: var(--brand-dark);
}

.btn-ghost {
    background: transparent;
    color: var(--brand);
    padding: 12px 24px;
    border: 1px solid var(--brand);
    border-radius: var(--radius-chip);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-ghost:hover {
    background: var(--brand);
    color: white;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    height: 72px;
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: height 0.3s;
}

.header.shrink {
    height: 60px;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 1200px;
}

.logo img {
    height: 70px;
}

.nav {
    display: flex;
    gap: 24px;
}

.nav a {
    text-decoration: none;
    color: var(--ink);
    font-weight: 500;
}

.cta {
    display: flex;
    gap: 24px;
    align-items: center;
}

.burger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.burger span {
    width: 100%;
    height: 3px;
    background: var(--ink);
    transition: all 0.3s;
    transform-origin: center;
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero */
.hero {
    background: var(--bg-soft);
    padding: 72px 0;
    padding-bottom: 15px;
}

/* Onboarding Video */
.onboarding-video {
    padding: 72px 0;
    background: linear-gradient(135deg, var(--bg-soft) 0%, rgba(33, 166, 87, 0.05) 100%);
    position: relative;
}

.onboarding-video::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="%2321A657" opacity="0.03"/></svg>') repeat;
    pointer-events: none;
}

.onboarding-header {
    text-align: center;
    margin-bottom: 48px;
    position: relative;
    z-index: 1;
}

.onboarding-header h2 {
    font-size: var(--h2);
    margin-bottom: 16px;
    background: linear-gradient(45deg, var(--brand), var(--brand-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.onboarding-header p {
    font-size: var(--p);
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto;
}

.video-wrapper {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(11, 18, 32, 0.15);
    background: var(--bg);
    padding: 8px;
}

wistia-player {
    width: 100%;
    border-radius: calc(var(--radius-card) - 4px);
    display: block;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero-content h1 {
    font-size: var(--h1);
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-content p {
    font-size: var(--p);
    color: var(--muted);
    margin-bottom: 32px;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-trust p {
    font-size: var(--small);
    color: var(--muted);
    margin-bottom: 16px;
}

.logos {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.logos img {
    height: 40px;
}

.hero-illustration .bg-soft {
    background: var(--bg-soft);
    border-radius: var(--radius-card);
    padding: 0px;
    position: relative;
}

.dashboard-mockup img {
    width: 100%;
    border-radius: var(--radius-card);
}

.phone-mockup {
    position: absolute;
    bottom: 5px;
    right: -20px;
    width: 30%;
}

.phone-mockup img {
    width: 100%;
    border-radius: 24px;
}

/* Features */
.features h2 {
    font-size: var(--h2);
    text-align: center;
    margin-bottom: 8px;
}

.features p {
    text-align: center;
    color: var(--muted);
    /* margin-bottom: 48px; */
}

.pgrid-3x3{
    margin-top: 30px;
}

.grid-3x3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow);
    padding: 20px;
    transition: all 0.3s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(11, 18, 32, 0.12);
}

.card img {
    width: 100%;
    border-radius: var(--radius-card);
    margin-bottom: 16px;
    transition: opacity 0.3s ease;
    background-color: #f5f5f5;
}

/* Placeholder for lazy-loaded images */
.card img[loading="lazy"] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    opacity: 0.8;
}

/* Video iframe lazy loading placeholder */
.video-card iframe[loading="lazy"] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-card);
    opacity: 0.8;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Ensure loaded images are fully visible */
.card img:not([loading="lazy"]),
.video-card iframe:not([loading="lazy"]) {
    opacity: 1;
    background: none;
    animation: none;
}

/* Lazy loading classes for better control */
.lazy-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    opacity: 0.8;
}

.lazy-loaded {
    opacity: 1;
    background: none;
    animation: none;
    transition: opacity 0.3s ease;
}

/* Prevent layout shifts by maintaining aspect ratios */
.card img {
    /* aspect-ratio: 16/9; */
    aspect-ratio: 5 / 5;
    object-fit: cover;
}

.video-card iframe {
    aspect-ratio: 16/9;
}

.card h4 {
    font-size: var(--h3);
    margin-bottom: 8px;
    text-align: center;
}

.card p {
    font-size: var(--p);
    color: var(--muted);
}

/* Why Choose */
.why-choose .cards-horizontal {
    display: flex;
    gap: 24px;
    justify-content: center;
}

.card-icon {
    text-align: center;
    max-width: 300px;
}

.icon {
    width: 56px;
    height: 56px;
    background: #E9F5EE;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 24px;
    color: var(--brand);
}

.card-icon h3 {
    font-size: var(--h3);
    margin-bottom: 8px;
}

.card-icon p {
    font-size: var(--p);
    color: var(--muted);
}

/* Pricing */
.pricing .pricing-cards {
    display: flex;
    gap: 24px;
    justify-content: center;
}

.pricing .card {
    flex: 1;
    max-width: 350px;
    text-align: center;
    position: relative;
}

.pricing .card.featured {
    border-color: var(--brand);
}

.badge {
    background: #21a657;
    color: #fff;
    padding: 4px 12px;
    border-radius: var(--radius-chip);
    font-size: var(--small);
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.pricing h2 {
    text-align: center;
    margin-bottom: 8px;
}

.pricing p {
    text-align: center;
    color: var(--muted);
    margin-bottom: 48px;
}

.pricing .card {
    text-align: center;
    padding: 32px 20px;
}

.savings {
    background: var(--accent);
    color: var(--ink);
    padding: 4px 12px;
    border-radius: var(--radius-chip);
    font-size: var(--small);
    font-weight: 600;
    display: inline-block;
    margin-bottom: 16px;
}

.price {
    margin: 16px 0;
}

.original {
    text-decoration: line-through;
    color: var(--muted);
    font-size: 14px;
    display: block;
}

.discounted {
    font-size: 24px;
    font-weight: 700;
    color: var(--brand);
    display: block;
}

.pricing .card ul {
    list-style: none;
    margin: 24px 0;
    text-align: left;
}

.pricing .card li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pricing .card li i {
    color: var(--brand);
}

.pricing .card li i.fa-times {
    color: var(--danger);
}

.note {
    text-align: center;
    font-size: var(--small);
    color: var(--muted);
    margin-top: 24px;
}

/* Testimonials */
.testimonials h2 {
    text-align: center;
    margin-bottom: 8px;
}

.testimonials p {
    text-align: center;
    color: var(--muted);
    margin-bottom: 15px;
}

.testimonials-videos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.video-card .card {
    text-align: center;
}

.video-card iframe {
    width: 100%;
    height: 200px;
    border-radius: var(--radius-card);
}

.video-card p {
    margin-top: 12px;
    font-size: var(--small);
    color: var(--muted);
}

/* CTA Strip */
.cta-strip {
    background: linear-gradient(135deg, var(--bg-soft), rgba(255, 209, 26, 0.1));
    text-align: center;
    position: relative;
}
.cta-strip::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="%23FFD81A" opacity="0.1"/></svg>') repeat;
    pointer-events: none;
}

.cta-strip h2 {
    font-size: var(--h2);
    margin-bottom: 0px;
}

.cta-strip .ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 16px;
    margin-top: 20px;
}

.cta-strip p {
    font-size: var(--small);
    color: var(--muted);
}

/* Team */
.team .team-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.team .photos {
    display: flex;
    gap: 16px;
}

.team .photos img {
    width: 200px;
    border-radius: var(--radius-card);
}

/* Broadcast Activity */
.broadcast-activity {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    color: white;
    padding: 72px 0;
    position: relative;
    overflow: hidden;
}

.broadcast-activity::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="%2300ff88" opacity="0.1"/></svg>') repeat;
    pointer-events: none;
}

.activity-header {
    text-align: center;
    margin-bottom: 48px;
    position: relative;
    z-index: 2;
}

.activity-header h2 {
    font-size: var(--h2);
    margin-bottom: 8px;
    background: linear-gradient(45deg, #00ff88, #00aaff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.activity-header p {
    color: #b0b0b0;
    font-size: var(--p);
}

.stats-overview {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    min-width: 150px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #00ff88;
    margin-bottom: 4px;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.stat-label {
    color: #888;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.activity-monitor {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-card);
    padding: 24px;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
}

.monitor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #00ff88;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00ff88;
    animation: pulse 2s infinite;
}

.status-dot.active {
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.last-update {
    color: #666;
    font-size: 0.8rem;
}

.log-container {
    max-height: 400px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 16px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.4;
}

.log-entry {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    margin-bottom: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid #00ff88;
    animation: slideIn 0.5s ease-out;
    opacity: 0;
    transform: translateX(-20px);
}

.log-entry.show {
    opacity: 1;
    transform: translateX(0);
}

.log-entry.error {
    border-left-color: #ff4444;
    background: rgba(255, 68, 68, 0.1);
}

.log-entry.warning {
    border-left-color: #ffaa00;
    background: rgba(255, 170, 0, 0.1);
}

.log-entry.success {
    border-left-color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
}

.log-timestamp {
    color: #888;
    font-size: 0.75rem;
    margin-right: 12px;
    min-width: 80px;
}

.log-icon {
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

.log-message {
    flex: 1;
    color: #e0e0e0;
}

.log-details {
    color: #aaa;
    font-size: 0.8rem;
    margin-left: 8px;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Custom scrollbar for log container */
.log-container::-webkit-scrollbar {
    width: 6px;
}

.log-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.log-container::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 136, 0.5);
    border-radius: 3px;
}

.log-container::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 136, 0.7);
}

/* Footer */
.footer {
    background: var(--bg-soft);
    padding: 48px 0;
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.footer .col h4 {
    margin-bottom: 16px;
}

.footer .col a {
    display: block;
    text-decoration: none;
    color: var(--muted);
    margin-bottom: 8px;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 1px solid var(--line);
    padding-top: 24px;
}

.footer-bottom a {
    text-decoration: none;
    color: var(--muted);
    margin-left: 16px;
}

/* WhatsApp Sticky */
.whatsapp-sticky {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--brand);
    color: white;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    text-decoration: none;
    z-index: 1000;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .testimonials .testimonials-content {
        grid-template-columns: 1fr;
    }
    .team .team-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .card img{
        aspect-ratio: 5 / 5;
        object-fit: cover;
    }
    .onboarding-video{
        padding: 10px 0;
    }
    .onboarding-header{
        margin-bottom: 20px;
    }
    .onboarding-header h2 {
        font-size: var(--h3);
    }

    .onboarding-header p {
        font-size: var(--small);
    }

    .video-wrapper {
        padding: 4px;
    }

    .header .container {
        position: relative;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        height: 60px;
        padding: 16px;
    }
    .logo img {
        height: 70px !important;
    }
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        align-items: center;
        gap: 16px;
        padding: 20px 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1000;
    }
    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    .nav a {
        font-size: 16px;
        padding: 8px 16px;
        width: 100%;
        text-align: center;
    }
    .cta {
        display: none;
    }
    .burger {
        display: flex;
    }
    .btn-primary, .btn-ghost {
        font-size: 14px;
        padding: 10px 16px;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        justify-content: center;
    }
    .testimonials-videos {
        grid-template-columns: 1fr;
    }
    .grid-3x3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .why-choose .cards-horizontal {
        flex-direction: column;
        align-items: center;
    }
    .pricing .pricing-cards {
        flex-direction: column;
        align-items: center;
    }
    .footer-cols {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .grid-3x3 {
        grid-template-columns: 1fr;
    }
    .hero-ctas {
        flex-direction: column;
    }
    .logos {
        justify-content: center;
    }
    .phone-mockup {
        display: none;
    }

    /* Broadcast Activity Mobile */
    .stats-overview {
        flex-direction: column;
        gap: 24px;
    }

    .stat-item {
        min-width: auto;
    }

    .stat-number {
        font-size: 2rem;
    }

    .activity-monitor {
        padding: 16px;
    }

    .monitor-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .log-container {
        max-height: 300px;
        font-size: 0.8rem;
    }

    .log-entry {
        padding: 6px 8px;
    }

    .log-timestamp {
        min-width: 60px;
        font-size: 0.7rem;
    }
}