/*
=================================================================
    INTO GEMOLOGY — MAIN STYLESHEET
    style.css
=================================================================

    TABLE OF CONTENTS
    -----------------
    00. CSS TOKENS (Design Variables)
    01. RESET & BASE
    02. TYPOGRAPHY
    03. HEADER & NAV
    04. SEARCH OVERLAY
    05. PROMO POPUP
    06. NEWSLETTER SLIDE FORM
    07. HERO SECTION
    08. HERO — IMAGE STREAMS
    09. COMMUNITY
    10. TRENDING / COURSES GRID
    11. PATH CHOOSER            ← NEW (conversion)
    12. SOCIAL BRIDGE / COMMUNITY
    13. VALUE / TRUST SECTION
    14. FOOTER
    15. BUTTONS (shared)
    16. ANIMATIONS (shared keyframes)
    17. ECO SYSTEM TEASER
    18. RESPONSIVE — Tablet (max 1024px)
    19. RESPONSIVE — Mobile (max 768px)

    Brand Colors:
    Blue      #3B82BD   (primary action)
    Gold      #d4af37   (accent / luxury)
    Light Blue #71bce1  (hero headline)
    Cream     #f4f1ea   (background)
    Dark      #1a1a1a   (text)

=================================================================
*/


/* =================================================================
   00. CSS TOKENS — Design Variables
================================================================= */

:root {
    /* Brand Colors */
    --color-primary:     #3B82BD;   /* Action blue */
    --color-primary-hover: #2d6da3;
    --color-gold:        #d4af37;   /* Luxury gold */
    --color-gold-hover:  #b8941f;
    --color-hero-blue:   #71bce1;   /* Hero headline accent */

    /* Neutrals */
    --color-bg:          #f4f1ea;   /* Site background cream */
    --color-bg-warm:     #fdfcf9;   /* Slightly warmer white */
    --color-white:       #ffffff;
    --color-text:        #1a1a1a;   /* Primary text */
    --color-text-muted:  #555555;
    --color-text-light:  #999999;
    --color-border:      rgba(0,0,0,0.05);
    --color-border-mid:  #dddddd;

    /* Typography */
    --font-display:      'Playfair Display', Georgia, serif;
    --font-body:         'Inter', system-ui, -apple-system, sans-serif;

    /* Spacing */
    --section-padding-x: 5%;
    --section-padding-y: 100px;

    /* Transitions */
    --transition-fast:   0.2s ease;
    --transition-base:   0.3s ease;
    --transition-slow:   0.4s ease;
    --transition-luxury: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);

    /* Shadows */
    --shadow-soft:       0 4px 15px rgba(59, 130, 189, 0.2);
    --shadow-gold:       0 6px 20px rgba(212, 175, 55, 0.4);
    --shadow-deep:       0 20px 50px rgba(0,0,0,0.05);

    /* Z-index scale */
    --z-base:     1;
    --z-streams:  5;
    --z-hero-img: 10;
    --z-header:   100;
    --z-form:     205;
    --z-search:   210;
    --z-mobile-nav: 300;

    --color-cream-contrast: rgba(219, 203, 167, 0.95);
}


/* =================================================================
   01. RESET & BASE
================================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    padding-top: 40px;
}

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

a {
    text-decoration: none;
    color: inherit;
}


/* =================================================================
   02. TYPOGRAPHY
================================================================= */

.section-title {
    font-family: var(--font-display);
    font-size: 3rem;
}


/* =================================================================
   03. HEADER & NAV
================================================================= */

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px var(--section-padding-x);
    background: rgba(244, 241, 234, 0.95);
    /* backdrop-filter: blur(10px); — enable if hero has image behind header */
    z-index: var(--z-header);
    border-bottom: 1px solid var(--color-border);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
}

/* Logo */
.logo img {
    height: 120px;
    display: block;
}

