:root {
    --bg: #030305;
    --bg-elevated: rgba(255, 255, 255, 0.04);
    --bg-glass: rgba(255, 255, 255, 0.06);
    --border-subtle: rgba(255, 255, 255, 0.1);
    --cloud: #888888;
    --face: #0a0a0a;
    --text: #fafafa;
    --text-muted: rgba(255, 255, 255, 0.75);
    --accent-1: #22d3ee;
    --accent-2: #a78bfa;
    --accent-3: #f472b6;
    --glow: rgba(34, 211, 238, 0.2);
}

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

@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes float {

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

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

@keyframes pulse-glow {

    0%,
    100% {
        filter: drop-shadow(0 0 40px var(--glow));
    }

    50% {
        filter: drop-shadow(0 0 80px var(--glow)) drop-shadow(0 0 120px rgba(167, 139, 250, 0.15));
    }
}

body {
    min-height: 100vh;
    background-color: var(--bg);
    background-image:
        radial-gradient(ellipse 100% 80% at 50% -30%, rgba(34, 211, 238, 0.12), transparent 60%),
        radial-gradient(ellipse 80% 50% at 100% 100%, rgba(167, 139, 250, 0.08), transparent 50%),
        radial-gradient(ellipse 60% 40% at 0% 80%, rgba(244, 114, 182, 0.06), transparent 40%);
    background-size: 200% 200%;
    animation: gradient-shift 12s ease-in-out infinite;
    font-family: 'Inter', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ==========================================================================
   LANDING PAGE — single screen, no scroll
   ========================================================================== */

.lp {
    position: relative;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

.lp::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    z-index: 0;
}

.lp > * {
    position: relative;
    z-index: 1;
}

/* -- Top nav -- */
.lp-topnav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 48px;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 10;
}

.lp-topnav-brand {
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--text);
    text-decoration: none;
}

.lp-topnav-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.lp-topnav-cta {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s;
}

.lp-topnav-cta:hover {
    color: var(--text);
}

/* -- Lang selector -- */
.lang-selector {
    position: relative;
}

.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.8rem;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.15s;
}

.lang-toggle:hover {
    color: var(--text);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(12, 12, 18, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 4px;
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.15s, visibility 0.15s, transform 0.15s;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.lang-selector.open .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: block;
    padding: 8px 14px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.1s, background 0.1s;
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
}

.lang-option.active {
    color: var(--accent-1);
}

/* -- Single screen layout — fills viewport -- */
.lp-screen {
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    padding-top: 48px;
}

/* -- Main area: 2-column, fills remaining space -- */
.lp-main {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 0;
}

/* -- LEFT: headline -- */
.lp-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 64px;
}

.lp-tag {
    font-family: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    color: var(--accent-1);
    opacity: 0.5;
    margin-bottom: 24px;
}

.lp-h1 {
    font-size: clamp(2.8rem, 5.5vw, 5rem);
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 1.05;
    color: var(--text);
    margin-bottom: 20px;
}

.lp-sub {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-muted);
    opacity: 0.5;
    margin-bottom: 32px;
    max-width: 380px;
}

/* CTA — outline, glow on hover */
.lp-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    width: fit-content;
    transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

.lp-cta:hover {
    border-color: var(--accent-1);
    background: rgba(34, 211, 238, 0.04);
    box-shadow: 0 0 40px rgba(34, 211, 238, 0.12), 0 0 80px rgba(34, 211, 238, 0.05);
}

.lp-cta svg {
    transition: transform 0.2s;
}

.lp-cta:hover svg {
    transform: translateX(3px);
}

/* -- RIGHT: practices column -- */
.lp-right {
    display: flex;
    align-items: center;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.lp-practices {
    width: 100%;
}

.lp-practice {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px 48px;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.2s;
}

.lp-practice:last-child {
    border-bottom: none;
}

.lp-practice:hover {
    background: rgba(255, 255, 255, 0.02);
}

.lp-practice-icon {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--accent-1);
    opacity: 0.35;
    width: 36px;
    flex-shrink: 0;
    text-align: center;
}

.lp-practice-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lp-practice-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}

.lp-practice-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    opacity: 0.4;
}

/* -- Bottom bar: big metrics across full width -- */
.lp-bar {
    flex-shrink: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr) auto;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.lp-bar-metric {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 40px;
    border-right: 1px solid rgba(255, 255, 255, 0.04);
}

.lp-bar-n {
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--text);
}

.lp-bar-unit {
    font-size: 0.6em;
    font-weight: 600;
    opacity: 0.5;
}

.lp-bar-label {
    font-size: 0.68rem;
    line-height: 1.35;
    color: var(--text-muted);
    opacity: 0.3;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.lp-bar-foot {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 16px 40px;
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.12);
    letter-spacing: 0.06em;
    gap: 3px;
    text-align: right;
}

.lp-bar-foot span:first-child {
    font-weight: 700;
    letter-spacing: 0.1em;
}

