/* Chebo Systems — Design System. World-class: typography, spacing, hierarchy. */
:root {
    --bg: #08090a;
    --bg-elevated: #0e1012;
    --bg-card: #111315;
    --bg-card-hover: #161a1d;
    --gold: #d4a84b;
    --gold-soft: rgba(212, 168, 75, 0.12);
    --gold-border: rgba(212, 168, 75, 0.25);
    --accent: #c45c3e;
    --text: #f0ede8;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --border: rgba(255,255,255,0.06);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-24: 6rem;
    --font: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    --text-display: clamp(2.5rem, 5vw + 1rem, 4rem);
    --text-h1: clamp(1.875rem, 3vw + 0.5rem, 2.75rem);
    --text-h2: clamp(1.5rem, 2.5vw + 0.5rem, 2rem);
    --text-h3: clamp(1.125rem, 1.5vw + 0.25rem, 1.375rem);
    --text-body: 1rem;
    --text-small: 0.875rem;
    --text-caption: 0.75rem;
    --leading-tight: 1.15;
    --leading-normal: 1.5;
    --leading-relaxed: 1.65;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    font-size: var(--text-body);
    line-height: var(--leading-normal);
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

.text-gold { color: var(--gold) !important; }
.bg-gold { background-color: var(--gold) !important; }

/* Typography */
.heading-display { font-size: var(--text-display); font-weight: 900; line-height: var(--leading-tight); letter-spacing: -0.03em; }
.heading-1 { font-size: var(--text-h1); font-weight: 800; line-height: var(--leading-tight); }
.heading-2 { font-size: var(--text-h2); font-weight: 800; line-height: var(--leading-tight); }
.heading-3 { font-size: var(--text-h3); font-weight: 700; }
.body { font-size: var(--text-body); color: var(--text-secondary); line-height: var(--leading-relaxed); }
.caption { font-size: var(--text-caption); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }

/* Layout */
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 var(--space-6); }
.container-narrow { max-width: 720px; }
.container-wide { max-width: 1280px; }
.section { padding: var(--space-16) 0; }
.section-lg { padding: var(--space-24) 0; }
.section-alt { background: var(--bg-elevated); }
.section-dark { background: var(--bg-card); }

/* Nav */
.nav-wrap {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(8,9,10,0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: var(--space-4) var(--space-6);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-4);
}
.nav-logo {
    font-size: 1.25rem;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -0.02em;
    text-decoration: none;
    color: var(--text);
}
.nav-logo span { color: var(--gold); }
.nav-logo:hover { color: var(--text); }
.nav-logo:hover span { color: var(--text); }
.nav-links { display: flex; gap: var(--space-8); align-items: center; }
.nav-links a {
    font-size: var(--text-caption);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    text-decoration: none;
    position: relative;
    transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: var(--gold);
    transition: width 0.2s;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* Lang switcher */
#chebo-lang-switcher { display: flex; align-items: center; gap: 0; margin-right: var(--space-4); }
.lang-btn {
    padding: var(--space-1) var(--space-2);
    font-size: var(--text-caption);
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.lang-btn:hover { color: var(--text-secondary); }
.lang-btn.active { color: var(--gold); border-color: var(--gold-border); background: var(--gold-soft); }

/* Buttons */
.btn-cta {
    display: inline-block;
    background: var(--gold);
    color: #0a0a0a;
    padding: var(--space-3) var(--space-6);
    border-radius: 9999px;
    font-weight: 800;
    font-size: var(--text-caption);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    text-decoration: none;
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}
.btn-cta:hover { transform: translateY(-2px); background: #e0b85a; box-shadow: 0 8px 24px rgba(212,168,75,0.2); }
.btn-secondary {
    display: inline-block;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: var(--text-small);
    color: var(--text);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
}
.btn-secondary:hover { border-color: var(--gold-border); background: var(--gold-soft); }

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: border-color 0.3s, background 0.3s, transform 0.3s, box-shadow 0.3s;
}
.card:hover {
    border-color: var(--gold-border);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 24px 48px rgba(0,0,0,0.2);
}
.glass {
    background: rgba(255,255,255,0.02);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
}

/* Stats bar */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-8);
    text-align: center;
    padding: var(--space-12) 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
@media (max-width: 640px) { .stats-bar { grid-template-columns: repeat(2, 1fr); gap: var(--space-6); } }
.stat-value { font-size: var(--text-h1); font-weight: 900; color: var(--gold); }
.stat-label { font-size: var(--text-caption); font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-top: var(--space-1); }

/* Product card */
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.product-card:hover { border-color: var(--gold-border); background: var(--bg-card-hover); box-shadow: 0 16px 40px rgba(0,0,0,0.15); }
.product-card .icon-wrap {
    width: 48px; height: 48px;
    border-radius: var(--radius-md);
    background: var(--gold-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.25rem;
    margin-bottom: var(--space-4);
}
.product-card .title { font-size: var(--text-h3); font-weight: 700; margin-bottom: var(--space-2); }
.product-card .desc { font-size: var(--text-small); color: var(--text-secondary); line-height: var(--leading-relaxed); margin-bottom: var(--space-4); }
.product-card .result { font-size: var(--text-caption); font-weight: 800; color: var(--gold); text-transform: uppercase; letter-spacing: 0.06em; }
.product-card .meta { font-size: var(--text-caption); color: var(--text-muted); margin-top: var(--space-2); }

/* Reveal */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.4,0,0.2,1), transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
.reveal.active { opacity: 1; transform: translateY(0); }

/* Chebo avatar */
.chebo-float { animation: chebo-float 4s ease-in-out infinite; }
@keyframes chebo-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(2deg); }
}
.chebo-angry { animation: chebo-shake 0.12s infinite; filter: saturate(1.2) contrast(1.05); }
@keyframes chebo-shake {
    0%{transform:translate(1px,1px) rotate(0deg)}
    25%{transform:translate(-3px,0) rotate(1deg)}
    50%{transform:translate(3px,-1px) rotate(-1deg)}
    100%{transform:translate(1px,-2px) rotate(-1deg)}
}