/* Nav container */
.nav-container {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

.main-nav a {
    text-decoration: none;
    font-weight: 500;
    color: var(--color-text);
    font-size: 0.95rem;
    transition: color var(--transition-base);
}

.main-nav a:hover {
    color: var(--color-primary);
}

/* Nav utilities (cart, search) */
.nav-utils {
    display: flex;
    align-items: center;
    gap: 20px;
    border-left: 1px solid var(--color-border-mid);
    padding-left: 20px;
}

.icon-link {
    position: relative;
    display: flex;
    align-items: center;
    color: var(--color-text);
    transition: transform var(--transition-fast);
    cursor: pointer;
    text-decoration: none;
}

.icon-link svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

/*.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--color-gold);
    color: var(--color-white);
    font-size: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    
}/* TODO: update after cart logic is connected — akj 20.01.26 */

/* Mobile menu toggle — hidden on desktop */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: all var(--transition-base);
}

/* Mobile nav drawer */
.mobile-nav-drawer {
    display: flex;
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: var(--color-white);
    z-index: var(--z-mobile-nav);
    padding: 80px 30px 40px;
    flex-direction: column;
    gap: 10px;
    transition: right 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: -10px 0 40px rgba(0,0,0,0.08);
    overflow-y: auto ;
    max-width: 100vw;
}

.mobile-nav-drawer.open {
    right: 0;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-nav a {
    font-size: 1.1rem;
    font-weight: 500;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
    transition: color var(--transition-base);
}

.mobile-nav a:hover {
    color: var(--color-primary);
}

.mobile-nav-utils {
    margin-top: 30px;
}

/* Mobile nav backdrop overlay */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: calc(var(--z-mobile-nav) - 1);
}

.mobile-nav-overlay.open {
    display: block;
}

/* Header hide/show on scroll */
.site-header {
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

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

.header-chevron {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    background: var(--color-cream-contrast);
    border: 1px solid var(--color-border);
    border-top: none;
    border-radius: 0 0 50px 50px;
    padding: 8px 48px 12px;
    cursor: pointer;
    z-index: calc(var(--z-header) + 1);
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.header-chevron.visible {
    transform: translateX(-50%) translateY(0);
}

.header-chevron svg {
    width: 18px;
    height: 18px;
    stroke: var(--color-text);
    fill: none;
    stroke-width: 2.5;
    display: block;
}

.header-chevron:hover svg {
    stroke: var(--color-primary);
}
/* Desktop only */
@media (max-width: 768px) {
    .header-chevron { display: none; }
}


/* =================================================================
   04. SEARCH OVERLAY
================================================================= */

#search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(244, 241, 234, 0.98);
    z-index: var(--z-search);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-slow);
}

#search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-close {
    position: absolute;
    top: 40px;
    right: var(--section-padding-x);
    font-size: 2rem;
    cursor: pointer;
    color: var(--color-text);
    transition: color var(--transition-base);
}

.search-close:hover {
    color: var(--color-primary);
}

.search-form {
    width: 80%;
    max-width: 800px;
    text-align: center;
}

.search-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--color-primary);
    font-size: 2.5rem;
    font-family: var(--font-display);
    padding: 10px;
    outline: none;
    text-align: center;
    color: var(--color-text);
}

.search-hint {
    margin-top: 20px;
    color: var(--color-text-muted);
    font-style: italic;
}


/* =================================================================
   05. PROMO POPUP (Daily Gem image flash)
================================================================= */

#gem-promo-image {
    position: absolute;
    top: 100px;
    right: 120px;
    width: 250px;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.5s ease-in-out;
}

#gem-promo-image img {
    width: 100%;
    height: auto;
    display: block;
}

#gem-promo-image.show-image {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


/* =================================================================
   06. NEWSLETTER SLIDE FORM (Dust to Dazzle)
================================================================= */

.gem-slide-form {
    position: fixed;
    top: 30px;
    right: -450px;
    width: 320px;
    background: rgba(255, 255, 255, 0.98);
    padding: 35px 25px;
    box-shadow: var(--shadow-deep);
    border-top: 1px solid var(--color-gold);
    border-bottom: 1px solid var(--color-gold);
    z-index: var(--z-form);
    transition: right 1s cubic-bezier(0.19, 1, 0.22, 1);
    text-align: center;
}

.gem-slide-form.active {
    right: 80px;
}

