* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #000;
    overflow-x: hidden;
    font-family: 'Space Mono', 'Courier New', monospace;
    color: #55FF9C;
}

canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 25px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-sizing: border-box;
    max-width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 32px;
    font-weight: bold;
    color: #55FF9C;
    text-decoration: none;
}

.logo i {
    font-size: 36px;
}

.logo span {
    font-family: 'Press Start 2P', monospace;
}

nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

nav a {
    color: #55FF9C;
    text-decoration: none;
    font-size: 16px;
    text-transform: uppercase;
    padding: 12px 25px;
    border: 2px solid rgba(0, 255, 136, 0.3);
    transition: all 0.3s;
    position: relative;
    font-weight: bold;
}

nav a .corner {
    position: absolute;
    width: 8px;
    height: 8px;
    border: 2px solid #55FF9C;
}

nav a .corner-tl {
    top: -2px;
    left: -2px;
    border-right: none;
    border-bottom: none;
}

nav a .corner-tr {
    top: -2px;
    right: -2px;
    border-left: none;
    border-bottom: none;
}

nav a .corner-bl {
    bottom: -2px;
    left: -2px;
    border-right: none;
    border-top: none;
}

nav a .corner-br {
    bottom: -2px;
    right: -2px;
    border-left: none;
    border-top: none;
}

nav a:hover {
    background: rgba(0, 255, 136, 0.1);
    border-color: #55FF9C;
}

.menu-toggle {
    display: none;
    font-size: 25px;
    color: #55FF9C;
    cursor: pointer;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 350px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.98);
    padding: 80px 30px;
    transition: right 0.3s;
    z-index: 2000;
    border-left: 2px solid #55FF9C;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu .menu-item {
    display: block;
    text-decoration: none;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: bold;
    text-align: center;
    position: relative;
    padding: 5px;
    height: 80px;
    width: 100%;
    max-width: 300px;
    border: 2px solid rgba(0, 255, 136, 0.3);
}

.mobile-menu .menu-item div {
    background: #55FF9C;
    margin: 0;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    padding: 0 10px;
}

.mobile-menu .menu-item .corner {
    position: absolute;
    width: 8px;
    height: 8px;
    border: 2px solid #55FF9C;
}

.mobile-menu .menu-item .corner-tl {
    top: -2px;
    left: -2px;
    border-right: none;
    border-bottom: none;
}

.mobile-menu .menu-item .corner-tr {
    top: -2px;
    right: -2px;
    border-left: none;
    border-bottom: none;
}

.mobile-menu .menu-item .corner-bl {
    bottom: -2px;
    left: -2px;
    border-right: none;
    border-top: none;
}

.mobile-menu .menu-item .corner-br {
    bottom: -2px;
    right: -2px;
    border-left: none;
    border-top: none;
}

.close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 25px;
    color: #55FF9C;
    cursor: pointer;
}

/* Main Content */
main {
    margin-top: 100px;
    padding: 40px;
}

section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
}

/* Story Sections */
.story-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1400px;
    align-items: center;
    width: 100%;
}

.story-image {
    width: 100%;
    border: 1px solid #55FF9C;
    position: relative;
}

.story-image img {
    width: 100%;
    display: block;
    filter: brightness(0.8) contrast(1.2);
}

.story-title {
    position: absolute;
    width: max-content;
    max-width: 90%;
    font-size: 22px;
    font-weight: bold;
    text-transform: uppercase;
    padding: 5px;
    height: 80px;
    border: 2px solid rgba(0, 255, 136, 0.3);
}

.story-title div {
    background: #55FF9C;
    margin: 0;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    color: #000;
    padding: 0 10px;
}

.story-title .corner {
    position: absolute;
    width: 8px;
    height: 8px;
    border: 2px solid #55FF9C;
}

.story-title .corner-tl {
    top: -2px;
    left: -2px;
    border-right: none;
    border-bottom: none;
}

.story-title .corner-tr {
    top: -2px;
    right: -2px;
    border-left: none;
    border-bottom: none;
}

.story-title .corner-bl {
    bottom: -2px;
    left: -2px;
    border-right: none;
    border-top: none;
}

.story-title .corner-br {
    bottom: -2px;
    right: -2px;
    border-left: none;
    border-top: none;
}

.story-content {
    color: #fff;
    line-height: 2;
}

.story-content p {
    margin-bottom: 25px;
    text-transform: uppercase;
    font-size: 16px;
    letter-spacing: 0.5px;
    font-weight: 700;
}

/* Hero Section */
.hero-section p {
    color: #55FF9C;
    text-align: left;
    font-size: 40px;
}

/* Transform Section */
.transform-section {
    text-align: center;
}

