/* ============================================
   MINNEOLA - Premium Coffee Experience
   Professional UI/UX Design System
   ============================================ */

/* === BASE RESET & VARIABLES === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Premium Color Palette */
    --coffee-dark: #1c1614;
    --coffee: #2e2420;
    --coffee-light: #5c4d44;
    --coffee-muted: #8b7b72;
    --cream: #faf8f5;
    --cream-dark: #f0ebe4;
    --cream-muted: #e5ddd3;
    --gold: #b8956c;
    --gold-light: #d4b896;
    --gold-muted: rgba(184, 149, 108, 0.15);
    --white: #ffffff;
    --black: #0f0d0c;
    
    /* Refined Gradients */
    --gradient-hero: linear-gradient(165deg, #faf8f5 0%, #f0ebe4 40%, #e5ddd3 100%);
    --gradient-dark: linear-gradient(165deg, #1c1614 0%, #2e2420 100%);
    --gradient-gold: linear-gradient(135deg, #b8956c 0%, #d4b896 100%);
    --gradient-subtle: linear-gradient(180deg, rgba(184, 149, 108, 0.08) 0%, rgba(184, 149, 108, 0) 100%);
    
    /* Typography - Professional Pairing */
    --font-display: 'DM Serif Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Type Scale */
    --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.8rem);
    --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 0.95rem);
    --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
    --text-lg: clamp(1.125rem, 1rem + 0.5vw, 1.25rem);
    --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
    --text-2xl: clamp(1.5rem, 1.25rem + 1.25vw, 2rem);
    --text-3xl: clamp(2rem, 1.5rem + 2.5vw, 3rem);
    --text-4xl: clamp(2.5rem, 1.75rem + 3.75vw, 4rem);
    --text-5xl: clamp(3rem, 2rem + 5vw, 5.5rem);
    
    /* Spacing System */
    --space-xs: clamp(4px, 0.5vw, 8px);
    --space-sm: clamp(8px, 1vw, 16px);
    --space-md: clamp(16px, 2vw, 24px);
    --space-lg: clamp(24px, 3vw, 40px);
    --space-xl: clamp(40px, 5vw, 64px);
    --space-2xl: clamp(64px, 8vw, 120px);
    --section-padding: clamp(80px, 12vw, 160px);
    
    /* Premium Shadows */
    --shadow-xs: 0 1px 2px rgba(28, 22, 20, 0.04);
    --shadow-sm: 0 2px 8px rgba(28, 22, 20, 0.06);
    --shadow-md: 0 8px 24px rgba(28, 22, 20, 0.08);
    --shadow-lg: 0 16px 48px rgba(28, 22, 20, 0.1);
    --shadow-xl: 0 24px 64px rgba(28, 22, 20, 0.12);
    --shadow-glow: 0 0 80px rgba(184, 149, 108, 0.2);
    --shadow-inner: inset 0 2px 4px rgba(28, 22, 20, 0.04);
    
    /* Transitions - Refined Easings */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 200ms;
    --duration-base: 400ms;
    --duration-slow: 600ms;
    --duration-slower: 1000ms;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    --radius-full: 9999px;
}

html {
    font-size: 16px;
}

html.lenis, html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--coffee);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: 'kern' 1, 'liga' 1;
}

/* Selection */
::selection {
    background: var(--gold-muted);
    color: var(--coffee-dark);
}

/* Smooth images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* === TYPOGRAPHY UTILITIES === */
.text-balance {
    text-wrap: balance;
}

/* === PRELOADER === */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--coffee-dark);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    text-align: center;
    color: var(--cream);
}

.coffee-loader {
    position: relative;
    width: 60px;
    height: 50px;
    margin: 0 auto 20px;
}

.cup-loader {
    width: 50px;
    height: 40px;
    background: var(--gold);
    border-radius: 0 0 25px 25px;
    position: relative;
    margin: 0 auto;
}

.cup-loader::after {
    content: '';
    position: absolute;
    right: -15px;
    top: 8px;
    width: 15px;
    height: 25px;
    border: 3px solid var(--gold);
    border-left: none;
    border-radius: 0 15px 15px 0;
}

.steam-loader {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
}

.steam-loader span {
    width: 4px;
    height: 15px;
    background: var(--gold-light);
    border-radius: 2px;
    animation: steam 1s infinite ease-in-out;
    opacity: 0.6;
}