.gem-form-inner h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    letter-spacing: 3px;
    margin-bottom: 5px;
    color: var(--color-text);
    text-transform: uppercase;
}

.gem-form-subtitle {
    font-size: 0.7rem !important;
    text-transform: uppercase;
    color: var(--color-gold) !important;
    letter-spacing: 2px;
    margin-bottom: 20px !important;
    font-weight: 600;
    font-style: normal !important;
}

.gem-form-inner p {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 25px;
    font-style: italic;
}

.gem-form-inner input {
    width: 100%;
    padding: 12px;
    border: none;
    border-bottom: 1px solid var(--color-border-mid);
    margin-bottom: 20px;
    font-family: var(--font-body);
    text-align: center;
    outline: none;
    transition: border-color var(--transition-base);
    background: transparent;
}

.gem-form-inner input:focus {
    border-bottom: 1px solid var(--color-gold);
}

.gem-form-close {
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
    font-size: 1rem;
    color: var(--color-text-light);
    transition: color var(--transition-base);
}

.gem-form-close:hover {
    color: var(--color-gold);
}

.built-by {
    display: block;
    margin-top: 20px;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.4;
}

#gem-success-msg {
    display: none;
    padding: 20px 0;
}

#gem-success-msg h4 {
    text-transform: uppercase;
    letter-spacing: 1px;
}

#gem-success-msg p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-style: italic;
}


/* =================================================================
   07. HERO SECTION
================================================================= */

.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 160px var(--section-padding-x) 0;
    position: relative;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 8vw, 7rem);
    line-height: 0.9;
}

.hero h1 span {
    color: var(--color-hero-blue);
}

/* Hero trust bar — social proof under headline */
.hero-trust-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-text-muted);
    flex-wrap: wrap;
}

.trust-divider {
    color: var(--color-gold);
    font-size: 1rem;
}

/* Hero CTA buttons */
.hero-cta-group {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap;
}

/* Center floating image / card CTA */
.hero-center-image {
    position: absolute;
    left: 52.5%;
    bottom: -260px;
    transform: translateX(-50%);
    z-index: var(--z-hero-img);
}

.hero-center-image img {
    width: 320px;
    max-width: 80vw;
}


/* =================================================================
   08. HERO — IMAGE STREAMS (animated side columns)
================================================================= */

.visual-stream-container {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 240px;
    overflow: hidden;
    z-index: var(--z-streams);
    opacity: 0.3;
}

.stream-left-strip  { left: 65%; }
.stream-right-strip { left: 90%; }

.visual-stream {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    padding: 20px 0;
}

.visual-stream img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    filter: contrast(120%);
}

/* Fade mask at top and bottom of stream */
.stream-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        var(--color-bg) 0%,
        transparent 15%,
        transparent 85%,
        var(--color-bg) 100%
    );
    z-index: 6;
    pointer-events: none;
}

/* =================================================================
    09. COMMUNITY HUB
================================================================= */

.community-hub {
    /* 245px hangover + 80px gap = 325px */
    padding: 325px var(--section-padding-x) 100px;
    background: var(--color-white);
    text-align: center;
    border-bottom: 1px solid var(--color-border);
    width: 100%;
    box-sizing: border-box;
    position: relative; /* Anchor for the watermark */
    overflow: hidden;    /* Keeps the watermark from causing scrollbars */
}

/* 1025px+ only: Big sliding background watermark */
@media (min-width: 1025px) {
    .community-hub::before {
        content: 'COMMUNITY • COMMUNITY • COMMUNITY';
        position: absolute;
        top: 20px; 
        left: 100%;
        font-family: var(--font-display);
        font-size: 325px; 
        font-weight: 900;
        line-height: 1;
        color: var(--color-text);
        opacity: 0.08; 
        white-space: nowrap;
        pointer-events: none;
        z-index: 0;
        animation: slideWatermark 150s linear infinite;
    }
    .community-hub::after {
        content: 'FUTURE OF GEMSTOK • FUTURE OF GEMSTOK • FUTURE OF GEMSTOK • FUTURE OF GEMSTOK • FUTURE OF GEMSTOK';
        position: absolute;
        top: 280px; /* Sits lower in the padding gap */
        right: 100%;
        font-family: var(--font-body);
        font-size: 40px; 
        font-weight: 700;
        letter-spacing: 10px;
        color: var(--color-gold);
        opacity: 0.12; /* Slightly higher since it's smaller */
        white-space: nowrap;
        pointer-events: none;
        z-index: 1;
        animation: slideLeftToRight 80s linear infinite;
    }
}



