/* ═══════════════════════════════════════════════════
   Leonid Batykin — One-Screen Landing
   LIGHT Theme • Ikurriña Tags • Bilingual (ES/EN)
   ═══════════════════════════════════════════════════ */

:root {
    --c-bg:        #fafafa;
    --c-surface:   #ffffff;
    --c-border:    rgba(0, 0, 0, 0.08);
    --c-border-h:  rgba(0, 0, 0, 0.15);
    --c-text:      #111111;
    --c-text-dim:  #555555;
    --c-text-muted:#999999;

    /* Ikurriña palette */
    --c-iku-red:   #D52B1E;
    --c-iku-green: #009B48;
    --c-iku-white: #ffffff;

    /* CTA color — dark, professional */
    --c-cta:       #111111;
    --c-cta-hover: #333333;

    --f-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --r: 16px;
    --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

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

html {
    -webkit-text-size-adjust: 100%;
    height: 100%;
}

body {
    font-family: var(--f-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--c-text);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

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

::selection {
    background: var(--c-iku-green);
    color: #fff;
}


/* ─── Background ─── */
.bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.bg__gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 10% 30%, rgba(213, 43, 30, 0.04) 0%, transparent 70%),
        radial-gradient(ellipse 50% 60% at 90% 70%, rgba(0, 155, 72, 0.04) 0%, transparent 70%);
    animation: glow 12s ease-in-out infinite alternate;
}

@keyframes glow {
    0%   { opacity: 0.4; }
    100% { opacity: 1; }
}

.bg__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,0,0,0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.018) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 0%, transparent 70%);
}


/* ─── Language Switcher ─── */
.lang {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 100;
    display: flex;
    gap: 2px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 100px;
    padding: 3px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.lang__btn {
    font-family: var(--f-sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 0.35rem 0.7rem;
    border: none;
    border-radius: 100px;
    background: transparent;
    color: var(--c-text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang__btn.is-active {
    background: var(--c-text);
    color: var(--c-bg);
}

.lang__btn:not(.is-active):hover {
    color: var(--c-text-dim);
}


/* ─── Page Layout ─── */
.page {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 4rem 1.5rem 3rem;
}

.page__inner {
    max-width: 640px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}


/* ─── Profile (Photo + Name) ─── */
.profile {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.profile__photo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--c-border);
    flex-shrink: 0;
    transition: border-color 0.3s ease;
}

.profile__photo:hover {
    border-color: var(--c-iku-green);
}

.profile__info {
    text-align: left;
}

.profile__name {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.profile__role {
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 0.15rem;
    background: linear-gradient(135deg, var(--c-iku-red), var(--c-iku-green));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}


/* ─── Headline ─── */
.headline {
    font-size: clamp(1.6rem, 4.5vw, 2.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    max-width: 580px;
}

.accent {
    background: linear-gradient(135deg, var(--c-iku-red) 0%, var(--c-iku-green) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}


/* ─── Description ─── */
.description {
    font-size: clamp(0.9rem, 1.5vw, 1.05rem);
    line-height: 1.7;
    color: var(--c-text-dim);
    max-width: 520px;
}


/* ─── Tags (Ikurriña gradient) ─── */
.tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.tag {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    border-radius: 100px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    color: var(--c-text-dim);
    letter-spacing: 0.01em;
    transition: all 0.3s ease;
}

.tag:hover {
    border-color: var(--c-border-h);
    color: var(--c-text);
}

.tag--accent {
    background: linear-gradient(135deg, var(--c-iku-red), var(--c-iku-green));
    border-color: transparent;
    color: #fff;
    -webkit-text-fill-color: #fff;
}

.tag--accent:hover {
    box-shadow: 0 4px 16px rgba(213, 43, 30, 0.2), 0 4px 16px rgba(0, 155, 72, 0.2);
}


/* ─── Actions (CTA + Social) ─── */
.actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--f-sans);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.85rem 1.75rem;
    border: none;
    border-radius: 100px;
    background: var(--c-cta);
    color: #fff;
    cursor: pointer;
    transition: all 0.4s var(--ease);
    white-space: nowrap;
    line-height: 1;
}

.btn__icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.btn--glow {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.btn:hover {
    background: var(--c-cta-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}

.btn:active {
    transform: translateY(0);
}

.social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--c-border);
    color: var(--c-text-dim);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.social:hover {
    border-color: var(--c-iku-green);
    color: var(--c-iku-green);
    background: rgba(0, 155, 72, 0.06);
}

.social__icon {
    width: 18px;
    height: 18px;
}


/* ─── Footer ─── */
.footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 1.25rem 1.5rem;
    font-size: 0.72rem;
    color: var(--c-text-muted);
}


/* ─── i18n transition ─── */
[data-i18n] {
    transition: opacity 0.25s ease;
}

[data-i18n].is-switching {
    opacity: 0;
}


/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */

@media (max-width: 380px) {
    .page__inner { gap: 1.25rem; }
    .profile__photo { width: 56px; height: 56px; }
    .profile__name { font-size: 1.1rem; }
    .btn { font-size: 0.85rem; padding: 0.75rem 1.4rem; }
}

@media (min-height: 800px) {
    .page__inner { gap: 1.75rem; }
}

@media (max-height: 500px) {
    .page { padding-top: 3rem; padding-bottom: 1rem; min-height: auto; }
    .page__inner { gap: 1rem; }
    .profile__photo { width: 48px; height: 48px; }
}
