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

:root {
    --bg: #000000;
    --surface: #0a0a0a;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --text-muted: #444444;
    --accent: #ffffff;
    --accent-hover: #cccccc;
    --border: #1a1a1a;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
    font-weight: 300;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.page-wrapper {
    min-height: 100vh;
    position: relative;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

.content-area {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: calc(100vh - 120px);
    padding: 80px 60px 40px;
    max-width: 1800px;
    margin: 0 auto;
    width: 100%;
}

.left-column {
    padding-right: 80px;
    display: flex;
    flex-direction: column;
    gap: 120px;
    justify-content: flex-start;
}

.right-column {
    padding-left: 40px;
    border-left: 1px solid var(--border);
}

/* Identity Block */
.identity-block {
    position: relative;
}

.identity-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 24px;
    letter-spacing: 0.1em;
}

.main-heading {
    font-size: clamp(64px, 12vw, 140px);
    font-weight: 200;
    line-height: 0.9;
    letter-spacing: -0.05em;
    margin-bottom: 32px;
}

.heading-line {
    display: block;
}

.heading-line.accent {
    font-weight: 600;
    position: relative;
}

.identity-description {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-secondary);
    font-weight: 300;
    max-width: 480px;
    letter-spacing: -0.01em;
}

/* About Block */
.about-block {
    position: relative;
}

.section-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 24px;
    letter-spacing: 0.1em;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.about-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
    font-weight: 300;
    max-width: 520px;
    letter-spacing: -0.01em;
}

.about-text.secondary {
    color: var(--text-muted);
    font-size: 15px;
}

/* Links Container */
.links-container {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.link-item {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    gap: 24px;
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    align-items: center;
    position: relative;
}

.link-item:first-child {
    padding-top: 0;
}

.link-item:last-child {
    border-bottom: none;
}

.link-item:hover {
    padding-left: 8px;
}

.link-item:hover .link-arrow {
    transform: translateX(4px);
    opacity: 1;
}

.link-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    align-self: start;
    padding-top: 4px;
}

.link-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.link-label {
    font-size: 20px;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.link-meta {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 300;
}

.link-arrow {
    font-size: 24px;
    color: var(--text-muted);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 300;
}

/* Crypto Links */
.crypto-link {
    cursor: default;
}

.crypto-link:hover {
    padding-left: 0;
}

.support-header {
    border-bottom: 1px solid var(--border);
    margin-bottom: 0;
    padding-bottom: 24px;
}

.support-header .link-label {
    color: var(--text-primary);
    font-weight: 500;
}

.support-header .link-meta {
    color: var(--text-secondary);
    margin-top: 4px;
}

.support-meta {
    margin-bottom: 12px;
    color: var(--text-secondary);
    font-style: italic;
}

.crypto-address-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.crypto-address {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 0.02em;
    word-break: break-all;
    flex: 1;
    min-width: 200px;
    cursor: pointer;
    user-select: none;
    transition: filter 0.3s ease;
    filter: blur(8px);
    position: relative;
}

.crypto-address.revealed {
    filter: blur(0);
    user-select: text;
    cursor: text;
}

.copy-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 8px 16px;
    font-size: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.copy-btn:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.02);
}

