/* Joumonde Landing Page — full-impact teaser (hero, statement, collections, Nexara, preview, newsletter) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Montserrat:wght@400;500;600;700&display=swap');

:root {
    --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    --font-heading: 'Montserrat', 'Avenir Next', 'Helvetica Neue', Arial, sans-serif;
    --gold: #89785f;
    --gold-light: #b9aa91;
    --gold-deep: #78654c;
    --bg: #0a0a0a;
    --bg2: #1a1a1a;
    --text: #f5f0e8;
}

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

html { scroll-behavior: smooth; }

body {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--bg) 0%, var(--bg2) 50%, #0f0f0f 100%);
    color: var(--text);
    font-family: var(--font-body);
    overflow-x: hidden;
}

/* Ambient glow orbs, fixed behind all content */
body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(70px);
}
body::before {
    top: -45%;
    right: -12%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(137, 120, 95, 0.25) 0%, rgba(137, 120, 95, 0.08) 40%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}
body::after {
    bottom: -30%;
    left: -15%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(137, 120, 95, 0.18) 0%, rgba(137, 120, 95, 0.06) 40%, transparent 70%);
    animation: pulse 10s ease-in-out infinite reverse;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.15); opacity: 0.7; }
}

/* Cursor glow follows the pointer on capable devices (see landing.js) */
.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 420px;
    height: 420px;
    margin-left: -210px;
    margin-top: -210px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(244,211,114,0.10) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
    will-change: transform;
}
.cursor-glow.active { opacity: 1; }

.page { position: relative; z-index: 1; }

/* ===== Marquee ticker ===== */
.hero-marquee {
    position: relative;
    z-index: 2;
    overflow: hidden;
    border-bottom: 1px solid rgba(137, 120, 95, 0.2);
    background: rgba(0,0,0,0.35);
    padding: 14px 0;
}
.hero-marquee-track {
    display: flex;
    width: max-content;
    gap: 2.2rem;
    animation: marquee 26s linear infinite;
}
.hero-marquee-track span {
    font-size: 0.8rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    opacity: 0.85;
    white-space: nowrap;
}
@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: calc(100vh - 48px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 24px 40px;
}

.hero-content { max-width: 900px; animation: slideUp 1s ease-out 0.2s both; }

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; filter: blur(10px); }
    to { transform: translateY(0); opacity: 1; filter: blur(0); }
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold-light);
    opacity: 0.85;
    margin-bottom: 20px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3.2rem, 11vw, 8.5rem);
    font-weight: 500;
    letter-spacing: 0.14em;
    line-height: 1;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 25%, var(--gold) 50%, var(--gold-deep) 75%, var(--gold) 100%);
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 70px rgba(137, 120, 95, 0.45);
    animation: shimmer 5s linear infinite;
    margin-bottom: 22px;
}
@keyframes shimmer { to { background-position: 300% center; } }

.hero-tagline {
    font-size: clamp(1.05rem, 2vw, 1.4rem);
    font-style: italic;
    font-weight: 300;
    color: #d9d9d9;
    letter-spacing: 0.03em;
    max-width: 620px;
    margin: 0 auto;
}

.divider {
    width: 130px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold-light) 50%, var(--gold) 80%, transparent);
    margin: 36px auto;
    position: relative;
    box-shadow: 0 0 20px rgba(137, 120, 95, 0.5);
}
.divider::before {
    content: '◆';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: var(--gold);
    font-size: 0.75rem;
}

.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 44px;
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-decoration: none;
    font-family: var(--font-body);
    transition: all 0.3s ease;
}
.hero-btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
    color: #1a1a1a;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(137, 120, 95, 0.35);
}
.hero-btn-primary:hover {
    box-shadow: 0 16px 46px rgba(137, 120, 95, 0.55);
    transform: translateY(-3px);
}
.hero-btn-ghost {
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(137, 120, 95, 0.5);
    color: var(--gold);
}
.hero-btn-ghost:hover {
    background: rgba(137, 120, 95, 0.1);
    border-color: var(--gold);
    transform: translateY(-3px);
}
.hero-btn svg { width: 1.2em; height: 1.2em; }

.scroll-cue {
    position: relative;
    margin-top: 56px;
    width: 26px;
    height: 42px;
    border: 2px solid rgba(137, 120, 95, 0.5);
    border-radius: 16px;
    display: block;
}
.scroll-cue span {
    position: absolute;
    top: 8px;
    left: 50%;
    width: 4px;
    height: 8px;
    margin-left: -2px;
    background: var(--gold);
    border-radius: 2px;
    animation: scrollCue 1.6s ease-in-out infinite;
}
@keyframes scrollCue {
    0% { opacity: 1; transform: translateY(0); }
    70% { opacity: 0; transform: translateY(14px); }
    100% { opacity: 0; transform: translateY(14px); }
}

/* ===== Scroll reveal ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ===== Sections shared layout ===== */
.section {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 90px 40px;
}