.community-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; 
    box-sizing: border-box;
    position: relative; /* Sits above watermark */
    z-index: 2;
}

.eco-tagline {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-gold);
    font-weight: 700;
    margin-bottom: 15px;
}

.community-description {
    max-width: 800px;
    margin: 20px auto 60px;
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

.community-description span {
    color: var(--color-primary);
    font-weight: 600;
}

.community-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto 60px;
}

.feature-item {
    padding: 50px 30px;
    background: var(--color-bg-warm);
    border-radius: 12px;
    border: 1px solid var(--color-border);
    transition: all var(--transition-luxury);
}

.feature-item:hover {
    transform: translateY(-8px);
    border-color: var(--color-gold);
    box-shadow: var(--shadow-deep);
}

.feature-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 25px;
}

.feature-item h4 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--color-text);
}

.feature-item p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* Privacy Toggle Visual */
.privacy-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 25px;
}

.status-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--color-text-light);
}

.toggle-visual {
    width: 44px;
    height: 22px;
    background: var(--color-primary);
    border-radius: 20px;
    position: relative;
}

.toggle-visual::after {
    content: '';
    position: absolute;
    right: 3px;
    top: 3px;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
}

.community-subtext {
    margin-top: 20px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.5;
}

/* Watermark Animation Logic */
@keyframes slideWatermark {
    0% { transform: translateX(0); }
    100% { transform: translateX(-250%); }
}
@keyframes slideRightToLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-300%); }
}

@keyframes slideLeftToRight {
    0% { transform: translateX(0); }
    100% { transform: translateX(300%); }
}

/* Tablet Logic */
@media (max-width: 1024px) {
    .community-hub { 
        padding-top: 300px; 
    }
    .community-features { 
        grid-template-columns: 1fr; 
        max-width: 500px; 
    }
}

/* Mobile Logic */
@media (max-width: 480px) {
    .community-hub { 
        padding-top: 260px; 
    }
    .feature-item {
        padding: 30px 20px;
    }
    .feature-item h4 {
        font-size: 1.2rem;
    }
}


/* =================================================================
   10. TRENDING / COURSES GRID
================================================================= */

.trending {
    padding: 20px var(--section-padding-x) 100px;
    background: var(--color-white);
    text-align: center;
}

.trending-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.product-container {
    text-align: center;
    text-decoration: none;
}

.product-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.product-card img {
    width: 100%;
    border-radius: 12px;
    transition: transform var(--transition-slow);
}

.product-card:hover img {
    transform: translateY(-10px);
}

.product-info {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.product-info h4 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--color-text);
    letter-spacing: 0.5px;
}

/* Price tag — added for conversion */
.product-price {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-muted);
    letter-spacing: 0.5px;
}

.view-link {
    font-family: var(--font-body);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-gold);
    font-weight: 600;
    transition: color var(--transition-base);
}

.product-card:hover .view-link {
    color: var(--color-primary);
}


/* =================================================================
   11. PATH CHOOSER (conversion — helps visitors self-select)
================================================================= */

.path-chooser {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid var(--color-border);
}

.path-chooser-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-text-muted);
    margin-bottom: 30px;
    font-weight: 500;
}

.path-chooser-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.path-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 30px 20px;
    border: 1.5px solid var(--color-border-mid);
    border-radius: 12px;
    text-decoration: none;
    color: var(--color-text);
    transition: all var(--transition-base);
    cursor: pointer;
}

.path-card:hover {
    border-color: var(--color-gold);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.15);
}

.path-card-center {
    border-color: var(--color-primary);
    background: rgba(59, 130, 189, 0.03);
}

.path-card-center:hover {
    border-color: var(--color-primary);
    box-shadow: 0 8px 24px rgba(59, 130, 189, 0.15);
}