.steam-loader span:nth-child(2) { animation-delay: 0.2s; }
.steam-loader span:nth-child(3) { animation-delay: 0.4s; }

@keyframes steam {
    0%, 100% { transform: translateY(0) scaleY(1); opacity: 0.6; }
    50% { transform: translateY(-10px) scaleY(1.2); opacity: 0.3; }
}

.loader p {
    font-size: 0.875rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.7;
}

/* === CANVAS BACKGROUND === */
#beansCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
}

/* === NAVIGATION === */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s var(--ease-out);
}

.nav.scrolled {
    background: rgba(250, 248, 245, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 15px 0;
    box-shadow: var(--shadow-sm);
}

.nav.nav-hidden {
    transform: translateY(-100%);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--coffee-dark);
}

.nav-logo .logo-icon {
    width: 40px;
    height: 40px;
    color: var(--gold);
}

.nav-logo span {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: var(--coffee-light);
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s var(--ease-out);
}

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

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--coffee-dark);
    color: var(--cream);
    text-decoration: none;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s var(--ease-out);
}

.nav-cta svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s var(--ease-out);
}

.nav-cta:hover {
    background: var(--coffee);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.nav-cta:hover svg {
    transform: translateX(4px);
}

/* === HERO SECTION === */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    padding: 120px 40px 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    will-change: transform;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-muted) 100%);
    top: -200px;
    right: -100px;
    opacity: 0.25;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--cream-muted);
    bottom: -100px;
    left: -100px;
    opacity: 0.5;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: var(--gold);
    top: 50%;
    left: 30%;
    opacity: 0.15;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: var(--white);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--coffee);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
}

.hero-title {
    font-family: var(--font-display);
    font-size: var(--text-5xl);
    font-weight: 400;
    line-height: 1.05;
    margin-bottom: 28px;
    color: var(--coffee-dark);
    letter-spacing: -0.02em;
}

.title-line {
    display: block;
    overflow: hidden;
}

.title-line.accent {
    color: var(--gold);
    font-style: italic;
}

.word {
    display: inline-block;
    transform: translateY(110%);
    opacity: 0;
}

.hero.visible .word,
[data-animate].visible .word {
    animation: wordReveal 1s var(--ease-out) forwards;
}

.word:nth-child(1) { animation-delay: 0s; }
.word:nth-child(2) { animation-delay: 0.08s; }
.word:nth-child(3) { animation-delay: 0.16s; }

.title-line:nth-child(2) .word {
    animation-delay: calc(0.15s + var(--word-index, 0) * 0.08s);
}

@keyframes wordReveal {
    to { 
        transform: translateY(0);
        opacity: 1;
    }
}

.hero-desc {
    font-size: var(--text-lg);
    color: var(--coffee-muted);
    max-width: 480px;
    margin-bottom: 40px;
    line-height: 1.75;
    font-weight: 400;
}

.hero-cta {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
}

.btn-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 18px 32px;
    background: var(--coffee-dark);
    color: var(--cream);
    text-decoration: none;
    border-radius: 100px;
    font-weight: 500;
    overflow: hidden;
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.btn-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-gold);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-text {
    position: relative;
    z-index: 1;
}

.btn-price {
    position: relative;
    z-index: 1;
    padding: 6px 14px;
    background: rgba(255,255,255,0.15);
    border-radius: 100px;
    font-size: 0.875rem;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover .btn-bg {
    opacity: 1;
}

.btn-primary:hover .btn-text,
.btn-primary:hover .btn-price {
    color: var(--coffee-dark);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 8px;
    color: var(--coffee-dark);
    text-decoration: none;
    font-weight: 500;
}

.btn-circle {
    width: 44px;
    height: 44px;
    border: 2px solid var(--coffee-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease-out);
}

.btn-circle svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s var(--ease-out);
}

.btn-ghost:hover .btn-circle {
    background: var(--coffee-dark);
    color: var(--cream);
}

.btn-ghost:hover .btn-circle svg {
    transform: translate(2px, -2px);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 48px;
}

.stat {
    text-align: left;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--coffee-dark);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--coffee-light);
    margin-top: 4px;
}

