/* ===== CSS Variables ===== */
:root {
    --color-bg: #000000;
    --color-text: #ffffff;
    --color-text-muted: #a0a0a0;
    --color-accent: #FFC30B;
    --color-accent-hover: #e6af0a;
    --color-organic: #9ACD32;
    --font-heading: 'Kay Pho Du', serif;
    --font-body: 'Open Sans', sans-serif;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== Typography ===== */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 500;
    letter-spacing: 0.1em;
}

p {
    margin-bottom: 1rem;
}

em {
    font-style: italic;
    color: var(--color-accent);
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

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

.fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: radial-gradient(ellipse at center top, #1a1a1a 0%, #000000 60%);
}

.hero-content {
    padding: 2rem;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out;
}

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

.brand-name {
    font-family: var(--font-heading);
    font-size: 2rem;
    letter-spacing: 0.5em;
    font-weight: 500;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 0.875rem;
    letter-spacing: 0.3em;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    letter-spacing: 0.15em;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.mountains {
    width: 100%;
    max-width: 400px;
    margin: 0 auto 4rem;
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

.mountains svg {
    width: 100%;
    height: auto;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: fadeInUp 1s ease-out 1s backwards;
}

.scroll-indicator span {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-left: 2px solid var(--color-accent);
    border-bottom: 2px solid var(--color-accent);
    transform: rotate(-45deg);
    margin-top: -5px;
    animation: bounce 2s ease-in-out infinite;
}

/* ===== Sections ===== */
.section {
    padding: 8rem 0;
    border-top: 1px solid rgba(255, 195, 11, 0.2);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 1rem;
    margin-bottom: 4rem;
}

/* ===== About Section ===== */
.about {
    background: linear-gradient(180deg, #000000 0%, #0a0a0a 100%);
}

.section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.section-heading {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    line-height: 1.3;
    letter-spacing: 0.05em;
}

.about-text {
    color: var(--color-text-muted);
    font-size: 1.05rem;
}

.about-features {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.feature {
    display: flex;
    flex-direction: column;
}

.feature-highlight {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-accent);
    letter-spacing: 0.05em;
}

.feature-label {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ===== Jara Section ===== */
.jara {
    background: #000000;
}

.jara-header {
    margin-bottom: 4rem;
}

.jara-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 4rem;
    align-items: start;
}

.jara-illustration {
    position: sticky;
    top: 2rem;
}

.jara-illustration svg {
    width: 100%;
    height: auto;
}

.jara-text {
    max-width: 600px;
}

.jara-text p {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.jara-highlight {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(255, 195, 11, 0.08) 0%, rgba(255, 195, 11, 0.02) 100%);
    border-left: 3px solid var(--color-accent);
}

.jara-highlight h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--color-accent);
}

.jara-highlight p {
    margin-bottom: 0;
}

/* ===== Pre-Order Section ===== */
.preorder {
    background: linear-gradient(180deg, #000000 0%, #0d0d0d 50%, #000000 100%);
}

.preorder-header {
    margin-bottom: 3rem;
}

.preorder-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    color: var(--color-text-muted);
}

.form-group input[type="email"],
.form-group select {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input[type="email"]:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-accent);
    background: rgba(255, 195, 11, 0.05);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23FFC30B' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

.form-group select option {
    background: #1a1a1a;
    color: var(--color-text);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    align-items: stretch;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    overflow: hidden;
}

.qty-btn {
    width: 48px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--color-accent);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.qty-btn:hover {
    background: rgba(255, 195, 11, 0.15);
}

.quantity-selector input {
    flex: 1;
    text-align: center;
    background: transparent;
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 1rem 0;
    -moz-appearance: textfield;
}

.quantity-selector input::-webkit-outer-spin-button,
.quantity-selector input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-selector input:focus {
    outline: none;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 1.25rem 2rem;
    margin-top: 1rem;
    background: var(--color-accent);
    border: none;
    border-radius: 4px;
    color: #000000;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 195, 11, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn.loading .btn-text {
    opacity: 0;
}

.submit-btn.loading .btn-loader {
    display: block;
}

.btn-loader {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 3px solid rgba(0, 0, 0, 0.2);
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.form-note {
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-top: 1.5rem;
}

/* Success Message */
.form-success {
    text-align: center;
    padding: 3rem;
}

.form-success.hidden {
    display: none;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border: 3px solid var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--color-accent);
}

.form-success h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.form-success p {
    color: var(--color-text-muted);
}

/* ===== Footer ===== */
.footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 195, 11, 0.2);
    background: #000000;
}