.path-icon {
    font-size: 1.8rem;
}

.path-card strong {
    font-family: var(--font-display);
    font-size: 1rem;
    text-align: center;
}

.path-card span:last-child {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-primary);
    font-weight: 600;
}


/* =================================================================
   12. SOCIAL BRIDGE / COMMUNITY
================================================================= */

.social-bridge {
    padding: var(--section-padding-y) var(--section-padding-x);
    background: var(--color-bg-warm);
    text-align: center;
}

.social-bridge h3 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    letter-spacing: 1px;
    margin-bottom: 50px;
    color: var(--color-text);
}

.social-flex-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 60px;
}

/* Luxury outlined buttons (Daily Gem, Discord) */
.sm-btn-luxury {
    padding: 12px 35px;
    border: 1.5px solid var(--color-gold);
    border-radius: 0;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--color-text) !important;
    transition: all var(--transition-slow);
    text-transform: uppercase;
}

.sm-btn-luxury:hover {
    background: var(--color-gold);
    color: var(--color-white) !important;
}

.sm-btn-luxury svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Social icon row */
.sm-mid-icons {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: center;
}

.sm-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    text-decoration: none;
    transition: transform var(--transition-base);
}

.sm-icon-wrap svg {
    width: 24px;
    height: 24px;
    fill: var(--color-text);
    transition: fill var(--transition-base);
}

.sm-icon-wrap:hover svg {
    fill: var(--color-gold);
}

.sm-icon-wrap:hover {
    transform: translateY(-3px);
}


/* =================================================================
   13. VALUE / TRUST SECTION
================================================================= */

.value {
    padding: var(--section-padding-y) var(--section-padding-x);
    background: var(--color-bg);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    align-items: start;
}

.value-main h3,
.value-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.value-note {
    background: var(--color-white);
    padding: 30px;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.rating {
    text-align: center;
}

.stars {
    color: var(--color-gold);
    font-size: 1.5rem;
    display: block;
    margin-bottom: 6px;
}


/* =================================================================
   14. FOOTER
================================================================= */

.site-footer {
    background: var(--color-bg);
    color: var(--color-text);
    border-top: 1px solid var(--color-border);
}

/* Footer top: 4-column grid */
.footer-top {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr 1.5fr;
    gap: 60px;
    padding: 80px var(--section-padding-x) 60px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Brand column */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.footer-tagline {
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 1px;
    color: var(--color-text);
}

.footer-sub {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    max-width: 260px;
}

/* Link columns */
.footer-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-heading {
    font-family: var(--font-display);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-text-muted);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-base);
    line-height: 1.4;
}

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

/* Social icons in footer */
.footer-social {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-base);
}

.footer-social-link svg {
    width: 18px;
    height: 18px;
    fill: var(--color-text);
    transition: fill var(--transition-base);
    flex-shrink: 0;
}

.footer-social-link:hover {
    color: var(--color-gold);
}

.footer-social-link:hover svg {
    fill: var(--color-gold);
}

/* Newsletter CTA in footer */
.footer-newsletter {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-newsletter-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-text-muted);
    font-weight: 600;
}

.btn-footer-newsletter {
    display: inline-block;
    padding: 10px 22px;
    border: 1.5px solid var(--color-gold);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-text);
    text-decoration: none;
    transition: all var(--transition-base);
    text-align: center;
}

.btn-footer-newsletter:hover {
    background: var(--color-gold);
    color: var(--color-white);
}

/* Footer bottom bar */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px var(--section-padding-x);
    border-top: 1px solid var(--color-border);
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-copyright {
    font-size: 0.8rem;
    opacity: 0.6;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    font-size: 0.8rem;
    color: var(--color-text);
    text-decoration: none;
    opacity: 0.6;
    transition: opacity var(--transition-base);
}

.footer-bottom-links a:hover {
    opacity: 1;
}

.footer-gia-badge {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-gold);
    font-weight: 600;
    opacity: 0.8;
}


/* =================================================================
   15. BUTTONS (shared — used across pages)
================================================================= */

/* Primary CTA (hero) */
.btn-hero-primary {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all var(--transition-luxury);
    box-shadow: var(--shadow-soft);
}

