:root {
    /* Electrolit Color Palette - Sunny & Active */
    --clr-primary: #1C3F60;    /* Navy Blue */
    --clr-secondary: #F26B22;  /* Vibrant Orange */
    --clr-accent: #00A3E0;     /* Sky Blue */
    --clr-sun: #FFD700;        /* Sun Yellow */
    --clr-strawberry: #E32636;
    --clr-grape: #7B2CBF;      /* Grape flavor */
    --clr-light: #F0F8FF;      /* Alice Blue (Very light sky) */
    --clr-white: #FFFFFF;
    --clr-dark: #121212;
    
    /* Gradients */
    --grad-primary: linear-gradient(135deg, var(--clr-accent), var(--clr-primary));
    --grad-secondary: linear-gradient(135deg, var(--clr-sun), var(--clr-secondary));
    
    /* Typography */
    --font-main: 'Outfit', sans-serif;
    
    /* UI Elements */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(28, 63, 96, 0.1);
    
    /* Transitions */
    --trans-fast: 0.2s ease;
    --trans-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --trans-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--clr-primary);
    background-color: var(--clr-light);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
}

/* Reserve space for sticky CTA on mobile so it never covers footer/content */
@media (max-width: 767px) {
    body {
        padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
    }
}

/* Typography Utility */
h1, h2, h3 {
    line-height: 1.1;
    font-weight: 800;
}

/* Inline SVG icons */
.icon {
    width: 1em;
    height: 1em;
    flex-shrink: 0;
    vertical-align: -0.125em;
    fill: none;
}

.text-gradient {
    background: var(--grad-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-alt {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Background Mesh / Animated Gradients */
.bg-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: var(--clr-light);
}

.blob {
    position: absolute;
    filter: blur(80px);
    border-radius: 50%;
    opacity: 0.6;
    animation: floatBlob 10s infinite alternate ease-in-out;
}

.sun-flare {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 80vw;
    height: 80vw;
    background: radial-gradient(circle, rgba(255,215,0,0.6) 0%, rgba(255,215,0,0) 70%);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

.blob.color-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: rgba(0, 163, 224, 0.5); /* Sky Blue */
    animation-delay: 0s;
}

.blob.color-2 {
    bottom: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: rgba(242, 107, 34, 0.4); /* Orange */
    animation-delay: -5s;
}

.blob.color-3 {
    top: 40%;
    left: 40%;
    width: 40vw;
    height: 40vw;
    background: rgba(123, 44, 191, 0.3); /* Grape Purple */
    animation-delay: -10s;
}

.glass-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    z-index: 2;
}

@media (max-width: 767px) {
    /* backdrop-filter is GPU-expensive on mobile — use solid translucent fill instead */
    .glass-overlay {
        background: rgba(255, 255, 255, 0.55);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    .blob { filter: blur(50px); }
}

@keyframes floatBlob {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(5%, 10%) scale(1.1); }
    100% { transform: translate(-5%, -5%) scale(0.9); }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--trans-fast);
    font-family: var(--font-main);
    font-size: 1rem;
}

.btn-sm { padding: 8px 20px; font-size: 0.9rem; }
.btn-lg { padding: 16px 36px; font-size: 1.1rem; }
.btn-block { width: 100%; }

.btn-primary {
    background: var(--grad-secondary);
    color: var(--clr-white);
    box-shadow: 0 4px 15px rgba(242, 107, 34, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(242, 107, 34, 0.4);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--clr-primary);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.9);
    transform: translateY(-2px);
}

/* Hover glow effect */
.hover-glow {
    position: relative;
    overflow: hidden;
}

.hover-glow::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(rgba(255,255,255,0.2), rgba(255,255,255,0));
    transform: rotate(45deg) translateY(100%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hover-glow:hover::after {
    transform: rotate(45deg) translateY(-100%);
}

.glow-pulse {
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(242, 107, 34, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(242, 107, 34, 0); }
    100% { box-shadow: 0 0 0 0 rgba(242, 107, 34, 0); }
}

/* Removed Header CSS */

/* Hero Section */
.hero {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding-top: 40px;
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-cta {
    position: relative;
    z-index: 3;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr; /* Mobile first */
    gap: 40px;
    align-items: center;
    text-align: center; /* Mobile first */
}

.hero-logo-wrapper {
    display: flex;
    justify-content: center; /* Mobile first */
    margin-bottom: 32px;
}

.hero-logo {
    height: 90px; /* Much larger logo */
    width: auto;
    max-width: 100%;
}

@media (min-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }
    .hero-logo-wrapper {
        justify-content: flex-start;
    }
    .hero-logo {
        height: 110px; /* Even larger on desktop */
    }
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(28, 63, 96, 0.05);
    border: 1px solid rgba(28, 63, 96, 0.1);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--clr-primary);
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(2.25rem, 8vw, 4.5rem);
    letter-spacing: -1px;
    margin-bottom: 20px;
    overflow-wrap: break-word;
}