.footer-content {
    text-align: center;
}

.footer-brand {
    margin-bottom: 2rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    letter-spacing: 0.4em;
}

.footer-brand p {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.footer-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.organic-badge {
    width: 50px;
    height: 50px;
}

.organic-icon {
    width: 100%;
    height: 100%;
}

.ingredients {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--color-text-muted);
}

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

.footer-bottom p {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* ===== Responsive Design ===== */
@media (max-width: 900px) {
    .section-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .jara-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .jara-illustration {
        position: static;
        max-width: 200px;
        margin: 0 auto;
    }
    
    .jara-text {
        max-width: none;
    }
}

@media (max-width: 600px) {
    .section {
        padding: 5rem 0;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    .logo {
        width: 120px;
        height: 120px;
    }
    
    .brand-name {
        font-size: 1.5rem;
        letter-spacing: 0.4em;
    }
    
    .about-features {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .jara-highlight {
        padding: 1.5rem;
    }
}

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

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

/* Price Info */
.price-info {
    text-align: center;
    font-size: 1.25rem;
    color: var(--color-accent);
    font-family: var(--font-heading);
    letter-spacing: 0.1em;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Pricing Tiers */
.pricing-info {
    margin: 2rem 0 1.5rem;
    text-align: center;
}

.pricing-tiers {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.pricing-tier {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    min-width: 100px;
    transition: all 0.3s ease;
}

.pricing-tier.featured {
    border-color: var(--color-accent);
    background: rgba(255, 195, 11, 0.08);
    position: relative;
}

.tier-badge {
    position: absolute;
    top: -10px;
    background: var(--color-accent);
    color: var(--color-background);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 10px;
    letter-spacing: 0.05em;
}

.tier-price {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
}

.pricing-tier.featured .tier-price {
    color: var(--color-accent);
}

.tier-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.25rem;
}

.pricing-note {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    font-style: italic;
}

@media (max-width: 480px) {
    .pricing-tiers {
        gap: 1rem;
    }
    
    .pricing-tier {
        padding: 0.75rem 1rem;
        min-width: 85px;
    }
    
    .tier-price {
        font-size: 1.25rem;
    }
}

/* Active pricing tier */
.pricing-tier.active {
    border-color: var(--color-accent);
    background: rgba(255, 195, 11, 0.1);
}

.pricing-tier.active .tier-price {
    color: var(--color-accent);
}

/* Order total display */
.order-total {
    margin-top: 1.25rem;
    padding: 1rem;
    background: rgba(255, 195, 11, 0.1);
    border-radius: 6px;
    font-size: 1rem;
}

.total-label {
    color: rgba(255, 255, 255, 0.7);
}

.total-amount {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-accent);
}

.total-savings {
    color: #7cb342;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Hero CTA Button */
.hero-cta {
    display: inline-block;
    margin-top: 2.5rem;
    padding: 1rem 2.5rem;
    background: var(--color-accent);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-decoration: none;
    text-transform: uppercase;
    border: 2px solid var(--color-accent);
    transition: all 0.3s ease;
}

.hero-cta:hover {
    background: #e5af0a;
    border-color: #e5af0a;
    color: #fff;
}

/* Jara illustration image */
.jara-illustration img {
    max-width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: contain;
}

/* Max quantity notice */
.max-quantity-notice {
    font-size: 0.8rem;
    color: var(--color-accent);
    text-align: center;
    margin-top: 0.75rem;
    margin-bottom: 0;
    padding: 0.5rem 1rem;
    background: rgba(255, 195, 11, 0.08);
    border-radius: 6px;
    border: 1px solid rgba(255, 195, 11, 0.15);
}

/* Mountains image */
.mountains img {
    width: 100%;
    height: auto;
    max-width: 500px;
}

/* Organic Seal */
.organic-seal {
    position: absolute;
    top: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeInUp 1s ease-out 1.2s backwards;
}

.seal-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
}

.seal-subtext {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--color-text);
    margin-top: 4px;
}

@media (max-width: 768px) {
    .organic-seal {
        top: 1rem;
        right: 1rem;
    }
    
    .seal-text {
        font-size: 1.25rem;
    }
    
    .seal-subtext {
        font-size: 0.55rem;
    }
}
