:root {
    --bg: #eef5ff;
    --bg-soft: #f7faff;
    --panel: rgba(255, 255, 255, 0.88);
    --panel-solid: #ffffff;
    --line: rgba(16, 42, 67, 0.08);
    --text: #16324f;
    --muted: #5f7691;
    --primary: #2f80ed;
    --primary-strong: #1d67c9;
    --accent: #0fbf9f;
    --danger: #d95363;
    --success: #1f8f5f;
    --warning: #a56a00;
    --shadow: 0 24px 60px rgba(30, 64, 111, 0.12);
    --shadow-soft: 0 16px 35px rgba(47, 128, 237, 0.12);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --container: 1180px;
    --visual-intensity: 1;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: 'Inter', Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 0% 0%, rgba(47, 128, 237, 0.18), transparent 22%),
        radial-gradient(circle at 100% 0%, rgba(15, 191, 159, 0.14), transparent 18%),
        radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.95), transparent 36%),
        linear-gradient(180deg, #f8fbff 0%, #edf5ff 46%, #e8f1fb 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ============================================================
   Animated Background Particles
   ============================================================ */

body::before,
body::after {
    content: '';
    position: fixed;
    pointer-events: none;
    z-index: 0;
}

body::before {
    top: 10%;
    left: -5%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(47, 128, 237, 0.08) 0%, transparent 70%);
    animation: floatOrb1 20s ease-in-out infinite;
}

body::after {
    bottom: 10%;
    right: -5%;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(15, 191, 159, 0.08) 0%, transparent 70%);
    animation: floatOrb2 25s ease-in-out infinite;
}

@keyframes floatOrb1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(100px, 80px) scale(1.1); }
    50% { transform: translate(50px, 150px) scale(0.95); }
    75% { transform: translate(-50px, 60px) scale(1.05); }
}

@keyframes floatOrb2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(-80px, -60px) scale(1.08); }
    50% { transform: translate(-120px, -100px) scale(0.92); }
    75% { transform: translate(-40px, -40px) scale(1.04); }
}

/* Floating geometric shapes */
.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-shapes::before,
.floating-shapes::after {
    content: '';
    position: absolute;
    border: 2px solid rgba(47, 128, 237, 0.06);
    border-radius: 12px;
    animation: rotateShape 30s linear infinite;
}

.floating-shapes::before {
    width: 80px;
    height: 80px;
    top: 20%;
    right: 15%;
    transform: rotate(45deg);
}

.floating-shapes::after {
    width: 60px;
    height: 60px;
    bottom: 30%;
    left: 10%;
    border-radius: 50%;
    border-color: rgba(15, 191, 159, 0.06);
    animation-duration: 22s;
    animation-direction: reverse;
}

@keyframes rotateShape {
    0% { transform: rotate(0deg) translateY(0); }
    50% { transform: rotate(180deg) translateY(-30px); }
    100% { transform: rotate(360deg) translateY(0); }
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

textarea {
    resize: vertical;
}

.site-shell {
    min-height: 100vh;
    padding-top: 82px;
}

.container {
    width: min(calc(100% - 32px), var(--container));
    margin: 0 auto;
}

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(16, 42, 67, 0.06);
    box-shadow: 0 10px 35px rgba(17, 53, 87, 0.05);
    transition: backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}

.topbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
    opacity: 0.4;
}

.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 82px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.brand__logo {
    display: block;
    width: clamp(140px, 15vw, 190px);
    max-width: 42vw;
    height: auto;
    object-fit: contain;
}

.brand__mark {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #ffffff;
    font-weight: 800;
    box-shadow: 0 16px 32px rgba(47, 128, 237, 0.2);
}

.nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.language-toggle {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 120;
    min-width: 56px;
    padding: 11px 14px;
    border: 1px solid rgba(47, 128, 237, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text);
    font-weight: 700;
    letter-spacing: 0.04em;
    box-shadow: 0 16px 35px rgba(17, 53, 87, 0.12);
    backdrop-filter: blur(12px);
}

.language-toggle:hover,
.language-toggle:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(47, 128, 237, 0.42);
    box-shadow: 0 18px 38px rgba(17, 53, 87, 0.16);
}

