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

/* ========================================
   VARIABLES
======================================== */

:root {
    --bg: #070809;
    --text: #e8e9e6;
    --muted: #70747a;
    --dim: #363a3e;
    --line: rgba(255, 255, 255, 0.09);
    --accent: #FFC300;
}

/* ========================================
   RESET
======================================== */

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

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: "Inter", sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* ========================================
   BACKGROUND GRID
======================================== */

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;

    background-image:
        linear-gradient(
            to right,
            var(--line) 1px,
            transparent 1px
        ),
        linear-gradient(
            to bottom,
            var(--line) 1px,
            transparent 1px
        );

    background-size: 72px 72px;
    opacity: 0.28;

    -webkit-mask-image: linear-gradient(
        to bottom,
        black 0%,
        transparent 82%
    );

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

/* ========================================
   NOISE
======================================== */

.noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 10;
    opacity: 0.022;

    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

/* ========================================
   CONTAINER
======================================== */

.container {
    width: min(1240px, calc(100% - 64px));
    min-height: 100vh;
    margin: 0 auto;

    display: flex;
    flex-direction: column;
}

/* ========================================
   HEADER
======================================== */

.header {
    min-height: 96px;

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

    gap: 40px;

    border-bottom: 1px solid var(--line);
}

/* ========================================
   BRAND
======================================== */

.brand-group {
    height: 42px;

    display: flex;
    align-items: stretch;

    min-width: 0;
}

.brand {
    height: 42px;

    display: flex;
    align-items: center;

    padding-right: 24px;

    color: var(--text);
    text-decoration: none;

    font-family: "DM Mono", monospace;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 0.08em;
    line-height: 1;

    white-space: nowrap;

    transition: color 0.25s ease;
}

.brand-dot {
    color: var(--accent);

    transition: color 0.25s ease;
}

.brand-n {
    display: inline-block;

    transition: transform 0.35s ease;
}

.brand:hover {
    color: var(--accent);
}

.brand:hover .brand-dot {
    color: var(--accent);
}

.brand:hover .brand-n {
    transform: scaleX(-1);
}

/* ========================================
   IDENTITY
======================================== */

.identity {
    min-height: 42px;

    padding-left: 24px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    gap: 5px;

    border-left: 1px solid var(--line);
}

.identity-name {
    color: var(--text);

    font-family: "DM Mono", monospace;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.12em;
    line-height: 1.2;

    white-space: nowrap;
}

.identity-alias {
    color: var(--muted);

    font-family: "DM Mono", monospace;
    font-size: 9px;
    letter-spacing: 0.08em;
    line-height: 1.2;

    white-space: nowrap;
}

/* ========================================
   MAIN NAVIGATION
======================================== */

.main-nav {
    display: flex;
    align-items: center;

    gap: 24px;

    flex-shrink: 0;
}

.main-nav a,
.main-nav .active {
    color: var(--muted);
    text-decoration: none;

    font-family: "DM Mono", monospace;
    font-size: 9px;
    letter-spacing: 0.1em;

    white-space: nowrap;

    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: var(--accent);
}

.main-nav .active {
    color: var(--text);
}

.main-nav .active::before {
    content: "";

    display: inline-block;

    width: 5px;
    height: 5px;

    margin-right: 8px;

    border-radius: 50%;

    background: var(--accent);

    vertical-align: middle;
}

/* ========================================
   SYSTEM STATUS
======================================== */

.system-status {
    display: flex;
    align-items: center;

    gap: 9px;

    color: var(--muted);

    font-family: "DM Mono", monospace;
    font-size: 9px;
    letter-spacing: 0.1em;

    white-space: nowrap;
}

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

    flex: 0 0 6px;

    border-radius: 50%;

    background: var(--accent);

    box-shadow: 0 0 12px rgba(255, 195, 0, 0.45);

    animation: blink 2s infinite;
}

@keyframes blink {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.35;
    }
}

/* ========================================
   HERO
======================================== */

.hero {
    flex: 1;

    display: flex;
    flex-direction: column;

    padding: 82px 0 70px;
}

.eyebrow {
    display: flex;
    align-items: center;

    gap: 18px;

    color: var(--muted);

    font-family: "DM Mono", monospace;
    font-size: 10px;
    letter-spacing: 0.12em;
}

.eyebrow span {
    color: var(--accent);
}

.hero-content {
    margin-top: 48px;

    display: grid;

    grid-template-columns: minmax(0, 1fr) 320px;

    align-items: end;

    gap: 80px;
}

.title-area {
    min-width: 0;
}

.title-wrap {
    position: relative;
}

/* ========================================
   HEADLINE
======================================== */

