/* Base Styles */
:root {
    --primary: #f6511d;
    --primary-dark: #e04515;
    --secondary: #88db51;
    --dark: #2D3748;
    --light: #F7FAFC;
    --gray: #E2E8F0;
    --dark-gray: #718096;
    --success: #48BB78;
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

p {
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 99, 255, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    margin-right: 1rem;
}

.btn-outline:hover {
    background-color: rgba(108, 99, 255, 0.1);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Header & Navigation */
/* Header & Navigation */
.hero {
    background: linear-gradient(135deg, #fff5f2 0%, #ffefe9 100%);
    position: relative;
    overflow: hidden; /* Contain pseudo-elements */
}

/* Adds a creative curve at the bottom of the hero section */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px; /* Adjust height of the curve */
    background: #fff; /* Match the next section's background */
    clip-path: ellipse(80% 100% at 50% 100%);
    z-index: 1;
}

/* Decorative background blob */
.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -15%;
    width: 450px;
    height: 450px;
    background: rgba(246, 81, 29, 0.1);
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
}

nav {
    width: 100%;
    padding: 1rem 0;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.nav-links .btn-outline {
    margin-right: 0;
    padding: 0.5rem 1.5rem;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

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

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 8rem 5% 4rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 4rem;
}

.hero-text {
    flex: 1;
    max-width: 50%;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.hero-text h1 {
    font-size: 3.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--dark);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.05);
}

.hero-text .subtitle {
    font-size: 1.25rem;
    color: var(--dark-gray);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.cta-buttons .btn {
    padding: 0.875rem 2rem;
    font-size: 1rem;
}

.hero-media {
    flex: 1;
    max-width: 50%;
    position: relative;
    border-radius: 24px; /* More rounded */
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(246, 81, 29, 0.3); /* Fun, colored shadow */
    animation: fadeIn 1s ease-out 0.2s both;
    transform: rotate(2deg); /* Tilt the image container */
    transition: transform 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
}

.hero-media:hover {
    transform: rotate(0deg) scale(1.05); /* Straighten and scale on hover */
    box-shadow: 0 30px 60px -15px rgba(246, 81, 29, 0.35);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.carousel-container {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    position: relative;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-controls {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    z-index: 10;
}

.carousel-control {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
    font-size: 1rem;
}

.carousel-control:hover {
    background: #fff;
    transform: scale(1.1);
}

.carousel-indicators {
    display: flex;
    gap: 8px;
    background: rgba(0, 0, 0, 0.3);
    padding: 6px 12px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    background: #fff;
    transform: scale(1.2);
}

/* Animation for slides */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.carousel-slide {
    animation: fadeIn 0.8s ease-in-out forwards;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
        padding: 6rem 0 4rem;
    }
    
    .hero-text,
    .hero-media {
        max-width: 100%;
    }
    
    .hero-text {
        padding-right: 0;
    }
    
    .cta-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero-carousel {
        border-radius: 12px;
        margin-top: 1rem;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-text .subtitle {
        font-size: 1.1rem;
    }
    
    .carousel-control {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .carousel-indicator {
        width: 8px;
        height: 8px;
    }
}

/* Features Section */
.features {
  padding: 8rem 2rem 6rem;
  background-color: #fff; /* Match the curve from hero */
  position: relative;
  margin-top: -150px; /* Pull section up to overlap with hero curve */
  z-index: 2;
  overflow: hidden;
}

.features .container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
    position: relative;
    display: inline-block;
}

.divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    margin: 0 auto;
    border-radius: 2px;
}



.features-track {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    padding: 4rem 0;
}

.feature-card {
    background-color: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(45, 55, 72, 0.08);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
    position: relative;
}

.feature-card:hover {
    transform: scale(1.08) rotate(0deg) !important;
    box-shadow: 0 25px 50px rgba(45, 55, 72, 0.15);
    z-index: 10;
}

.card-inner {
    display: flex;
    width: 100%;
    height: 100%;
    text-align: center;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 2.5rem 1.5rem; /* Correct padding */
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.icon-wrapper {
    position: relative;
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(246, 81, 29, 0.08), rgba(136, 219, 81, 0.08));
    border-radius: 20px;
    transform: rotate(45deg);
    transition: all 0.4s ease;
}

.feature-card:hover .icon-wrapper .icon-bg {
    transform: rotate(0deg);
    background: linear-gradient(135deg, rgba(246, 81, 29, 0.12), rgba(136, 219, 81, 0.12));
}

.icon {
    font-size: 1.75rem;
    color: var(--primary);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.feature-card:hover .icon {
    color: var(--secondary);
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--dark);
    transition: all 0.3s ease;
    font-weight: 600;
}

.feature-card:hover h3 {
    color: var(--primary);
}

.feature-card p {
    color: var(--dark-gray);
    margin: 0;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Create a fun, staggered layout */
.feature-card:nth-child(1) { transform: rotate(-2.5deg) translateY(-20px); }
.feature-card:nth-child(2) { transform: rotate(1.5deg) translateY(20px); }
.feature-card:nth-child(3) { transform: rotate(-1deg) translateY(5px); }
.feature-card:nth-child(4) { transform: rotate(2deg) translateY(25px); }
.feature-card:nth-child(5) { transform: rotate(-1.5deg) translateY(10px); }

/* Animation */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0px); }
}

/* Scroll indicators */
.scroll-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 2rem;
}