/* Product Scene */
.product-scene {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scene-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--gold-light) 0%, transparent 70%);
    opacity: 0.4;
    filter: blur(40px);
    z-index: 0;
}

.product-card {
    position: relative;
    width: 320px;
    height: 420px;
    perspective: 1000px;
    z-index: 1;
}

.card-inner {
    width: 100%;
    height: 100%;
    transition: transform 0.6s var(--ease-out);
    transform-style: preserve-3d;
}

.card-front {
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
}

.package-visual {
    width: 100%;
    height: 100%;
    background: var(--gradient-dark);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.package-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 30% 20%, rgba(201, 168, 108, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(201, 168, 108, 0.08) 0%, transparent 40%);
}

.package-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: var(--cream);
    text-align: center;
}

.package-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(180deg, rgba(201, 168, 108, 0.2) 0%, transparent 100%);
}

.seal {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 20px;
    background: var(--gold);
    border-radius: 4px;
}

.package-brand {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.package-type {
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 30px;
}

.package-icon {
    width: 80px;
    height: 80px;
    color: var(--gold);
    opacity: 0.8;
    margin-bottom: 30px;
}

.package-weight {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gold);
}

.package-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: skewX(-20deg);
    animation: shine 4s infinite;
}

@keyframes shine {
    0%, 100% { left: -100%; }
    50% { left: 150%; }
}

/* Floating Elements */
.floating-bean {
    position: absolute;
    width: 20px;
    height: 28px;
    background: var(--coffee);
    border-radius: 50%;
    opacity: 0.8;
}

.floating-bean::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-20deg);
    width: 60%;
    height: 2px;
    background: rgba(0,0,0,0.3);
    border-radius: 2px;
}

.bean-1 { top: -30px; left: -40px; animation: floatBean 6s infinite ease-in-out; }
.bean-2 { top: 50%; right: -50px; animation: floatBean 8s infinite ease-in-out 1s; }
.bean-3 { bottom: -20px; left: -30px; animation: floatBean 7s infinite ease-in-out 2s; }

@keyframes floatBean {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(15px, -20px) rotate(15deg); }
}

.floating-star {
    position: absolute;
    font-size: 1.5rem;
    color: var(--gold);
    animation: floatStar 5s infinite ease-in-out;
}

.star-1 { top: 20%; right: -60px; }
.star-2 { bottom: 30%; left: -50px; animation-delay: 2s; }

@keyframes floatStar {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.6; }
    50% { transform: translateY(-15px) rotate(180deg); opacity: 1; }
}

/* Product Info Tags */
.product-info {
    display: flex;
    gap: 12px;
    margin-top: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.info-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--white);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--coffee);
    box-shadow: var(--shadow-sm);
}

.tag-icon {
    font-size: 1rem;
}

/* Scroll Hint */
.scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--coffee-light);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(180deg, var(--coffee-light), transparent);
    animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    50.1% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* === STORY SECTION === */
.story {
    padding: var(--section-padding) 40px;
    background: var(--white);
    position: relative;
}

.story-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.story-visual {
    position: relative;
}

.visual-frame {
    position: relative;
    background: var(--cream);
    border-radius: 24px;
    padding: 60px;
    box-shadow: var(--shadow-md);
}

.frame-content {
    position: relative;
    z-index: 1;
}

.coffee-origin {
    text-align: center;
}

.origin-map {
    margin-bottom: 30px;
}

.map-svg {
    width: 100%;
    max-width: 350px;
    height: auto;
    color: var(--gold);
}

.map-path {
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
    animation: drawPath 3s var(--ease-out) forwards;
}

@keyframes drawPath {
    to { stroke-dashoffset: 0; }
}

.map-point {
    fill: var(--gold);
    animation: pointPulse 2s infinite;
}

@keyframes pointPulse {
    0%, 100% { r: 8; }
    50% { r: 12; }
}

.origin-labels {
    display: flex;
    justify-content: space-between;
}

.origin-label {
    text-align: center;
}

.origin-label .country {
    display: block;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--coffee-dark);
}

.origin-label .region {
    font-size: 0.85rem;
    color: var(--coffee-light);
}

.frame-decoration {
    position: absolute;
    inset: 20px;
    border: 1px solid var(--gold-light);
    border-radius: 16px;
    pointer-events: none;
}

.frame-decoration span {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
}