h1 {
    font-size: clamp(64px, 9.5vw, 138px);
    line-height: 0.86;

    font-weight: 500;

    letter-spacing: -0.075em;
}

h1 span {
    color: var(--muted);
}

/* ========================================
   CURSOR
======================================== */

.cursor {
    display: inline-block;

    width: 11px;
    height: 0.64em;

    margin-left: 12px;

    background: var(--accent);

    vertical-align: bottom;

    animation: cursor-blink 1s steps(1) infinite;
}

@keyframes cursor-blink {
    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

/* ========================================
   DESCRIPTION
======================================== */

.description {
    max-width: 320px;

    padding-bottom: 5px;

    font-family: "DM Mono", monospace;
    font-size: 11px;
    line-height: 1.8;
}

.description p {
    margin-bottom: 14px;
    color: var(--text);
}

.description .muted {
    color: var(--muted);
}

/* ========================================
   DOMAINS
======================================== */

.domains {
    margin-top: 88px;

    display: grid;
    grid-template-columns: repeat(5, 1fr);

    border-top: 1px solid var(--line);
}

.domain {
    min-height: 96px;

    padding: 18px 16px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    border-right: 1px solid var(--line);

    color: #a5a8ac;

    font-family: "DM Mono", monospace;
    font-size: 10px;
    letter-spacing: 0.05em;

    transition:
        background 0.25s ease,
        color 0.25s ease;
}

.domain:first-child {
    border-left: 1px solid var(--line);
}

.domain:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.025);
}

.domain .number {
    color: var(--dim);
    font-size: 9px;
}

/* ========================================
   SCOPE
======================================== */

.scope {
    margin-top: 68px;

    padding-bottom: 78px;

    display: grid;
    grid-template-columns: 1fr 3fr;

    border-top: 1px solid var(--line);
}

.scope-label {
    padding-top: 20px;

    display: flex;

    gap: 18px;

    color: var(--muted);

    font-family: "DM Mono", monospace;
    font-size: 10px;
    letter-spacing: 0.12em;
}

.scope-label span {
    color: var(--accent);
}

.scope-content {
    display: grid;

    grid-template-columns: repeat(3, 1fr);
}

.scope-item {
    min-height: 148px;

    padding: 20px;

    display: flex;
    flex-direction: column;

    border-right: 1px solid var(--line);

    transition: background 0.25s ease;
}

.scope-item:first-child {
    border-left: 1px solid var(--line);
}

.scope-item:hover {
    background: rgba(255, 255, 255, 0.025);
}

.scope-item > span {
    margin-bottom: auto;

    color: var(--dim);

    font-family: "DM Mono", monospace;
    font-size: 9px;
}

.scope-item strong {
    margin-bottom: 9px;

    color: var(--text);

    font-family: "DM Mono", monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.scope-item small {
    max-width: 190px;

    color: var(--muted);

    font-family: "DM Mono", monospace;
    font-size: 8px;
    line-height: 1.65;
}

/* ========================================
   FOOTER
======================================== */

.footer {
    min-height: 82px;

    display: grid;
    grid-template-columns: 1fr auto;

    align-items: center;

    border-top: 1px solid var(--line);

    color: var(--muted);

    font-family: "DM Mono", monospace;
    font-size: 8px;
    letter-spacing: 0.06em;
}

/* ========================================
   FOOTER LINKS
======================================== */

.footer-links {
    display: flex;
    align-items: center;

    gap: 28px;
}

.footer a {
    color: var(--muted);
    text-decoration: none;

    transition: color 0.2s ease;
}

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

/* ========================================
   FOOTER IDENTITY
======================================== */

.footer-identity {
    min-height: 42px;

    display: flex;
    align-items: stretch;

    margin-left: auto;
}

/* ========================================
   FOOTER NAME
======================================== */

.footer-name {
    min-height: 42px;

    padding-right: 24px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    gap: 5px;

    color: var(--text);

    white-space: nowrap;
}

.footer-name-main {
    color: var(--text);

    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.1em;
    line-height: 1.2;
}

.footer-name-alias {
    color: var(--dim);

    font-size: 8px;
    letter-spacing: 0.08em;
    line-height: 1.2;
}

/* ========================================
   FOOTER BRAND
======================================== */

.footer-brand {
    min-height: 42px;

    padding-left: 24px;

    display: flex;
    align-items: center;

    border-left: 1px solid var(--line);
}

.footer-brand-link {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    color: var(--text);
    text-decoration: none;

    font-family: "DM Mono", monospace;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.08em;
    line-height: 1.2;

    white-space: nowrap;
}

.footer-brand-year {
    color: var(--muted);

    transition: color 0.2s ease;
}

.footer-brand-main {
    color: var(--text);
}

.footer-brand-main span {
    color: var(--accent);
}

.footer-brand-link:hover .footer-brand-year {
    color: var(--accent);
}

/* ========================================
   TABLET — 950px
======================================== */

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

    .header {
        gap: 24px;
    }

    .main-nav {
        gap: 16px;
    }

    .hero-content {
        grid-template-columns: minmax(0, 1fr) 270px;
        gap: 45px;
    }

    h1 {
        font-size: clamp(60px, 10vw, 110px);
    }
}

