:root {
    --green: #00FF85;
    --dark-bg: #121212;
    --light-bg: #1A1A1A;
    --text-primary: #FFFFFF;
    --text-secondary: #B3B3B3;
    --border-color: #333333;

    --boost-color: #F95D9B; /* Pink/Guava */
    --recover-color: #FFC700; /* Yellow */
    --hydrate-color: #FF6B6B; /* Pink/Red */
}

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

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

h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.button {
    display: inline-block;
    background-color: var(--green);
    color: var(--dark-bg);
    padding: 0.8rem 1.8rem;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 255, 133, 0.15);
}

.button:hover:not(:disabled) {
    transform: translateY(-2px) scale(1.02);
    background-color: #33ff9c;
    box-shadow: 0 6px 20px rgba(0, 255, 133, 0.25);
}

.button:disabled, a.button.disabled {
    background-color: #555;
    color: #888;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
    pointer-events: none;
}

/* Header */
header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    height: 70px;
    width: auto;
}

/* Hero Section */
#hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    min-height: 80vh;
}

.hero-content {
    max-width: 500px;
}

.subheadline {
    font-size: 1.1rem;
    margin: 1.5rem 0;
}

.early-access-form {
    display: flex;
    gap: 0.5rem;
}

.hero-cta-button {
    font-size: 1.1rem;
    padding: 1rem 2rem;
}

.early-access-form input {
    flex-grow: 1;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    background-color: var(--light-bg);
    color: var(--text-primary);
    border-radius: 5px;
}

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image {
    width: 100%;
    max-width: 550px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.hero-packs {
    position: relative;
    width: 100%;
    min-height: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-pack {
    position: absolute;
    height: 80%;
    max-height: 400px;
    width: auto;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), z-index 0s 0.15s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border-radius: 8px; 
}

.hero-pack:hover {
    transform: translateY(-20px) scale(1.1) rotate(0deg) !important;
    z-index: 10 !important;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), z-index 0s;
}

.pack-1 { 
    transform: rotate(-12deg) translateX(-35%);
    z-index: 1;
}

.pack-2 { 
    transform: rotate(2deg) translateY(-5%);
    z-index: 2;
}

.pack-3 { 
    transform: rotate(15deg) translateX(35%);
    z-index: 3;
}

/* Why Section */
#why {
    background-color: var(--light-bg);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.why-card {
    background-color: var(--dark-bg);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.why-card img {
    height: 60px;
    margin: 0 auto 1.5rem;
}

.function-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin: 0 auto 1.5rem;
    height: 60px; /* Match height of other icons */
}

.function-icons img {
    height: 45px; /* Slightly smaller to fit well */
    margin: 0;
}

.why-card h3 {
    color: var(--green);
}

.why-card p {
    flex-grow: 1; /* Add this to align content at bottom */
}

/* Philosophy Section */
#philosophy {
    text-align: center;
}

.section-subheadline {
    font-size: 1.2rem;
    max-width: 650px;
    margin: -1rem auto 3rem;
    color: var(--text-primary);
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: left;
    margin-bottom: 2rem;
}

.philosophy-item {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: 10px;
}

.philosophy-item h3 {
    color: var(--green);
    margin-bottom: 0.75rem;
}

.philosophy-outro {
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 2rem;
}