.transform-section h2 {
    font-size: 48px;
    color: #55FF9C;
    margin-bottom: 30px;
    text-transform: uppercase;
    text-shadow: 0 0 20px #55FF9C;
    line-height: 1.4;
}

.transform-section p {
    color: #fff;
    margin-bottom: 40px;
    text-transform: uppercase;
    font-size: 18px;
    letter-spacing: 1px;
}

.btn {
    padding: 5px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 16px;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    height: 80px;
    width: max-content;
    border: 2px solid rgba(0, 255, 136, 0.3);
}

.btn div {
    background: #55FF9C;
    margin: 0;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    color: #000;
    padding: 0 10px;
}

.btn .corner {
    position: absolute;
    width: 8px;
    height: 8px;
    border: 2px solid #55FF9C;
}

.btn .corner-tl {
    top: -2px;
    left: -2px;
    border-right: none;
    border-bottom: none;
}

.btn .corner-tr {
    top: -2px;
    right: -2px;
    border-left: none;
    border-bottom: none;
}

.btn .corner-bl {
    bottom: -2px;
    left: -2px;
    border-right: none;
    border-top: none;
}

.btn .corner-br {
    bottom: -2px;
    right: -2px;
    border-left: none;
    border-top: none;
}

.btn:hover {
    background: transparent;
    border: 2px solid #55FF9C;
    transform: scale(1.05);
}

/* Contract Addresses */
.addresses {
    background: #55FF9C;
    border: 1px solid #55FF9C;
    padding: 40px 50px;
    max-width: 700px;
    margin-top: 40px;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
    color: #000;
}

.addresses h3 {
    color: #000;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-size: 18px;
}

.addresses p {
    color: #000;
    word-break: break-all;
    font-size: 14px;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

/* Footer */
footer {
    padding: 40px;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.powered-by {
    color: #55FF9C;
    text-transform: uppercase;
    font-size: 18px;
}

.social-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.social-links span {
    font-size: 16px;
}

.social-links a {
    color: #55FF9C;
    font-size: 28px;
    transition: transform 0.3s;
}

.social-links a:hover {
    transform: scale(1.2);
}

/* Desktop-specific positioning */
@media (min-width: 769px) {

    .xyz-1 p,
    .xyz-3 p {
        position: relative;
        top: 150px;
    }

    .xyz-1 .story-title,
    .xyz-3 .story-title {
        top: 20%;
        left: 80%;
    }

    .xyz-2 p {
        position: relative;
        top: -50px;
    }

    .xyz-2 .story-title {
        top: 85%;
        left: -20%;
    }

    .mobile {
        display: none;
    }

    .logo span {
        font-size: 32px;
    }
}

/* Tablet and mobile */
@media (max-width: 768px) {
    header {
        padding: 20px;
    }

    nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .mobile-menu .menu-item div {
        padding: 0px;
    }

    .story-section {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .story-image {
        order: 1;
    }

    .story-content {
        order: 2;
    }

    .desktop {
        display: none;
    }

    .transform-section h2 {
        font-size: 32px;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
    }

    main {
        padding: 20px;
        margin-top: 80px;
    }

    .logo {
        font-size: 24px;
    }

    .logo i {
        font-size: 28px;
    }

    .logo span {
        font-size: 20px;
    }

    .xyz-1 .story-content,
    .xyz-2 .story-content,
    .xyz-3 .story-content {
        margin-top: 20px;
    }

    .story-title {
        position: absolute;
        margin-top: 20px;
        margin-bottom: 20px;
        font-size: 15px;
        padding: 10px;
        height: 60px;
        max-width: 100%;
    }

    .story-content {
        font-size: 14px;
        padding: 10px 0;
        position: relative;
        top: 30px;
    }

    .story-content p {
        font-size: 14px;
    }

    .hero-section p {
        font-size: 20px;
    }

    section {
        min-height: auto;
        padding: 40px 20px;
    }

    .hero-section {
        display: flex;
        flex-direction: column;
    }

    .addresses {
        order: 2;
    }

    .story-content {
        order: 1;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .story-title {
        font-size: 10px;
        padding: 5px;
        height: 50px;
        width: 100%;
    }

    .story-title div {
        display: flex;
        justify-content: center;
    }

    .btn {
        height: 60px;
        font-size: 14px;
    }

    .mobile-menu {
        width: 100%;
        max-width: 320px;
    }

    .mobile-menu .menu-item {
        height: 70px;
        font-size: 14px;
    }

    .transform-section h2 {
        font-size: 24px;
    }

    .transform-section p {
        font-size: 14px;
    }

    .addresses {
        padding: 20px 25px;
    }

    .addresses h3 {
        font-size: 14px;
    }

    .addresses p {
        font-size: 12px;
    }

    .hero-section p {
        font-size: 16px;
    }
}