/* ==========================================================================
   CULTURECRATE REDESIGNED STYLE SHEET (LIGHT LUXURY BRANDING)
   ========================================================================== */

/* Design Tokens / Variables */
:root {
    /* Logo Colors & Brand Palette */
    --teal: hsl(177, 68%, 37%);
    --teal-dark: hsl(177, 68%, 27%);
    --teal-light: hsl(177, 55%, 47%);
    --teal-glow: rgba(31, 163, 157, 0.15);
    
    --orange: hsl(33, 80%, 49%);
    --orange-dark: hsl(33, 80%, 39%);
    --orange-light: hsl(33, 85%, 59%);
    --orange-glow: rgba(227, 135, 25, 0.2);
    
    --gold: hsl(42, 100%, 55%);
    --gold-light: hsl(42, 100%, 65%);
    
    /* Backgrounds & Surfaces (Warm Cream Luxury Editorial Theme) */
    --bg-dark: hsl(38, 20%, 94%); /* Main Cream Background */
    --bg-surface: hsl(0, 0%, 100%); /* Solid White */
    --bg-surface-elevated: hsl(38, 15%, 97%); /* Very Soft Cream-White */
    --border-color: rgba(31, 163, 157, 0.15);
    --border-color-glow: rgba(227, 135, 25, 0.25);

    /* Text Colors */
    --text-primary: hsl(177, 10%, 18%); /* Deep Charcoal with Teal tint */
    --text-secondary: hsl(177, 8%, 38%);
    --text-muted: hsl(177, 6%, 55%);
    --text-light: hsl(38, 20%, 96%); /* Used on dark panels only */
    --text-dark: hsl(177, 10%, 12%);

    /* Fonts */
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* Layout & Effects */
    --border-radius-sm: 6px;
    --border-radius-md: 12px;
    --border-radius-lg: 24px;
    --box-shadow: 0 10px 40px -10px rgba(31, 163, 157, 0.12), 0 2px 10px rgba(0, 0, 0, 0.03);
    --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Base resets & scrollbars */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    /* Intricate background vector pattern (Traditional geometric lattice look) */
    background-image: 
        radial-gradient(circle at 100% 150%, transparent 24%, rgba(31, 163, 157, 0.02) 24%, rgba(31, 163, 157, 0.02) 28%, transparent 28%, transparent),
        radial-gradient(circle at 0% 150%, transparent 24%, rgba(31, 163, 157, 0.02) 24%, rgba(31, 163, 157, 0.02) 28%, transparent 28%, transparent),
        linear-gradient(45deg, transparent 46%, rgba(31, 163, 157, 0.015) 46%, rgba(31, 163, 157, 0.015) 54%, transparent 54%),
        linear-gradient(-45deg, transparent 46%, rgba(31, 163, 157, 0.015) 46%, rgba(31, 163, 157, 0.015) 54%, transparent 54%);
    background-size: 60px 60px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--teal);
    border-radius: var(--border-radius-sm);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--orange);
}

/* Typography elements */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-dark);
}

p {
    color: var(--text-secondary);
}

/* Utilities */
.badge {
    background: rgba(31, 163, 157, 0.08);
    color: var(--teal);
    border: 1px solid rgba(31, 163, 157, 0.2);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.78rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.06em;
    display: inline-block;
    margin-bottom: 15px;
}

.text-truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

/* Buttons */
.btn {
    font-family: var(--font-sans);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-smooth);
    padding: 11px 22px;
    font-size: 0.95rem;
}

.btn-lg {
    padding: 15px 30px;
    font-size: 1rem;
    border-radius: var(--border-radius-md);
}

.btn-sm {
    padding: 7px 14px;
    font-size: 0.8rem;
}