/* -- LP Mobile -- */
@media (max-width: 900px) {
    .lp-topnav {
        padding: 0 20px;
    }

    .lp-main {
        grid-template-columns: 1fr;
    }

    .lp-left {
        padding: 32px 24px 24px;
    }

    .lp-h1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .lp-right {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    .lp-practice {
        padding: 16px 24px;
        gap: 14px;
    }

    .lp-practice-icon {
        font-size: 1.2rem;
    }

    .lp-bar {
        grid-template-columns: repeat(3, 1fr);
    }

    .lp-bar-metric {
        padding: 16px 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .lp-bar-n {
        font-size: 1.6rem;
    }

    .lp-bar-foot {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        padding: 12px 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.04);
    }
}

/* Nav bar */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    padding: 0 32px;
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(5, 5, 8, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.nav.visible {
    opacity: 1;
    pointer-events: auto;
}

.nav .nav-logo-link {
    display: flex;
    align-items: center;
}

.nav .nav-logo {
    width: 44px;
    height: 44px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.nav .nav-logo:hover {
    transform: scale(1.1);
}

.nav .nav-brand {
    font-size: 1.3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.02em;
    margin-right: auto;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 10px;
    transition: all 0.25s ease;
}

.nav-link:hover {
    color: var(--text);
    background: var(--bg-elevated);
}

.nav-link.active {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Hero animations */
.hero {
    transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero.hiding {
    opacity: 0;
    transform: scale(0.95) translateY(-20px);
    pointer-events: none;
}

.hero.hidden {
    display: none;
}

/* Content area */
.content {
    position: fixed;
    top: 0;
    left: 280px;
    right: 0;
    bottom: 0;
    padding: 48px 64px;
    color: var(--text);
    opacity: 0;
    visibility: hidden;
    overflow-y: auto;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.content.visible {
    opacity: 1;
    visibility: visible;
}

.content h2 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 40px;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.02em;
}

.content p {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1.15rem;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    padding: 24px 20px;
    background: transparent;
    overflow-y: auto;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.sidebar.visible {
    opacity: 1;
    visibility: visible;
}

/* Sidebar brand */
.sidebar-brand {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    padding: 12px 16px;
    margin-bottom: 36px;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.sidebar-brand:hover {
    transform: translateX(4px);
}

.sidebar-brand:hover .sidebar-brand-name {
    background-size: 200% 200%;
    animation: gradient-shift 2s ease infinite;
}

.sidebar-logo {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.sidebar-brand:hover .sidebar-logo {
    transform: scale(1.08);
    filter: drop-shadow(0 0 12px rgba(34, 211, 238, 0.4));
}

.sidebar-brand-name {
    font-size: 1.7rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2), var(--accent-3));
    background-size: 100% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.02em;
    white-space: nowrap;
    transition: background-size 0.3s ease;
}

.sidebar-nav {
    list-style: none;
    margin-bottom: 0;
}

.sidebar-item {
    margin: 4px 0;
}

.sidebar-link {
    display: block;
    padding: 14px 18px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    border-radius: 12px;
    transition: all 0.25s ease;
    position: relative;
}

.sidebar-link:hover {
    color: var(--text);
    background: var(--bg-elevated);
}

.sidebar-link.active {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 600;
}

.sidebar-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, var(--accent-1), var(--accent-2));
    border-radius: 2px;
}

/* Section title */
.sidebar-section {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin: 24px 12px 12px;
    padding-bottom: 0;
    opacity: 0.6;
}

/* Submenu */
.sidebar-submenu {
    list-style: none;
    margin-left: 0;
    margin-bottom: 0;
}

.sidebar-submenu .sidebar-link {
    font-size: 0.95rem;
    padding: 12px 18px;
    font-weight: 400;
}

.sidebar-submenu .sidebar-link:hover {
    color: var(--text);
}

.sidebar-submenu .sidebar-link.active {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 500;
}

/* Author photo with gradient border */
.author-photo-wrap {
    position: relative;
    width: 320px;
    height: 320px;
    flex-shrink: 0;
    transition: transform 0.4s ease;
}

.author-photo-wrap:hover {
    transform: scale(1.02);
}

.author-photo-border {
    position: absolute;
    top: 16px;
    left: 16px;
    right: -16px;
    bottom: -16px;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2), var(--accent-3));
    transform: rotate(3deg);
    z-index: 0;
    opacity: 0.7;
    transition: all 0.4s ease;
}

.author-photo-wrap:hover .author-photo-border {
    transform: rotate(2deg) scale(1.02);
    opacity: 0.9;
}

.author-photo {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
    transition: box-shadow 0.4s ease;
}

.author-photo-wrap:hover .author-photo {
    box-shadow: 0 12px 60px rgba(0, 0, 0, 0.6);
}

/* Stats infographic */
.stats-list {
    display: flex;
    flex-direction: column;
    gap: 48px;
    margin-top: 72px;
    padding-top: 48px;
    border-top: 1px solid var(--border-subtle);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 32px;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateX(8px);
}

.stat-number-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    padding: 16px 24px;
    flex-shrink: 0;
}

.stat-number-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2), var(--accent-3));
    opacity: 0.15;
    transform: rotate(-2deg) skewX(-3deg);
    z-index: 0;
    transition: all 0.3s ease;
}

.stat-item:hover .stat-number-bg {
    opacity: 0.25;
    transform: rotate(-1deg) skewX(-2deg) scale(1.05);
}

.stat-number {
    position: relative;
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    z-index: 1;
    text-shadow: 0 0 60px rgba(34, 211, 238, 0.3);
}

.stat-label {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text);
    line-height: 1.4;
}

@media (max-width: 600px) {
    .stat-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .stat-number {
        font-size: 3rem;
    }

    .stat-label {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        gap: 32px;
        padding: 24px;
    }

    .nav-links {
        display: none;
    }

    .sidebar {
        display: none;
    }

    .content {
        left: 0;
        padding: 24px;
    }

    .content h2 {
        font-size: 2rem;
    }

    .content p {
        font-size: 1rem;
    }
}