/* Marquee */
.marquee-wrap { overflow: hidden; }
.marquee-inner {
    display: flex;
    width: max-content;
    gap: 4rem;
    animation: marquee 25s linear infinite;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@keyframes ping { 0%{opacity:1} 50%{opacity:0.4} 100%{opacity:1} }
.ping { animation: ping 0.6s ease-in-out infinite; }

/* Filter */
.filter-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); margin-bottom: var(--space-8); }
.filter-btn {
    padding: var(--space-2) var(--space-4);
    border-radius: 9999px;
    font-weight: 700;
    font-size: var(--text-small);
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}
.filter-btn:hover { border-color: var(--gold-border); color: var(--text); }
.filter-btn.active { background: var(--gold); color: #0a0a0a; border-color: var(--gold); }

/* Grid */
.grid { display: grid; gap: var(--space-6); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* FAQ */
.faq-item {
    cursor: pointer;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-4) var(--space-6);
    margin-bottom: var(--space-3);
    transition: border-color 0.2s, background 0.2s;
}
.faq-item:hover { border-color: var(--gold-border); background: var(--bg-card-hover); }
.faq-item h2 { font-size: var(--text-small); font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); }
.faq-item .faq-answer { display: none; margin-top: var(--space-4); color: var(--text-secondary); font-size: var(--text-small); line-height: var(--leading-relaxed); }
.faq-item.open .faq-answer { display: block !important; }
.faq-q { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); }

/* Footer */
.site-footer {
    padding: var(--space-16) 0 var(--space-8);
    border-top: 1px solid var(--border);
    background: var(--bg-elevated);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-12);
    margin-bottom: var(--space-12);
}
@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
}
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand { font-size: 1.5rem; font-weight: 900; font-style: italic; }
.footer-brand span { color: var(--gold); }
.footer-desc { font-size: var(--text-small); color: var(--text-muted); margin-top: var(--space-2); max-width: 280px; }
.footer-heading { font-size: var(--text-caption); font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-secondary); margin-bottom: var(--space-4); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: var(--space-2); }
.footer-links a { color: var(--text-secondary); text-decoration: none; font-size: var(--text-small); transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { padding-top: var(--space-6); border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-4); }
.footer-bottom p { font-size: var(--text-caption); color: var(--text-muted); margin: 0; }
.footer-social { display: flex; gap: var(--space-4); }
.footer-social a { color: var(--text-muted); font-size: 1.125rem; transition: color 0.2s; }
.footer-social a:hover { color: var(--gold); }

/* Form */
.form-group { margin-bottom: var(--space-4); }
.form-label { display: block; font-size: var(--text-caption); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: var(--space-2); }
.form-input, .form-textarea {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    color: var(--text);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}
.form-input:focus, .form-textarea:focus { border-color: var(--gold); }
.form-textarea { resize: none; min-height: 120px; }
.btn-submit {
    width: 100%;
    background: var(--gold);
    color: #0a0a0a;
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-md);
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(212,168,75,0.2); }

/* Chat widget (keep existing) */
#chebo-chat-wrap { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 999; font-family: var(--font); }
#chebo-chat-btn {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--gold);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: var(--gold);
    font-size: 1.375rem;
    transition: transform 0.2s, box-shadow 0.2s;
}
#chebo-chat-btn:hover { transform: scale(1.08); box-shadow: 0 12px 32px rgba(212,168,75,0.2); }
#chebo-chat-btn.angry { border-color: var(--accent); color: var(--accent); animation: chebo-shake 0.12s infinite; }
#chebo-chat-panel {
    position: absolute;
    bottom: calc(56px + 12px);
    right: 0;
    width: 360px;
    max-height: 440px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 64px rgba(0,0,0,0.4);
    display: none;
    flex-direction: column;
    overflow: hidden;
}
#chebo-chat-panel.open { display: flex; }
.chebo-chat-header { padding: var(--space-4); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: var(--space-3); }
.chebo-chat-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--gold-soft); border: 1px solid var(--gold-border); display: flex; align-items: center; justify-content: center; color: var(--gold); font-size: 1.125rem; flex-shrink: 0; }
.chebo-chat-header-txt { flex: 1; min-width: 0; }
.chebo-chat-title { font-weight: 800; font-size: 0.9375rem; }
.chebo-chat-status { font-size: var(--text-caption); color: var(--text-muted); }
.chebo-chat-gear {
    width: 36px; height: 36px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.04);
    color: var(--text-muted);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.chebo-chat-gear:hover { color: var(--gold); border-color: var(--gold-border); background: var(--gold-soft); }
