/* ═══════════════════════════════════════════════════════════════════════════
   CRITICAL CSS: Trust Dossier Base, Nav, Hero
   ═══════════════════════════════════════════════════════════════════════════ */
@import '../assets/css/tokens.css';
@import '../assets/css/core.css';

:root {
    --bg-deep: #f5efe4;
    --bg-surface: #fffaf2;
    --bg-elevated: #ffffff;
    --bg-glass: rgba(255, 250, 242, 0.88);
    --bg-soft: #ece1d0;
    --accent-cyan: #335c87;
    --accent-purple: #6b7383;
    --accent-gold: #c4974f;
    --accent-glow: rgba(51, 92, 135, 0.14);
    --accent-glow-purple: rgba(107, 115, 131, 0.12);
    --text-primary: #1d2430;
    --text-secondary: #4f5b6d;
    --text-muted: #687487;
    --border-glass: rgba(29, 36, 48, 0.1);
    --border-strong: rgba(29, 36, 48, 0.16);
    --border-glow: rgba(51, 92, 135, 0.18);
    --shadow-soft: 0 20px 50px rgba(52, 57, 68, 0.08);
    --shadow-glow: 0 18px 42px rgba(52, 57, 68, 0.12);
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Manrope', system-ui, sans-serif;
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;
    --text-4xl: 2.6rem;
    --text-hero: clamp(3rem, 8vw, 5.9rem);
    --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;
    --radius-md: 14px;
    --radius-lg: 24px;
    --radius-xl: 34px;
    --radius-full: 9999px;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --duration-fast: 150ms;
    --duration-normal: 260ms;
    --duration-slow: 420ms;
}

[data-theme="dark"] {
    --bg-deep: #121820;
    --bg-surface: #171d25;
    --bg-elevated: #1d2530;
    --bg-glass: rgba(23, 29, 37, 0.86);
    --bg-soft: #232c39;
    --accent-cyan: #8da8c6;
    --accent-purple: #a6aebd;
    --accent-gold: #d1ab69;
    --accent-glow: rgba(209, 171, 105, 0.12);
    --accent-glow-purple: rgba(141, 168, 198, 0.1);
    --text-primary: #f4efe7;
    --text-secondary: #c2c8d2;
    --text-muted: #97a1af;
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);
    --border-glow: rgba(209, 171, 105, 0.18);
    --shadow-soft: 0 24px 60px rgba(0, 0, 0, 0.24);
    --shadow-glow: 0 28px 64px rgba(0, 0, 0, 0.32);
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes nameReveal {
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(8px);
    }
}

@keyframes spinSlow {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(29, 185, 84, 0.45);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(29, 185, 84, 0);
    }
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.7), transparent 34%),
        linear-gradient(180deg, #f7f2e8 0%, #efe6d8 100%);
    line-height: 1.65;
    overflow-x: hidden;
    min-height: 100vh;
    transition: background-color 220ms ease, color 220ms ease;
}

[data-theme="dark"] body {
    background:
        radial-gradient(circle at top left, rgba(209, 171, 105, 0.06), transparent 24%),
        radial-gradient(circle at 84% 14%, rgba(141, 168, 198, 0.06), transparent 22%),
        linear-gradient(180deg, #10161d 0%, #151b23 54%, #11171f 100%);
}

img {
    max-width: 100%;
    display: block;
    -webkit-user-select: none;
    user-select: none;
}

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

button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul {
    list-style: none;
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1;
    color: var(--text-primary);
}



.nav {
    position: fixed;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: min(calc(100% - 24px), 1120px);
    padding: 8px 12px;
    background: rgba(255, 250, 242, 0.82);
    border: 1px solid var(--border-glass);
    border-radius: 999px;
    box-shadow: 0 12px 30px rgba(52, 57, 68, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

[data-theme="dark"] .nav {
    background: rgba(19, 25, 33, 0.88);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
}

.nav__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}

.nav__logo {
    display: none;
    width: 36px;
    height: 36px;
    overflow: hidden;
    border-radius: 999px;
    border: 1px solid var(--border-glass);
}

.nav__logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.nav__link {
    padding: 9px 12px;
    border-radius: 999px;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 700;
    transition: color var(--duration-fast) ease, background-color var(--duration-fast) ease;
    white-space: nowrap;
}

.nav__link:hover,
.nav__link.active {
    color: var(--text-primary);
    background: rgba(51, 92, 135, 0.08);
}

[data-theme="dark"] .nav__link:hover,
[data-theme="dark"] .nav__link.active {
    background: rgba(255, 255, 255, 0.06);
}

.nav__lang {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-left: 12px;
    border-left: 1px solid var(--border-glass);
}

.lang-btn {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    overflow: hidden;
    opacity: 0.55;
    filter: grayscale(1);
    transition: transform var(--duration-fast) ease, opacity var(--duration-fast) ease, filter var(--duration-fast) ease;
}

.lang-btn:hover,
.lang-btn.active {
    opacity: 1;
    filter: grayscale(0);
    transform: scale(1.06);
}

.lang-btn img {
    width: 22px;
    height: 22px;
    margin: 3px;
    object-fit: cover;
}

.nav__toggle {
    display: none;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.nav__toggle span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--text-primary);
    transition: transform var(--duration-fast) ease, opacity var(--duration-fast) ease;
}

.nav__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.theme-toggle {
    position: absolute;
    right: -10px;
    bottom: 10px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 2px solid var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
    font-size: var(--text-xl);
    box-shadow: 0 6px 20px rgba(196, 151, 79, 0.22);
    transition: transform var(--duration-normal) var(--ease-out), background-color var(--duration-normal) ease, color var(--duration-normal) ease;
    z-index: 10;
}

.theme-toggle:hover {
    transform: scale(1.08);
}

.hero {
    position: relative;
    padding: 150px 0 90px;
}

.hero__decorations,
.hero__shape,
.hero__grid-lines,
.hero__orb {
    display: none;
}

.hero__container {
    display: grid;
    grid-template-columns: minmax(250px, 320px) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
}

.hero__photo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-6);
}