/* Statement */
.statement { text-align: center; max-width: 820px; }
.statement p {
    font-size: clamp(1.4rem, 3vw, 2.1rem);
    font-style: italic;
    font-weight: 300;
    line-height: 1.6;
    color: var(--gold-light);
    letter-spacing: 0.01em;
}
.statement p strong { font-style: normal; color: var(--gold); }
.statement-sub {
    margin-top: 24px !important;
    font-size: 1.05rem !important;
    font-style: normal !important;
    color: #b9b9b9 !important;
    line-height: 1.9 !important;
}

/* Collections */
.collections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.collection-panel {
    position: relative;
    padding: 64px 40px;
    text-align: center;
    background: rgba(26, 26, 26, 0.55);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(137, 120, 95, 0.2);
    box-shadow: 0 15px 50px rgba(0,0,0,0.4), inset 0 1px 0 rgba(137, 120, 95, 0.06);
    transition: all 0.4s ease;
}
.collection-panel:hover {
    border-color: rgba(137, 120, 95, 0.5);
    transform: translateY(-8px);
    box-shadow: 0 25px 70px rgba(0,0,0,0.55), 0 0 40px rgba(137, 120, 95, 0.12);
}
.collection-panel-icon { font-size: 3.2rem; margin-bottom: 20px; }
.collection-panel h2 {
    font-size: 1.6rem;
    font-weight: 300;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 14px;
}
.collection-panel p { color: #b9b9b9; font-size: 1rem; letter-spacing: 0.02em; }

/* Nexara AI section */
.nexara-section {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 50px;
    align-items: center;
}
.nexara-badge {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #f7f2e9;
    background: #78654c;
    padding: 6px 18px;
    margin-bottom: 20px;
    font-weight: 600;
}
.nexara-copy h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 300;
    letter-spacing: 0.04em;
    color: #e4d8c5;
    margin-bottom: 16px;
}
.nexara-copy p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #d0c9bd;
}
.nexara-copy p strong { color: #e4d8c5; font-weight: 600; }

.nexara-demo {
    background: #faf8f2;
    border: 1px solid #e2d8c8;
    box-shadow: 0 20px 50px rgba(0,0,0,0.24);
    overflow: hidden;
}
.nexara-demo-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: #f0ece3;
    color: #302a22;
    font-weight: 600;
    letter-spacing: 0.04em;
    border-bottom: 1px solid #e2d8c8;
}
.nexara-demo-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #8a775d;
}
.nexara-demo-body {
    padding: 22px 20px;
    min-height: 190px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.nexara-msg {
    max-width: 82%;
    padding: 10px 15px;
    font-size: 0.9rem;
    line-height: 1.5;
    animation: msgIn 0.4s ease both;
}
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.nexara-msg.user { align-self: flex-end; background: #78654c; color: #fffdf8; }
.nexara-msg.bot { align-self: flex-start; background: #f0ede6; color: #3e382f; border: 1px solid #e5ded2; }
.nexara-typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 12px 15px; background: #f0ede6; border: 1px solid #e5ded2; }
.nexara-typing span {
    width: 6px; height: 6px; border-radius: 50%;
    background: #a48d6c;
    opacity: 0.6;
    animation: typingDot 1s ease-in-out infinite;
}
.nexara-typing span:nth-child(2) { animation-delay: 0.15s; }
.nexara-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingDot { 0%, 100% { transform: translateY(0); opacity: 0.4; } 50% { transform: translateY(-4px); opacity: 1; } }

/* Mini shop preview */
.mini-shop-preview { text-align: center; }
.mini-preview-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    text-align: left;
}
.mini-preview-heading span {
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    white-space: nowrap;
}
.mini-preview-line { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(137, 120, 95, 0.4), transparent); }
.mini-preview-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 36px; }
.mini-preview-card {
    position: relative;
    background: rgba(20,20,20,0.7);
    border: 1px solid rgba(137, 120, 95, 0.15);
    overflow: hidden;
    transition: all 0.4s ease;
}
.mini-preview-card:hover {
    border-color: rgba(137, 120, 95, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.5), 0 0 20px rgba(137, 120, 95, 0.1);
}
.mini-preview-card img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    filter: brightness(0.9) contrast(1.05);
    transition: transform 0.6s ease, filter 0.4s ease;
}
.mini-preview-card:hover img { transform: scale(1.05); filter: brightness(1) contrast(1.05); }
.mini-preview-card span {
    display: block;
    padding: 10px 12px;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    color: #e8e8e8;
    border-top: 1px solid rgba(137, 120, 95, 0.1);
    text-align: center;
}