.frame-decoration span:nth-child(1) { top: -4px; left: -4px; }
.frame-decoration span:nth-child(2) { top: -4px; right: -4px; }
.frame-decoration span:nth-child(3) { bottom: -4px; left: -4px; }
.frame-decoration span:nth-child(4) { bottom: -4px; right: -4px; }

.story-content {
    padding-right: 40px;
}

.section-tag {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
    position: relative;
    padding-left: 20px;
}

.section-tag::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 1px;
    background: var(--gold);
}

.section-tag.light {
    color: var(--gold-light);
}

.section-tag.light::before {
    background: var(--gold-light);
}

.section-title {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 400;
    line-height: 1.1;
    color: var(--coffee-dark);
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.section-title.light {
    color: var(--cream);
}

.section-title .highlight {
    color: var(--gold);
    font-style: italic;
}

.section-desc {
    font-size: var(--text-base);
    color: var(--coffee-muted);
    line-height: 1.75;
    margin-bottom: 40px;
}

.story-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--cream);
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    transition: 
        transform 0.4s var(--ease-out), 
        box-shadow 0.4s var(--ease-out),
        border-color 0.4s var(--ease-out);
}

.feature:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold-muted);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--white);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    flex-shrink: 0;
    box-shadow: var(--shadow-xs);
}

.feature-icon svg {
    width: 22px;
    height: 22px;
}

.feature-text strong {
    display: block;
    font-weight: 600;
    color: var(--coffee-dark);
    margin-bottom: 4px;
    font-size: var(--text-sm);
}

.feature-text span {
    font-size: var(--text-xs);
    color: var(--coffee-muted);
}

/* === TASTE SECTION === */
.taste {
    padding: var(--section-padding) 40px;
    position: relative;
    overflow: hidden;
}

.taste-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-dark);
}

.taste-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(201, 168, 108, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(201, 168, 108, 0.1) 0%, transparent 40%);
}

.taste-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

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

/* Taste Wheel */
.taste-wheel-container {
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
}

.taste-wheel {
    position: relative;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 2px solid rgba(201, 168, 108, 0.2);
}

.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: var(--cream);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 10;
    box-shadow: var(--shadow-glow);
}

.center-text {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--coffee-dark);
    line-height: 1.3;
}

.wheel-segment {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50%;
    height: 2px;
    transform-origin: left center;
    transform: rotate(calc(var(--i) * 72deg - 90deg));
}

.segment-content {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%) rotate(calc(var(--i) * -72deg + 90deg));
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s var(--ease-out);
    cursor: pointer;
}

.segment-content:hover {
    background: var(--color);
    transform: translateY(-50%) rotate(calc(var(--i) * -72deg + 90deg)) scale(1.1);
}

.segment-icon {
    font-size: 1.5rem;
}

.segment-name {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--cream);
    white-space: nowrap;
}

/* Taste Meters */
.taste-meters {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.meter {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.meter-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.meter-label {
    font-size: 0.9rem;
    color: var(--cream);
}

.meter-value {
    font-weight: 600;
    color: var(--gold);
}

.meter-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.meter-fill {
    height: 100%;
    background: var(--gradient-gold);
    border-radius: 3px;
    width: 0;
    transition: width 1.5s var(--ease-out);
}

/* === DETAILS SECTION === */
.details {
    padding: var(--section-padding) 40px;
    background: var(--cream);
}

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

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

.details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.detail-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: 
        transform 0.5s var(--ease-out),
        box-shadow 0.5s var(--ease-out),
        border-color 0.5s var(--ease-out);
    border: 1px solid var(--cream-dark);
}

.detail-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold-muted);
}

.detail-card.large {
    grid-column: span 1;
    background: var(--gradient-dark);
    color: var(--cream);
    border-color: transparent;
}

.detail-card.large h3 {
    color: var(--gold);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 16px;
    display: block;
}

.detail-card h3 {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 400;
    margin-bottom: 8px;
    color: var(--coffee-dark);
}

.detail-card p {
    font-size: var(--text-sm);
    color: var(--coffee-muted);
}

.detail-card.large p {
    color: rgba(250, 248, 245, 0.6);
}

/* === INGREDIENTS TABLE === */
.ingredients-table {
    margin-top: 60px;
    background: var(--gradient-dark);
    border-radius: var(--radius-xl);
    padding: 48px;
    color: var(--cream);
}