.btn-primary {
    background: var(--teal);
    color: var(--text-light);
    box-shadow: 0 4px 12px rgba(31, 163, 157, 0.2);
}
.btn-primary:hover {
    background: var(--teal-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(31, 163, 157, 0.35);
}

.btn-secondary {
    background: var(--orange);
    color: var(--text-light);
    box-shadow: 0 4px 12px rgba(227, 135, 25, 0.15);
}
.btn-secondary:hover {
    background: var(--orange-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(227, 135, 25, 0.35);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--teal);
}
.btn-outline:hover {
    background: rgba(31, 163, 157, 0.05);
    border-color: var(--teal);
    transform: translateY(-2px);
}

.btn-block {
    display: width;
    width: 100%;
}

/* Glassmorphism Surface Container (Light Version) */
.glassmorphism {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    box-shadow: var(--box-shadow);
}

/* Header & Navigation */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    position: sticky;
    top: 0;
    background: rgba(244, 241, 236, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
}
.logo-svg {
    width: 32px;
    height: 32px;
}
.logo-text {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}
.text-culture {
    color: var(--teal);
}
.text-crate {
    color: var(--orange);
}

.nav-menu {
    display: flex;
    gap: 15px;
}

.nav-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    padding: 8px 16px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    cursor: pointer;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}
.nav-btn:hover {
    color: var(--teal);
    background: rgba(31, 163, 157, 0.04);
}
.nav-btn.active {
    color: var(--teal);
    background: rgba(31, 163, 157, 0.08);
    font-weight: 600;
    border: 1px solid rgba(31, 163, 157, 0.2);
}

.mobile-toggle {
    display: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--text-dark);
}

/* Section Transitions */
.view-section {
    display: none;
    animation: fadeEffect 0.5s ease;
    min-height: calc(100vh - 80px);
}
.view-section.active-view {
    display: block;
}

@keyframes fadeEffect {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 1. LANDING VIEW */
.hero {
    position: relative;
    height: 520px;
    display: flex;
    align-items: center;
    padding: 0 8%;
    overflow: hidden;
    margin-bottom: 60px;
    border-bottom: 1px solid var(--border-color);
}
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Warm cream overlay gradient */
    background: linear-gradient(90deg, rgba(244,241,236,0.98) 25%, rgba(244,241,236,0.85) 60%, rgba(244,241,236,0.2) 100%);
    z-index: 2;
}
.hero-content {
    position: relative;
    z-index: 3;
    max-width: 650px;
}
.hero h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 20px;
    color: var(--text-dark);
}
.hero h1 span {
    color: var(--teal);
}
.hero-subtext {
    font-size: 1.15rem;
    margin-bottom: 30px;
    color: var(--text-secondary);
}
.hero-actions {
    display: flex;
    gap: 15px;
}

/* Value Props */
.features-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 0 8%;
    margin-bottom: 80px;
}
.feature-card {
    background: var(--bg-surface);
    padding: 35px 30px;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(31, 163, 157, 0.04);
    transition: var(--transition-smooth);
}
.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--orange-glow);
    box-shadow: var(--box-shadow);
}
.feature-icon {
    color: var(--teal);
    font-size: 2.2rem;
    margin-bottom: 20px;
}
.feature-card h3 {
    margin-bottom: 12px;
}

/* Tiers Section */
.section-container {
    padding: 60px 8%;
}
.section-header {
    text-align: center;
    margin-bottom: 50px;
}
.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.tiers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
}
.tier-card {
    background: var(--bg-surface);
    border-radius: var(--border-radius-md);
    padding: 40px 30px;
    border: 1px solid var(--border-color);
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(31, 163, 157, 0.04);
    transition: var(--transition-smooth);
}
.tier-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
    border-color: var(--teal);
}
.tier-card.recommended {
    border-color: var(--orange);
    background: linear-gradient(180deg, var(--bg-surface) 0%, rgba(227,135,25,0.02) 100%);
    box-shadow: 0 10px 40px -10px rgba(227, 135, 25, 0.15);
    transform: scale(1.03);
}
.tier-card.recommended:hover {
    transform: scale(1.03) translateY(-5px);
    box-shadow: 0 15px 45px -10px rgba(227, 135, 25, 0.25);
}
.tier-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(31, 163, 157, 0.05);
    border: 1px solid var(--border-color);
    padding: 4px 12px;
    font-size: 0.7rem;
    border-radius: 50px;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--teal);
}
.tier-card.recommended .tier-badge {
    background: rgba(227, 135, 25, 0.1);
    color: var(--orange);
    border-color: rgba(227, 135, 25, 0.3);
}
.tier-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}
.price {
    display: flex;
    align-items: baseline;
    margin-bottom: 25px;
}
.price .currency {
    font-size: 1.5rem;
    color: var(--teal);
    align-self: flex-start;
}
.price .amt {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1;
    color: var(--text-dark);
}
.price .period {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-left: 5px;
}
.tier-desc {
    font-size: 0.95rem;
    margin-bottom: 30px;
    min-height: 70px;
}
.tier-list {
    list-style: none;
    margin-bottom: 35px;
    flex-grow: 1;
}
.tier-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}
.tier-list li i.fa-check {
    color: var(--teal-light);
}
.tier-list li.disabled {
    color: var(--text-muted);
    text-decoration: line-through;
    opacity: 0.55;
}
.tier-list li i.fa-xmark {
    color: var(--orange);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 53, 49, 0.5); /* Semi-transparent warm charcoal */
    z-index: 200;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.modal-content {
    width: 100%;
    max-width: 550px;
    border-radius: var(--border-radius-md);
    padding: 35px;
    position: relative;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 20px 60px rgba(31, 163, 157, 0.2);
    border: 1px solid var(--border-color);
    animation: zoomIn 0.3s ease;
}
@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
.close-modal, .close-address-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}
.close-modal:hover, .close-address-modal:hover {
    color: var(--text-dark);
}
.modal h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}
.modal .subtitle {
    margin-bottom: 25px;
    font-size: 0.95rem;
    color: var(--text-muted);
}
.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}
.price-calc strong {
    font-size: 1.4rem;
    color: var(--orange);
}