/* Products Section */
#products {
    background-color: var(--light-bg);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.product-card {
    background-color: var(--dark-bg);
    padding: 2.5rem 2rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.product-card.popular {
    border: 2px solid var(--green);
}

.best-value-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--green);
    color: var(--dark-bg);
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-card h3 {
    color: var(--green);
    margin-bottom: 1rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.price-per {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.product-card p {
    flex-grow: 1;
}

.product-card-footer {
    flex-grow: 0;
    margin-top: 1.5rem;
    text-align: center;
}

.product-card-footer .button {
    width: auto;
}

.includes {
    font-size: 0.9rem;
    margin-top: auto;
    color: var(--text-secondary);
}

.product-card .button {
    margin-top: 1.5rem;
    width: 100%;
    text-align: center;
}

/* Flavors Section (Swiper) */
.swiper-container {
    position: relative;
    padding: 0 2rem;
}

.flavor-card {
    background: var(--light-bg);
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.flavor-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.flavor-info {
    padding: 1.5rem;
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-bg);
}
.tag.boost { background-color: var(--boost-color); }
.tag.recover { background-color: var(--recover-color); }
.tag.hydrate { background-color: var(--hydrate-color); }

:root {
    --swiper-navigation-color: var(--green);
    --swiper-pagination-color: var(--green);
}

/* Builder Section */
#builder {
    background-color: var(--light-bg);
}

.builder-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2.5rem;
    align-items: flex-start;
}

.builder-items {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.builder-item {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 1.5rem;
    align-items: center;
    background-color: var(--dark-bg);
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.builder-item img {
    width: 100%;
    height: auto;
    justify-self: center;
}

.builder-item-pouch-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

.builder-item-info h3 {
    margin-bottom: 0.25rem;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: var(--light-bg);
    border-radius: 50px;
    padding: 0.5rem;
}

.quantity-btn {
    background-color: var(--dark-bg);
    color: var(--green);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.quantity-btn:hover {
    background-color: var(--green);
    color: var(--dark-bg);
}

.quantity-count {
    font-size: 1.25rem;
    font-weight: 700;
    min-width: 2ch;
    text-align: center;
}

.builder-summary {
    background-color: var(--dark-bg);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    position: sticky;
    top: 2rem;
}

.builder-summary h3 {
    color: var(--green);
    text-align: center;
    margin-bottom: 1.5rem;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.summary-line.price {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.min-sticks-note {
    font-size: 0.85rem;
    text-align: center;
    color: var(--text-secondary);
    margin-top: -0.5rem;
    margin-bottom: 1.5rem;
    transition: opacity 0.3s ease;
}

.builder-summary .button {
    width: 100%;
    text-align: center;
}

/* Early Access Section */
#early-access {
    background-color: var(--dark-bg);
}

#early-access h2 {
    color: var(--green);
    text-align: left;
}

.early-access-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
    align-items: center;
}

.early-access-form-wrapper {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-icon {
    width: 150px;
    height: auto;
    margin-bottom: 1.5rem;
}

.final-opt-in {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.final-opt-in input,
.final-opt-in select {
    width: 100%;
    padding: 1rem;
    background-color: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
}

.final-opt-in input::placeholder {
    color: var(--text-secondary);
}

.final-opt-in select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2300FF85' class='bi bi-chevron-down' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

.final-opt-in select:invalid,
.final-opt-in select option[value=""] {
    color: var(--text-secondary);
}

.final-opt-in button {
    margin-top: 1rem;
}

/* Responsive */
@media (min-width: 768px) {
    .early-access-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 900px) {
    .builder-container {
        grid-template-columns: 1fr;
    }

    .builder-summary {
        position: static;
    }
}

@media (max-width: 768px) {
    h1 {
        text-align: center;
    }
    #hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-visual {
        order: -1;
        margin-bottom: 2rem;
    }

    .hero-packs {
        min-height: 350px;
    }

    .hero-pack {
        max-height: 300px;
    }

    .pack-1 { transform: rotate(-12deg) translateX(-25%); }
    .pack-2 { transform: rotate(2deg) translateY(-5%); }
    .pack-3 { transform: rotate(15deg) translateX(25%); }

    .early-access-form, .hero-cta-button {
        width: 100%;
    }

    .builder-item {
        grid-template-columns: 100px 1fr;
        grid-template-rows: auto auto;
        gap: 0.5rem 1rem;
    }

    .builder-item img {
        grid-row: 1 / 3;
    }
    
    .builder-item-pouch-img {
        height: 100px;
    }

    .quantity-selector {
        grid-column: 2 / 3;
    }
}