.ingredients-table h3 {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 400;
    margin-bottom: 28px;
    color: var(--gold);
    text-align: center;
}

.ingredients-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.ingredient {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: 
        background 0.3s var(--ease-out),
        border-color 0.3s var(--ease-out),
        transform 0.3s var(--ease-out);
}

.ingredient:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(184, 149, 108, 0.3);
    transform: translateX(4px);
}

.ingredient-name {
    font-weight: 500;
    color: var(--cream);
    font-size: var(--text-sm);
}

.ingredient-value {
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: 400;
    color: var(--gold);
    background: rgba(184, 149, 108, 0.12);
    padding: 4px 14px;
    border-radius: var(--radius-full);
}

/* === ORDER SECTION === */
.order {
    padding: var(--section-padding) 40px;
    background: var(--white);
}

.order-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: start;
}

.order-left {
    position: sticky;
    top: 120px;
}

.order-product {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: var(--cream);
    border-radius: 20px;
    margin-bottom: 24px;
}

.product-image {
    width: 80px;
    height: 100px;
    flex-shrink: 0;
}

.mini-package {
    width: 100%;
    height: 100%;
    background: var(--gradient-dark);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mini-brand {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
}

.product-details h4 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.product-details p {
    font-size: 0.85rem;
    color: var(--coffee-light);
    margin-bottom: 8px;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-price .current {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--coffee-dark);
}

.product-price .old {
    font-size: 1rem;
    color: var(--coffee-light);
    text-decoration: line-through;
}

.product-price .discount {
    padding: 4px 10px;
    background: #dcfce7;
    color: #16a34a;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
}

.quantity-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: var(--cream);
    border-radius: 16px;
    margin-bottom: 24px;
}

.qty-label {
    font-weight: 500;
    color: var(--coffee-light);
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: 2px solid var(--cream-dark);
    background: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.qty-btn:hover {
    border-color: var(--gold);
    background: var(--gold);
}

.qty-btn:hover svg {
    stroke: var(--white);
}

.qty-btn svg {
    width: 18px;
    height: 18px;
    stroke: var(--coffee);
}

.qty-value {
    font-size: 1.25rem;
    font-weight: 600;
    min-width: 40px;
    text-align: center;
}

.qty-total {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.qty-total span:first-child {
    font-size: 0.8rem;
    color: var(--coffee-light);
}

.total-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--coffee-dark);
}

.guarantees {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.guarantee {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--coffee-light);
}

.guarantee svg {
    width: 20px;
    height: 20px;
    color: var(--gold);
}

/* Order Form */
.order-form {
    background: var(--cream);
    border-radius: var(--radius-xl);
    padding: 44px;
    border: 1px solid var(--cream-dark);
}

.form-header {
    margin-bottom: 36px;
}

.form-header h3 {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 400;
    margin-bottom: 8px;
    color: var(--coffee-dark);
}

.form-header p {
    font-size: var(--text-sm);
    color: var(--coffee-muted);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

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

.form-group.full {
    grid-column: span 2;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 0;
    border: none;
    border-bottom: 1px solid var(--cream-muted);
    background: transparent;
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--coffee-dark);
    transition: border-color 0.4s var(--ease-out);
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.form-group label {
    position: absolute;
    left: 0;
    top: 16px;
    font-size: var(--text-sm);
    color: var(--coffee-muted);
    pointer-events: none;
    transition: all 0.4s var(--ease-out);
}

.form-group input:focus ~ label,
.form-group input.has-value ~ label,
.form-group textarea:focus ~ label,
.form-group textarea.has-value ~ label {
    top: -10px;
    font-size: var(--text-xs);
    color: var(--gold);
}

.input-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-gold);
    transition: width 0.4s var(--ease-out);
}

.form-group input:focus ~ .input-line,
.form-group textarea:focus ~ .input-line {
    width: 100%;
}

.form-group.focused label {
    color: var(--gold);
}

.submit-btn {
    width: 100%;
    padding: 18px;
    background: var(--coffee-dark);
    color: var(--cream);
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 500;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: 
        background 0.4s var(--ease-out),
        transform 0.4s var(--ease-out),
        box-shadow 0.4s var(--ease-out);
}