/* Forms controls */
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}
.form-control {
    width: 100%;
    background: rgba(255,255,255,0.7);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px 16px;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}
.form-control:focus {
    outline: none;
    border-color: var(--orange);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(227, 135, 25, 0.08);
}
.form-help {
    display: block;
    margin-top: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
}
.address-inputs input {
    margin-bottom: 10px;
}

/* 2. SOURCING & CURATION SECTION */
.curation-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}
.curation-card {
    background: var(--bg-surface);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(31, 163, 157, 0.04);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}
.curation-card:hover {
    transform: translateY(-5px);
    border-color: var(--teal);
    box-shadow: var(--box-shadow);
}
.curation-img-container {
    height: 250px;
    position: relative;
    overflow: hidden;
}
.curation-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}
.curation-card:hover .curation-img {
    transform: scale(1.05);
}
.matrix-tag {
    position: absolute;
    bottom: 15px;
    left: 15px;
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    text-transform: uppercase;
}
.delicacy-tag {
    background: var(--teal);
    color: var(--text-light);
}
.keepsake-tag {
    background: var(--orange);
    color: var(--text-light);
}
.literature-tag {
    background: var(--gold);
    color: var(--text-dark);
}

.curation-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.curation-body h3 {
    margin-bottom: 8px;
    font-size: 1.4rem;
}
.sourcing-meta {
    font-size: 0.8rem;
    color: var(--teal);
    margin-bottom: 15px;
    font-weight: 600;
}
.curation-text {
    font-size: 0.95rem;
    margin-bottom: 25px;
    flex-grow: 1;
}
.card-extra {
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Sourcing Map Visual */
.sourcing-map-box {
    display: grid;
    grid-template-columns: 4fr 5fr;
    gap: 40px;
    border-radius: var(--border-radius-md);
    padding: 40px;
    align-items: center;
    border: 1px solid var(--border-color);
}
.map-text h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}
.map-text p {
    margin-bottom: 25px;
    font-size: 1rem;
}
.map-svg-container {
    background: rgba(255,255,255,0.6);
    border-radius: var(--border-radius-md);
    padding: 20px;
    border: 1px solid var(--border-color);
}
.sourcing-svg circle {
    stroke: rgba(31, 163, 157, 0.15);
    stroke-width: 2px;
}
.flowing-path {
    stroke-dashoffset: 100;
    animation: flowLines 10s linear infinite;
}
@keyframes flowLines {
    to { stroke-dashoffset: 0; }
}

