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

html {
    scroll-behavior: smooth;
}

body {
    background-color: #303948;
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    line-height: 1.7;
    overflow-x: hidden;
    padding: 20px;
    min-height: 100vh;
    background-image: 
        radial-gradient(circle at 15% 20%, rgba(60, 190, 242, 0.03) 0%, transparent 25%),
        radial-gradient(circle at 85% 75%, rgba(60, 190, 242, 0.02) 0%, transparent 25%);
}

.matrix {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(200px, auto);
    gap: 24px;
    max-width: 1600px;
    margin: 0 auto;
    padding: 10px;
    position: relative;
}

.matrix::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(60, 190, 242, 0.01) 50%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

.cell {
    background-color: rgba(26, 32, 42, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.07);
    padding: 28px;
    position: relative;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(4px);
    z-index: 1;
    border-radius: 2px;
}

.cell::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 2px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.cell:hover {
    border-color: rgba(60, 190, 242, 0.3);
    background-color: rgba(28, 35, 46, 0.95);
    transform: translateY(-2px);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(60, 190, 242, 0.1);
}

.cell-logo {
    grid-column: 1 / 5;
    grid-row: 1 / 4;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 25, 35, 0.95);
    transform: rotate(-0.8deg);
}

.cell-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #3cbef2;
}

.logo-container {
    padding: 25px;
    border: 1px solid rgba(60, 190, 242, 0.15);
    background: rgba(15, 20, 30, 0.9);
    transform: rotate(0.8deg);
    transition: all 0.3s ease;
}

.logo-container:hover {
    border-color: rgba(60, 190, 242, 0.3);
    box-shadow: 0 0 20px rgba(60, 190, 242, 0.1);
}

.logo {
    width: 165px;
    height: 60px;
    display: block;
    filter: brightness(1.2) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.cell-title {
    grid-column: 5 / 13;
    grid-row: 1 / 3;
    border-left: 4px solid #3cbef2;
    padding-left: 35px;
    transform: rotate(0.5deg);
}

.title {
    font-family: 'Space Mono', monospace;
    font-size: 3rem;
    font-weight: 600;
    color: #FFFFFF;
    line-height: 1.15;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #FFFFFF 0%, rgba(255, 255, 255, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.05rem;
    opacity: 0.85;
    font-weight: 300;
    max-width: 800px;
    letter-spacing: 0.2px;
}

.cell-nav {
    grid-column: 5 / 13;
    grid-row: 3 / 4;
    display: flex;
    align-items: center;
    padding: 15px 35px;
    transform: rotate(-0.3deg);
    background: rgba(22, 28, 38, 0.9);
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
    justify-content: flex-start;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 8px 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.92rem;
    transition: all 0.25s ease;
    font-weight: 400;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 2px;
    letter-spacing: 0.3px;
}

.nav-link:hover {
    color: #3cbef2;
    border-color: rgba(60, 190, 242, 0.5);
    background: rgba(60, 190, 242, 0.08);
    transform: translateY(-1px);
}

.cell-content {
    padding: 26px;
    background: rgba(24, 30, 40, 0.9);
    border-bottom: 1px solid rgba(60, 190, 242, 0.08);
    border-radius: 2px;
}

.cell-content:nth-child(4n+1) {
    grid-column: 1 / 7;
    transform: rotate(0.3deg);
}

.cell-content:nth-child(4n+2) {
    grid-column: 7 / 13;
    transform: rotate(-0.2deg);
}

.cell-content:nth-child(4n+3) {
    grid-column: 1 / 7;
    transform: rotate(-0.3deg);
}

.cell-content:nth-child(4n+4) {
    grid-column: 7 / 13;
    transform: rotate(0.2deg);
}

.cell-content h2 {
    color: #3cbef2;
    font-size: 1.5rem;
    margin-bottom: 18px;
    font-weight: 600;
    padding-bottom: 8px;
    position: relative;
    letter-spacing: 0.5px;
}

.cell-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #3cbef2, transparent);
}

.cell-content p {
    font-size: 0.98rem;
    opacity: 0.88;
    margin-bottom: 14px;
    font-weight: 300;
    line-height: 1.7;
}

.cell-content p:last-child {
    margin-bottom: 0;
}

.cell-links {
    grid-column: 1 / 13;
    grid-row: 9 / 11;
    background: rgba(18, 24, 34, 0.95);
    border: 1px solid rgba(60, 190, 242, 0.15);
    transform: rotate(-0.2deg);
    padding: 30px;
}