.submit-btn:hover {
    background: var(--coffee);
    box-shadow: var(--shadow-lg);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-content svg {
    width: 18px;
    height: 18px;
    transition: transform 0.4s var(--ease-out);
}

.submit-btn:hover .btn-content svg {
    transform: translateX(4px);
}

.btn-loader {
    display: none;
}

.submit-btn.loading .btn-content {
    display: none;
}

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

.btn-loader svg {
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

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

/* === MODAL === */
.modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal.active {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    background: var(--white);
    border-radius: 24px;
    padding: 50px;
    max-width: 420px;
    text-align: center;
    animation: scaleIn 0.4s var(--ease-out);
}

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

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    color: #22c55e;
}

.success-icon svg {
    width: 100%;
    height: 100%;
}

.success-icon circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: drawCircle 0.6s var(--ease-out) forwards;
}

.success-icon path {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: drawCheck 0.4s var(--ease-out) 0.6s forwards;
}

@keyframes drawCircle {
    to { stroke-dashoffset: 0; }
}

@keyframes drawCheck {
    to { stroke-dashoffset: 0; }
}

.modal-content h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    margin-bottom: 12px;
}

.modal-content p {
    color: var(--coffee-light);
    margin-bottom: 20px;
}

.order-ref {
    padding: 12px 20px;
    background: var(--cream);
    border-radius: 12px;
    font-weight: 600;
    margin-bottom: 24px;
}

.order-ref span {
    color: var(--gold);
}

.modal-close {
    padding: 14px 40px;
    background: var(--coffee-dark);
    color: var(--cream);
    border: none;
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
}

.modal-close:hover {
    background: var(--coffee);
    transform: translateY(-2px);
}

/* === FOOTER === */
.footer {
    background: var(--coffee-dark);
    color: var(--cream);
    padding-top: 60px;
    position: relative;
}

.footer-wave {
    position: absolute;
    top: -60px;
    left: 0;
    right: 0;
    color: var(--coffee-dark);
}

.footer-wave svg {
    display: block;
    width: 100%;
    height: 60px;
}

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

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--cream);
    margin-bottom: 16px;
}

.footer-logo .logo-icon {
    width: 40px;
    height: 40px;
    color: var(--gold);
}

.footer-logo span {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
}

.footer-brand p {
    color: rgba(245, 240, 232, 0.7);
    max-width: 300px;
    line-height: 1.7;
}

.footer-links h4 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    margin-bottom: 20px;
}

.footer-links a {
    display: block;
    color: rgba(245, 240, 232, 0.7);
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

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

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease-out);
}

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

.social-links svg {
    width: 18px;
    height: 18px;
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
    font-size: var(--text-sm);
    color: rgba(250, 248, 245, 0.4);
}

/* === SCROLL REVEAL ANIMATIONS === */
[data-animate] {
    opacity: 0;
    transform: translateY(40px);
    transition: 
        opacity 0.9s var(--ease-out), 
        transform 0.9s var(--ease-out);
    will-change: opacity, transform;
}

[data-animate="fade-left"] {
    transform: translateX(60px);
}

[data-animate="fade-right"] {
    transform: translateX(-60px);
}

[data-animate="zoom-in"] {
    transform: scale(0.92);
}

[data-animate="fade-up"] {
    transform: translateY(50px);
}

[data-animate].visible {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Stagger animation for grids */
.details-grid [data-animate].visible,
.story-features [data-animate].visible {
    transition-delay: calc(var(--stagger, 0) * 0.1s);
}

/* === MAGNETIC BUTTON EFFECT === */
.btn-primary,
.nav-cta,
.submit-btn {
    transition: 
        transform 0.4s var(--ease-out),
        box-shadow 0.4s var(--ease-out),
        background 0.4s var(--ease-out);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-left {
        order: 2;
    }
    
    .hero-right {
        order: 1;
        margin-bottom: 40px;
    }
    
    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .story-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .story-content {
        padding-right: 0;
    }
    
    .taste-wheel {
        width: 320px;
        height: 320px;
    }
    
    .taste-meters {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .details-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .order-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .order-left {
        position: static;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero {
        padding: 100px 24px 60px;
    }
    
    .product-card {
        width: 260px;
        height: 340px;
    }
    
    .taste-meters {
        grid-template-columns: 1fr;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-group.full {
        grid-column: span 1;
    }
}
