
@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    color-scheme: dark;
    --bg: #080b12;
    --bg-secondary: #0c111c;
    --surface: #101725;
    --surface-hover: #141e30;
    --border: rgba(151, 174, 218, 0.13);
    --border-hover: rgba(122, 167, 255, 0.38);
    --text: #edf2fc;
    --text-muted: #8793aa;
    --accent: #7aa7ff;
    --accent-bright: #a3c2ff;
    --mono: 'DM Mono', monospace;
    --sans: 'Manrope', sans-serif;
    --container: 1160px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    margin: 0;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(38, 73, 137, 0.10), transparent 48%),
        var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 14px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

body::before {
    position: fixed;
    z-index: -1;
    inset: 0;
    background-image:
        linear-gradient(rgba(130, 159, 210, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(130, 159, 210, 0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    content: "";
    pointer-events: none;
}

body.menu-open {
    overflow: hidden;
}

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

button {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

::selection {
    background: rgba(122, 167, 255, 0.28);
    color: #fff;
}

.container {
    width: min(var(--container), calc(100% - 64px));
    margin-inline: auto;
}

.section {
    position: relative;
    padding-block: 112px;
}

.text-muted {
    color: var(--text-muted);
    font-weight: 500;
}

/* Header */

.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    border-bottom: 1px solid var(--border);
    background: rgba(8, 11, 18, 0.82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.logo {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 11px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.7px;
}

.logo-mark {
    position: relative;
    display: inline-block;
    width: 22px;
    height: 22px;
    border: 1px solid rgba(122, 167, 255, 0.65);
    border-radius: 6px;
    background: linear-gradient(145deg, #7aa7ff, #3159a5);
    box-shadow: 0 0 22px rgba(73, 123, 220, 0.25);
}

.logo-mark::before,
.logo-mark::after {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 1px;
    background: #edf2fc;
    content: "";
}

.logo-mark::before {
    top: 4px;
    left: 4px;
}

.logo-mark::after {
    right: 4px;
    bottom: 4px;
}

.logo-accent {
    color: var(--accent);
}

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

.navigation a,
.header-link {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    transition: color 180ms ease;
}

.navigation a:hover,
.header-link:hover {
    color: var(--text);
}

.header-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
}

.header-link span {
    color: var(--accent);
    font-size: 17px;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 17px;
    height: 1px;
    background: var(--text);
    transition: transform 180ms ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
}

/* Hero */

.hero {
    display: flex;
    min-height: 660px;
    align-items: center;
    padding-block: 90px 100px;
    overflow: hidden;
}

.hero::before {
    position: absolute;
    top: 10%;
    right: -15%;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(47, 91, 170, 0.11), transparent 68%);
    content: "";
    pointer-events: none;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 0.88fr;
    align-items: center;
    gap: 72px;
}

.hero-content {
    min-width: 0;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    color: var(--text-muted);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 1px;
}

.status-dot {
    width: 7px;
    height: 7px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #7dd6a5;
    box-shadow: 0 0 12px rgba(125, 214, 165, 0.6);
}

.hero h1 {
    margin: 0;
    font-size: clamp(56px, 7vw, 88px);
    font-weight: 800;
    letter-spacing: -6px;
    line-height: 0.99;
}

.hero-description {
    max-width: 460px;
    margin: 30px 0 0;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.9;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    transition:
        background 180ms ease,
        border-color 180ms ease,
        transform 180ms ease;
}

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

.button-primary {
    border-color: rgba(160, 191, 255, 0.5);
    background: var(--accent);
    color: #09101e;
}

.button-primary:hover {
    background: var(--accent-bright);
}

.button-primary span {
    font-size: 17px;
}

.button-secondary {
    border-color: var(--border);
    background: rgba(16, 23, 37, 0.55);
    color: var(--text);
}

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

.hero-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 62px;
    color: #626f86;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.8px;
}

/* Hero visual */

.hero-visual {
    position: relative;
    min-width: 0;
    min-height: 410px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 16px;
    background:
        radial-gradient(ellipse at center, rgba(42, 78, 143, 0.15), transparent 65%),
        rgba(12, 17, 28, 0.78);
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.16);
}

.hero-visual::before {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(130, 159, 210, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(130, 159, 210, 0.055) 1px, transparent 1px);
    background-size: 28px 28px;
    content: "";
    mask-image: linear-gradient(to bottom, black, transparent 95%);
}

.visual-topline,
.visual-footer {
    position: absolute;
    z-index: 2;
    right: 22px;
    left: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #75829a;
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 0.6px;
}

.visual-topline {
    top: 22px;
}

.visual-footer {
    bottom: 22px;
}

.visual-indicator {
    color: #7dd6a5;
}

.visual-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(310px, 82%);
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
}

.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid rgba(122, 167, 255, 0.16);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.orbit-outer {
    width: 100%;
    height: 100%;
    border-style: dashed;
    animation: orbit-rotate 70s linear infinite;
}

.orbit-inner {
    width: 70%;
    height: 70%;
    border-color: rgba(122, 167, 255, 0.26);
}

.visual-core {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 88px;
    height: 88px;
    place-items: center;
    border: 1px solid rgba(122, 167, 255, 0.55);
    border-radius: 24px;
    background: linear-gradient(145deg, #172747, #0d1423);
    box-shadow:
        0 0 0 10px rgba(122, 167, 255, 0.035),
        0 0 60px rgba(66, 111, 199, 0.22);
    transform: translate(-50%, -50%);
}

.core-mark {
    color: var(--accent-bright);
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -3px;
}

.visual-node {
    position: absolute;
    z-index: 2;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid rgba(122, 167, 255, 0.34);
    border-radius: 14px;
    background: #101a2d;
    box-shadow: 0 0 30px rgba(51, 92, 163, 0.12);
}

.node-symbol {
    color: var(--accent-bright);
    font-family: var(--mono);
    font-size: 15px;
}

.node-top {
    top: 2%;
    left: 50%;
    transform: translateX(-50%);
}

.node-left {
    bottom: 17%;
    left: 3%;
}

.node-right {
    right: 3%;
    bottom: 17%;
}

.orbit-label {
    position: absolute;
    color: #8798b5;
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 1px;
}

.label-top {
    top: 18%;
    left: 50%;
    transform: translateX(-50%);
}

.label-left {
    bottom: 8%;
    left: 4%;
}

.label-right {
    right: 0;
    bottom: 8%;
}

@keyframes orbit-rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* About */

.about {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(12, 17, 28, 0.38);
}

.about-grid {
    display: grid;
    grid-template-columns: 0.55fr 1.45fr;
    gap: 60px;
}

.section-label {
    color: var(--accent);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 1px;
}

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

.about-content h2,
.section-heading h2 {
    margin: 0;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    letter-spacing: -2px;
    line-height: 1.25;
}

.about-content p {
    max-width: 650px;
    margin: 26px 0 0;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 2;
}

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

/* Projects */

.projects {
    padding-bottom: 128px;
}


.section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 330px);
    align-items: end;
    column-gap: 48px;
    row-gap: 20px;
    margin-bottom: 42px;
}

