/* ============================================================
   Nereus Landing — Custom Color Palette & Unified UI System
   Palette: #384959, #6A89A7, #88BDF2, #BDDDFC
   ============================================================ */

:root {
    /* User Specific 4-Color Palette */
    --c-dark-slate:     #384959; /* Core Dark Slate */
    --c-muted-slate:    #6A89A7; /* Muted Slate Blue */
    --c-sky-blue:       #88BDF2; /* Sky Blue Accent */
    --c-ice-blue:       #BDDDFC; /* Ice Light Blue */

    /* Mapped Theme Tokens */
    --bg-dark:          #1f2a36; /* Deepest Background */
    --bg-surface:       #293644; /* Surface Elements */
    --bg-card:          #384959; /* Card Container */
    --bg-card-hover:    #43576b; /* Card Hover State */

    --border-subtle:    rgba(106, 137, 167, 0.35);
    --border-bright:    rgba(189, 221, 252, 0.5);
    --border-accent:    rgba(136, 189, 242, 0.6);

    --text-primary:     #ffffff;
    --text-muted:       #BDDDFC;
    --text-dim:         #6A89A7;

    --accent-primary:   #88BDF2;
    --accent-glow:      rgba(136, 189, 242, 0.35);
    --accent-light:     #BDDDFC;

    /* Fonts */
    --font-heading:     "Plus Jakarta Sans", -apple-system, sans-serif;
    --font-body:        "Inter", -apple-system, sans-serif;
    --font-mono:        "JetBrains Mono", monospace;

    /* Geometry & Motion */
    --radius-sm:        0.375rem;
    --radius-md:        0.5rem;
    --radius-lg:        0.75rem;
    --radius-xl:        1rem;
    --transition:       0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-glow:      0 0 30px -5px rgba(136, 189, 242, 0.3);
}

/* ===== Reset & Base ===== */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background: var(--bg-dark);
    color: var(--text-primary);
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
}

/* Noise overlay */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    opacity: 0.5;
}

/* Ambient Backdrop Grid */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(136, 189, 242, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(189, 221, 252, 0.08) 0%, transparent 40%),
        linear-gradient(to right, rgba(106, 137, 167, 0.06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(106, 137, 167, 0.06) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
    pointer-events: none;
    z-index: 0;
}

img, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

ul {
    list-style: none;
}

button, input {
    font-family: inherit;
    font-size: inherit;
}

:focus-visible {
    outline: 2px solid var(--c-sky-blue);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

/* ===== Skip Link ===== */

.skip-link {
    position: absolute;
    top: -3rem;
    left: 1.5rem;
    background: var(--c-sky-blue);
    color: var(--c-dark-slate);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 700;
    z-index: 1000;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 1rem;
}

/* ===== Containers & Grid ===== */

.container {
    max-width: 76rem;
    margin-inline: auto;
    padding-inline: 1.5rem;
    position: relative;
    z-index: 1;
}

.text-center {
    text-align: center;
}

/* ===== Header ===== */

.site-header {
    position: sticky;
    top: 0;
    background: rgba(31, 42, 54, 0.92);
    border-bottom: 1px solid var(--border-subtle);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 100;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease, border-bottom-color 0.2s ease;
    touch-action: pan-x;
    user-select: none;
    -webkit-user-select: none;
}

.site-header.header--hidden {
    transform: translateY(-100%);
}

.site-header.header--dragging {
    transition: none;
}

.header-drag-handle {
    position: absolute;
    bottom: -9px;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 18px;
    background: rgba(31, 42, 54, 0.98);
    border: 1px solid var(--border-bright);
    border-top: none;
    border-radius: 0 0 10px 10px;
    z-index: 101;
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

.header-drag-handle::before {
    content: "";
    width: 28px;
    height: 3px;
    border-radius: 2px;
    background: var(--text-secondary, rgba(255, 255, 255, 0.5));
}

.header-drag-handle:active {
    cursor: grabbing;
}

.site-header.scrolled {
    background: rgba(31, 42, 54, 0.98);
    border-bottom-color: var(--border-bright);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 0.85rem;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    margin-right: 0.5rem; /* Clear separation from nav links */
}

.site-header .container {
    max-width: 90rem;
}

.logo-img {
    height: 144px;
    width: auto;
    max-height: 144px;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(136, 189, 242, 0.4));
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.logo-text__dot {
    color: var(--c-sky-blue);
}

.nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.nav__list {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-right: auto;
    flex-wrap: wrap;
}

.nav__list a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--c-ice-blue);
    white-space: nowrap; /* Prevent multiline wrapping like "Дорожная карта" */
    transition: color var(--transition);
}

.nav__list a:hover {
    color: var(--c-sky-blue);
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: flex-end;
    margin-left: auto;
    flex-wrap: wrap;
}

.nav__actions .btn,
.nav__actions .cmd-k-trigger {
    padding: 0 0.75rem;
}

/* ===== Language Switcher ===== */

.lang-switcher {
    position: relative;
    display: flex;
    align-items: center;
}

.lang-switcher-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    height: 38px;
    padding: 0 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.lang-switcher-btn:hover {
    border-color: var(--c-sky-blue);
    background: rgba(136, 189, 242, 0.05);
}

.lang-switcher-btn svg {
    transition: transform var(--transition);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.4rem;
    min-width: 160px;
    background: var(--bg-card);
    border: 1px solid var(--border-bright);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.4rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.4rem);
    transition: all 0.2s ease;
    z-index: 1000;
    max-height: 0;
    overflow: hidden;
}