.nav a {
    color: var(--muted);
    font-weight: 600;
    transition: color 0.2s ease, transform 0.2s ease, background 0.2s ease;
    padding: 10px 14px;
    border-radius: 999px;
}

.nav a:hover,
.nav a:focus-visible {
    color: var(--text);
    transform: translateY(-1px);
    background: rgba(47, 128, 237, 0.08);
}

.nav__button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 13px 22px;
    border: 1px solid transparent;
    font-weight: 600;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.nav__button,
.button--primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    color: #fff;
    box-shadow: 0 18px 36px rgba(47, 128, 237, 0.18);
}

.nav a.nav__button {
    color: #ffffff;
}

.nav__button:hover,
.button:hover,
.nav__button:focus-visible,
.button:focus-visible {
    transform: translateY(-2px);
}

.button--ghost {
    border-color: rgba(22, 50, 79, 0.12);
    background: rgba(255, 255, 255, 0.66);
    color: var(--text);
}

.button--full {
    width: 100%;
}

.hero {
    padding: 82px 0 48px;
    position: relative;
    overflow: hidden;
}

/* Hero parallax background layers */
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 140%;
    background: 
        radial-gradient(ellipse at center, rgba(47, 128, 237, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 30% 70%, rgba(15, 191, 159, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: heroPulse 8s ease-in-out infinite alternate;
}

@keyframes heroPulse {
    0% { transform: scale(1) rotate(0deg); opacity: 0.8; }
    100% { transform: scale(1.05) rotate(2deg); opacity: 1; }
}

.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    gap: 28px;
    align-items: stretch;
    position: relative;
    z-index: 1;
}

.hero__content,
.hero__panel,
.glass-card,
.feature-card,
.news-card,
.contact-card,
.auth-card,
.dashboard-card,
.stat-card,
.table-card,
.empty-card {
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.hero__content {
    padding: 38px;
    border-radius: var(--radius-xl);
}

.hero__content--visual {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(244, 249, 255, 0.85)),
        var(--panel);
    backdrop-filter: blur(10px);
}

.hero__content--visual::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(47, 128, 237, 0.08) 0%, transparent 70%);
    animation: morphBlob1 12s ease-in-out infinite;
    pointer-events: none;
}

.hero__content--visual::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -20%;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(15, 191, 159, 0.07) 0%, transparent 70%);
    animation: morphBlob2 15s ease-in-out infinite;
    pointer-events: none;
}

@keyframes morphBlob1 {
    0%, 100% { border-radius: 50% 40% 60% 50%; transform: translate(0, 0) rotate(0deg); }
    33% { border-radius: 40% 60% 50% 70%; transform: translate(20px, -30px) rotate(120deg); }
    66% { border-radius: 60% 50% 70% 40%; transform: translate(-20px, 20px) rotate(240deg); }
}

@keyframes morphBlob2 {
    0%, 100% { border-radius: 40% 60% 50% 70%; transform: translate(0, 0) rotate(0deg); }
    33% { border-radius: 60% 50% 70% 40%; transform: translate(-30px, 20px) rotate(120deg); }
    66% { border-radius: 50% 70% 40% 60%; transform: translate(20px, -20px) rotate(240deg); }
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.76rem;
    font-weight: 700;
}

.hero h1,
.section-heading h2,
.auth-card h1,
.dashboard-header h1 {
    margin: 0;
    line-height: 1.08;
}

.hero h1 {
    font-size: clamp(2.15rem, 4vw, 3.25rem);
    letter-spacing: -0.04em;
}

.hero__text,
.section-heading p,
.feature-card p,
.news-card p,
.contact-card p,
.auth-card p,
.dashboard-card p,
.stat-card p,
.table-card p,
.empty-card p {
    color: var(--muted);
    line-height: 1.7;
}

.hero__text {
    margin: 22px 0 0;
    max-width: 58ch;
    font-size: 1.04rem;
}

.hero__visual-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 26px;
}

.hero__visual-card {
    margin: 0;
    min-height: 180px;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(47, 128, 237, 0.1);
    background: rgba(255, 255, 255, 0.64);
    box-shadow: var(--shadow-soft);
    position: relative;
}

