* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1a202c;
    background: #ffffff;
    padding-bottom: 100px;
}

a { color: #165DFF; text-decoration: none; }
a:hover { color: #0d4bc4; }

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

/* RUO BANNER */
.ruo-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #8b0000;
    color: #fff;
    padding: 10px 20px;
    z-index: 9999;
    text-align: center;
    font-size: 0.7rem;
    border-top: 2px solid #ff4444;
}
.ruo-banner strong { color: #ff8888; }

/* HEADER */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 0;
}
.header-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.logo a { font-size: 1.3rem; font-weight: 700; color: #1a202c; }
.logo .gold { color: #D4A853; }
.logo-sub { font-size: 0.6rem; color: #64748b; display: block; }
.primary-nav ul {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    list-style: none;
}
.primary-nav a {
    color: #4a5568;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
}
.primary-nav a:hover,
.primary-nav a.active {
    color: #165DFF;
    border-bottom-color: #165DFF;
}
.btn-logout {
    background: transparent;
    border: 1px solid #e2e8f0;
    color: #4a5568;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.75rem;
    cursor: pointer;
    font-family: inherit;
}
.btn-logout:hover { background: #f1f5f9; }
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #1a202c;
    cursor: pointer;
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 10px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
}
.btn-primary { background: #165DFF; color: #ffffff; }
.btn-primary:hover { background: #0d4bc4; transform: translateY(-2px); box-shadow: 0 4px 16px rgba(22,93,255,0.25); }
.btn-secondary { background: transparent; border: 2px solid #165DFF; color: #165DFF; }
.btn-secondary:hover { background: #165DFF; color: #ffffff; transform: translateY(-2px); }
.btn-lg { padding: 12px 36px; font-size: 1rem; }
.btn-sm { padding: 6px 16px; font-size: 0.75rem; }

/* BADGES */
.badge-group { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
}
.badge-featured { background: #fef3c7; color: #92400e; border: 1px solid #f59e0b; }
.badge-green { background: #dcfce7; color: #065f46; border: 1px solid #10b981; }
.badge-blue { background: #dbeafe; color: #1e40af; border: 1px solid #60a5fa; }
.badge-research { background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; }
.badge-public { background: #dcfce7; color: #065f46; border: 1px solid #10b981; }
.badge-private { background: #fee2e2; color: #991b1b; border: 1px solid #f87171; }
.badge-category { background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; }

/* HERO */
.hero { padding: 60px 0 40px; background: #ffffff; border-bottom: 1px solid #e2e8f0; }
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.hero-content h1 {
    font-size: 2.6rem;
    font-weight: 700;
    color: #1a202c;
    line-height: 1.15;
    margin-bottom: 16px;
}
.hero-sub { font-size: 1.1rem; color: #4a5568; max-width: 560px; line-height: 1.7; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* STATS */
.stats { padding: 48px 0; background: #f8fafc; border-bottom: 1px solid #e2e8f0; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
    text-align: center;
}
.stat-number { display: block; font-size: 2.4rem; font-weight: 700; color: #165DFF; }
.stat-label { font-size: 0.75rem; color: #64748b; }

/* SECTIONS */
section { padding: 48px 0; }
section:nth-child(even) { background: #f8fafc; }
section:nth-child(odd) { background: #ffffff; }

.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { font-size: 2rem; font-weight: 600; color: #1a202c; }
.section-header p { color: #4a5568; max-width: 600px; margin: 0 auto; }
.section-divider {
    width: 60px;
    height: 3px;
    background: #165DFF;
    margin: 12px auto 20px;
    border: none;
}

/* CARDS */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    transition: 0.3s;
}
.card:hover { border-color: #165DFF; transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.card h3 { color: #165DFF; font-size: 1.1rem; margin-bottom: 8px; }
.card p { color: #4a5568; font-size: 0.9rem; line-height: 1.7; }

/* ORIGIN STORY */
.origin-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    align-items: start;
}
.origin-story {
    background: #f8fafc;
    border-left: 4px solid #165DFF;
    padding: 24px 28px;
    border-radius: 0 12px 12px 0;
}
.origin-story .year { color: #165DFF; font-weight: 600; font-size: 0.9rem; }
.origin-story blockquote {
    font-size: 1.05rem;
    font-style: italic;
    border-left: 3px solid #D4A853;
    padding-left: 20px;
    margin: 16px 0;
}
.origin-story .attribution { color: #64748b; font-size: 0.85rem; }

/* ARTEMIS */
.artemis-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}
.artemis-pillar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    transition: 0.3s;
}
.artemis-pillar:hover { border-color: #165DFF; transform: translateY(-4px); }
.artemis-pillar .icon { font-size: 2rem; display: block; }
.artemis-pillar h4 { color: #1a202c; font-size: 0.85rem; font-weight: 600; }
.artemis-pillar p { color: #64748b; font-size: 0.7rem; }
.artemis-pillar.highlight { border-color: #D4A853; background: #fefcf7; }
.artemis-pillar.highlight h4 { color: #92400e; }

/* PARTNER CARDS */
.partner-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: 0.3s;
}
.partner-card:hover { border-color: #165DFF; transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.partner-card .name { font-weight: 600; color: #1a202c; }
.partner-card .location { font-size: 0.8rem; color: #64748b; }
.partner-card .desc { font-size: 0.85rem; color: #4a5568; margin-top: 8px; }

/* MODAL */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(4px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal-box {
    background: #ffffff;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 32px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.modal-close {
    position: absolute;
    top: 12px;
    right: 20px;
    font-size: 28px;
    color: #64748b;
    cursor: pointer;
    background: none;
    border: none;
}
.modal-close:hover { color: #1a202c; }
.modal-box h2 { color: #165DFF; font-size: 1.4rem; }
.modal-box .desc { color: #4a5568; font-size: 0.95rem; line-height: 1.7; }

/* SEARCH/FILTER */
.search-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}
.search-filter input,
.search-filter select {
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #1a202c;
    font-size: 0.9rem;
    flex: 1;
    min-width: 150px;
    font-family: inherit;
}
.search-filter input:focus,
.search-filter select:focus { outline: none; border-color: #165DFF; }

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}
.filter-tabs button {
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 500;
    transition: 0.2s;
    font-family: inherit;
}
.filter-tabs button:hover,
.filter-tabs button.active {
    border-color: #165DFF;
    color: #165DFF;
    background: #f1f5f9;
}

/* PRODUCTS */
.product-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 14px;
    transition: 0.2s;
}
.product-item:hover { border-color: #165DFF; }
.product-item .trade { font-weight: 600; color: #1a202c; font-size: 0.9rem; }
.product-item .generic { font-size: 0.7rem; color: #64748b; }
.product-item .desc { font-size: 0.7rem; color: #94a3b8; font-style: italic; }

/* ACCESS GATE */
.access-gate {
    max-width: 500px;
    margin: 40px auto;
    padding: 32px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    text-align: center;
}
.access-gate input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}
.access-gate input:focus { outline: none; border-color: #165DFF; }

/* FOOTER */
.site-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 40px 0 20px;
    border-top: 1px solid #1e293b;
    font-size: 0.8rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
}
.footer-col h4 { color: #ffffff; font-size: 0.9rem; margin-bottom: 8px; }
.footer-col a { color: #94a3b8; display: block; padding: 3px 0; font-size: 0.8rem; }
.footer-col a:hover { color: #D4A853; }
.footer-bottom {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 20px;
    margin-top: 20px;
    text-align: center;
    font-size: 0.7rem;
    opacity: 0.6;
}
.footer-brand .gold { color: #D4A853; font-weight: 700; }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-actions { justify-content: center; }
    .hero-visual { display: none; }
    .stats-grid { grid-template-columns: repeat(3, 1fr); }
    .artemis-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .header-grid { flex-direction: column; align-items: stretch; }
    .primary-nav ul { justify-content: center; gap: 12px; }
    .header-actions { justify-content: center; }
    .mobile-toggle { display: block; }
    .primary-nav { display: none; }
    .primary-nav.open {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        padding: 20px;
        border-bottom: 1px solid #e2e8f0;
    }
    .primary-nav.open ul { flex-direction: column; align-items: center; gap: 12px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .origin-grid { grid-template-columns: 1fr; }
    .artemis-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .artemis-grid { grid-template-columns: 1fr; }
    .badge-group { justify-content: center; }
}