/* 3. PHYSICAL-TO-DIGITAL LOOP */
.portal-grid {
    display: grid;
    grid-template-columns: 4.5fr 5.5fr;
    gap: 50px;
    padding: 60px 8%;
    align-items: center;
}
.portal-intro h2 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 20px;
}
.portal-intro p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}
.story-card-promo {
    border-radius: var(--border-radius-md);
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.story-card-promo h4 {
    margin-bottom: 20px;
}
.qr-mock {
    width: 140px;
    height: 140px;
    background: #fff;
    padding: 10px;
    border-radius: var(--border-radius-sm);
    color: var(--text-dark);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(31, 163, 157, 0.15);
    border: 1px solid var(--border-color);
}
.scan-line {
    position: absolute;
    width: calc(100% - 20px);
    height: 2px;
    background: var(--orange);
    top: 10px;
    left: 10px;
    box-shadow: 0 0 8px var(--orange);
    animation: scanAnimation 2.5s infinite alternate ease-in-out;
}
@keyframes scanAnimation {
    0% { top: 10px; }
    100% { top: 130px; }
}

/* Mock Phone Frame */
.mock-phone-frame {
    width: 380px;
    height: 720px;
    background: #e2ddd3; /* Soft metal gold/silver */
    border: 12px solid #bda89b;
    border-radius: 40px;
    box-shadow: 0 25px 50px -12px rgba(31, 163, 157, 0.2), 0 0 0 1px rgba(0,0,0,0.05);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 25px;
    background: #bda89b;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    z-index: 10;
}
.phone-screen {
    width: 100%;
    height: 100%;
    background: #fdfdfb;
    display: flex;
    flex-direction: column;
    padding-top: 25px;
}

.portal-app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid rgba(31, 163, 157, 0.08);
}
.portal-app-header .app-logo {
    font-weight: 700;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--teal);
    display: flex;
    align-items: center;
    gap: 8px;
}
.portal-app-header .app-cohort-badge {
    font-size: 0.65rem;
    background: rgba(227, 135, 25, 0.1);
    color: var(--orange);
    padding: 3px 8px;
    border-radius: 50px;
    border: 1px solid rgba(227, 135, 25, 0.25);
    font-weight: 600;
}

.phone-scroll-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.phone-scroll-content::-webkit-scrollbar {
    display: none;
}

.app-banner {
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
    border-radius: var(--border-radius-md);
    padding: 20px;
    color: var(--text-light);
}
.app-banner h3 {
    margin-bottom: 5px;
    font-size: 1.25rem;
    color: var(--text-light);
}
.app-banner p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.85);
}

.app-card {
    background: #fff;
    border: 1px solid rgba(31, 163, 157, 0.1);
    border-radius: var(--border-radius-md);
    padding: 15px;
    box-shadow: 0 4px 15px rgba(31, 163, 157, 0.02);
}
.app-card h4 {
    font-size: 1rem;
    margin-bottom: 2px;
    color: var(--text-dark);
}
.app-card-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

/* Audio Player */
.audio-player-container {
    background: var(--bg-surface-elevated);
    border-radius: var(--border-radius-sm);
    padding: 12px;
    border: 1px solid var(--border-color);
}
.track-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    margin-bottom: 10px;
}
#audio-track-title {
    font-weight: 600;
    color: var(--teal);
}
#audio-track-status {
    color: var(--orange);
    font-weight: 500;
}
.player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 12px;
}
.player-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.player-btn:hover {
    color: var(--teal);
}
.player-btn.play-main {
    background: var(--orange);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    box-shadow: 0 4px 10px rgba(227, 135, 25, 0.2);
}
.player-btn.play-main:hover {
    transform: scale(1.05);
}

.audio-visualizer-bars {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 4px;
    height: 25px;
}
.vis-bar {
    width: 4px;
    height: 3px;
    background: var(--teal-light);
    border-radius: 50px;
    transition: height 0.15s ease;
}
.audio-visualizer-bars.animating .vis-bar {
    animation: barPulse 0.5s ease infinite alternate;
}
.audio-visualizer-bars.animating .vis-bar:nth-child(2n) {
    animation-delay: 0.1s;
    background: var(--orange);
}
.audio-visualizer-bars.animating .vis-bar:nth-child(3n) {
    animation-delay: 0.25s;
    background: var(--gold);
}
@keyframes barPulse {
    0% { height: 3px; }
    100% { height: 22px; }
}

/* Recipes */
.recipe-steps {
    list-style: none;
    margin-bottom: 15px;
}
.recipe-steps li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}
.recipe-checkbox {
    margin-top: 3px;
    accent-color: var(--orange);
    cursor: pointer;
}
.recipe-checkbox:checked + label {
    text-decoration: line-through;
    color: var(--text-muted);
}
.brew-timer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-surface-elevated);
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
}
#timer-display {
    font-family: monospace;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--text-dark);
}