.hero__visual-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(47, 128, 237, 0.08) 0%, transparent 50%, rgba(15, 191, 159, 0.06) 100%);
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.hero__visual-card:hover::after {
    opacity: 0;
}

.hero__visual-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s ease;
    filter: saturate(1.05);
}

.hero__visual-card:hover img {
    transform: scale(1.05);
    filter: saturate(1.15) brightness(1.05);
}

.hero__visual-card--wide {
    min-height: 220px;
}

.hero__visual-card--stacked {
    min-height: 220px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.hero__highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.hero__highlights span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(47, 128, 237, 0.08);
    box-shadow: var(--shadow-soft);
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 600;
}

.hero__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 34px;
}

.hero__stats article,
.stat-card {
    padding: 18px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.66);
    border: 1px solid rgba(47, 128, 237, 0.08);
}

.hero__stats strong,
.stat-card strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 8px;
}

.hero__stats strong {
    font-size: 1.35rem;
    color: var(--primary-strong);
}

.hero__stats span,
.status-card p,
.status-list,
.contact-points span,
.metric-label,
.metric-value,
.table {
    color: var(--muted);
}

.hero__panel {
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.hero__panel--showcase {
    position: relative;
}

.glass-card {
    height: 100%;
    padding: 34px;
    border-radius: inherit;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
        linear-gradient(160deg, #143456 0%, #102a43 55%, #0d2135 100%);
}

.status-card__label {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(122, 240, 210, 0.12);
    color: var(--accent);
    font-size: 0.84rem;
    font-weight: 700;
}

.status-card h2 {
    margin: 18px 0 12px;
    font-size: 2rem;
    color: #ffffff;
    position: relative;
    z-index: 1;
}

.status-card__image {
    position: relative;
    z-index: 1;
    display: block;
    width: min(100%, 480px);
    margin: 0 auto 20px auto;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 24px 50px rgba(6, 16, 28, 0.28);
    background: rgba(255, 255, 255, 0.08);
}

.status-card__image--technical {
    width: min(100%, 520px);
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
}

.status-list {
    margin: 24px 0 0;
    padding-left: 18px;
    line-height: 1.8;
}

.status-card--showcase {
    position: relative;
    isolation: isolate;
}

.status-card--showcase p {
    color: rgba(226, 238, 249, 0.82);
    position: relative;
    z-index: 1;
}

.showcase-metrics {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 14px;
    margin-top: 26px;
}

.showcase-metrics div {
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.showcase-metrics span {
    display: block;
    color: rgba(170, 199, 230, 0.88);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.showcase-metrics strong {
    display: block;
    margin-top: 6px;
    color: #ffffff;
    font-size: 1.05rem;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(4px);
    opacity: 0.9;
}

.orb--one {
    width: 160px;
    height: 160px;
    top: -20px;
    right: -40px;
    background: radial-gradient(circle, rgba(47, 128, 237, 0.34), transparent 68%);
}

.orb--two {
    width: 130px;
    height: 130px;
    bottom: -10px;
    left: -30px;
    background: radial-gradient(circle, rgba(15, 191, 159, 0.22), transparent 68%);
}

.section {
    padding: 46px 0 78px;
    position: relative;
}

/* Visual section divider - wave effect */
.section--visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: 
        radial-gradient(ellipse at 25% 100%, rgba(47, 128, 237, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 75% 100%, rgba(15, 191, 159, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

/* Gradient line divider */
.section--alt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
    opacity: 0.3;
}

.section-heading {
    max-width: 780px;
    margin: 0 auto 32px;
    text-align: center;
}

.section-heading--left {
    margin: 0;
    text-align: left;
}

.section-heading h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

.section-heading p {
    margin: 16px 0 0;
}

.feature-grid,
.news-grid,
.stats-grid {
    display: grid;
    gap: 18px;
}

.feature-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-grid--visual {
    gap: 22px;
}

.news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.news-grid--enhanced {
    align-items: stretch;
}

.feature-card,
.news-card,
.contact-card,
.auth-card,
.dashboard-card,
.table-card,
.empty-card {
    border-radius: var(--radius-lg);
    padding: 24px;
}

.feature-card,
.news-card {
    position: relative;
    overflow: hidden;
}

.feature-card h3,
.news-card h3,
.dashboard-card h3,
.table-card h3,
.empty-card h3 {
    margin-top: 0;
    margin-bottom: 14px;
    font-size: 1.15rem;
    font-weight: 700;
}

.feature-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    height: 58px;
    padding: 0 14px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(47, 128, 237, 0.12), rgba(15, 191, 159, 0.14));
    color: var(--primary-strong);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 22px;
    overflow: hidden;
}

.feature-card--media {
    padding-top: 14px;
}

.feature-card__media {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 18px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), filter 0.5s ease;
    filter: saturate(1.05) brightness(1.02);
}

.feature-card--accent:hover .feature-card__media,
.feature-card--accent:focus-within .feature-card__media {
    transform: scale(1.05);
    filter: saturate(1.15) brightness(1.08);
}

.feature-card--accent {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 249, 255, 0.92)),
        var(--panel);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease, border-color 0.4s ease;
    position: relative;
    overflow: hidden;
}

/* Gradient sweep effect on cards */
.feature-card--accent::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(47, 128, 237, 0.04), transparent);
    transition: left 0.6s ease;
    z-index: 1;
    pointer-events: none;
}

