@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

html,
body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

:root {
    /* Primary Palette */
    --color-bg-dark: #380308;
    --color-bg-light: #6E2632;
    --color-accent: #E62629;
    --color-accent-hover: #ff3d40;

    /* Text Colors */
    --color-text-light: #FFFFFF;
    --color-text-dark: #801517;
    --color-text-muted: rgba(255, 255, 255, 0.7);

    /* Fluid Typography */
    --font-h1: clamp(2.2rem, 8vw, 4.5rem);
    --font-h2: clamp(1.8rem, 6vw, 3rem);
    --font-body: clamp(1rem, 2vw, 1.15rem);

    /* Gradients */
    --gradient-primary: linear-gradient(180deg, #380308 0%, #6E2632 100%);
    --gradient-button: linear-gradient(135deg, #E62629 0%, #6E2632 100%);

    /* Spacing & Layout */
    --container-width: 1100px;
    --section-padding: 60px 20px;
    --border-radius: 8px;
    /* Sharper edges as requested */
    --border-radius-large: 24px;

    /* Shadows */
    --shadow-accent: 0 4px 20px rgba(230, 38, 41, 0.3);
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
}

/* Sections */
section {
    padding: var(--section-padding);
    position: relative;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    width: 100%;
}

/* Hero Section */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
}

.hero-poster {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.hero-video.playing {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(56, 3, 8, 0.75) 0%,
            rgba(56, 3, 8, 0.85) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 850px;
    padding: 40px 20px;
}

@media (min-width: 1024px) {
    .hero-content {
        max-width: 1100px;
    }

    .hero-content h1 {
        font-size: clamp(3.5rem, 6vw, 4.5rem);
        line-height: 1.1;
    }

    h2 {
        font-size: 36px !important;
    }

    .hero-sub {
        font-size: 1.5rem;
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
    }
}

.hero-content h1 {
    margin-bottom: 24px;
}

.hero-sub {
    font-size: 1.25rem;
    margin-bottom: 48px;
    color: var(--color-text-muted);
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Gradient Divider */
.divider-gradient {
    height: 1.5px;
    width: 100%;
    margin: 60px 0;
    background: linear-gradient(90deg, transparent 0%, var(--color-accent) 50%, transparent 100%);
    opacity: 1;
}

/* Buttons - Square/Rectangular */
.btn {
    display: inline-block;
    padding: 18px 36px;
    border-radius: var(--border-radius) !important;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: none;
    background: var(--gradient-button);
    color: var(--color-text-light);
    text-align: center;
    box-shadow: var(--shadow-accent);
    letter-spacing: 1.5px;
    font-size: 0.95rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 38, 41, 0.5);
    filter: brightness(1.1);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--color-accent);
}

/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
}

/* Bento Grid (Inspired by Image 4) */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(180px, auto);
    gap: 20px;
    margin-top: 50px;
}

.bento-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    /* Reference Image 4 has rounded corners on cards */
    padding: 30px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    justify-content: center;
}

.bento-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--color-accent);
}

.bento-1 {
    grid-column: span 8;
    grid-row: span 2;
}

.bento-2 {
    grid-column: span 4;
    grid-row: span 1;
}

.bento-3 {
    grid-column: span 4;
    grid-row: span 1;
}

.bento-4 {
    grid-column: span 12;
    grid-row: span 2;
}

.bento-item h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.bento-item p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.bento-icon {
    font-size: 1.5rem;
    color: var(--color-accent);
    margin-bottom: 20px;
}

/* Huly-style Bento Grid */
.huly-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 50px;
    justify-content: center;
}

.huly-card {
    position: relative;
    height: 420px;
    background-color: #090A0C;
    /* Exact Huly background */
    border-radius: 24px;
    overflow: hidden;
    /* The "Ring" effect - 6px semi-transparent white */
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background-clip: padding-box;
    margin-bottom: 5px;
    /* Subtle spacing adjustment */
}

.huly-card:hover {
    transform: scale(1.01);
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.35);
}

/* Widths based on Huly's 428px/768px ratio (total ~1196) */
.huly-narrow {
    width: calc(35.8% - 10px);
}

.huly-wide {
    width: calc(64.2% - 10px);
}

.huly-full {
    width: 100%;
}

.huly-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.huly-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
}

.huly-card:hover .huly-card-img img {
    transform: scale(1.05);
}