.lang-dropdown--open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    max-height: 420px;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: none;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: left;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    white-space: nowrap;
}

.lang-option:hover {
    background: rgba(136, 189, 242, 0.1);
    color: var(--c-ice-blue);
}

.lang-option--active {
    color: var(--c-sky-blue);
    font-weight: 600;
}

/* ===== Standardized Buttons ===== */

.btn,
.cmd-k-trigger,
.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 38px;
    padding: 0 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all var(--transition);
    border: 1px solid transparent;
    box-sizing: border-box;
}

.btn--primary,
.nav-cta {
    background: var(--c-sky-blue);
    color: #1a2530;
    border-color: var(--c-ice-blue);
    box-shadow: 0 2px 10px rgba(136, 189, 242, 0.3);
}

.btn--primary:hover,
.nav-cta:hover {
    background: var(--c-ice-blue);
    transform: translateY(-1px);
    box-shadow: 0 4px 18px rgba(189, 221, 252, 0.45);
}

.btn--ghost,
.cmd-k-trigger {
    background: var(--bg-card);
    border-color: var(--border-subtle);
    color: var(--c-ice-blue);
}

.btn--ghost:hover,
.cmd-k-trigger:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-bright);
    color: var(--text-primary);
}

.cmd-k-badge {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 0.15rem 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.725rem;
    color: var(--c-ice-blue);
}

/* Mobile toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}

.menu-line {
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle[aria-expanded="true"] .menu-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-line:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero Section ===== */

.hero {
    padding-top: 4rem;
    padding-bottom: 5rem;
    position: relative;
}

.hero__content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(136, 189, 242, 0.12);
    border: 1px solid var(--border-bright);
    color: var(--c-ice-blue);
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--c-sky-blue);
    box-shadow: 0 0 8px var(--c-sky-blue);
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.hero__title {
    font-family: var(--font-heading);
    font-size: clamp(2.1rem, 3.8vw, 3.2rem);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
}

.hero__title-accent {
    color: var(--c-sky-blue);
    background: linear-gradient(135deg, var(--c-ice-blue), var(--c-sky-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero__subtitle {
    font-size: 1.05rem;
    color: var(--c-ice-blue);
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 35rem;
    opacity: 0.9;
}

.hero__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.hero__trust {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: 0.825rem;
    color: var(--c-muted-slate);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.trust-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--c-ice-blue);
}

.hero__badges {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.tech-badge {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.725rem;
    color: var(--c-ice-blue);
}

/* Canvas Wrapper */
.hero__canvas-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3.4;
    background: var(--bg-card);
    border: 1px solid var(--border-bright);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

#agent-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.hero__canvas-overlay {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    pointer-events: none;
}

.canvas-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(31, 42, 54, 0.85);
    border: 1px solid var(--border-subtle);
    padding: 0.3rem 0.7rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--c-ice-blue);
}

.pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--c-sky-blue);
    box-shadow: 0 0 6px var(--c-sky-blue);
}

/* ===== Section Common ===== */

.section {
    padding-block: 4.5rem;
    position: relative;
}

.section--accent {
    background: rgba(42, 54, 68, 0.5);
    border-block: 1px solid var(--border-subtle);
}

.section__head {
    max-width: 44rem;
    margin-bottom: 3rem;
}

.section__head.text-center {
    margin-inline: auto;
}