/* Newsletter */
.newsletter-section {
    text-align: center;
    padding: 64px 48px;
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(137, 120, 95, 0.3);
    border-left: 3px solid var(--gold);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), inset 0 1px 0 rgba(137, 120, 95, 0.1);
}
.newsletter-title { font-size: 1.6rem; color: var(--gold-light); margin-bottom: 12px; font-weight: 300; letter-spacing: 0.08em; }
.newsletter-subtitle { font-size: 1rem; color: #999; margin-bottom: 28px; letter-spacing: 0.02em; }
.newsletter-form { display: flex; gap: 10px; max-width: 560px; margin: 0 auto; }
.newsletter-form input {
    flex: 1;
    padding: 16px 20px;
    border: 1px solid rgba(137, 120, 95, 0.4);
    background: rgba(0, 0, 0, 0.3);
    font-size: 1rem;
    color: var(--text);
    outline: none;
    letter-spacing: 0.05em;
    font-family: var(--font-body);
}
.newsletter-form input:focus { border-color: var(--gold); box-shadow: 0 0 20px rgba(137, 120, 95, 0.3); }
.newsletter-form input::placeholder { color: #666; }
.newsletter-form button.cta-primary {
    padding: 16px 28px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
    border: 1px solid rgba(137, 120, 95, 0.6);
    color: #0a0a0a;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
    letter-spacing: 0.06em;
    box-shadow: 0 10px 30px rgba(137, 120, 95, 0.4);
    font-family: var(--font-body);
    transition: all 0.3s ease;
}
.newsletter-form button.cta-primary:hover {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
    box-shadow: 0 16px 50px rgba(137, 120, 95, 0.7);
    transform: translateY(-2px);
}
.newsletter-legal-note { max-width: 560px; margin: 18px auto 0; color: #888; font-size: 0.78rem; line-height: 1.5; }
.newsletter-legal-note a { color: inherit; text-underline-offset: 0.16em; }
.newsletter-admin { margin: 18px 0 0; font-size: 0.7rem; }
.newsletter-admin a { color: #888; opacity: 0.6; text-decoration: none; }
.newsletter-admin a:hover { opacity: 1; }

/* Footer */
.page-footer { text-align: center; padding: 20px 40px 70px; }
.footer-note { font-size: 1rem; color: #666; letter-spacing: 0.05em; font-weight: 300; margin-bottom: 1rem; }
.footer-admin { font-size: 0.75rem; }
.footer-admin a { color: var(--gold); text-decoration: none; opacity: 0.6; }
.footer-admin a:hover { opacity: 1; }

/* Admin Modal (unchanged behaviour) */
.admin-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}
.admin-modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 2.5rem;
    border-radius: 16px;
    border: 2px solid rgba(137, 120, 95, 0.3);
    box-shadow: 0 8px 32px rgba(137, 120, 95, 0.2);
    max-width: 400px;
    width: 90%;
}
.admin-modal input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(137, 120, 95, 0.2);
}
.admin-modal button:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(137, 120, 95, 0.4); }

/* Notifications injected via JS */
@keyframes slideIn { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideOut { from { transform: translateX(0); opacity: 1; } to { transform: translateX(120%); opacity: 0; } }

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .collections { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nexara-section { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .section { padding: 64px 22px; }
    .hero { padding: 40px 20px 30px; }
    .collections { gap: 12px; }
    .collection-panel { padding: 32px 14px; }
    .collection-panel-icon { font-size: 2.2rem; margin-bottom: 14px; }
    .collection-panel h2 { font-size: 1.1rem; letter-spacing: 0.06em; }
    .collection-panel p { font-size: 0.85rem; line-height: 1.5; }
    .mini-preview-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-btn { width: 100%; justify-content: center; }
    .newsletter-form { flex-direction: column; }
    .newsletter-section { padding: 40px 24px; }
    .cursor-glow { display: none; }
}

@media (max-width: 360px) {
    .hero-title { font-size: 2.4rem; letter-spacing: 0.06em; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

body *:hover,
body *:focus-visible {
    --gold: #89785f;
    --gold-light: #d7cbb8;
    --gold-deep: #78654c;
}

body :is(button, input[type="button"], input[type="submit"], [role="button"]):hover,
body :is(button, input[type="button"], input[type="submit"], [role="button"]):focus-visible {
    border-color: #b9aa91 !important;
    background-image: none !important;
    background-color: #e8e2d6 !important;
    color: #51483b !important;
    box-shadow: 0 6px 18px rgba(54, 43, 30, 0.12) !important;
}

body :is(.hero-btn, .cta-primary):hover,
body :is(.hero-btn, .cta-primary):focus-visible {
    border-color: #b9aa91 !important;
    background-image: none !important;
    background-color: #e8e2d6 !important;
    color: #51483b !important;
    box-shadow: 0 6px 18px rgba(54, 43, 30, 0.12) !important;
}

body :is(a, .collection-panel, .mini-preview-card):hover,
body :is(a, .collection-panel, .mini-preview-card):focus-visible {
    border-color: #b9aa91 !important;
    box-shadow: 0 10px 28px rgba(54, 43, 30, 0.16) !important;
}

body a:hover,
body a:focus-visible {
    color: #78654c;
}