/* Community Feed */
.challenge-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.challenge-status {
    background: rgba(227, 135, 25, 0.04);
    border: 1px solid rgba(227, 135, 25, 0.15);
    padding: 10px;
    border-radius: var(--border-radius-sm);
}
.ch-badge {
    font-size: 0.6rem;
    color: var(--orange);
    font-weight: bold;
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
}
.challenge-status h5 {
    font-size: 0.85rem;
    margin-bottom: 2px;
}
.challenge-status p {
    font-size: 0.75rem;
}
.text-sm {
    font-size: 0.8rem;
    min-height: 60px;
    resize: none;
    margin-bottom: 5px;
}
.challenge-feed {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
    border-top: 1px solid rgba(31, 163, 157, 0.08);
    padding-top: 10px;
}
.feed-entry {
    background: var(--bg-surface-elevated);
    padding: 8px 10px;
    border-radius: var(--border-radius-sm);
    font-size: 0.75rem;
    border: 1px solid var(--border-color);
}
.feed-entry .entry-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}
.feed-entry .time {
    color: var(--text-muted);
}
.feed-entry p {
    color: var(--text-secondary);
}

/* 4. COORDINATE HUB */
.coordinate-dashboard {
    display: grid;
    grid-template-columns: 4fr 6fr;
    gap: 30px;
    padding: 0 8% 60px 8%;
}

.coord-controls {
    border-radius: var(--border-radius-md);
    padding: 30px;
}
.coord-controls h3 {
    font-size: 1.6rem;
    margin-bottom: 20px;
}

.delivery-status-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255,255,255,0.7);
    padding: 12px 18px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 25px;
    border: 1px solid var(--border-color);
}
.status-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    padding: 4px 12px;
    border-radius: 50px;
    background: rgba(0, 0, 0, 0.03);
}
.status-indicator.active {
    background: rgba(31, 163, 157, 0.08);
    color: var(--teal);
    border: 1px solid rgba(31, 163, 157, 0.2);
}
.status-indicator.paused {
    background: rgba(227, 135, 25, 0.08);
    color: var(--orange);
    border: 1px solid rgba(227, 135, 25, 0.25);
}
.status-indicator.pivoted {
    background: rgba(227, 135, 25, 0.08);
    color: var(--orange);
    border: 1px solid rgba(227, 135, 25, 0.25);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: currentColor;
    animation: pulseGlow 1.5s infinite;
}
@keyframes pulseGlow {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(31, 163, 157, 0.5); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(31, 163, 157, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(31, 163, 157, 0); }
}
.status-indicator.paused .pulse-dot {
    animation: none;
}

.settings-toggles {
    margin-bottom: 30px;
}
.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}
.setting-row:last-child {
    border-bottom: none;
}
.setting-info h4 {
    font-size: 1rem;
    margin-bottom: 2px;
}
.setting-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Switch styling */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e5e0d8;
    transition: .4s;
    border: 1px solid var(--border-color);
}
.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text-secondary);
    transition: .4s;
}
input:checked + .slider {
    background-color: var(--teal);
    border-color: var(--teal-light);
}
input:checked + .slider:before {
    transform: translateX(24px);
    background-color: #fff;
}
.slider.round {
    border-radius: 34px;
}
.slider.round:before {
    border-radius: 50%;
}

/* Address Block */
.address-manager {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.address-block {
    background: rgba(255,255,255,0.4);
    border: 1px solid var(--border-color);
    padding: 15px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-smooth);
    opacity: 0.65;
}
.address-block.active {
    opacity: 1;
    border-color: var(--orange);
    background: rgba(227, 135, 25, 0.03);
    box-shadow: 0 4px 15px rgba(227, 135, 25, 0.03);
}
.addr-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}
.address-block p {
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--text-secondary);
}
.edit-addr-btn {
    background: transparent;
    border: none;
    color: var(--teal);
    font-size: 0.75rem;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
}
.edit-addr-btn:hover {
    text-decoration: underline;
}