.feature-card--accent:hover::before {
    left: 100%;
}

.feature-card--accent::after {
    content: '';
    position: absolute;
    inset: auto -10% -45% auto;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(47, 128, 237, 0.14), transparent 70%);
    transition: transform 0.5s ease;
}

.feature-card--accent:hover::after {
    transform: scale(1.3);
}

.feature-card--accent:hover,
.feature-card--accent:focus-within {
    transform: translateY(-8px);
    box-shadow: 0 28px 55px rgba(30, 64, 111, 0.18);
    border-color: rgba(47, 128, 237, 0.2);
}

/* Reduce text visibility on hover - show visual first */
.feature-card--accent:hover h3 {
    transform: translateY(-2px);
}

.feature-card h3 {
    transition: transform 0.3s ease;
}

.news-card__image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 18px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s ease;
    filter: saturate(1.05);
}

.news-card--feature:hover .news-card__image {
    transform: scale(1.04);
    filter: saturate(1.15) brightness(1.05);
}

.news-card__tag {
    display: inline-flex;
    margin-bottom: 16px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(90, 169, 255, 0.14);
    color: var(--primary-strong);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    transition: background 0.3s ease, transform 0.3s ease;
}

.news-card--feature:hover .news-card__tag {
    background: rgba(90, 169, 255, 0.25);
    transform: translateY(-2px);
}

.news-card--feature {
    min-height: 100%;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.92)),
        var(--panel);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.news-card--feature::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.news-card--feature:hover,
.news-card--feature:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 28px 50px rgba(30, 64, 111, 0.18);
    border-color: rgba(47, 128, 237, 0.2);
}

.news-card__link {
    display: inline-flex;
    margin-top: 18px;
    color: var(--primary-strong);
    font-weight: 700;
}

.flash-wrap {
    margin-top: 18px;
}

.flash {
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid var(--line);
    font-weight: 600;
}

.flash--success {
    background: rgba(99, 216, 161, 0.16);
    color: #145c3f;
    border-color: rgba(46, 165, 111, 0.24);
}

.flash--error {
    background: rgba(255, 124, 135, 0.15);
    color: #8f2f3a;
    border-color: rgba(217, 83, 99, 0.22);
}

.flash--warning {
    background: rgba(255, 203, 107, 0.2);
    color: #855600;
    border-color: rgba(199, 139, 28, 0.24);
}

.contact-layout,
.auth-layout {
    display: grid;
    gap: 24px;
    align-items: start;
}

.contact-layout {
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
}

.contact-layout--enhanced {
    gap: 30px;
}

.contact-points {
    display: grid;
    gap: 14px;
    margin-top: 28px;
}

.contact-points div,
.quick-links a {
    min-width: 0;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.58);
}

.contact-points__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, rgba(47, 128, 237, 0.16), rgba(15, 191, 159, 0.18));
    color: var(--primary-strong);
    box-shadow: var(--shadow-soft);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.contact-points--cards {
    grid-template-columns: 1fr;
}