.section__title {
    font-family: var(--font-mono);
    font-size: clamp(1.4rem, 2.6vw, 1.9rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--c-sky-blue);
    line-height: 1.35;
    margin-bottom: 0.8rem;
}

.section__lead {
    font-size: 1.025rem;
    color: var(--c-ice-blue);
    line-height: 1.6;
    opacity: 0.9;
}

/* ===== Problem Section ===== */

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    gap: 1.5rem;
}

.problem-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    position: relative;
    transition: all var(--transition);
}

.problem-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-bright);
    transform: translateY(-3px);
}

.problem-card__num {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--c-muted-slate);
}

.problem-card__icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(136, 189, 242, 0.12);
    color: var(--c-sky-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.problem-card__title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.problem-card__text {
    font-size: 0.9rem;
    color: var(--c-ice-blue);
    line-height: 1.6;
    opacity: 0.88;
}

/* ===== Orchestration / How It Works ===== */

.execution-log {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.exec-step {
    display: flex;
    gap: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all var(--transition);
}

.exec-step:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-bright);
}

.exec-step__icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: rgba(189, 221, 252, 0.15);
    border: 1px solid var(--border-bright);
    color: var(--c-ice-blue);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.exec-step__body {
    flex: 1;
}

.exec-step__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.exec-step__title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
}

.exec-step__tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
    background: rgba(136, 189, 242, 0.15);
    color: var(--c-ice-blue);
    border: 1px solid var(--border-subtle);
}

.exec-step__desc {
    font-size: 0.9rem;
    color: var(--c-ice-blue);
    line-height: 1.55;
    opacity: 0.9;
}

.route-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.1rem 0.45rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    margin-inline: 0.2rem;
    background: rgba(136, 189, 242, 0.2);
    color: var(--c-ice-blue);
    border: 1px solid var(--border-bright);
}

/* ===== Capabilities Mesh ===== */

.mesh-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 1.25rem;
}

.mesh-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all var(--transition);
}

.mesh-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-bright);
    transform: translateY(-2px);
}

.mesh-card__icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: rgba(136, 189, 242, 0.12);
    color: var(--c-sky-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.mesh-card__title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.mesh-card__text {
    font-size: 0.885rem;
    color: var(--c-ice-blue);
    line-height: 1.55;
    opacity: 0.88;
}

/* ===== Interactive Chat Simulation Box ===== */

.chat-box {
    background: var(--bg-card);
    border: 1px solid var(--border-bright);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-glow);
    max-width: 720px;
    margin: 0 auto;
}

.chat-box__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 1rem;
}

.chat-box__header--centered {
    justify-content: center;
}

.chat-box__status {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.825rem;
    color: var(--c-ice-blue);
}

.chat-box__agent-name {
    font-weight: 700;
    color: var(--c-sky-blue);
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--c-sky-blue);
    box-shadow: 0 0 8px var(--c-sky-blue);
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}

.chat-box__messages-wrap {
    position: relative;
}

.chat-box__messages {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 320px;
    max-height: 420px;
    overflow-y: auto;
    padding: 0.5rem 0.25rem;
    scroll-behavior: smooth;
}

.chat-box__start-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    background: var(--bg-card);
    z-index: 2;
    opacity: 1;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.chat-box__start-overlay--hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.chat-box__messages::-webkit-scrollbar {
    width: 5px;
}
.chat-box__messages::-webkit-scrollbar-track {
    background: transparent;
}
.chat-box__messages::-webkit-scrollbar-thumb {
    background: var(--border-subtle);
    border-radius: 3px;
}

.chat-msg {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.chat-msg.visible {
    opacity: 1;
    transform: translateY(0);
}

.chat-msg--user {
    flex-direction: row-reverse;
}

.chat-msg__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: #fff;
}

.chat-msg--agent .chat-msg__avatar {
    background: var(--bg-surface);
    border: 1.5px solid var(--c-sky-blue);
    color: var(--c-sky-blue);
}

.chat-msg--user .chat-msg__avatar {
    background: var(--c-dark-slate);
    border: 1.5px solid var(--c-muted-slate);
    color: var(--c-muted-slate);
}

.chat-msg__bubble {
    max-width: 75%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-primary);
    position: relative;
}

.chat-msg--agent .chat-msg__bubble {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-top-left-radius: 2px;
}

.chat-msg--user .chat-msg__bubble {
    background: rgba(136, 189, 242, 0.12);
    border: 1px solid var(--border-accent);
    border-top-right-radius: 2px;
}

