@font-face {
    font-family: "Ethnocentric";
    src: url("/Ethnocentric-Regular.otf") format("opentype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --navy-950: #00091a;
    --navy-900: #00091a;
    --navy-850: #0f1b2d;
    --navy-800: #16243a;
    --navy-700: #203a5f;

    --blue-500: #3291ff;
    --blue-400: #62d0ff;
    --blue-300: #8bffcf;

    --white: #ffffff;
    --text-primary: #edf3ff;
    --text-secondary: #a6b8d8;
    --text-muted: #758ba9;

    --border: rgba(118, 171, 255, 0.22);
    --surface: rgba(16, 28, 45, 0.9);
    --surface-hover: rgba(24, 42, 66, 0.94);

    --shadow:
        0 24px 80px rgba(0, 0, 0, 0.35);

    --container-width: 1180px;
    --header-height: 100px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;

    color: var(--text-primary);
    background:
        radial-gradient(
            circle at top left,
            rgba(98, 208, 255, 0.18),
            transparent 35%
        ),
        radial-gradient(
            circle at bottom right,
            rgba(139, 255, 207, 0.1),
            transparent 32%
        ),
        var(--navy-900);

    font-family:
        Inter,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

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

img {
    display: block;
    max-width: 100%;
}

button,
input,
textarea {
    font: inherit;
}

.site-header {
    position: fixed;
    z-index: 100;
    top: 0;
    right: 0;
    left: 0;

    height: var(--header-height);

    background: rgba(0, 9, 26, 0.78);
    border-bottom: 1px solid transparent;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    transition:
        background-color 200ms ease,
        border-color 200ms ease;
}

.site-header.scrolled {
    background: rgba(0, 9, 26, 0.95);
    border-bottom-color: var(--border);
}

.header-container,
.hero-container,
.section-container,
.footer-container {
    width: min(
        calc(100% - 48px),
        var(--container-width)
    );

    margin-inline: auto;
}

.header-container {
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
}

.brand-logo {
    width: auto;
    height: calc(var(--header-height) - 4px);
    object-fit: contain;
}

.brand-name {
    font-family: "Ethnocentric", sans-serif;
    font-size: 1.08rem;
    letter-spacing: 0.075em;
    color: var(--white);
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 32px;
}

.main-navigation a {
    color: var(--text-secondary);
    font-size: 0.92rem;
    font-weight: 600;

    transition: color 150ms ease;
}

.main-navigation a:hover {
    color: var(--white);
}

.header-button {
    padding: 10px 18px;

    color: var(--white);
    background: rgba(50, 145, 255, 0.1);
    border: 1px solid rgba(88, 169, 255, 0.38);
    border-radius: 8px;

    font-size: 0.86rem;
    font-weight: 700;

    transition:
        background-color 150ms ease,
        border-color 150ms ease,
        transform 150ms ease;
}

.header-button:hover {
    background: rgba(50, 145, 255, 0.18);
    border-color: var(--blue-400);
    transform: translateY(-1px);
}

.hero {
    position: relative;
    min-height: 100vh;
    padding:
        calc(var(--header-height) + 90px)
        0
        100px;

    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;

    pointer-events: none;
    opacity: 0.4;

    background-image:
        linear-gradient(
            rgba(88, 169, 255, 0.06) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(88, 169, 255, 0.06) 1px,
            transparent 1px
        );

    background-size: 52px 52px;

    mask-image:
        linear-gradient(
            to bottom,
            transparent,
            black 25%,
            black 75%,
            transparent
        );
}

.hero-container {
    position: relative;
    z-index: 1;

    display: grid;
    grid-template-columns:
        minmax(0, 1.05fr)
        minmax(360px, 0.75fr);

    align-items: center;
    gap: 88px;
}

.hero-content {
    opacity: 0;
    transform: translateY(18px);

    animation:
        hero-enter 700ms ease 120ms forwards;
}

.eyebrow {
    margin: 0 0 20px;

    color: var(--blue-400);

    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.19em;
}

.hero h1,
.section-heading h2,
.about-section h2,
.contact-section h2 {
    margin: 0;

    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.hero h1 {
    max-width: 780px;
    font-size: clamp(2.8rem, 5.5vw, 5rem);
}

.hero h1 span {
    color: var(--blue-400);
}

.hero-description {
    max-width: 680px;
    margin: 30px 0 0;

    color: var(--text-secondary);
    font-size: 1.12rem;
    line-height: 1.8;
}

.hero-actions {
    margin-top: 40px;

    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.button {
    min-height: 50px;
    padding: 12px 22px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    border: 1px solid transparent;
    border-radius: 8px;

    font-size: 0.92rem;
    font-weight: 750;

    transition:
        transform 150ms ease,
        background-color 150ms ease,
        border-color 150ms ease,
        box-shadow 150ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    color: var(--white);
    background: var(--blue-500);
    border-color: var(--blue-500);

    box-shadow:
        0 12px 32px rgba(50, 145, 255, 0.22);
}

.button-primary:hover {
    background: var(--blue-400);
    border-color: var(--blue-400);

    box-shadow:
        0 15px 40px rgba(50, 145, 255, 0.32);
}

.button-secondary {
    color: var(--text-primary);
    background: var(--surface);
    border-color: var(--border);
}

.button-secondary:hover {
    background: var(--surface-hover);
    border-color: rgba(255, 255, 255, 0.2);
}

.hero-features {
    margin-top: 45px;

    display: flex;
    flex-wrap: wrap;
    gap: 24px;

    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 650;
}

.hero-features span {
    position: relative;
    padding-left: 16px;
}

.hero-features span::before {
    content: "";

    position: absolute;
    top: 50%;
    left: 0;

    width: 6px;
    height: 6px;

    background: var(--blue-400);
    border-radius: 50%;

    transform: translateY(-50%);
}

.hero-visual {
    position: relative;

    opacity: 0;
    transform: translateY(24px);

    animation:
        hero-enter 800ms ease 300ms forwards;
}

.visual-card {
    position: relative;
    z-index: 2;

    overflow: hidden;

    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 22px;

    box-shadow: var(--shadow);
    backdrop-filter: blur(22px);
}

.visual-card::before {
    content: "";

    position: absolute;
    top: 0;
    right: 0;
    left: 0;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(134, 194, 255, 0.8),
            transparent
        );
}

.visual-card-header {
    padding: 18px 22px;

    display: flex;
    align-items: center;
    gap: 11px;

    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);

    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.11em;
}

.status-indicator {
    width: 8px;
    height: 8px;

    background: var(--blue-400);
    border-radius: 50%;

    box-shadow:
        0 0 15px rgba(88, 169, 255, 0.8);
}

.visual-card-content {
    padding: 34px 28px;
}

.visual-value {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 4px 14px;
}

.visual-label {
    grid-column: 1 / -1;

    color: var(--text-secondary);
    font-size: 0.82rem;
}

.visual-value strong {
    color: var(--white);
    font-size: clamp(3.2rem, 7vw, 5rem);
    line-height: 1;
    letter-spacing: -0.06em;
}

.visual-unit {
    padding-bottom: 9px;

    color: var(--yellow-300);
    font-size: 0.92rem;
    font-weight: 700;
}

.visual-divider {
    height: 1px;
    margin: 30px 0 18px;

    background: var(--border);
}

.visual-data-row {
    padding: 10px 0;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    color: var(--text-secondary);
    font-size: 0.86rem;
}

.visual-data-row strong {
    color: var(--text-primary);
}

.risk-value {
    color: var(--blue-300) !important;
}

.binary-decoration {
    position: absolute;
    z-index: 1;

    color: rgba(134, 194, 255, 0.18);

    font-family: monospace;
    font-size: 0.67rem;
    letter-spacing: 0.12em;

    white-space: nowrap;
}

.binary-one {
    top: -35px;
    right: -30px;
}

.binary-two {
    bottom: -38px;
    left: -60px;
}

.software-section,
.about-section,
.contact-section {
    border-top: 1px solid var(--border);
}

.software-section {
    padding: 125px 0;
    background: rgba(0, 9, 26, 0.42);
}

.section-heading {
    max-width: 700px;
}

.section-heading h2,
.about-section h2,
.contact-section h2 {
    font-size: clamp(2.1rem, 4vw, 3.4rem);
}

.section-heading > p:last-child,
.contact-section p {
    margin: 24px 0 0;

    color: var(--text-secondary);
    font-size: 1.02rem;
}

.software-grid {
    margin-top: 65px;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.software-card {
    min-height: 385px;
    padding: 28px;

    display: flex;
    flex-direction: column;

    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);

    transition:
        transform 180ms ease,
        background-color 180ms ease,
        border-color 180ms ease;
}

.software-card:hover {
    background: var(--surface-hover);
    border-color: rgba(88, 169, 255, 0.28);
    transform: translateY(-5px);
}

.software-card-active {
    background:
        linear-gradient(
            145deg,
            rgba(50, 145, 255, 0.12),
            rgba(255, 255, 255, 0.035)
        );

    border-color: rgba(98, 208, 255, 0.48);
}

.card-top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.software-status {
    padding: 5px 9px;

    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 100px;

    font-size: 0.68rem;
    font-weight: 750;
}

.status-available {
    color: var(--blue-300);
    background: rgba(50, 145, 255, 0.1);
    border-color: rgba(88, 169, 255, 0.25);
}

.software-number {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 750;
}

.software-icon {
    width: 48px;
    height: 48px;
    margin-top: 50px;

    display: grid;
    place-items: center;

    color: var(--blue-300);
    background: rgba(50, 145, 255, 0.1);
    border: 1px solid rgba(88, 169, 255, 0.2);
    border-radius: 10px;

    font-size: 1.25rem;
}

.software-card h3 {
    margin: 24px 0 0;

    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.software-card p {
    margin: 16px 0 0;

    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.75;
}

.software-card > a {
    margin-top: auto;
    width: fit-content;
    padding: 12px 18px;

    display: inline-flex;
    align-items: center;
    gap: 10px;

    color: var(--white);
    background: var(--blue-500);
    border: 1px solid var(--blue-500);
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(50, 145, 255, 0.22);

    font-size: 0.86rem;
    font-weight: 750;
    transition:
        transform 150ms ease,
        background-color 150ms ease,
        box-shadow 150ms ease;
}

.software-card > a:hover {
    background: var(--blue-400);
    box-shadow: 0 15px 40px rgba(50, 145, 255, 0.32);
    transform: translateY(-2px);
}

.about-section {
    padding: 120px 0;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
}

.about-content {
    color: var(--text-secondary);
    font-size: 1.02rem;
    line-height: 1.85;
}

.about-content p {
    margin: 0;
}

.about-content p + p {
    margin-top: 24px;
}

.contact-section {
    padding: 90px 0;
    background:
        linear-gradient(
            135deg,
            rgba(50, 145, 255, 0.1),
            transparent 65%
        ),
        rgba(0, 9, 26, 0.6);
}

.contact-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.contact-container > div {
    max-width: 720px;
}

.site-footer {
    padding: 40px 0;

    color: var(--text-muted);
    background: rgba(0, 9, 26, 0.78);
    border-top: 1px solid var(--border);

    font-size: 0.78rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 22px 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-brand .brand-name {
    font-size: 0.82rem;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-container > p {
    grid-column: 1 / -1;
    margin: 0;
}

@keyframes hero-enter {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 980px) {
    .main-navigation {
        display: none;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 70px;
    }

    .hero-content {
        max-width: 760px;
    }

    .hero-visual {
        width: min(100%, 560px);
    }

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

    .software-card {
        min-height: 320px;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 45px;
    }
}

@media (max-width: 700px) {
    :root {
        --header-height: 82px;
    }

    .header-container,
    .hero-container,
    .section-container,
    .footer-container {
        width: min(calc(100% - 32px), var(--container-width));
    }

    .brand-logo {
        width: auto;
        height: calc(var(--header-height) - 4px);
    }

    .brand-name {
        font-size: 0.86rem;
    }

    .header-button {
        display: none;
    }

    .hero {
        min-height: auto;

        padding:
            calc(var(--header-height) + 75px)
            0
            85px;
    }

    .hero h1 {
        font-size: clamp(2.45rem, 12vw, 3.5rem);
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .hero-features {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .binary-decoration {
        display: none;
    }

    .software-section,
    .about-section {
        padding: 85px 0;
    }

    .software-grid {
        margin-top: 45px;
    }

    .software-card {
        min-height: auto;
    }

    .contact-container {
        align-items: stretch;
        flex-direction: column;
        gap: 35px;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .footer-container > p {
        grid-column: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.page-transition-overlay {
    position: fixed;
    z-index: 500;
    inset: 0;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at center, rgba(50, 145, 255, 0.12), transparent 34%),
        #00091a;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 380ms ease, visibility 380ms ease;
}

.page-transition-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.page-transition-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.page-transition-content {
    width: min(440px, 72vw);
    display: grid;
    justify-items: center;
    gap: 16px;
}

.page-transition-content img {
    width: 100%;
}

.page-transition-line {
    width: 100%;
    height: 2px;
    overflow: hidden;
    background: rgba(98, 208, 255, 0.14);
    border-radius: 999px;
}

.page-transition-line::after {
    content: "";
    width: 38%;
    height: 100%;
    display: block;
    background: linear-gradient(90deg, transparent, var(--blue-400), var(--blue-300), transparent);
    animation: page-transition-scan 900ms ease-in-out infinite;
}

@keyframes page-transition-scan {
    from { transform: translateX(-120%); }
    to { transform: translateX(360%); }
}

@media (prefers-reduced-motion: reduce) {
    .page-transition-overlay {
        display: none;
    }
}