.contact-points__item {
    min-width: 0;
}

.contact-points__item--email strong {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contact-visual-banner {
    position: relative;
    overflow: hidden;
    margin-top: 18px;
    border-radius: 22px;
    min-height: 280px;
    border: 1px solid rgba(47, 128, 237, 0.1);
    box-shadow: var(--shadow-soft);
    background: #102a43;
}

.contact-visual-banner__image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    filter: saturate(1.1) brightness(0.9);
    transition: filter 0.5s ease, transform 0.6s ease;
}

.contact-visual-banner:hover .contact-visual-banner__image {
    filter: saturate(1.2) brightness(0.95);
}

/* Decorative overlay pattern */
.contact-visual-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(135deg, rgba(47, 128, 237, 0.15) 0%, transparent 50%),
        linear-gradient(225deg, rgba(15, 191, 159, 0.1) 0%, transparent 40%);
    pointer-events: none;
    z-index: 1;
}

.contact-visual-banner__content {
    position: absolute;
    inset: auto 18px 18px 18px;
    padding: 22px 24px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(16, 42, 67, 0.2), rgba(16, 42, 67, 0.85));
    color: #ffffff;
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 2;
    transition: transform 0.4s ease, background 0.4s ease;
}

.contact-visual-banner:hover .contact-visual-banner__content {
    transform: translateY(-4px);
    background: linear-gradient(180deg, rgba(16, 42, 67, 0.15), rgba(16, 42, 67, 0.75));
}

.contact-visual-banner__eyebrow {
    display: inline-flex;
    margin-bottom: 8px;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(170, 232, 221, 0.98);
}

.contact-visual-banner__content strong {
    display: block;
    line-height: 1.4;
}

.contact-mini-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.contact-mini-cards article {
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(245, 249, 255, 0.82));
    border: 1px solid rgba(47, 128, 237, 0.08);
    box-shadow: var(--shadow-soft);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    overflow: hidden;
    position: relative;
}

.contact-mini-cards article::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-mini-cards article:hover::before {
    opacity: 1;
}

.contact-mini-cards article:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(30, 64, 111, 0.15);
}

.contact-mini-cards__image {
    display: block;
    width: 100%;
    height: 160px;
    object-fit: cover;
    object-position: center;
    border-radius: 14px;
    margin-bottom: 14px;
    background: rgba(255, 255, 255, 0.72);
}

.contact-mini-cards strong {
    display: block;
    margin-bottom: 8px;
}

.contact-mini-cards span {
    color: var(--muted);
    line-height: 1.6;
}

.contact-card--elevated {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(247, 251, 255, 0.94)),
        var(--panel);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(47, 128, 237, 0.08);
    position: relative;
    overflow: hidden;
}

.contact-card--elevated::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.contact-points strong {
    display: block;
    margin-top: 6px;
    color: var(--text);
    font-size: 0.96rem;
    line-height: 1.55;
    word-break: normal;
    hyphens: none;
}

.form-row {
    margin-bottom: 16px;
}

.form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-row--split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

input,
textarea {
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(47, 128, 237, 0.12);
    background: rgba(255, 255, 255, 0.82);
    color: var(--text);
    padding: 14px 16px;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

input:focus,
textarea:focus {
    border-color: rgba(90, 169, 255, 0.9);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(90, 169, 255, 0.12);
    transform: translateY(-1px);
}

input[aria-invalid='true'],
textarea[aria-invalid='true'] {
    border-color: rgba(217, 83, 99, 0.7);
    box-shadow: 0 0 0 4px rgba(217, 83, 99, 0.12);
}

input::placeholder,
textarea::placeholder {
    color: #8ca0b5;
}

.auth-page,
.dashboard-page {
    padding: 56px 0 80px;
}

.auth-page {
    position: relative;
}

.auth-layout {
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.75fr);
}

.auth-card h1 {
    font-size: clamp(2.1rem, 4vw, 3.1rem);
    margin-bottom: 12px;
}

.auth-card__meta {
    margin-top: 22px;
    display: grid;
    gap: 12px;
}

.auth-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(245, 249, 255, 0.92)),
        var(--panel);
}