.chat-msg__meta {
    font-size: 0.65rem;
    color: var(--c-muted-slate);
    margin-top: 0.35rem;
    font-family: var(--font-mono);
}

.chat-msg--user .chat-msg__meta {
    text-align: right;
}

.chat-msg__agent-tag {
    display: inline-block;
    font-size: 0.6rem;
    font-family: var(--font-mono);
    font-weight: 600;
    padding: 0.1rem 0.4rem;
    border-radius: var(--radius-sm);
    background: rgba(136, 189, 242, 0.15);
    color: var(--c-sky-blue);
    border: 1px solid rgba(136, 189, 242, 0.25);
    margin-bottom: 0.35rem;
}

.chat-box__input-area {
    border-top: 1px solid var(--border-subtle);
    padding-top: 1rem;
    margin-top: 1rem;
    text-align: center;
}

.chat-box__typing-indicator {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    margin-bottom: 0.75rem;
}
.chat-box__typing-indicator.active {
    display: flex;
}

.typing-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--c-sky-blue);
    animation: typingBounce 1.2s ease-in-out infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.15s; }
.typing-dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-5px); opacity: 1; }
}

/* ===== Tech Stack Grid ===== */

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
    gap: 1.25rem;
}

.tech-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.tech-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-bright);
    transform: translateY(-2px);
}

.tech-card__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: rgba(136, 189, 242, 0.12);
    color: var(--c-sky-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: transform 0.25s ease;
}

.tech-card:hover .tech-card__icon {
    transform: scale(1.08);
}

.tech-card__name {
    font-family: var(--font-heading);
    font-size: 1.025rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.tech-card__desc {
    font-size: 0.8rem;
    color: var(--c-muted-slate);
}

/* ===== Roadmap Timeline ===== */

.timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 1rem;
    bottom: 1rem;
    left: 17px;
    width: 2px;
    background: var(--border-subtle);
    z-index: 0;
}

.timeline__item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    position: relative;
    z-index: 1;
}

.timeline__dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-bright);
    color: var(--c-sky-blue);
}

.timeline__dot--done {
    background: rgba(136, 189, 242, 0.2);
    border-color: var(--c-sky-blue);
    color: var(--c-ice-blue);
}

.timeline__dot--active {
    background: var(--c-sky-blue);
    border-color: var(--c-ice-blue);
    color: var(--c-dark-slate);
}

.timeline__content {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.timeline__label {
    font-family: var(--font-mono);
    font-size: 0.725rem;
    color: var(--c-muted-slate);
    text-transform: uppercase;
}

.timeline__title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
}

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

.timeline__title a:hover {
    color: var(--c-sky-blue);
}

.timeline__status {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
}

.status--done {
    background: rgba(189, 221, 252, 0.15);
    color: var(--c-ice-blue);
    border: 1px solid var(--border-subtle);
}

.status--active {
    background: var(--c-sky-blue);
    color: var(--c-dark-slate);
}

/* ===== Timeline Groups ===== */

.timeline__group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.timeline__group-title {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--c-sky-blue);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.timeline__group-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.timeline__item--hidden {
    display: none;
}

.timeline__more-btn {
    align-self: flex-start;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--c-sky-blue);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
}

.timeline__more-btn:hover {
    background: rgba(136, 189, 242, 0.1);
    border-color: var(--c-sky-blue);
}

/* ===== Reviews ===== */

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    gap: 1.5rem;
}

.review-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.review-card__text {
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    font-style: italic;
}

.review-card__user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.review-card__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--c-sky-blue);
    color: var(--c-dark-slate);
    font-weight: 700;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
}

.review-card__name {
    font-weight: 700;
    font-size: 0.9rem;
}

.review-card__role {
    font-size: 0.75rem;
    color: var(--c-muted-slate);
}

/* ===== FAQ Accordion ===== */

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 48rem;
    margin-inline: auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color var(--transition);
}

.faq-item:hover {
    border-color: var(--border-bright);
}

.faq-button {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
}

.faq-icon {
    transition: transform 0.3s ease;
    flex-shrink: 0;
    color: var(--c-sky-blue);
}

.faq-button[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0, 1, 0, 1);
}

.faq-content--open {
    max-height: 20rem;
    transition: max-height 0.35s ease-in-out;
}