.cell-links h2 {
    color: #3cbef2;
    margin-bottom: 15px;
    font-size: 1.8rem;
    font-weight: 600;
}

.note {
    font-size: 0.88rem;
    opacity: 0.7;
    margin-bottom: 25px;
    font-style: italic;
    letter-spacing: 0.2px;
}

.links-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 12px;
    margin: 25px 0;
}

.link-item {
    word-break: break-all;
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    padding: 16px;
    background: rgba(12, 17, 26, 0.8);
    border-left: 3px solid #3cbef2;
    transition: all 0.25s ease;
    line-height: 1.5;
    border-radius: 1px;
    letter-spacing: 0.5px;
}

.link-item:hover {
    background: rgba(12, 17, 26, 0.95);
    border-left-color: #3cbef2;
    transform: translateX(3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.access-notes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.access-notes p {
    font-size: 0.87rem;
    opacity: 0.8;
    font-weight: 300;
    line-height: 1.6;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 2px;
}

.access-notes strong {
    color: #3cbef2;
    font-weight: 500;
}

.cell-footer {
    grid-column: 1 / 13;
    grid-row: 11 / 12;
    text-align: center;
    padding: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.82rem;
    opacity: 0.6;
    margin-top: 15px;
    background: rgba(20, 26, 36, 0.9);
    letter-spacing: 0.3px;
}

@media (max-width: 1400px) {
    .matrix {
        grid-template-columns: repeat(8, 1fr);
        gap: 20px;
    }
    
    .cell-logo {
        grid-column: 1 / 4;
        grid-row: 1 / 3;
    }
    
    .cell-title {
        grid-column: 4 / 9;
        grid-row: 1 / 2;
    }
    
    .cell-nav {
        grid-column: 4 / 9;
        grid-row: 2 / 3;
    }
    
    .cell-content:nth-child(n) {
        grid-column: 1 / 9 !important;
        transform: rotate(0.15deg) !important;
    }
    
    .cell-links {
        grid-column: 1 / 9;
        grid-row: auto;
    }
    
    .cell-footer {
        grid-column: 1 / 9;
    }
    
    .title {
        font-size: 2.5rem;
    }
}

@media (max-width: 1024px) {
    body {
        padding: 15px;
    }
    
    .matrix {
        gap: 18px;
    }
    
    .cell {
        padding: 22px;
    }
    
    .title {
        font-size: 2.2rem;
    }
    
    .links-container {
        grid-template-columns: 1fr;
    }
    
    .access-notes {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body {
        padding: 12px;
        background-image: none;
    }
    
    .matrix {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .cell {
        grid-column: 1 !important;
        transform: rotate(0) !important;
        padding: 20px;
    }
    
    .cell-logo,
    .cell-title,
    .cell-nav,
    .cell-content,
    .cell-links,
    .cell-footer {
        grid-column: 1 !important;
        grid-row: auto !important;
    }
    
    .title {
        font-size: 1.9rem;
        line-height: 1.2;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .nav {
        justify-content: center;
        gap: 12px;
    }
    
    .nav-link {
        padding: 6px 16px;
        font-size: 0.85rem;
    }
    
    .cell-content h2 {
        font-size: 1.3rem;
    }
    
    .cell-content p {
        font-size: 0.94rem;
    }
    
    .link-item {
        font-size: 0.85rem;
        padding: 14px;
    }
    
    .logo-container {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .cell {
        padding: 18px;
    }
    
    .title {
        font-size: 1.7rem;
    }
    
    .nav {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .nav-link {
        text-align: center;
        padding: 10px;
    }
    
    .cell-content h2 {
        font-size: 1.2rem;
    }
    
    .cell-links h2 {
        font-size: 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .cell,
    .nav-link,
    .link-item,
    .logo-container {
        transition: none;
        transform: none !important;
    }
    
    .cell:hover {
        transform: none;
    }
}

@media (prefers-color-scheme: light) {
    .cell {
        background-color: rgba(240, 242, 245, 0.92);
        color: #303948;
        border-color: rgba(48, 57, 72, 0.1);
    }
    
    .cell:hover {
        background-color: rgba(245, 247, 250, 0.95);
        border-color: rgba(60, 190, 242, 0.3);
    }
    
    .title {
        background: linear-gradient(135deg, #303948 0%, rgba(48, 57, 72, 0.9) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    
    .subtitle {
        color: #303948;
        opacity: 0.8;
    }
    
    .nav-link {
        color: #303948;
        border-color: rgba(48, 57, 72, 0.15);
        background: rgba(48, 57, 72, 0.03);
    }
    
    .nav-link:hover {
        color: #3cbef2;
    }
    
    .cell-footer {
        background: rgba(240, 242, 245, 0.9);
        color: #303948;
    }
}

.link-number {
    color: #3cbef2;
    font-weight: 600;
    margin-right: 8px;
    display: inline-block;
    min-width: 20px;
}

.cell-content:nth-child(4n+5) {
    grid-column: 1 / 7;
    transform: rotate(0.4deg);
}

.cell-content:nth-child(4n+6) {
    grid-column: 7 / 13;
    transform: rotate(-0.3deg);
}

.cell-content:nth-child(4n+7) {
    grid-column: 1 / 7;
    transform: rotate(-0.4deg);
}

.cell-content:nth-child(4n+8) {
    grid-column: 7 / 13;
    transform: rotate(0.3deg);
}

.cell-content:nth-child(4n+9) {
    grid-column: 1 / 7;
    transform: rotate(0.2deg);
}

.cell-content:nth-child(4n+10) {
    grid-column: 7 / 13;
    transform: rotate(-0.2deg);
}

.cell-content:nth-child(4n+11) {
    grid-column: 1 / 7;
    transform: rotate(-0.1deg);
}

.cell-content:nth-child(4n+12) {
    grid-column: 7 / 13;
    transform: rotate(0.1deg);
}

.cell-content:nth-child(4n+13) {
    grid-column: 1 / 7;
    transform: rotate(0.3deg);
}

.cell-content:nth-child(4n+14) {
    grid-column: 7 / 13;
    transform: rotate(-0.3deg);
}

[aria-label="Main Navigation"] {
    display: contents;
}

.cell-content ul {
    list-style: none;
    padding-left: 0;
    margin: 15px 0;
}

.cell-content li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    opacity: 0.88;
    font-weight: 300;
    line-height: 1.6;
}

.cell-content li::before {
    content: "▶";
    position: absolute;
    left: 0;
    color: #3cbef2;
    font-size: 0.8rem;
    top: 1px;
}

.cell-content strong {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
}

.cell-content em {
    font-style: italic;
    opacity: 0.9;
}

.access-notes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.access-notes p {
    font-size: 0.85rem;
    opacity: 0.8;
    font-weight: 300;
    line-height: 1.6;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 2px;
    border-left: 2px solid rgba(60, 190, 242, 0.2);
    transition: all 0.2s ease;
}

.access-notes p:hover {
    background: rgba(60, 190, 242, 0.05);
    border-left-color: rgba(60, 190, 242, 0.4);
}

.access-notes strong {
    color: #3cbef2;
    font-weight: 500;
    display: block;
    margin-bottom: 4px;
}

.cell-content h3 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin: 20px 0 12px;
    font-weight: 500;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cell-content blockquote {
    border-left: 3px solid #3cbef2;
    padding-left: 20px;
    margin: 20px 0;
    opacity: 0.9;
    font-style: italic;
    background: rgba(60, 190, 242, 0.03);
    padding: 15px 20px;
    border-radius: 0 2px 2px 0;
}

.cell-content code {
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 2px;
    color: #3cbef2;
}

.cell-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.9rem;
}

.cell-content th {
    background: rgba(60, 190, 242, 0.1);
    color: #3cbef2;
    font-weight: 500;
    padding: 12px 15px;
    text-align: left;
    border-bottom: 2px solid rgba(60, 190, 242, 0.3);
}

.cell-content td {
    padding: 10px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.88;
}

.cell-content tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

@media (max-width: 1400px) {
    .cell-content:nth-child(n) {
        grid-column: 1 / 9 !important;
    }
    
    .access-notes {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .access-notes {
        grid-template-columns: 1fr;
    }
    
    .cell-content th,
    .cell-content td {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .cell-content {
        padding: 18px;
    }
    
    .cell-content h2 {
        font-size: 1.25rem;
    }
    
    .cell-content h3 {
        font-size: 1.1rem;
    }
    
    .cell-content li {
        padding-left: 20px;
        margin-bottom: 8px;
    }
    
    .cell-content li::before {
        font-size: 0.75rem;
    }
    
    .cell-content blockquote {
        padding: 12px 15px;
        margin: 15px 0;
    }
    
    .cell-content table {
        font-size: 0.82rem;
    }
    
    .access-notes p {
        font-size: 0.82rem;
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .cell-content h2 {
        font-size: 1.15rem;
    }
    
    .cell-content h3 {
        font-size: 1rem;
    }
    
    .cell-content table {
        display: block;
        overflow-x: auto;
    }
    
    .cell-content th,
    .cell-content td {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    .link-number {
        margin-right: 6px;
        min-width: 18px;
    }
}

@supports (backdrop-filter: blur(4px)) {
    .cell {
        backdrop-filter: blur(4px);
    }
}

@supports not (backdrop-filter: blur(4px)) {
    .cell {
        background-color: rgba(26, 32, 42, 0.98);
    }
}

:focus {
    outline: 2px solid rgba(60, 190, 242, 0.5);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #3cbef2;
    color: #303948;
    padding: 8px 16px;
    text-decoration: none;
    font-weight: 500;
    border-radius: 2px;
    z-index: 1000;
}

.skip-link:focus {
    top: 0;
    outline: 2px solid #3cbef2;
    outline-offset: 2px;
}

.cell-links:target {
    animation: highlight 2s ease;
}

@keyframes highlight {
    0% {
        background-color: rgba(60, 190, 242, 0.1);
    }
    100% {
        background-color: rgba(18, 24, 34, 0.95);
    }
}

@media print {
    .cell {
        break-inside: avoid;
        border: 1px solid #ddd;
        background: white;
        color: black;
    }
    
    .nav,
    .logo-container {
        display: none;
    }
    
    .matrix {
        display: block;
    }
    
    .cell {
        margin-bottom: 20px;
    }
}

.loading {
    opacity: 0.7;
    pointer-events: none;
}

.hidden {
    display: none !important;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.cell-content a {
    color: #3cbef2;
    text-decoration: none;
    border-bottom: 1px dotted rgba(60, 190, 242, 0.3);
    transition: all 0.2s ease;
}

.cell-content a:hover {
    border-bottom-style: solid;
    border-bottom-color: #3cbef2;
}

.cell-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 15px 0;
    border-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cell-content hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(60, 190, 242, 0.3), transparent);
    margin: 25px 0;
}

.cell-content sup,
.cell-content sub {
    font-size: 0.75em;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

.cell-content sup {
    top: -0.5em;
}

.cell-content sub {
    bottom: -0.25em;
}

.cell-content kbd {
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    padding: 2px 6px;
    margin: 0 2px;
    box-shadow: 0 2px 0 rgba(255, 255, 255, 0.1);
}

.cell-content mark {
    background: rgba(60, 190, 242, 0.2);
    color: inherit;
    padding: 0 4px;
    border-radius: 2px;
}

.cell-content small {
    font-size: 0.85rem;
    opacity: 0.8;
}

.cell-content abbr[title] {
    border-bottom: 1px dotted rgba(255, 255, 255, 0.5);
    cursor: help;
    text-decoration: none;
}

.cell-content q {
    font-style: italic;
    quotes: "«" "»" "‹" "›";
}

.cell-content q::before {
    content: open-quote;
}

.cell-content q::after {
    content: close-quote;
}

.cell-content samp {
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 2px;
}

.cell-content var {
    font-style: italic;
    color: #3cbef2;
}

.cell-content dfn {
    font-style: italic;
    font-weight: 500;
}

.cell-content time {
    opacity: 0.8;
    font-size: 0.9rem;
}

.cell-content data {
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
}

.cell-content meter {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.cell-content meter::-webkit-meter-bar {
    background: rgba(255, 255, 255, 0.1);
}

.cell-content meter::-webkit-meter-optimum-value {
    background: #3cbef2;
}

.cell-content progress {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.cell-content progress::-webkit-progress-bar {
    background: rgba(255, 255, 255, 0.1);
}

.cell-content progress::-webkit-progress-value {
    background: #3cbef2;
}

.cell-content progress::-moz-progress-bar {
    background: #3cbef2;
}

details {
    margin: 15px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 10px;
}

summary {
    font-weight: 500;
    cursor: pointer;
    padding: 8px;
    margin: -10px;
    outline: none;
}

summary:hover {
    background: rgba(255, 255, 255, 0.05);
}

details[open] summary {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 10px;
}

details[open] {
    padding-bottom: 0;
}

::selection {
    background: rgba(60, 190, 242, 0.3);
    color: #fff;
}

::-moz-selection {
    background: rgba(60, 190, 242, 0.3);
    color: #fff;
}