.hero__photo-wrapper {
    position: relative;
}

.hero__photo {
    width: 280px;
    height: 380px;
    border-radius: 9999px;
    overflow: hidden;
    border: 2px solid var(--accent-gold);
    box-shadow:
        0 0 0 8px rgba(255, 184, 0, 0.1),
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 100px var(--accent-glow);
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 1s var(--ease-out) 0.3s forwards;
}

.hero__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    transition: transform 0.5s var(--ease-out);
}

.hero__photo:hover img {
    transform: scale(1.08);
}

.hero__photo-ring {
    position: absolute;
    inset: -20px;
    border: 1px dashed var(--accent-cyan);
    border-radius: 9999px;
    opacity: 0.3;
    animation: spinSlow 30s linear infinite;
}

.hero__photo-dots {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 60px;
    height: 60px;
    background-image: radial-gradient(var(--accent-gold) 2px, transparent 2px);
    background-size: 10px 10px;
    opacity: 0.5;
}

.hero__status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--text-secondary);
}

.hero__status-dot {
    width: 8px;
    height: 8px;
    background: #1db954;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.hero__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
}

.hero__tagline {
    font-size: var(--text-sm);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent-gold);
    opacity: 0;
    animation: slideUp 1s var(--ease-out) 0.1s forwards;
}

.hero__name {
    font-size: var(--text-hero);
    line-height: 0.92;
    letter-spacing: -0.05em;
}

.hero__name-line {
    display: block;
    opacity: 0;
    transform: translateY(32px);
    animation: nameReveal 1s var(--ease-out) forwards;
}

.hero__name-line:nth-child(1) {
    animation-delay: 0.2s;
}

.hero__name-line:nth-child(2) {
    animation-delay: 0.35s;
}

.hero__name-line:nth-child(3) {
    animation-delay: 0.5s;
}

.hero__name-line--accent {
    color: var(--accent-gold);
}

.hero__role {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: var(--text-primary);
    opacity: 0;
    animation: slideUp 1s var(--ease-out) 0.7s forwards;
}

.hero__role-icon {
    color: var(--accent-gold);
    font-size: 0.9rem;
}

.hero__subtitle {
    max-width: 56ch;
    font-size: var(--text-lg);
    color: var(--text-secondary);
    line-height: 1.8;
    opacity: 0;
    animation: slideUp 1s var(--ease-out) 0.8s forwards;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    opacity: 0;
    animation: slideUp 1s var(--ease-out) 0.9s forwards;
}

.hero__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    max-width: 680px;
    padding-top: 16px;
    opacity: 0;
    animation: slideUp 1s var(--ease-out) 1s forwards;
}

.hero__stat {
    padding: 16px 18px;
    align-items: flex-start;
    text-align: left;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid var(--border-glass);
    border-radius: 22px;
}

[data-theme="dark"] .hero__stat {
    background: rgba(255, 255, 255, 0.04);
}

.hero__stat-number {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    color: var(--text-primary);
    line-height: 1.1;
}

.hero__stat-label {
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero__scroll {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
    opacity: 0;
    animation: fadeIn 1s ease 1.4s forwards, bounce 2s ease-in-out 2.4s infinite;
}

.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    margin-left: 4px;
    background: var(--accent-gold);
    animation: blink 0.8s step-end infinite;
}



@media (max-width: 1024px) {
    .hero__container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero__photo-section {
        order: -1;
    }

    .hero__content {
        align-items: center;
    }

    .hero__stats {
        max-width: 520px;
    }
}

@media (max-width: 900px) {
    .nav {
        top: 10px;
        width: min(calc(100% - 18px), 100%);
        border-radius: 24px;
    }

    .nav__logo {
        display: flex;
    }

    .nav__toggle {
        display: flex;
    }

    .nav__links {
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        display: none;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        padding: 12px;
        background: var(--bg-surface);
        border: 1px solid var(--border-glass);
        border-radius: 22px;
        box-shadow: var(--shadow-soft);
        max-height: 56vh;
        overflow-y: auto;
    }

    [data-theme="dark"] .nav__links {
        background: var(--bg-surface);
    }

    .nav__links.open {
        display: grid;
    }

    .nav__link {
        width: 100%;
        min-height: 40px;
        padding: 10px 12px;
        text-align: center;
    }

    .nav__lang {
        margin-left: auto;
        padding-left: 10px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 132px 0 76px;
    }

    .hero__photo {
        width: 200px;
        height: 280px;
    }

    .hero__stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .hero {
        padding: 126px 0 70px;
    }

    .hero__photo {
        width: clamp(140px, 45vw, 180px);
        height: clamp(180px, 60vw, 240px);
    }

    .hero__photo-ring {
        display: none;
    }

    .hero__name {
        font-size: clamp(2.4rem, 14vw, 4rem);
    }

    .nav__links.open {
        grid-template-columns: 1fr;
    }

    .btn,
    .nav__link {
        min-height: 44px;
        min-width: 44px;
    }

    .lang-btn {
        width: 26px;
        height: 26px;
        min-width: 26px;
        min-height: 26px;
    }

    .lang-btn img {
        width: 20px;
        height: 20px;
        margin: 3px;
    }
}