.chebo-chat-footer { padding: 0 var(--space-4) var(--space-4); }
.chebo-touch-ears { margin-top: 0; }
.chebo-chat-messages { flex: 1; overflow-y: auto; padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); min-height: 180px; max-height: 260px; }
.chebo-msg { max-width: 88%; padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); font-size: var(--text-small); line-height: 1.45; }
.chebo-msg.user { align-self: flex-end; background: var(--gold-soft); border: 1px solid var(--gold-border); }
.chebo-msg.bot { align-self: flex-start; background: rgba(255,255,255,0.04); border: 1px solid var(--border); }
.chebo-msg.bot.angry { border-color: rgba(196,92,62,0.4); background: rgba(196,92,62,0.08); }
.chebo-msg.chebo-typing { padding: var(--space-4); }
.chebo-typing span { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); margin-right: 4px; animation: chebo-dot 1.2s ease-in-out infinite both; }
.chebo-typing span:nth-child(2) { animation-delay: 0.2s; }
.chebo-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes chebo-dot { 0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); } 40% { opacity: 1; transform: scale(1); } }
.chebo-chat-input-wrap { padding: var(--space-3); border-top: 1px solid var(--border); display: flex; gap: var(--space-2); align-items: center; }
.chebo-chat-input { flex: 1; background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: var(--space-3); color: var(--text); font-size: var(--text-small); outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
.chebo-chat-input:focus { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold-soft); }
.chebo-chat-input::placeholder { color: var(--text-muted); }
.chebo-chat-send { width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--gold); color: #0a0a0a; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1rem; transition: transform 0.2s; }
.chebo-chat-send:hover { transform: scale(1.05); }
.chebo-touch-ears { padding: var(--space-2) var(--space-3); font-size: var(--text-caption); background: transparent; border: 1px dashed var(--gold-border); color: var(--gold); border-radius: var(--radius-sm); cursor: pointer; transition: all 0.2s; }
.chebo-touch-ears:hover { background: var(--gold-soft); }

/* Chat settings modal */
.chebo-settings-overlay {
    position: fixed; inset: 0;
    z-index: 10000;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-6);
}
.chebo-settings-modal {
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 64px rgba(0,0,0,0.4);
}
.chebo-settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4) var(--space-6);
    border-bottom: 1px solid var(--border);
}
.chebo-settings-header h3 { margin: 0; font-size: var(--text-h3); font-weight: 800; }
.chebo-settings-close {
    width: 36px; height: 36px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: color 0.2s, background 0.2s;
}
.chebo-settings-close:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.chebo-settings-body { padding: var(--space-6); }
.chebo-settings-hint { font-size: var(--text-small); color: var(--text-muted); margin-bottom: var(--space-4); line-height: 1.5; }
.chebo-settings-hint code { font-size: 0.85em; padding: 0.1em 0.35em; background: rgba(255,255,255,0.06); border-radius: 4px; }

/* Tip */
.chebo-tip { position: fixed; bottom: 5.5rem; left: 1.5rem; max-width: 280px; padding: var(--space-3); background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); font-size: var(--text-small); color: var(--text-muted); box-shadow: 0 12px 32px rgba(0,0,0,0.3); opacity: 0; transform: translateY(8px); transition: opacity 0.3s, transform 0.3s; z-index: 90; pointer-events: none; }
.chebo-tip.show { opacity: 1; transform: translateY(0); }
.chebo-tip .tip-prefix { font-weight: 800; color: var(--gold); }

#confetti-wrap { position: fixed; inset: 0; pointer-events: none; z-index: 9999; overflow: hidden; }

/* Utils */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }
.text-center { text-align: center; }
.max-w-prose { max-width: 42rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

@media (max-width: 768px) {
    .nav-links { display: none; }
    .section, .section-lg { padding: var(--space-12) 0; }
    #chebo-chat-panel { width: calc(100vw - 2rem); right: 1rem; max-height: 70vh; }
    #chebo-lang-switcher { margin-right: 0; }
}
.contact-main-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
@media (max-width: 768px) {
    .contact-main-grid { grid-template-columns: 1fr; }
    .form-grid-2 { grid-template-columns: 1fr !important; }
}
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.contact-link:hover { color: var(--gold) !important; }
.contact-link:hover span:first-child { border-color: var(--gold) !important; background: var(--gold-soft) !important; }