.faq-inner {
    padding: 0 1.5rem 1.25rem;
    font-size: 0.925rem;
    color: var(--c-ice-blue);
    line-height: 1.6;
    opacity: 0.9;
}

/* ===== CTA Section ===== */

.cta-block {
    background: var(--bg-card);
    border: 1px solid var(--border-bright);
    border-radius: var(--radius-xl);
    padding: 3.5rem 2rem;
    text-align: center;
    max-width: 46rem;
    margin-inline: auto;
    box-shadow: var(--shadow-glow);
}

.cta__header {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(136, 189, 242, 0.12);
    border: 1px solid var(--border-bright);
    color: var(--c-ice-blue);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.725rem;
    font-family: var(--font-mono);
    font-weight: 600;
    margin-bottom: 1rem;
}

.cta__title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.cta__text {
    font-size: 1rem;
    color: var(--c-ice-blue);
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta__form {
    display: flex;
    gap: 0.75rem;
    max-width: 28rem;
    margin-inline: auto;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.cta__input-wrap {
    flex: 1;
    min-width: 15rem;
}

.cta__form input {
    width: 100%;
    height: 38px;
    padding: 0 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: border-color var(--transition);
}

.cta__form input:focus {
    outline: none;
    border-color: var(--c-sky-blue);
}

.cta__form input.is-invalid {
    border-color: #ef4444;
}

.input-error-msg {
    display: block;
    font-size: 0.75rem;
    color: #fca5a5;
    text-align: left;
    margin-top: 0.25rem;
}

.cta__thanks {
    background: rgba(136, 189, 242, 0.15);
    border: 1px solid var(--c-sky-blue);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-top: 1rem;
}

.cta__thanks-text {
    color: var(--c-ice-blue);
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.cta__thanks-sub {
    font-size: 0.875rem;
    color: var(--c-ice-blue);
}

.cta__links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* ===== Toast Notification ===== */

.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--c-sky-blue);
    color: var(--text-primary);
    padding: 0.85rem 1.4rem;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    font-size: 0.875rem;
    font-weight: 500;
    z-index: 10000;
    transform: translateY(150%);
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast--show {
    transform: translateY(0);
    opacity: 1;
}

/* ===== Command Modal ===== */

.cmd-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 20000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 12vh;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.cmd-modal--open {
    opacity: 1;
    pointer-events: auto;
}

.cmd-box {
    width: 90%;
    max-width: 36rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-bright);
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    transform: translateY(-10px);
    transition: transform 0.25s ease;
}

.cmd-modal--open .cmd-box {
    transform: translateY(0);
}

.cmd-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
}

.cmd-header input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
}

.cmd-list {
    max-height: 22rem;
    overflow-y: auto;
    padding: 0.5rem;
}

.cmd-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    color: var(--c-ice-blue);
    cursor: pointer;
    transition: all 0.15s ease;
}

.cmd-item:hover, .cmd-item.active {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.cmd-key {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.15rem 0.4rem;
    border-radius: var(--radius-sm);
    color: var(--c-ice-blue);
}

/* ===== Footer ===== */

.site-footer {
    border-top: 1px solid var(--border-subtle);
    padding-block: 2rem;
    background: var(--bg-dark);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer__brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.footer__text {
    font-size: 0.85rem;
    color: var(--c-muted-slate);
}

.footer__link {
    color: var(--c-ice-blue);
    transition: color var(--transition);
}

.footer__link:hover {
    color: var(--c-sky-blue);
}

/* Reveal Animations */

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ===== Responsive Breakpoints ===== */

@media (max-width: 1200px) {
    .site-header .container {
        max-width: 100%;
    }
    #lang-btn-text,
    .cmd-k-badge {
        display: none;
    }
    .nav__list {
        gap: 0.75rem;
    }
}

@media (max-width: 960px) {
    .hero__content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .hero__text {
        text-align: center;
    }
    .hero__actions, .hero__trust, .hero__badges {
        justify-content: center;
    }
    .hero__subtitle {
        margin-inline: auto;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    .logo-img {
        height: 72px;
        max-height: 72px;
    }
    .nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(31, 42, 54, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 100;
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .nav.open {
        transform: translateX(0);
    }
    .nav__list {
        flex-direction: column;
        gap: 1.5rem;
        margin-right: 0;
    }
    .nav__actions {
        margin-left: 0;
        justify-content: center;
    }
    .nav__list a {
        font-size: 1.2rem;
    }
    .cta__form {
        flex-direction: column;
    }
}
