* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.8;
    color: #f5f5f5;
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%);
    font-weight: 400;
    letter-spacing: 0.01em;
    touch-action: pan-y;
    overscroll-behavior: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header */
header {
    background: #1a1a1a;
    padding: 8px 0;
    box-shadow: 0 2px 5px rgba(255,255,255,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #333;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    /* New logo is 1:1 square with text at ~16% of height, centered */
    /* To get 40px text: 40/0.16 = 250px total, crop (250-40)/2 = 105px each side */
    height: 250px;
    margin: -105px 0;
    filter: brightness(0) invert(1); /* Convert blue logo to white */
}

.footer-logo-wrapper {
    height: 50px;
    overflow: hidden;
    display: inline-block;
}

.footer-logo {
    height: 250px;
    margin-top: -95px;
    display: block;
    filter: brightness(0) invert(1); /* Convert blue logo to white */
}

/* Hero Section */
.hero {
    background: radial-gradient(ellipse at top, rgba(0,212,255,0.08), transparent),
                linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%);
    color: white;
    padding: 10vh 0 8vh;
    text-align: center;
    display: flex;
    align-items: center;
    position: relative;
}

/* Hero with Video Background */
.hero.hero-video {
    min-height: 75vh;
    padding: 0;
    overflow: hidden;
    background: #0a0a0a;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.5) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.6) 100%
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 12vh 0 8vh;
}

/* Accessibility: Reduce motion */
@media (prefers-reduced-motion: reduce) {
    .hero-video-bg {
        display: none;
    }
    .hero.hero-video {
        background: radial-gradient(ellipse at top, rgba(0,212,255,0.15), transparent),
                    linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%);
    }
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.3;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .subtitle {
    font-size: 1.4rem;
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0.9;
    letter-spacing: 0.01em;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #e8e8e8 0%, #a0a0a0 50%, #d0d0d0 100%);
    color: #1a1a1a;
    padding: 20px 60px;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.5), inset 0 -1px 0 rgba(0,0,0,0.2);
    text-shadow: 0 1px 1px rgba(255,255,255,0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.6), inset 0 -1px 0 rgba(0,0,0,0.3);
}

/* Section Styles */
section {
    padding: 100px 0;
}

section:nth-child(even):not(.hero) {
    background: rgba(255,255,255,0.01);
}

h2 {
    font-size: 2.8rem;
    font-weight: 300;
    letter-spacing: -0.01em;
    margin-bottom: 50px;
    text-align: center;
    color: #ffffff;
}

h3 {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 15px;
    color: #f0f0f0;
    letter-spacing: -0.005em;
}

/* Features Grid */
.features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
}

.features-grid .feature-card {
    flex: 0 1 calc(33.333% - 27px);
    max-width: calc(33.333% - 27px);
}

/* Trust Grid - 3 columns with centered last row */
.trust-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
}

.trust-grid .feature-card {
    flex: 0 1 calc(33.333% - 27px);
    max-width: calc(33.333% - 27px);
    min-height: 220px;
    display: flex;
    flex-direction: column;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0,212,255,0.15);
}

.feature-card .feature-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 15px;
}