/* ========================================
   TABLET — 800px
======================================== */

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

    .header {
        min-height: 76px;
    }

    .brand-group {
        height: 38px;
    }

    .brand {
        height: 38px;
        padding-right: 18px;
        font-size: 14px;
    }

    .identity {
        min-height: 38px;
        padding-left: 18px;
        gap: 4px;
    }

    .identity-name {
        font-size: 8px;
        letter-spacing: 0.08em;
    }

    .identity-alias {
        font-size: 8px;
    }

    .main-nav {
        gap: 12px;
    }

    .main-nav a,
    .main-nav .active {
        font-size: 8px;
    }

    .hero {
        padding: 68px 0 58px;
    }

    .hero-content {
        margin-top: 48px;

        grid-template-columns: 1fr;

        align-items: start;

        gap: 42px;
    }

    h1 {
        font-size: clamp(58px, 16vw, 92px);
    }

    .description {
        max-width: 340px;
    }

    .domains {
        margin-top: 68px;

        grid-template-columns: repeat(2, 1fr);
    }

    .domain:nth-child(2n) {
        border-right: 0;
    }

    .domain:nth-child(n + 3) {
        border-top: 1px solid var(--line);
    }

    .scope {
        grid-template-columns: 1fr;

        margin-top: 58px;

        padding-bottom: 58px;
    }

    .scope-label {
        padding: 20px 0;
    }

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

    .scope-item {
        min-height: 135px;
    }

    .footer {
        grid-template-columns: 1fr auto;

        gap: 18px;

        padding: 22px 0;
    }

    .footer-links {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .footer-identity {
        grid-column: 2;
        grid-row: 1;
    }
}

/* ========================================
   MOBILE — 650px
======================================== */

@media (max-width: 650px) {
    .header {
        flex-wrap: wrap;

        padding: 18px 0;

        gap: 14px;
    }

    .main-nav {
        width: 100%;

        padding-top: 13px;

        border-top: 1px solid var(--line);

        justify-content: flex-start;
    }

    .hero {
        padding-top: 58px;
    }

    .scope-content {
        grid-template-columns: 1fr;
    }

    .scope-item,
    .scope-item:first-child {
        border-left: 1px solid var(--line);
        border-right: 1px solid var(--line);
    }

    .scope-item + .scope-item {
        border-top: 1px solid var(--line);
    }

    .footer {
        display: flex;
        flex-wrap: wrap;

        align-items: center;

        gap: 0;

        padding: 25px 0;
    }

    .footer-identity {
        margin-left: auto;
    }

    .footer-links {
        width: 100%;

        margin-top: 20px;

        gap: 20px;
    }
}

/* ========================================
   MOBILE — 450px
======================================== */

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

    .identity {
        padding-left: 14px;
    }

    .brand {
        padding-right: 14px;
        font-size: 13px;
    }

    .identity-name {
        font-size: 7px;
        letter-spacing: 0.06em;
    }

    .identity-alias {
        font-size: 7px;
        letter-spacing: 0.05em;
    }

    .main-nav {
        gap: 13px;

        overflow-x: auto;

        scrollbar-width: none;
    }

    .main-nav::-webkit-scrollbar {
        display: none;
    }

    .hero {
        padding-top: 52px;
    }

    h1 {
        font-size: clamp(52px, 17vw, 76px);
        letter-spacing: -0.07em;
    }

    .cursor {
        width: 8px;
        margin-left: 7px;
    }

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

    .domain,
    .domain:nth-child(2n) {
        border-right: 1px solid var(--line);
    }

    .domain + .domain {
        border-top: 1px solid var(--line);
    }

    .footer {
        display: flex;
        flex-direction: column;

        align-items: stretch;

        gap: 20px;
    }

    .footer-identity {
        width: 100%;

        margin-left: 0;

        justify-content: flex-end;
    }

    .footer-links {
        width: 100%;

        gap: 20px;

        flex-wrap: wrap;

        order: 2;
    }

    .footer-name {
        padding-right: 16px;
    }

    .footer-brand {
        padding-left: 16px;
    }

    .footer-name-main {
        font-size: 8px;
    }

    .footer-brand-link {
        font-size: 8px;
    }

    .footer-name-alias {
        font-size: 7px;
    }
}