.huly-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Gradient + Blur effect for text readability */
.huly-card-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13, 14, 18, 0) 0%, rgba(13, 14, 18, 0.95) 70%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: -1;
}

.huly-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 8px;
}

.huly-card-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
    max-width: 90%;
}

@media (max-width: 1024px) {

    .huly-narrow,
    .huly-wide,
    .huly-full {
        width: 100% !important;
        height: auto;
        aspect-ratio: 1 / 1;
        min-height: 350px;
    }
}

@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .huly-card-title {
        font-size: 1.2rem;
    }
}


.portrait-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
    padding: 20px;
    border-radius: 24px;
    text-align: center;
}

.portrait-img {
    width: 245px;
    height: 245px;
    object-fit: cover;
    border-radius: 16px;
    border: none;
    margin: 0 auto 20px;
}

.portrait-bio {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-top: 10px;
}

.authority-footer p {
    margin-bottom: 20px;
}

.authority-footer p:last-child {
    margin-bottom: 0;
}

/* Update About Section Styles */
.about-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.about-lead {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-text-light);
    margin-bottom: 10px;
    position: relative;
}

.about-lead::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 80%;
    background: var(--color-accent);
    border-radius: 2px;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text-muted);
}

.about-text strong {
    color: var(--color-text-light);
}

@media (max-width: 768px) {
    .about-lead {
        font-size: 1.25rem;
    }

    .about-lead::before {
        left: -15px;
    }
}

/* Feature Checklist */
.feature-checklist {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.feature-checklist li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-text-light);
}

.feature-checklist i {
    color: var(--color-accent);
    font-size: 1.4rem;
    filter: drop-shadow(0 0 5px rgba(230, 38, 41, 0.3));
}

.mockup-container {
    aspect-ratio: 16/10;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
    box-shadow: var(--shadow-glass);
}

.mockup-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.mockup-container:hover img {
    transform: scale(1.02);
}

/* FAQ Styling */
.faq-container {
    background-color: #FFFFFF;
    color: var(--color-text-dark);
    padding: 100px 20px;
}

.faq-item {
    margin-bottom: 10px;
    border: 1px solid rgba(56, 3, 8, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fdfdfd;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-dark);
    cursor: pointer;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    padding: 0 24px;
    background: #FFFFFF;
}

.faq-item.active .faq-answer {
    max-height: 1500px;
    padding: 0 24px 24px;
}

.faq-answer p {
    margin-bottom: 16px;
    line-height: 1.6;
}

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

.faq-answer ul {
    margin-top: 10px;
}

.faq-answer li {
    margin-bottom: 8px;
}

