/* ============================================
   ATENEA DATA — Design System (Shared)
   ============================================ */
:root {
    --black-deep: #07070B;
    --black-surface: #0E0E14;
    --black-card: #14141C;
    --black-elevated: #1A1A24;
    --border-subtle: #1E1E2A;
    --border-medium: #2A2A38;
    --text-primary: #F0F0F5;
    --text-secondary: #9898A8;
    --text-tertiary: #6A6A7A;
    --accent: #5EEADB;
    --accent-dim: #3BBCAF;
    --accent-glow: rgba(94, 234, 219, 0.08);
    --accent-glow-strong: rgba(94, 234, 219, 0.15);
    --blue-accent: #7B8FCC;
    --font-display: 'Instrument Serif', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--black-deep);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

::selection {
    background: var(--accent);
    color: var(--black-deep);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(24px, 5vw, 80px);
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 clamp(24px, 5vw, 80px);
    transition: all 0.5s var(--ease-out-expo);
}

.nav--scrolled {
    background: rgba(7, 7, 11, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}

.nav__inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.nav__logo {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-primary);
}

.nav__logo span { font-weight: 300; color: var(--accent); }

.nav__links {
    display: flex;
    align-items: center;
    gap: 40px;
    list-style: none;
}

.nav__links a {
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    text-transform: uppercase;
}

.nav__links a:hover { color: var(--text-primary); }

.nav__cta {
    font-size: 0.82rem !important;
    font-weight: 500 !important;
    color: var(--accent) !important;
    padding: 10px 24px;
    border: 1px solid var(--accent-dim);
    border-radius: 2px;
    transition: all 0.3s ease !important;
}

.nav__cta:hover {
    background: var(--accent);
    color: var(--black-deep) !important;
}

.nav__hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
}

.nav__hamburger span {
    width: 24px;
    height: 1.5px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* Section utilities */
.section-tag {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.05rem;
    font-weight: 300;
    color: var(--text-secondary);
    max-width: 560px;
    line-height: 1.7;
    margin-bottom: 64px;
}

/* Page header (for inner pages) */
.page-header {
    padding-top: 160px;
    padding-bottom: clamp(60px, 8vw, 100px);
    border-bottom: 1px solid var(--border-subtle);
}

.page-header__tag {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 24px;
}

.page-header__title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 20px;
}

.page-header__subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.7;
}

/* Footer */
.footer {
    padding: 48px 0;
    border-top: 1px solid var(--border-subtle);
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer__logo {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.footer__logo span { font-weight: 300; color: var(--accent); }

.footer__links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.footer__links a {
    font-size: 0.82rem;
    color: var(--text-tertiary);
    transition: color 0.3s ease;
}

.footer__links a:hover { color: var(--text-secondary); }

.footer__copy { font-size: 0.78rem; color: var(--text-tertiary); }

.footer__legal {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
    justify-content: center;
}

.footer__legal a {
    font-size: 0.72rem;
    color: var(--text-tertiary);
    transition: color 0.3s ease;
}

.footer__legal a:hover { color: var(--text-secondary); }

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.9s var(--ease-out-expo);
}

.reveal--visible {
    opacity: 1;
    transform: translateY(0);
}

.nav__lang {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
}

.nav__lang a {
    color: var(--text-tertiary) !important;
    padding: 4px 8px;
    border-radius: 2px;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    font-weight: 500 !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.08em !important;
}

.nav__lang a:hover { color: var(--text-secondary) !important; }

.nav__lang a.active {
    color: var(--accent) !important;
    background: var(--accent-glow);
}

.nav__lang-sep {
    color: var(--border-medium);
    font-size: 0.7rem;
    user-select: none;
}

/* Responsive nav */
@media (max-width: 768px) {
    .nav__links { display: none; }
    .nav__hamburger { display: flex; }
    .nav__links--open {
        display: flex;
        flex-direction: column;
        position: fixed;
        inset: 0;
        background: var(--black-deep);
        align-items: center;
        justify-content: center;
        gap: 32px;
        z-index: 999;
    }
    .nav__links--open a { font-size: 1.2rem; }
    .footer__inner {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .footer__links { flex-wrap: wrap; justify-content: center; }
}