.scroll-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.scroll-indicator.active {
    background-color: var(--primary);
    transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .feature-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .features {
        padding: 5rem 5%;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .feature-card {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
}

/* How It Works Section */
.how-it-works {
    padding: 6rem 5%;
    background-color: #F8FAFF;
}

.how-it-works h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 1;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 25px;
    left: 50%;
    right: -50%;
    height: 2px;
    background-color: var(--gray);
    z-index: 0;
}

/* Waitlist Section */
.waitlist {
    padding: 6rem 5%;
    
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    text-align: center;
}

.waitlist-content {
    max-width: 700px;
    margin: 0 auto;
}

.waitlist h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.waitlist p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.waitlist-form {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.waitlist-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
}

.success-message {
    display: none;
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-weight: 500;
}

/* Footer */
footer {
    background-color: #1A202C;
    color: white;
    padding: 4rem 5% 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto 3rem;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.social-links {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-links a {
    color: var(--dark);
    font-size: 1.25rem;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.social-links a i {
    transition: all 0.3s ease;
    color: currentColor;
}

.social-links a:hover {
    color: var(--secondary);
    transform: translateY(-3px);
}

/* Kwai icon specific styles */
.kwai-icon {
    width: 1.25rem;
    height: 1.25rem;
    object-fit: contain;
    filter: grayscale(100%) brightness(0.5);
    transition: all 0.3s ease;
}

.social-link:hover .kwai-icon {
    filter: grayscale(0) brightness(1);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        padding-top: 2rem;
    }
    
    .hero-text {
        padding-right: 0;
        margin-bottom: 3rem;
        text-align: center;
    }
    
    .hero-content h1 {
        margin-left: auto;
        margin-right: auto;
        font-size: 2.8rem;
    }
    
    .hero-image {
        margin-top: 2rem;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .waitlist-form {
        flex-direction: column;
    }
    
    .btn-outline {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .steps {
        grid-template-columns: 1fr;
    }
    
    .step:not(:last-child)::after {
        display: none;
    }
}

/* HubSpot Form Container */
#hubspot-form-container {
    max-width: 600px;
    margin: 2rem auto 0;
    width: 100%;
}

/* HubSpot Form */
.hs-form-field {
    margin-bottom: 1.5rem;
}

.hs-form-field label {
    display: block;
    margin-bottom: 0.5rem;
    color: white;
    font-weight: 500;
}

.hs-form input[type="email"], 
.hs-form input[type="text"],
.hs-form input[type="tel"],
.hs-form textarea,
.hs-form select {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
    background-color: rgba(255, 255, 255, 0.9);
}

.hs-form input[type="email"]:focus, 
.hs-form input[type="text"]:focus,
.hs-form input[type="tel"]:focus,
.hs-form textarea:focus,
.hs-form select:focus {
    border-color: var(--secondary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(136, 219, 81, 0.3);
}

.hs-form .hs-button {
    background-color: var(--secondary) !important;
    color: #1a202c !important;
    border: none !important;
    padding: 1rem 2rem !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    font-size: 1.1rem !important;
    margin-top: 1rem !important;
}

.hs-form .hs-button:hover {
    background-color: #7acd43 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(136, 219, 81, 0.3) !important;
}

/* Form success message */
.hs-form .submitted-message {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    color: var(--primary);
    font-weight: 600;
    margin-top: 1rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    animation: fadeInUp 0.6s ease forwards;
}

/* Extra small devices (<=480px) */
@media (max-width: 480px) {
    nav {
        padding: 0.5rem 0;
    }

    .nav-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        flex-wrap: wrap;
        gap: 1rem;
        margin-top: 0.5rem;
    }

    .nav-links a {
        font-size: 0.875rem;
    }

    .hero-container {
        padding: 6rem 5% 3rem;
    }

    .hero-content {
        gap: 2rem;
    }

    .hero-text,
    .hero-media {
        max-width: 100%;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text .subtitle {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

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

    .hero-media {
        margin-top: 1rem;
    }

    .features-track {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .feature-card {
        margin: 0 auto;
    }
}