.hero-subtitle {
    font-size: 1.1rem; /* slightly smaller on mobile */
    color: #4A5568;
    margin: 0 auto 40px;
    max-width: 500px;
}

@media (min-width: 992px) {
    .hero-subtitle {
        font-size: 1.25rem;
        margin: 0 0 40px 0;
    }
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center; /* mobile first */
}

@media (min-width: 992px) {
    .hero-cta {
        justify-content: flex-start;
    }
}

/* Hero Visual 3D effect */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    isolation: isolate; /* contain splash z-index inside this stacking context */
}

.bottle-mockup {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 3/4;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(28, 63, 96, 0.15);
    border: 4px solid white;
    transform: perspective(1000px) rotateY(-15deg) rotateX(5deg);
    transition: var(--trans-slow);
    z-index: 1;
}

@media (min-width: 768px) {
    .bottle-mockup {
        border-width: 8px;
    }
}

.bottle-mockup:hover {
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg) translateY(-10px);
}

.visual-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px) perspective(1000px) rotateY(-15deg) rotateX(5deg); }
    50% { transform: translateY(-20px) perspective(1000px) rotateY(-15deg) rotateX(5deg); }
    100% { transform: translateY(0px) perspective(1000px) rotateY(-15deg) rotateX(5deg); }
}

.bottle-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 50%);
    pointer-events: none;
}