.btn-hero-primary:hover {
    background: var(--color-gold);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

/* Secondary CTA (hero) */
.btn-hero-secondary {
    display: inline-block;
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    padding: 14px 4px;
    border-bottom: 1.5px solid var(--color-text);
    transition: all var(--transition-base);
}

.btn-hero-secondary:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

/* Daily Gem nav button */
.btn-daily-gem {
    background-color: var(--color-primary);
    color: var(--color-white) !important;
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 600 !important;
    transition: all var(--transition-luxury) !important;
    box-shadow: var(--shadow-soft);
    text-decoration: none;
}

.btn-daily-gem:hover {
    background-color: var(--color-gold) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold) !important;
}

/* Newsletter submit button */
.btn-secure {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    width: 100%;
    cursor: pointer;
    transition: all var(--transition-slow);
    animation: dazzle-glow 3s infinite;
}

.btn-secure:hover {
    background-color: var(--color-gold);
    transform: scale(1.02);
}


/* =================================================================
   16. ANIMATIONS (shared keyframes)
================================================================= */

/* Newsletter button pulse */
@keyframes dazzle-glow {
    0%   { box-shadow: 0 0 5px rgba(59, 130, 189, 0.2); }
    50%  { box-shadow: 0 0 20px rgba(212, 175, 55, 0.4); }
    100% { box-shadow: 0 0 5px rgba(59, 130, 189, 0.2); }
}

/* Image stream — scroll up */
@keyframes scrollUp {
    0%   { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

.scroll-up {
    animation: scrollUp 40s linear infinite;
}

/* Image stream — scroll down */
@keyframes scrollDown {
    0%   { transform: translateY(-50%); }
    100% { transform: translateY(0); }
}

.scroll-down {
    animation: scrollDown 45s linear infinite;
}

/* =================================================================
  17. ECOSYSTEM TEASER (index.html)
================================================================= */

.ecosystem-teaser {
    background: var(--color-text);
    padding: 100px var(--section-padding-x);
    text-align: center;
}

.ecosystem-teaser-inner {
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.ecosystem-teaser-eyebrow {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-gold);
    font-weight: 600;
}

.ecosystem-teaser h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--color-white);
    line-height: 1.2;
}

.ecosystem-teaser h2 span {
    color: var(--color-gold);
}

.ecosystem-teaser-sub {
    font-size: 1rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
}

.ecosystem-teaser-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.eco-pill {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 6px 14px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.5);
}

.eco-pill-active {
    border-color: var(--color-gold);
    color: var(--color-gold);
}

/* =================================================================
   18. RESPONSIVE — Tablet (max-width: 1024px)
================================================================= */

@media (max-width: 1024px) {

    .trending-grid         { grid-template-columns: repeat(2, 1fr); }
    .value                 { grid-template-columns: 1fr 1fr; }
    .path-chooser-options  { grid-template-columns: 1fr; max-width: 400px; }
    .footer-top            { grid-template-columns: 1fr 1fr; gap: 40px; }
    .community-hub         { padding-top: 300px; }
    .community-features    { grid-template-columns: 1fr; max-width: 500px; }
    .section-title         { font-size: 2.4rem; }

    /* Streams hidden below 1024px — not enough room */
    .visual-stream-container { display: none !important; }
    #gem-promo-image          { display: none !important; }
}


/* =================================================================
   18B. LARGE TABLET LANDSCAPE — 1025px–1366px
   iPad Pro, Nest Hub Max, iPad Mini/Air/Surface Pro landscape
   Streams stay visible but repositioned to fit
================================================================= */

@media (min-width: 1025px) and (max-width: 1366px) {

    /* Reposition streams to fit — DO NOT hide them */
    .stream-left-strip  { left: 62%; width: 200px; }
    .stream-right-strip { left: 84%; width: 180px; }

    .hero {
        padding-top: 130px;
        min-height: 70vh;
    }

    /* Hero image: nudge left slightly to stay between text and streams */
    .hero-center-image {
        left: 48%;
        bottom: -200px;
    }

    .hero-center-image img {
        width: 280px;
    }

    .community-hub {
        padding-top: 260px;
    }
}


