:root {
    /* Updated Palette from brand logo */
    --bg-dark: #021a24;
    --bg-card: #063c4d;
    --bg-lighter: #0f4a5f;
    --primary: #38bdf8;       /* Lighter, more vibrant blue */
    --secondary: #0ea5e9;
    --primary-hover: #7dd3fc;
    --text-white: #ffffff;
    --text-gray: #cbd5e1;     /* Much lighter gray for better contrast */
    --accent-glow: rgba(56, 189, 248, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

body {
    background: radial-gradient(circle at top left, #084c61 0%, #021a24 100%);
    background-attachment: fixed;
    color: var(--text-white);
    line-height: 1.6;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
    padding: 0 5%;
}

/* Navigation */
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(2, 26, 36, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo img {
    height: 32px;
    width: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--bg-lighter);
    color: var(--text-white);
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    border-color: var(--primary);
}

.btn-lg {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    padding: 8rem 0 4rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.hero-content {
    flex: 1;
    min-width: 320px;
    max-width: 550px;
}

.badge {
    background: rgba(14, 165, 233, 0.1);
    color: var(--primary);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: inline-block;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.highlight {
    color: var(--primary);
    /* Ultra-bright gradient for high readability on dark backgrounds */
    background: linear-gradient(135deg, #7dd3fc, #38bdf8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 25px rgba(56, 189, 248, 0.3); /* Enhanced glow */
}

.sub-text {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 90%;
}

.cta-group {
    display: flex;
    gap: 1rem;
}

/* Hero Visual */
.hero-visual {
    flex: 1.5;
    min-width: 320px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
}

.image-carousel {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 600px;
    perspective: 2000px;
}

.carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1), scale 0.3s ease;
    transform-style: preserve-3d;
}

.carousel-inner:hover {
    scale: 1.03;
}

.image-carousel.flipped .carousel-inner {
    transform: rotateY(180deg);
}

.image-carousel.flipped .carousel-inner .back {
    box-shadow: 0 0 50px rgba(14, 165, 233, 0.3), 0 20px 50px rgba(0,0,0,0.5);
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 0 50px rgba(14, 165, 233, 0.3), 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: absolute;
    top: 0;
    left: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.hero-image.front {
    z-index: 2;
    transform: rotateY(0deg);
}

.hero-image.back {
    transform: rotateY(180deg);
}


/* Features Grid */
.features {
    padding: 5rem 0;
    background: #0b1116;
    content-visibility: auto;
    contain-intrinsic-size: 1px 500px;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    color: var(--text-white);
}

.section-header p {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: all 0.3s;
    color: var(--text-white);
}

.feature-card p {
    color: var(--text-gray);
    margin-top: 0.5rem;
}

.feature-card:hover {
    border-color: var(--bg-lighter);
    transform: translateY(-5px);
}

.icon {
    color: var(--primary);
    margin-bottom: 1rem;
    width: 32px;
    height: 32px;
}

/* How it works */
.steps-section {
    padding: 5rem 0;
    content-visibility: auto;
    contain-intrinsic-size: 1px 400px;
}

.steps {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 3rem;
}

.step {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.step h3 {
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.step p {
    color: var(--text-gray);
}

.step-number {
    font-size: 3rem;
    font-weight: 700;
    color: rgba(56, 189, 248, 0.2); /* Lighter, themed overlay number */
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    padding: 4rem 0;
    border-top: 1px solid var(--bg-lighter);
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 32px;
    width: auto;
}

.email-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
}


.contact-email {
    color: var(--primary);
    margin: 0;
    font-weight: 500;
    cursor: default;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.copy-email-btn {
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.2s ease;
    position: relative;
}

.email-wrapper:hover .copy-email-btn {
    opacity: 1;
    transform: translateX(0);
}

.copy-email-btn:hover {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}

.copy-email-btn svg {
    width: 16px;
    height: 16px;
}

.copy-email-btn.copied {
    color: #10b981; /* Green success color */
}

.copy-tooltip {
    position: absolute;
    bottom: 140%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--bg-card);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    z-index: 100;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.copy-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.1) transparent transparent transparent;
}

.copy-email-btn.copied .copy-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.highlight-email {
    animation: email-pop 2.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes email-pop {
    0% { 
        transform: scale(1);
        background: transparent;
        color: var(--primary);
        box-shadow: none;
    }
    15% { 
        transform: scale(1.1);
        background: var(--primary);
        color: #fff;
        box-shadow: 0 0 25px var(--accent-glow);
    }
    30% {
        transform: scale(1.05);
        background: var(--primary);
        color: #fff;
        box-shadow: 0 0 15px var(--accent-glow);
    }
    85% {
        transform: scale(1.05);
        background: var(--primary);
        color: #fff;
        box-shadow: 0 0 15px var(--accent-glow);
    }
    100% { 
        transform: scale(1);
        background: transparent;
        color: var(--primary);
        box-shadow: none;
    }
}

.copyright {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-gray);
}

.footer-socials {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.footer-socials a {
    color: var(--text-gray);
    transition: all 0.3s ease;
}

.footer-socials a:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

.made-by {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.heart-icon {
    width: 16px;
    height: 16px;
    color: #ef4444; /* Standard heart red */
    fill: #ef4444;
    animation: heart-beat 1.5s infinite ease-in-out;
}

@keyframes heart-beat {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.3); }
    30% { transform: scale(1.1); }
    45% { transform: scale(1.4); }
}

.made-by a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.made-by a:hover {
    color: var(--primary-hover);
    border-bottom-color: var(--primary);
}


/* Mobile Responsiveness */
@media (max-width: 768px) {
    .navbar-container {
        padding: 1rem 0;
    }
    
    .nav-links, .navbar .btn-primary {
        display: none;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }

    .hero {
        padding-top: 7rem;
        padding-bottom: 3rem;
        min-height: auto;
    }
    
    .hero-content {
        max-width: 100%;
        margin-bottom: 0;
    }

    h1 {
        font-size: 2.5rem;
    }

    .sub-text {
        font-size: 1rem;
        margin-left: auto;
        margin-right: auto;
    }

    .cta-group {
        justify-content: center;
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .btn-lg {
        width: 100%;
    }

    .hero-visual {
        width: 100%;
        perspective: 1500px;
    }

    .image-carousel {
        height: 350px;
        perspective: 1500px;
    }

    .hero-image {
        max-width: 100%;
        box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    }

    .steps {
        flex-direction: column;
    }

    .feature-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    .hero {
        padding-top: 6rem;
    }
}