.section-heading .section-label {
    grid-column: 1 / -1;
    margin-bottom: 0;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(34px, 4vw, 46px);
    font-weight: 700;
    letter-spacing: -2px;
    line-height: 1.25;
}

.section-heading > p {
    max-width: 330px;
    margin: 0 0 5px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.9;
}

@media (max-width: 760px) {
    .section-heading {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .section-heading .section-label {
        grid-column: auto;
    }

    .section-heading > p {
        max-width: 500px;
        margin: 0;
    }
}


.project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.project-card {
    position: relative;
    display: flex;
    min-height: 290px;
    flex-direction: column;
    align-items: flex-start;
    padding: 26px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(16, 23, 37, 0.88), rgba(10, 15, 25, 0.88));
    transition:
        border-color 200ms ease,
        background 200ms ease,
        transform 200ms ease;
}

.project-card::before {
    position: absolute;
    top: 0;
    right: 20%;
    left: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(122, 167, 255, 0.5), transparent);
    opacity: 0;
    content: "";
    transition: opacity 200ms ease;
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    background: linear-gradient(145deg, rgba(20, 30, 48, 0.95), rgba(12, 18, 30, 0.95));
}

.project-card:hover::before {
    opacity: 1;
}

.project-card-top {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 34px;
}

.project-number {
    color: #718099;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 1px;
}

.project-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(122, 167, 255, 0.23);
    border-radius: 11px;
    background: rgba(122, 167, 255, 0.07);
    color: var(--accent);
    font-family: var(--mono);
    font-size: 16px;
}