.copy-btn.copied {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.copy-btn.copied .copy-text::after {
    content: ' ✓';
}

.copy-icon {
    font-size: 14px;
}

/* Footer */
.page-footer {
    position: relative;
    z-index: 2;
    padding: 40px 60px;
    margin-top: auto;
    border-top: 1px solid var(--border);
}

.footer-line {
    height: 1px;
    background: var(--border);
    margin-bottom: 24px;
}

.footer-content {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 300;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.05em;
}

.footer-separator {
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 1200px) {
    .content-area {
        grid-template-columns: 1fr;
        gap: 80px;
        padding: 60px 40px 40px;
    }

    .left-column {
        padding-right: 0;
        gap: 80px;
    }

    .right-column {
        padding-left: 0;
        border-left: none;
        border-top: 1px solid var(--border);
        padding-top: 80px;
    }

    .main-heading {
        font-size: clamp(48px, 10vw, 100px);
    }
}

@media (max-width: 768px) {
    .content-area {
        padding: 40px 24px 40px;
    }

    .left-column {
        gap: 60px;
    }

    .identity-description,
    .about-text {
        max-width: 100%;
    }

    .link-item {
        grid-template-columns: 32px 1fr;
        gap: 16px;
        padding: 24px 0;
    }

    .link-arrow {
        display: none;
    }

    .projects-link-fixed {
        bottom: 20px;
        right: 24px;
        padding: 12px 18px;
        font-size: 13px;
    }

    .projects-link-fixed .link-label {
        font-size: 16px;
    }

    .projects-link-fixed .link-meta {
        font-size: 12px;
    }

    .crypto-address-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }

    .crypto-address {
        min-width: 100%;
    }

    .page-footer {
        padding: 32px 24px;
    }
}

@media (max-width: 480px) {
    .main-heading {
        font-size: 48px;
    }

    .identity-description {
        font-size: 16px;
    }

    .about-text {
        font-size: 15px;
    }

    .link-label {
        font-size: 18px;
    }

    .projects-link-fixed {
        bottom: 16px;
        right: 16px;
        padding: 10px 14px;
        font-size: 12px;
    }

    .projects-link-fixed .link-label {
        font-size: 14px;
    }

    .projects-link-fixed .link-meta {
        font-size: 11px;
    }

    .projects-link-fixed .link-number {
        font-size: 10px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.identity-block,
.about-block,
.link-item,
.project-item {
    animation: fadeIn 0.6s ease-out backwards;
}

.about-block {
    animation-delay: 0.1s;
}

.link-item:nth-child(1) { animation-delay: 0.2s; }
.link-item:nth-child(2) { animation-delay: 0.25s; }
.link-item:nth-child(3) { animation-delay: 0.3s; }
.link-item:nth-child(4) { animation-delay: 0.35s; }
.link-item:nth-child(5) { animation-delay: 0.4s; }

.project-item:nth-child(1) { animation-delay: 0.1s; }
.project-item:nth-child(2) { animation-delay: 0.15s; }
.project-item:nth-child(3) { animation-delay: 0.2s; }
.project-item:nth-child(4) { animation-delay: 0.25s; }
.project-item:nth-child(5) { animation-delay: 0.3s; }
.project-item:nth-child(6) { animation-delay: 0.35s; }
.project-item:nth-child(7) { animation-delay: 0.4s; }
.project-item:nth-child(8) { animation-delay: 0.45s; }

/* Projects Page */
.projects-area {
    grid-template-columns: 1fr;
    gap: 60px;
}

.projects-header {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding-top: 60px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.3s ease;
    width: fit-content;
}

.back-link:hover {
    color: var(--text-primary);
    padding-left: 4px;
}

.back-arrow {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.back-link:hover .back-arrow {
    transform: translateX(-4px);
}

.back-link-fixed {
    position: fixed;
    top: 40px;
    left: 60px;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.back-link-fixed:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: var(--text-primary);
    padding-left: 24px;
}

.projects-link-fixed {
    position: fixed;
    bottom: 40px;
    right: 60px;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 16px 24px;
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.projects-link-fixed:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: var(--text-primary);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

.projects-link-fixed .link-arrow {
    opacity: 1;
}

.projects-link-fixed:hover .link-arrow {
    transform: translateX(4px);
}

.projects-title-block {
    position: relative;
}

.projects-heading {
    font-size: clamp(64px, 12vw, 140px);
    font-weight: 200;
    line-height: 0.9;
    letter-spacing: -0.05em;
}

.projects-controls {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    padding: 20px 0;
    margin: -20px 0 20px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 60px;
    background: var(--bg);
    transition: box-shadow 0.3s ease, border-bottom-color 0.3s ease;
}

.projects-controls::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    z-index: -1;
}

.projects-controls.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    border-bottom-color: var(--text-primary);
}

.projects-stats {
    display: flex;
    align-items: baseline;
    gap: 8px;
    justify-content: center;
}

.stat-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 24px;
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: 0.05em;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 300;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.1em;
    text-transform: lowercase;
}

.search-minimal {
    max-width: 520px;
    width: 100%;
    text-align: center;
}

.search-minimal-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-primary);
    padding: 12px 16px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    transition: all 0.3s ease;
    letter-spacing: -0.01em;
    box-shadow: 0 0 0 1px transparent, 0 10px 40px rgba(0, 0, 0, 0.25);
}