/* =================================================================
   18C. TABLET PORTRAIT — 769px–1024px
   iPad Air 820×1180, Surface Pro 912×1368, Asus Zenbook Fold
   Streams hidden, image pulled into normal flow
================================================================= */

@media (min-width: 769px) and (max-width: 1024px) {

    .hero {
        padding-top: 110px;
        padding-bottom: 20px;
        min-height: 60vh;
        flex-direction: column;
        align-items: flex-start;
    }

    .hero h1 {
        font-size: clamp(3rem, 6vw, 5rem);
    }

    .hero-center-image {
        position: relative;
        left: auto;
        bottom: auto;
        transform: none;
        margin: 30px auto 0;
        display: block;
        z-index: var(--z-hero-img);
    }

    .hero-center-image img {
        width: 260px;
        margin: 0 auto;
    }

    .community-hub  { padding-top: 80px; }
    .trending-grid  { grid-template-columns: repeat(2, 1fr); }
}


/* =================================================================
   19. MOBILE — max-width: 768px
================================================================= */

@media (max-width: 768px) {

    /* Global */
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }

    /* Header */
    .site-header {
        padding: 12px var(--section-padding-x);
        width: 100%;
        max-width: 100%;
    }

    .main-nav a:not(.btn-daily-gem) { display: none !important; }

    .logo img      { height: 80px; }
    .nav-container { gap: 10px; }
    .nav-utils     { padding-left: 10px; border-left: none; }
    .btn-daily-gem { padding: 8px 14px; font-size: 0.82rem; white-space: nowrap; }
    .mobile-menu-toggle { display: flex; }
    .mobile-nav .btn-daily-gem { align-self: flex-start; padding: 10px 40px; margin-top: 4px; }

    /* Nav drawer — transform-based, zero layout impact */
    .mobile-nav-drawer {
        right: 0 !important;
        left: auto !important;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1) !important;
        overflow-y: auto;
        width: 280px;
        max-width: 85vw;
    }

    .mobile-nav-drawer.open {
        transform: translateX(0) !important;
    }

    /* Hero */
    .hero {
        padding: 100px var(--section-padding-x) 20px;
        min-height: auto;
        flex-direction: column;
        justify-content: flex-start;
        text-align: center;
        width: 100%;
        max-width: 100%;
        overflow: visible;
    }

    .hero h1 {
        font-size: clamp(2.6rem, 8vw, 3.2rem);
        line-height: 1.1;
        margin-bottom: 0;
        width: 100%;
    }

    .hero-trust-bar {
        justify-content: center;
        margin-top: 16px;
        gap: 8px;
        font-size: 0.7rem;
        flex-wrap: wrap;
    }

    .hero-cta-group {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        width: 100%;
        margin-top: 24px;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        text-align: center;
        max-width: 320px;
    }

    /* Hero image — in-flow, centred */
    .hero-center-image {
        position: relative;
        left: 0 !important;
        right: auto;
        bottom: auto !important;
        transform: none !important;
        margin: 24px auto 0;
        display: block;
        z-index: 25;
        width: 100%;
        text-align: center;
    }

    .hero-center-image img {
        width: 240px;
        max-width: 70vw;
        margin: 0 auto;
        filter: drop-shadow(0 12px 24px rgba(0,0,0,0.12));
    }

    /* Community hub */
    .community-hub       { padding-top: 60px; padding-bottom: 60px; }
    .community-description { font-size: 1rem; margin-bottom: 40px; }
    .community-features  { grid-template-columns: 1fr; max-width: 100%; }

    /* Trending */
    .trending { padding-top: 60px !important; }
    .trending-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .product-info h4 { font-size: 1rem; }
    .view-link       { font-size: 0.7rem; }

    /* Path chooser */
    .path-chooser-options { grid-template-columns: 1fr; max-width: 100%; gap: 12px; }
    .path-card { padding: 20px 16px; }

    /* Layout */
    .section-title { font-size: 2rem; }
    .value { grid-template-columns: 1fr; padding-top: 60px; padding-bottom: 60px; }

    /* Social */
    .social-bridge { padding-top: 60px; padding-bottom: 60px; }
    .social-bridge h3 { font-size: 1.6rem; margin-bottom: 30px; }
    .social-flex-container { flex-direction: column; gap: 20px; }
    .sm-btn-luxury {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 0.75rem;
        letter-spacing: 1.5px;
    }

    /* Ecosystem */
    .ecosystem-teaser { padding: 60px var(--section-padding-x); }

    /* Footer */
    .footer-top {
        grid-template-columns: 1fr;
        gap: 36px;
        padding: 60px var(--section-padding-x) 40px;
    }
    .footer-bottom { flex-direction: column; text-align: center; gap: 14px; }
    .footer-bottom-links { flex-wrap: wrap; justify-content: center; gap: 14px; }

    /* Newsletter bottom sheet */
    .gem-slide-form {
        width: 100%;
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        border-radius: 24px 24px 0 0;
        transform: translateY(100%);
        transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
        padding: 40px 25px 60px;
        z-index: 9999;
        max-width: 100vw;
        box-sizing: border-box;
    }
    .gem-slide-form.active { transform: translateY(0); }

    /* Search */
    .search-input { font-size: 1.6rem; }
    .search-form  { width: 92%; }
}