.project-card h3 {
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.project-card p {
    margin: 13px 0 24px;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.9;
}

.project-tag {
    margin-top: auto;
    color: #7185a5;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.7px;
}

/* Footer */

.site-footer {
    border-top: 1px solid var(--border);
    background: rgba(6, 9, 15, 0.8);
}

.footer-main {
    display: flex;
    min-height: 110px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-main p {
    margin: 0;
    color: var(--text-muted);
    font-size: 11px;
}

.back-to-top {
    color: var(--text-muted);
    font-size: 11px;
    transition: color 180ms ease;
}

.back-to-top:hover {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid var(--border);
    color: #657189;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.6px;
}

/* Responsive */

@media (max-width: 1000px) {
    .hero-grid {
        grid-template-columns: 1fr 0.8fr;
        gap: 36px;
    }

    .hero h1 {
        font-size: clamp(56px, 7vw, 74px);
        letter-spacing: -4px;
    }

    .hero-visual {
        min-height: 360px;
    }

    .visual-center {
        width: min(280px, 85%);
    }

    .about-grid {
        grid-template-columns: 0.4fr 1.6fr;
        gap: 36px;
    }

    .project-card {
        padding: 22px;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(100% - 40px, var(--container));
    }

    .section {
        padding-block: 78px;
    }

    .header-inner {
        min-height: 68px;
        gap: 16px;
    }

    .navigation {
        position: fixed;
        z-index: 100;
        top: 68px;
        right: 0;
        left: 0;
        display: flex;
        align-items: stretch;
        flex-direction: column;
        gap: 0;
        padding: 10px 20px 22px;
        border-bottom: 1px solid var(--border);
        background: rgba(8, 11, 18, 0.98);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-8px);
        transition:
            opacity 180ms ease,
            transform 180ms ease;
    }

    .navigation.is-open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .navigation a {
        padding: 14px 0;
        border-bottom: 1px solid var(--border);
    }

    .header-link {
        margin-left: auto;
        font-size: 11px;
    }

    .menu-toggle {
        display: flex;
    }

    .hero {
        min-height: auto;
        padding-block: 76px;
    }

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

    .hero h1 {
        font-size: clamp(58px, 12vw, 82px);
    }

    .hero-description {
        max-width: 520px;
    }

    .hero-bottom {
        margin-top: 42px;
    }

    .hero-visual {
        width: 100%;
        max-width: 500px;
        min-height: 390px;
        margin-inline: auto;
    }

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

    .about-content h2 {
        font-size: clamp(32px, 7vw, 44px);
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
    }

    .section-heading > p {
        max-width: 500px;
    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .project-card {
        min-height: 250px;
        padding: 24px;
    }

    .project-card-top {
        margin-bottom: 24px;
    }

    .project-card p {
        max-width: 500px;
    }

    .footer-main {
        min-height: 120px;
        flex-wrap: wrap;
        justify-content: space-between;
        padding-block: 24px;
    }

    .footer-main p {
        order: 3;
        width: 100%;
    }
}

@media (max-width: 420px) {
    .container {
        width: calc(100% - 32px);
    }

    .logo {
        gap: 8px;
        font-size: 13px;
    }

    .logo-mark {
        width: 20px;
        height: 20px;
    }

    .header-link {
        display: none;
    }

    .hero {
        padding-block: 60px;
    }

    .eyebrow {
        align-items: flex-start;
        font-size: 8px;
        letter-spacing: 0.4px;
    }

    .hero h1 {
        font-size: clamp(52px, 13vw, 64px);
        letter-spacing: -3.5px;
    }

    .hero-description {
        margin-top: 24px;
        font-size: 13px;
    }

    .hero-actions {
        align-items: stretch;
    }

    .button {
        min-height: 46px;
        padding-inline: 14px;
        gap: 10px;
        font-size: 11px;
    }

    .hero-bottom {
        gap: 12px;
        font-size: 8px;
    }

    .hero-visual {
        min-height: 320px;
        border-radius: 12px;
    }

    .visual-topline,
    .visual-footer {
        right: 12px;
        left: 12px;
        font-size: 7px;
    }

    .visual-center {
        width: 250px;
        max-width: 90%;
    }

    .visual-core {
        width: 72px;
        height: 72px;
        border-radius: 20px;
    }

    .core-mark {
        font-size: 30px;
    }

    .visual-node {
        width: 40px;
        height: 40px;
        border-radius: 11px;
    }

    .about-content h2,
    .section-heading h2 {
        font-size: 32px;
        letter-spacing: -1.5px;
    }

    .about-content p {
        font-size: 13px;
    }

    .project-card {
        min-height: 240px;
        padding: 20px;
    }

    .footer-main {
        gap: 16px;
    }

    .footer-main p {
        font-size: 10px;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        padding-block: 14px;
        font-size: 8px;
    }
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