.search-minimal-input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.search-minimal-input:focus {
    outline: none;
    border-color: var(--text-primary);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08), 0 16px 48px rgba(0, 0, 0, 0.35);
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

.project-item {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 60px;
    padding: 60px 0;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeIn 0.6s ease-out backwards;
}

.project-item:first-child {
    padding-top: 0;
}

.project-item:last-child {
    border-bottom: none;
}

.project-item:hover {
    padding-left: 8px;
}

.project-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    align-self: start;
    padding-top: 4px;
    transition: color 0.3s ease;
}

.project-item:hover .project-number {
    color: var(--text-primary);
}

.project-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.project-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.project-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 200;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    line-height: 1.1;
    transition: all 0.3s ease;
}

.project-item:hover .project-title {
    font-weight: 300;
}

.project-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 300;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.1em;
}

.project-description {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: -0.01em;
    max-width: 680px;
    margin-bottom: 40px;
}

.project-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 0 40px 0;
    object-fit: contain;
}

.project-downloads {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.download-link {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 8px 16px;
    font-size: 11px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 0.05em;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.download-text {
    opacity: 0.7;
    font-weight: 500;
}

.download-platform {
    opacity: 1;
}

.download-link:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.02);
}

.download-link:hover .download-text {
    opacity: 1;
}

.projects-loading {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--border);
}

.loading-text {
    font-size: 13px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.1em;
}

.error-message {
    color: var(--text-secondary);
    font-size: 16px;
    text-align: center;
    padding: 60px 0;
}

/* Projects Page Responsive */
@media (max-width: 1200px) {
    .projects-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .search-minimal {
        max-width: 100%;
    }

    .project-item {
        grid-template-columns: 50px 1fr;
        gap: 40px;
        padding: 50px 0;
    }
}

@media (max-width: 768px) {
    .back-link-fixed {
        top: 20px;
        left: 24px;
        padding: 10px 16px;
        font-size: 13px;
    }

    .projects-header {
        padding-top: 50px;
    }

    .projects-area {
        padding: 40px 24px 40px;
    }

    .projects-controls {
        margin-bottom: 40px;
        padding: 16px 0;
        margin-top: -16px;
        padding-top: 16px;
    }

    .project-item {
        grid-template-columns: 40px 1fr;
        gap: 32px;
        padding: 40px 0;
    }
    
    .project-item:hover {
        padding-left: 0;
    }
    
    .project-content {
        gap: 24px;
    }
    
    .project-image {
        margin: 0 0 32px 0;
    }
    
    .project-content {
        transform: none !important;
    }
}

@media (max-width: 480px) {
    .projects-heading {
        font-size: 48px;
    }

    .project-title {
        font-size: 28px;
    }
    
    .project-item {
        grid-template-columns: 32px 1fr;
        gap: 24px;
        padding: 32px 0;
    }
    
    .project-number {
        font-size: 11px;
    }
    
    .project-content {
        gap: 20px;
    }
    
    .project-description {
        font-size: 14px;
    }
    
    .project-image {
        margin: 0 0 24px 0;
    }
    
    .download-link {
        font-size: 10px;
        padding: 6px 12px;
    }
}