/* =================================================================
   19B. LANDSCAPE PHONES — max-height: 500px + max-width: 900px
   Galaxy S20 Ultra/A51/71, iPhone XR/12/14 Pro Max landscape
================================================================= */

@media (max-height: 500px) and (max-width: 900px) {

    .hero {
        padding-top: 80px;
        padding-bottom: 20px;
        min-height: auto;
        flex-direction: row;
        align-items: center;
        text-align: left;
    }

    .hero h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); margin-bottom: 0; }
    .hero-trust-bar { margin-top: 12px; font-size: 0.65rem; }

    .hero-cta-group {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
        margin-top: 16px;
    }

    .btn-hero-primary,
    .btn-hero-secondary { width: auto; }

    .hero-center-image {
        position: relative;
        left: auto !important;
        bottom: auto !important;
        transform: none !important;
        margin: 0 0 0 20px;
        flex-shrink: 0;
    }

    .hero-center-image img { width: 140px; max-width: 25vw; }

    .community-hub { padding-top: 40px; }
}


/* =================================================================
   19C. SURFACE DUO — 480px–540px
================================================================= */

@media (min-width: 480px) and (max-width: 540px) {

    html, body { overflow-x: hidden; width: 100%; }

    .site-header { padding: 10px 4%; }
    .logo img    { height: 70px; }

    .hero { padding: 100px 4% 20px; text-align: center; }
    .hero h1 { font-size: 2.2rem; }

    .hero-center-image {
        position: relative;
        left: 0 !important;
        bottom: auto !important;
        transform: none !important;
        margin: 20px auto 0;
    }

    .hero-center-image img { width: 200px; max-width: 65vw; margin: 0 auto; }

    .community-hub { padding-top: 60px; }
    .trending-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
}


/* =================================================================
   20. SMALL MOBILE — max-width: 480px
   iPhone SE, Galaxy A series, small Androids
================================================================= */

@media (max-width: 480px) {

    :root {
        --section-padding-x: 4%;
        --section-padding-y: 60px;
    }

    .logo img  { height: 65px; }
    .nav-utils { gap: 10px; }

    .hero h1 { font-size: 2.2rem; margin-bottom: 0; }

    .hero-trust-bar { margin-top: 14px; font-size: 0.65rem; gap: 6px; }
    .trust-divider  { display: none; }

    .hero-center-image img { width: 200px; max-width: 65vw; }

    .community-hub   { padding-top: 50px; }
    .feature-item    { padding: 28px 18px; }
    .feature-item h4 { font-size: 1.2rem; }

    .trending-grid { grid-template-columns: 1fr; gap: 22px; }

    .section-title { font-size: 1.75rem; }

    .footer-bottom-links { flex-direction: column; align-items: center; gap: 10px; }

    .search-input  { font-size: 1.3rem; }
    .sm-btn-luxury { letter-spacing: 1px; font-size: 0.7rem; }
}