.feature-card .feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feature-card .feature-icon img[src$=".svg"] {
    filter: brightness(0) invert(1);
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.feature-card p {
    color: #b0b0b0;
    font-size: 0.95rem;
}

/* Comparison Table */
.comparison-table {
    margin-top: 40px;
    background: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(255,255,255,0.05);
    border: 1px solid #333;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th {
    background: #667eea;
    color: white;
    padding: 20px;
    text-align: left;
    font-size: 1.1rem;
}

.comparison-table td {
    padding: 20px;
    border-bottom: 1px solid #333;
    color: #e0e0e0;
    vertical-align: top;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table .highlight {
    background: #0d1b2a;
    font-weight: 500;
}

.check {
    color: #28a745;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: 40px 0;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.03);
}

/* Footer */
footer {
    background: #0a0a0a;
    color: white;
    padding: 20px 0;
    border-top: 1px solid #333;
}

footer img {
    display: block;
    margin: 0 auto;
}

footer a {
    color: #00d4ff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
    animation: pulse 2s infinite;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Animations */
html {
    scroll-behavior: smooth;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card {
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }
.feature-card:nth-child(7) { animation-delay: 0.7s; }
.feature-card:nth-child(8) { animation-delay: 0.8s; }

/* Reviews Carousel */
.reviews-carousel {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.reviews-track-wrapper {
    flex: 1;
    overflow: hidden;
}

.reviews-track {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease;
}

.review-card {
    flex: 0 0 calc(33.333% - 14px);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    box-sizing: border-box;
}

.carousel-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.carousel-arrow:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: #00d4ff;
}

.carousel-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: #00d4ff;
}

/* Comparison Carousel */
.comparison-carousel {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.comparison-slide-wrapper {
    flex: 1;
    overflow: hidden;
    touch-action: pan-y;
}

.comparison-slide {
    background: linear-gradient(135deg, rgba(0,212,255,0.05), rgba(102,126,234,0.05));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    min-height: 280px;
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.comparison-slide.slide-exit {
    opacity: 0;
    transform: translateX(-20px);
}

.comparison-slide.slide-enter {
    opacity: 0;
    transform: translateX(20px);
}

.comparison-slide-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #00d4ff;
    margin-bottom: 30px;
    text-align: center;
}

.comparison-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.comparison-goodliving,
.comparison-brandx {
    padding: 25px;
    border-radius: 12px;
}

.comparison-goodliving {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.comparison-brandx {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.comparison-goodliving .comparison-label {
    color: #00d4ff;
}

.comparison-brandx .comparison-label {
    color: #888;
}

.comparison-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #d0d0d0;
}

.comparison-text strong {
    color: #fff;
}

.comparison-slide .swipe-hint {
    display: flex;
    margin-bottom: 10px;
}

.comparison-slide .carousel-dots {
    margin-bottom: 15px;
}

.comparison-nav-mobile {
    display: none;
}

.comparison-slide-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.comparison-video {
    flex: 0 0 45%;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    aspect-ratio: 1 / 1;
}

.comparison-video video {
    width: 102%;
    height: 100%;
    margin: -1%;
    display: block;
    border-radius: 0;
    object-fit: cover;
}

.comparison-video.no-crop video {
    width: 100%;
    margin: 0;
    object-fit: contain;
}

/* Swipe/navigation hint */
.swipe-hint {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.85rem;
}

.swipe-hint-icon {
    width: 20px;
    height: 20px;
}

.swipe-hint-left {
    animation: swipeHintLeft 1.5s ease-in-out infinite;
}

.swipe-hint-right {
    animation: swipeHintRight 1.5s ease-in-out infinite;
}

@keyframes swipeHintLeft {
    0%, 100% { transform: translateX(0); opacity: 0.5; }
    50% { transform: translateX(-5px); opacity: 1; }
}

@keyframes swipeHintRight {
    0%, 100% { transform: translateX(0); opacity: 0.5; }
    50% { transform: translateX(5px); opacity: 1; }
}

.comparison-text-single {
    flex: 1;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #d0d0d0;
    text-align: left;
}

.comparison-text-single strong {
    color: #00d4ff;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00d4ff, #667eea);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
}

.review-meta {
    flex: 1;
}

.review-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #f0f0f0;
}

.review-date {
    font-size: 0.8rem;
    color: #888;
}

.review-stars {
    color: #ffd700;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.review-text {
    color: #b0b0b0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.review-google-icon {
    width: 20px;
    height: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        padding: 6px 0;
    }

    .header-logo {
        height: 200px;
        margin: -84px 0;
    }

    header .cta-button {
        padding: 8px 16px !important;
        font-size: 0.85rem !important;
        white-space: nowrap;
    }

    .hero {
        padding: 8vh 0 6vh;
    }

    .hero.hero-video {
        min-height: 60vh;
    }

    .hero-content {
        padding: 10vh 0 6vh;
    }

    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .hero .subtitle {
        font-size: 1rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    section {
        padding: 60px 0;
    }

    .container {
        padding: 0 20px;
    }

    .floating-whatsapp {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }

    .features-grid {
        gap: 25px;
    }

    .features-grid .feature-card {
        flex: 0 1 calc(50% - 13px);
        max-width: calc(50% - 13px);
    }

    .trust-grid .feature-card {
        flex: 0 1 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .gallery-item img {
        height: 120px;
    }

    .review-card {
        flex: 0 0 calc(100% - 0px);
    }

    .carousel-arrow {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    /* Comparison carousel mobile */
    .comparison-carousel {
        flex-direction: column;
        gap: 15px;
    }

    .comparison-carousel .carousel-arrow {
        display: none;
    }

    .comparison-nav-mobile {
        display: flex;
        justify-content: center;
        gap: 20px;
        margin-top: 15px;
    }

    .comparison-nav-mobile .carousel-arrow {
        display: flex;
    }

    .comparison-slide {
        padding: 25px;
        min-height: auto;
    }

    .comparison-slide-content {
        flex-direction: column;
        gap: 20px;
    }

    .comparison-video {
        flex: 0 0 auto;
        width: 100%;
    }

    .comparison-slide-title {
        font-size: 1.2rem;
    }

    .comparison-text-single {
        text-align: center;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    header .cta-button {
        padding: 6px 12px !important;
        font-size: 0.75rem !important;
    }

    .header-logo {
        height: 175px;
        margin: -73px 0;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .features-grid .feature-card {
        flex: 0 1 100%;
        max-width: 100%;
    }

    .trust-grid .feature-card {
        flex: 0 1 100%;
        max-width: 100%;
    }

    .comparison-table {
        font-size: 0.75rem;
    }

    .comparison-table td,
    .comparison-table th {
        padding: 10px 8px;
    }
}

/* ============================================
   URGENCY ELEMENTS
   ============================================ */

/* Urgency Bar - Below Header */
.urgency-bar {
    background: linear-gradient(90deg, #ff6b35, #f7931e);
    color: #fff;
    text-align: center;
    padding: 6px 15px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.urgency-bar strong {
    color: #fff;
}

/* Handwritten Annotation */
.cta-wrapper {
    position: relative;
    display: inline-block;
}

.handwritten-note {
    font-family: 'Caveat', 'Comic Sans MS', cursive;
    color: #ff6b35;
    font-size: 1.3rem;
    font-weight: 700;
    transform: rotate(-12deg);
    position: absolute;
    bottom: -18px;
    right: -100px;
    white-space: nowrap;
    pointer-events: none;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
    animation: wiggle 2s ease-in-out infinite;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(-12deg); }
    50% { transform: rotate(-10deg); }
}

@keyframes bounce-right {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

@media (max-width: 768px) {
    .urgency-bar { font-size: 0.7rem; padding: 5px 10px; }
    .handwritten-note { font-size: 1.2rem; }
}