/* Liquid Splash Animations - Brighter & More Vibrant */
.liquid-splash {
    position: absolute;
    width: 130%;
    height: 130%;
    background: linear-gradient(135deg, var(--clr-accent), #4db8ff);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: morph 8s ease-in-out infinite, spinSplash 12s linear infinite;
    z-index: 0;
    opacity: 0.9;
    box-shadow: inset 20px 20px 40px rgba(255,255,255,0.6), 0 20px 40px rgba(0,163,224,0.4);
    pointer-events: none; /* never block clicks on hero CTAs */
    will-change: transform, border-radius;
}

.liquid-splash.splash-2 {
    background: linear-gradient(135deg, var(--clr-sun), var(--clr-secondary));
    width: 110%;
    height: 110%;
    animation-delay: -4s;
    animation-direction: reverse;
    opacity: 0.75;
}

@keyframes morph {
    0%, 100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    34% { border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%; }
    67% { border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%; }
}

@keyframes spinSplash {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Instructions */
.instructions {
    padding: 64px 0;
}

@media (min-width: 768px) {
    .instructions { padding: 100px 0; }
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.carousel-wrapper {
    position: relative;
    /* Break out of .container padding on mobile so the scroll track is edge-to-edge,
       letting shadows breathe without a visible "mask" cutoff. */
    margin-inline: -24px;
}

@media (min-width: 768px) {
    .carousel-wrapper {
        margin-inline: 0;
    }
}

.steps-carousel {
    display: flex;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    /* Vertical padding gives the box-shadow + hover translateY room to render
       inside the scrollable area (since overflow-x:auto also clips Y). */
    padding: 24px 24px 32px;
    scroll-padding-inline: 24px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.steps-carousel::-webkit-scrollbar {
    display: none;
}

@media (min-width: 768px) {
    .steps-carousel {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
        overflow: visible;
        padding: 0;
        scroll-snap-type: none;
    }
}

.step-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 36px 28px;
    text-align: center;
    transition: var(--trans-normal);
    box-shadow: var(--glass-shadow);

    /* Mobile carousel item: full width with peek of next card */
    flex: 0 0 min(82vw, 340px);
    scroll-snap-align: center;
    scroll-snap-stop: always;
}

@media (min-width: 768px) {
    .step-card {
        flex: auto;
    }
}

.step-card:hover {
    transform: translateY(-12px) scale(1.02);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 24px 48px rgba(28, 63, 96, 0.1);
}

.step-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(28, 63, 96, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 2.5rem;
    color: var(--clr-secondary);
    transition: var(--trans-fast);
}

.step-card:hover .step-icon {
    background: var(--grad-secondary);
    color: white;
    transform: scale(1.1);
}

.step-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
}

@media (min-width: 768px) {
    .carousel-dots {
        display: none;
    }
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(28, 63, 96, 0.22);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: width var(--trans-fast), background var(--trans-fast);
    /* Tap-target ~44px without resizing the visual dot */
    box-shadow: 0 0 0 16px transparent;
    background-clip: padding-box;
}

.dot.active {
    width: 28px;
    border-radius: 4px;
    background: var(--clr-secondary);
}

/* Form Section */
.form-section {
    padding: 64px 0;
    background: linear-gradient(to bottom, transparent, rgba(28, 63, 96, 0.03));
}

@media (min-width: 768px) {
    .form-section { padding: 100px 0; }
}

.form-container {
    max-width: 800px;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 32px;
    padding: 60px;
    box-shadow: 0 30px 60px rgba(28, 63, 96, 0.08);
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header h2 {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input:not([type="file"]):not([type="checkbox"]) {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    border: 2px solid rgba(28, 63, 96, 0.1);
    background: rgba(255,255,255,0.5);
    font-family: var(--font-main);
    font-size: 16px; /* prevent iOS zoom on focus */
    transition: var(--trans-fast);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.form-group input:focus {
    border-color: var(--clr-secondary);
    background: white;
    box-shadow: 0 0 0 4px rgba(242, 107, 34, 0.1);
}

.form-group input.error {
    border-color: var(--clr-strawberry);
}

.error-msg {
    color: var(--clr-strawberry);
    font-size: 0.85rem;
    margin-top: 6px;
    display: none;
}

.error-msg.d-block { display: block; }
.form-group.has-error .error-msg { display: block; }

/* File Upload UI */
.file-upload-group input[type="file"] {
    display: none;
}

.file-upload-label {
    display: block;
    cursor: pointer;
}

.upload-ui {
    border: 2px dashed rgba(28, 63, 96, 0.2);
    border-radius: 16px;
    padding: 40px 20px;
    text-align: center;
    background: rgba(255,255,255,0.3);
    transition: var(--trans-fast);
}

.upload-ui:hover, .upload-ui.dragover {
    background: rgba(242, 107, 34, 0.05);
    border-color: var(--clr-secondary);
}

.upload-ui i,
.upload-ui .upload-icon {
    font-size: 3rem;
    color: var(--clr-primary);
    margin: 0 auto 16px;
    display: block;
    width: 3rem;
    height: 3rem;
}

.success-icon .icon { width: 5rem; height: 5rem; }
.step-icon .icon { width: 2.5rem; height: 2.5rem; }

.upload-ui span {
    display: block;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.upload-ui small {
    color: #718096;
}

/* Checkbox */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.checkbox-group input {
    margin-top: 6px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checkbox-group label {
    font-weight: 400;
}

.checkbox-group a {
    color: var(--clr-primary);
    font-weight: 600;
}

.hidden {
    display: none !important;
}

/* Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success State */
.success-state {
    text-align: center;
    padding: 40px 0;
}

.success-icon {
    font-size: 5rem;
    color: #38A169;
    margin-bottom: 24px;
}

/* Footer */
.footer {
    background: var(--clr-primary);
    color: white;
    padding: 60px 0 40px;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    margin-bottom: 32px;
}

.footer-logo-img {
    height: 36px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-logo svg text {
    fill: white;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
    margin-bottom: 40px;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-weight: 600;
    transition: var(--trans-fast);
}

.footer-links a:hover {
    color: var(--clr-secondary);
}

.copyright {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

/* Scroll Reveal Animations */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-down {
    opacity: 0;
    transform: translateY(-40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.revealed {
    opacity: 1;
    transform: translate(0);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }

/* Skip animations off-screen / for users who prefer reduced motion */
.instructions, .form-section, .footer {
    content-visibility: auto;
    contain-intrinsic-size: 1px 600px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
    .reveal-up, .reveal-down, .reveal-right { opacity: 1; transform: none; }
}

/* Sticky CTA */
.sticky-cta {
    position: fixed;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    left: 16px;
    right: 16px;
    z-index: 100;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    transform: translateY(150%);
    opacity: 0;
    pointer-events: none;
}

.sticky-cta.visible { pointer-events: auto; }

.sticky-cta.visible {
    transform: translateY(0);
    opacity: 1;
}

@media (min-width: 768px) {
    .sticky-cta {
        display: none !important; /* Hide on desktop */
    }
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .hero-title {
        font-size: clamp(3.5rem, 6vw, 5.5rem);
    }
}

@media (max-width: 768px) {
    .glass-panel {
        padding: 40px 24px;
        border-radius: 24px;
    }
    .footer-links {
        gap: 16px;
        flex-direction: column;
    }
    
    /* Make the bottle fit nicely on very small screens */
    .bottle-mockup {
        max-width: 280px;
        margin: 0 auto;
    }
}