.inline-note {
    margin-top: 14px;
    color: var(--muted);
    font-size: 0.94rem;
}

.dashboard-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
    padding: 28px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--line);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(240, 247, 255, 0.88));
    box-shadow: var(--shadow);
}

.dashboard-header p {
    margin: 12px 0 0;
    color: var(--muted);
    max-width: 720px;
}

.dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 24px;
}

.stat-card {
    box-shadow: var(--shadow);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 249, 255, 0.9));
}

.metric-label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.92rem;
}

.metric-value {
    display: block;
    color: var(--text);
    font-size: 1.4rem;
    font-weight: 700;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 20px;
}

.quick-links {
    display: grid;
    gap: 12px;
}

.quick-links a {
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.quick-links a:hover,
.quick-links a:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(90, 169, 255, 0.55);
}

.table-card {
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(246, 250, 255, 0.92));
}

.table-scroll {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.table th,
.table td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.table th {
    color: var(--text);
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.table td {
    font-size: 0.95rem;
}

.table tbody tr:hover {
    background: rgba(47, 128, 237, 0.05);
}

.footer {
    position: relative;
    border-top: 1px solid var(--line);
    padding: 24px 0 34px;
    background: rgba(255, 255, 255, 0.32);
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
    opacity: 0.5;
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.footer p {
    margin: 0;
    color: var(--muted);
}

.footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: var(--muted);
}

.footer__links button,
.footer__links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 8px 18px;
    border: none;
    font-weight: 600;
    font-size: 0.85rem;
    font-family: inherit;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    box-shadow: 0 4px 12px rgba(47, 128, 237, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}

.footer__links button:hover,
.footer__links a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(47, 128, 237, 0.28);
}

@media (max-width: 1080px) {
    .hero__grid,
    .contact-layout,
    .auth-layout,
    .dashboard-grid,
    .feature-grid,
    .news-grid,
    .stats-grid,
    .contact-points--cards,
    .contact-mini-cards,
    .hero__visual-strip {
        grid-template-columns: 1fr;
    }

    .hero__stats {
        grid-template-columns: 1fr;
    }

    .dashboard-header,
    .footer__inner,
    .topbar__inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 760px) {
    .language-toggle {
        top: 12px;
        right: 12px;
        min-width: 52px;
        padding: 10px 12px;
    }

    .nav {
        flex-wrap: wrap;
        gap: 8px;
    }

    .nav a,
    .nav__button {
        width: 100%;
        justify-content: center;
    }

    .hero {
        padding-top: 40px;
    }

    .hero__visual-card,
    .hero__visual-card--wide,
    .hero__visual-card--stacked,
    .contact-visual-banner,
    .contact-visual-banner__image {
        min-height: 190px;
    }

    .hero__content,
    .glass-card,
    .feature-card,
    .news-card,
    .contact-card,
    .auth-card,
    .dashboard-card,
    .table-card,
    .empty-card,
    .dashboard-header {
        padding: 20px;
    }

    .form-row--split {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        max-width: 100%;
    }
}

/* ============================================================
   Scroll Animations
   ============================================================ */

/* Fade-in-up animation for cards */
.feature-card,
.news-card,
.stat-card,
.contact-mini-cards article {
    /* Scroll animations handled by JS */
}

/* Hero content entrance animation */
.hero__content {
    animation: heroSlideIn 0.8s ease forwards;
}

@keyframes heroSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero__panel--showcase {
    animation: heroPanelIn 0.8s ease 0.2s forwards;
    opacity: 0;
}

@keyframes heroPanelIn {
    0% {
        opacity: 0;
        transform: translateX(30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Eyebrow pulse animation */
.eyebrow {
    animation: eyebrowPulse 3s ease-in-out infinite alternate;
}

@keyframes eyebrowPulse {
    0% { opacity: 0.8; }
    100% { opacity: 1; }
}

/* Button shine effect */
.button--primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.button--primary {
    position: relative;
    overflow: hidden;
}

.button--primary:hover::before {
    left: 100%;
}

/* Glass-morphism glow effect for showcase card */
.glass-card {
    position: relative;
}

.glass-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, 
        rgba(47, 128, 237, 0.15) 0%, 
        transparent 40%, 
        transparent 60%, 
        rgba(15, 191, 159, 0.15) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.hero__panel--showcase:hover .glass-card::before {
    opacity: 1;
}

/* Visual stats counter animation */
.hero__stats article {
    animation: statPopIn 0.5s ease forwards;
    opacity: 0;
}

.hero__stats article:nth-child(1) { animation-delay: 0.4s; }
.hero__stats article:nth-child(2) { animation-delay: 0.5s; }
.hero__stats article:nth-child(3) { animation-delay: 0.6s; }

@keyframes statPopIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Visual highlights pill hover */
.hero__highlights span {
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.hero__highlights span:hover {
    transform: translateY(-3px) scale(1.05);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 12px 28px rgba(47, 128, 237, 0.15);
}

/* Section heading visual enhancement */
.section-heading h2 {
    background: linear-gradient(135deg, var(--text) 0%, var(--primary-strong) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Contact visual banner hover */
.contact-visual-banner {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.contact-visual-banner:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 55px rgba(30, 64, 111, 0.18);
}

.contact-visual-banner__image {
    transition: transform 0.6s ease;
}

.contact-visual-banner:hover .contact-visual-banner__image {
    transform: scale(1.05);
}

/* Hero visual strip animation */
.hero__visual-card {
    animation: visualCardIn 0.6s ease forwards;
    opacity: 0;
}

.hero__visual-card--wide { animation-delay: 0.5s; }
.hero__visual-card--stacked { animation-delay: 0.6s; }
.hero__visual-card:nth-child(1) { animation-delay: 0.4s; }
.hero__visual-card:nth-child(2) { animation-delay: 0.5s; }
.hero__visual-card:nth-child(3) { animation-delay: 0.6s; }

@keyframes visualCardIn {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ============================================================
   Login Modal
   ============================================================ */

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(10, 28, 52, 0.55);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease, pointer-events 0.3s ease;
}

.modal-overlay[data-visible] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-card {
    position: relative;
    width: min(100%, 420px);
    padding: 40px 36px 36px;
    border-radius: var(--radius-xl);
    background: var(--panel-solid);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    text-align: center;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.3s ease;
}

.modal-overlay[data-visible] .modal-card {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 12px;
    background: rgba(16, 42, 67, 0.06);
    color: var(--muted);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.modal-close:hover {
    background: rgba(16, 42, 67, 0.12);
    color: var(--text);
}

.modal-brand {
    margin-bottom: 20px;
}

.modal-brand img {
    height: 72px;
    width: auto;
    opacity: 0.85;
}

.modal-message {
    padding: 12px 16px;
    margin-bottom: 16px;
    border-radius: 14px;
    font-size: 0.88rem;
    font-weight: 600;
    text-align: left;
}

.modal-message--error {
    background: rgba(255, 124, 135, 0.15);
    color: #8f2f3a;
    border: 1px solid rgba(217, 83, 99, 0.22);
}

.modal-message--warning {
    background: rgba(255, 203, 107, 0.2);
    color: #855600;
    border: 1px solid rgba(199, 139, 28, 0.24);
}

.modal-message--success {
    background: rgba(99, 216, 161, 0.16);
    color: #145c3f;
    border: 1px solid rgba(46, 165, 111, 0.24);
}

.modal-card > .eyebrow {
    margin-bottom: 6px;
}

.modal-card h2 {
    margin: 0 0 8px;
    font-size: 1.5rem;
    font-weight: 800;
}

.modal-intro {
    margin: 0 0 24px;
    color: var(--muted);
    font-size: 0.92rem;
}

.modal-card .form-row {
    text-align: left;
    margin-bottom: 16px;
}

.modal-card .form-row label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
}

.modal-card .form-row input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--bg-soft);
    color: var(--text);
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.modal-card .form-row input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(47, 128, 237, 0.15);
}

.modal-footer-link {
    margin: 18px 0 0;
    font-size: 0.82rem;
    color: var(--muted);
}

.modal-footer-link a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.modal-footer-link a:hover {
    color: var(--primary-strong);
}

/* Modal loading state */
.modal-card .button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

@media (max-width: 480px) {
    .modal-card {
        padding: 32px 24px 28px;
    }
}