.faq-icon {
    font-size: 1.2rem;
    color: var(--color-accent);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* Testimonials Carousel */
.carousel-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.carousel-wrapper {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
    padding: 25px 15px;
    /* Increased padding to prevent clipping of shadows and borders */
}

.testimonial-card {
    flex: 0 0 calc(33.333% - 13.333px);
    /* 3 cards on desktop */
    background: #F8F9FA;
    /* Light gray */
    border: 1px solid var(--color-bg-dark);
    /* Burgundy border */
    border-radius: 12px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 320px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.stars {
    color: #FFD700;
    /* Gold */
    margin-bottom: 20px;
    font-size: 0.85rem;
    display: flex;
    gap: 3px;
}

/* Pricing Layout */
.pricing-row {
    display: flex;
    align-items: center;
    gap: 80px;
    flex-wrap: wrap;
}

.pricing-cta-col {
    flex: 1.3;
    min-width: 320px;
}

.pricing-card-col {
    flex: 1;
    width: 100%;
    min-width: 320px;
}

/* Pricing Card Styles */
.pricing-card {
    padding: 60px 35px;
    /* Reduced from 45px to give more space to the button */
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 24px;
    position: relative;
    backdrop-filter: blur(15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.pricing-card-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
    color: #FFFFFF;
    font-weight: 800;
}

.pricing-card-checklist {
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pricing-card-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    line-height: 1.5;
}

.pricing-card-item i {
    color: #22ff00;
    margin-top: 4px;
    font-size: 1rem;
}

.pricing-card-label {
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-weight: 800;
    opacity: 0.6;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 8px;
}

.pricing-card-price {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 900;
    color: #22ff00;
    margin: 10px 0;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
    letter-spacing: -2px;
}

.pricing-card-old-price {
    color: var(--color-accent);
    text-decoration: line-through;
    font-weight: 800;
    margin: 0 5px;
}

.pricing-card-sublabel {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 40px;
    opacity: 0.7;
    letter-spacing: 0.5px;
}

.pricing-card-btn {
    width: 100% !important;
    font-size: 1.05rem !important;
    padding: 22px 10px !important;
    letter-spacing: 0.5px !important;
    white-space: nowrap !important;
}

.pricing-card-footer {
    margin-top: 35px;
    text-align: center;
    opacity: 0.4;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Pricing Section CTA Text */
.pricing-cta-label {
    color: var(--color-accent);
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 15px;
}

.pricing-cta-title {
    font-size: clamp(2.2rem, 5vw, 3.6rem) !important;
    line-height: 1.1;
    margin-bottom: 30px;
    font-weight: 900;
    color: #FFFFFF;
    letter-spacing: -1.5px;
}

.pricing-cta-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    max-width: 500px;
}

.guarantee-card-inner {
    padding: 60px 80px;
}

.testimonial-text {
    font-size: 0.95rem;
    color: var(--color-bg-dark);
    line-height: 1.7;
    margin-bottom: 30px;
    flex-grow: 1;
}

.cta-button {
    padding: 20px 50px;
    font-size: 1.2rem;
    white-space: nowrap;
    display: inline-block;
}

@media (max-width: 640px) {
    .cta-button {
        padding: 18px 20px !important;
        font-size: 0.95rem !important;
        width: 90%;
        max-width: 320px;
    }
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid rgba(56, 3, 8, 0.1);
    padding-top: 20px;
}

.author-img-placeholder,
.author-img {
    width: 50px;
    height: 50px;
    background: #E9ECEF;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
}

.author-info h4 {
    font-size: 1rem;
    margin-bottom: 2px;
    color: var(--color-bg-dark);
}

.author-info span {
    font-size: 0.8rem;
    color: rgba(56, 3, 8, 0.6);
    font-weight: 500;
}

.carousel-btn {
    background: var(--color-bg-dark);
    color: #fff;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.carousel-btn:hover {
    background: var(--color-accent);
    transform: scale(1.15);
}

@media (max-width: 1024px) {
    .testimonial-card {
        flex: 0 0 calc(50% - 10px);
        /* 2 cards */
    }
}

.carousel-container {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

.carousel-wrapper {
    flex: 1;
    overflow: hidden;
    order: 0;
}

.carousel-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    order: 1;
}

/* Desktop positioning */
@media (min-width: 641px) {
    .carousel-controls {
        display: contents;
        /* Buttons become direct flex children of container */
    }

    .carousel-btn.prev {
        order: -1;
    }

    .carousel-btn.next {
        order: 1;
    }
}

@media (max-width: 640px) {
    .carousel-container {
        flex-direction: column;
        gap: 30px;
    }

    .carousel-controls {
        width: 100%;
    }

    .carousel-btn {
        width: 45px;
        height: 45px;
    }
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Grid Helper */
.responsive-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

/* Moved to end for priority */

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    section {
        padding: 60px 20px;
    }

    .portrait-card {
        padding: 40px 20px;
    }

    .guarantee-card-inner {
        padding: 40px 20px;
    }

    .pricing-card {
        padding: 40px 25px;
    }

    .pricing-card-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 992px) {

    .responsive-grid,
    .responsive-grid-flex {
        display: flex !important;
        flex-direction: column !important;
        gap: 30px !important;
    }

    .responsive-grid>div,
    .responsive-grid-flex>div {
        width: 100% !important;
    }

    #content .responsive-grid>div:last-child {
        order: -1;
    }

    .guarantee-card-inner h2 {
        font-size: clamp(1.5rem, 7vw, 2.4rem) !important;
        max-width: 360px;
        margin: 0 auto 24px;
        text-align: center;
        line-height: 1.3;
    }
}

@media (max-width: 640px) {
    .testimonial-card {
        flex: 0 0 100%;
        /* 1 card */
    }

    .carousel-container {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }

    .carousel-wrapper {
        order: -1;
        width: 100%;
    }

    .carousel-controls {
        display: flex;
        gap: 15px;
        justify-content: center;
    }

    .carousel-btn {
        width: 45px;
        height: 45px;
    }

    .pricing-cta-title {
        font-size: 2rem !important;
    }

    .pricing-card-btn {
        font-size: 0.88rem !important;
        letter-spacing: 0.2px !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    section {
        padding: 50px 15px;
    }
}