/* Alert Notification Inside dashboard */
.dashboard-alert {
    margin-top: 20px;
    background: rgba(31, 163, 157, 0.08);
    border: 1px solid rgba(31, 163, 157, 0.2);
    color: var(--teal);
    padding: 12px;
    border-radius: var(--border-radius-sm);
    font-size: 0.8rem;
    display: none;
    align-items: center;
    gap: 8px;
    animation: fadeInUp 0.3s ease;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Logistics Visualizer Map */
.map-visualizer {
    border-radius: var(--border-radius-md);
    padding: 30px;
    display: flex;
    flex-direction: column;
}
.map-visualizer h3 {
    font-size: 1.6rem;
    margin-bottom: 5px;
}
.map-sub {
    font-size: 0.85rem;
}
.svg-map-wrapper {
    position: relative;
    background: #fdfdfb;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 380px;
    box-shadow: inset 0 2px 10px rgba(31, 163, 157, 0.03);
}

.logistics-map-svg {
    width: 100%;
    height: 100%;
    flex-grow: 1;
}

/* Map Nodes Styling */
.map-node {
    fill: #e5e0d8;
    stroke: var(--border-color);
    stroke-width: 2px;
    transition: var(--transition-smooth);
}
.map-node-label {
    fill: var(--text-secondary);
    font-size: 10px;
    font-family: var(--font-sans);
    font-weight: 500;
    pointer-events: none;
}
.node-source {
    fill: var(--teal);
    stroke: var(--teal-light);
}
.node-hub {
    fill: var(--orange);
    stroke: var(--orange-light);
}
.node-dest {
    cursor: pointer;
}
.node-dest.active {
    fill: var(--teal-light);
    stroke: var(--teal);
}
.destination-secondary.active {
    fill: var(--orange-light);
    stroke: var(--orange);
}

/* Map Links Styling */
.map-link {
    fill: none;
    stroke: rgba(0,0,0,0.06);
    stroke-width: 2px;
    transition: var(--transition-smooth);
}
.static-link {
    stroke: var(--teal-light);
    opacity: 0.5;
    stroke-dasharray: 4,4;
}
.active-link {
    stroke: var(--teal);
    stroke-width: 3px;
    stroke-dasharray: 6,6;
    animation: flowLines 15s linear infinite;
}
.active-link-pivot {
    stroke: var(--orange);
    stroke-width: 3px;
    stroke-dasharray: 6,6;
    animation: flowLines 15s linear infinite;
}
.hidden-link {
    opacity: 0.15;
    stroke-dasharray: 4,4;
}

/* Moving crate translation animation path */
#moving-crate {
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Logistics Details bottom layout */
.delivery-details-card {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    margin-top: 15px;
}
.detail-item {
    display: flex;
    flex-direction: column;
}
.d-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}
.d-val {
    font-size: 0.85rem;
    color: var(--text-dark);
    font-weight: 600;
}

/* Footer Section */
.footer {
    background: #eae6dd;
    border-top: 1px solid var(--border-color);
    padding: 60px 8% 30px 8%;
    margin-top: 60px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-brand h2 {
    font-size: 1.8rem;
    margin-bottom: 12px;
    color: var(--teal);
}
.footer-brand p {
    max-width: 350px;
    font-size: 0.95rem;
}
.footer-links h4, .footer-social h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--orange);
}
.footer-links ul {
    list-style: none;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}
.footer-links a:hover {
    color: var(--teal);
}
.social-icons {
    display: flex;
    gap: 15px;
}
.social-icons a {
    color: var(--text-secondary);
    font-size: 1.3rem;
    transition: var(--transition-smooth);
}
.social-icons a:hover {
    color: var(--teal);
}
.footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 20px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Mobile Responsiveness Rules */
@media(max-width: 992px) {
    .features-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .tiers-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .curation-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .sourcing-map-box {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .portal-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .coordinate-dashboard {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media(max-width: 768px) {
    .header {
        padding: 15px 5%;
    }
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #eae6dd;
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid var(--border-color);
        gap: 10px;
        box-shadow: var(--box-shadow);
    }
    .nav-menu.mobile-active {
        display: flex;
    }
    .mobile-toggle {
        display: block;
    }
    .hero {
        height: auto;
        padding: 80px 5%;
        text-align: center;
    }
    .hero-content {
        margin: 0 auto;
    }
    .hero h1 {
        font-size: 2.3rem;
    }
    .hero-actions {
        flex-direction: column;
        gap: 10px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
