/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #ffffff;
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Navbar container */
.navbar {
    background-color: #1A1A2E;
    border-radius: 0 0 20px 20px;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: none;
    box-shadow: 0 0 30px rgba(26, 26, 46, 0.8), 0 0 20px rgba(79, 207, 141, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    transform: none;
    z-index: 1000;
}

/* Navigation items container */
.nav-items {
    display: flex;
    gap: 40px;
    align-items: center;
}

/* Individual navigation item */
.nav-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

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

/* Navigation icon */
.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Navigation text */
.nav-text {
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
}

/* PerpDEX button */
.perpdex-button {
    background-color: #2A2A4A;
    border-radius: 15px;
    padding: 12px 20px;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.perpdex-button:hover {
    background-color: #3A3A5A;
    transform: translateY(-1px);
}

/* LIVE tag */
.live-tag {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #00FF00;
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive design */
@media (max-width: 768px) {
    .navbar {
        width: 100%;
        padding: 15px 20px;
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-items {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-item {
        gap: 6px;
    }
    
    .nav-text {
        font-size: 12px;
    }
    
    .perpdex-button {
        padding: 10px 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .nav-items {
        gap: 15px;
    }
    
    .nav-text {
        font-size: 11px;
    }
    
    .perpdex-button {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* Hero Section Styles */
.hero-section {
    background: linear-gradient(135deg, #9945FF 0%, #14F195 100%);
    position: relative;
    margin-top: 30px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 40px;
    border-bottom: 1px solid #4FCF8D;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 950px;
    margin: 0 auto;
}

.hero-title {
    font-size: 8rem;
    font-weight: 800;
    color: #00ff7b;
    margin-bottom: 30px;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero-description {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 40px;
    text-align: center;
}

.indented-text {
    display: block;
    margin-left: 20px;
}

.contract-address-box {
    background-color: #0000002f;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 20px;
    text-align: center;
}

.contract-label {
    color: #AAAAAA;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.contract-address-field {
    background-color: #0000002f;
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.contract-address {
    color: #FFFFFF;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    flex: 1;
    text-align: left;
}

.copy-button {
    background: none;
    border: none;
    color: #FFFFFF;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-button:hover {
    background-color: rgba(79, 207, 141, 0.1);
    color: #4FCF8D;
}

.fork-info-box {
    background-color: #0000002f;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 40px;
    text-align: left;
}

.fork-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.fork-icon {
    color: #FFFFFF;
    flex-shrink: 0;
}

.fork-text {
    color: #FFFFFF;
    font-size: 0.9rem;
}

.fork-link {
    color: #4FCF8D;
    text-decoration: underline;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.fork-link:hover {
    color: #5FDF9D;
}

.fork-separator {
    color: #FFFFFF;
    font-size: 0.9rem;
    margin: 0 8px;
}

.fork-ahead {
    color: #FFFFFF;
    font-size: 0.9rem;
}

.fork-description {
    color: #CCCCCC;
    font-size: 0.7rem;
    line-height: 1.4;
    text-align: center;
    margin-top: 10px;
}

.read-more-button {
    background-color: #0000002f;
    border: 2px solid #4FCF8D;
    border-radius: 50px;
    padding: 15px 40px;
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
}

.read-more-button:hover {
    background-color: #4FCF8D;
    color: #000000;
    transform: translateY(-2px);
}

.button-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #4FCF8D, #5FDF9D, #4FCF8D);
    border-radius: 50px;
    z-index: -1;
    opacity: 0;
    animation: buttonGlow 2s ease-in-out infinite;
}

@keyframes buttonGlow {
    0%, 100% {
        opacity: 0;
        transform: scale(1);
    }
    50% {
        opacity: 0.3;
        transform: scale(1.05);
    }
}

.copy-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #4FCF8D;
    color: #000000;
    padding: 15px 30px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(79, 207, 141, 0.3);
}

.copy-notification.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1.1);
}

/* Scroll Indicator */
.scroll-indicator {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    cursor: default;
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-text {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.scroll-arrow {
    color: #4FCF8D;
}

@keyframes scrollBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(8px);
    }
}

/* Key Concepts Section */
.key-concepts-section {
    background: linear-gradient(135deg, #9945FF 0%, #14F195 100%);
    position: relative;
    border-bottom: 1px solid #4FCF8D;
    padding: 100px 20px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.key-concepts-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 1;
}

.concepts-container {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.concepts-title {
    font-size: 3rem;
    font-weight: 800;
    color: #4FCF8D;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.concepts-subtitle {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 60px;
    line-height: 1.5;
}

.concepts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.concept-box {
    background-color: #1A1A2A;
    border: 1px solid #1A1A2E;
    border-radius: 16px;
    padding: 30px 25px;
    text-align: left;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: default;
}

.concept-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(79, 207, 141, 0.1), rgba(79, 207, 141, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.concept-box:hover {
    transform: translateY(-8px);
    border-color: #5FDF9D;
    box-shadow: 0 20px 40px rgba(79, 207, 141, 0.2);
}

.concept-box:hover::before {
    opacity: 1;
}

.concept-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(79, 207, 141, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #4FCF8D;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.concept-box:hover .concept-icon {
    background-color: rgba(79, 207, 141, 0.2);
    transform: scale(1.1);
}

.concept-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #4FCF8D;
    margin-bottom: 15px;
    transition: color 0.3s ease;
    position: relative;
    z-index: 2;
}

.concept-box:hover .concept-title {
    color: #5FDF9D;
}

.concept-description {
    color: #FFFFFF;
    font-size: 0.95rem;
    line-height: 1.6;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
    z-index: 2;
}

.concept-box:hover .concept-description {
    color: #EEEEEE;
}

/* Responsive Key Concepts */
@media (max-width: 1024px) {
    .concepts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .concepts-title {
        font-size: 2.5rem;
    }
    
    .concepts-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .key-concepts-section {
        padding: 80px 15px;
    }
    
    .concepts-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .concepts-subtitle {
        font-size: 1rem;
        margin-bottom: 40px;
    }
    
    .concepts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 500px;
    }
    
    .concept-box {
        padding: 25px 20px;
    }
    
    .concept-icon {
        width: 45px;
        height: 45px;
        margin-bottom: 15px;
    }
    
    .concept-title {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    
    .concept-description {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .key-concepts-section {
        padding: 60px 10px;
    }
    
    .concepts-title {
        font-size: 1.8rem;
    }
    
    .concepts-subtitle {
        font-size: 0.9rem;
        margin-bottom: 30px;
    }
    
    .concept-box {
        padding: 20px 15px;
    }
    
    .concept-icon {
        width: 40px;
        height: 40px;
    }
    
    .concept-title {
        font-size: 1.1rem;
    }
    
    .concept-description {
        font-size: 0.85rem;
    }
}

/* Core Features Section */
.core-features-section {
    background: linear-gradient(135deg, #9945FF 0%, #14F195 100%);
    position: relative;
    border-bottom: 1px solid #4FCF8D;
    padding: 100px 20px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.core-features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 1;
}

.features-container {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.features-title {
    font-size: 3rem;
    font-weight: 800;
    color: #4FCF8D;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.features-subtitle {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 60px;
    line-height: 1.5;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-box {
    background-color: #1A1A2A;
    border: 1px solid #1A1A2E;
    border-radius: 16px;
    padding: 30px 25px;
    text-align: left;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: default;
}

.feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(79, 207, 141, 0.1), rgba(79, 207, 141, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.feature-box:hover {
    transform: translateY(-8px);
    border-color: #5FDF9D;
    box-shadow: 0 20px 40px rgba(79, 207, 141, 0.2);
}

.feature-box:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(79, 207, 141, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #4FCF8D;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.feature-box:hover .feature-icon {
    background-color: rgba(79, 207, 141, 0.2);
    transform: scale(1.1);
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 15px;
    transition: color 0.3s ease;
    position: relative;
    z-index: 2;
}

.feature-box:hover .feature-title {
    color: #EEEEEE;
}

.feature-description {
    color: #CCCCCC;
    font-size: 0.95rem;
    line-height: 1.6;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
    z-index: 2;
}

.feature-box:hover .feature-description {
    color: #DDDDDD;
}

/* Responsive Core Features */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .features-title {
        font-size: 2.5rem;
    }
    
    .features-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .core-features-section {
        padding: 80px 15px;
    }
    
    .features-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .features-subtitle {
        font-size: 1rem;
        margin-bottom: 40px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 500px;
    }
    
    .feature-box {
        padding: 25px 20px;
    }
    
    .feature-icon {
        width: 45px;
        height: 45px;
        margin-bottom: 15px;
    }
    
    .feature-title {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    
    .feature-description {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .core-features-section {
        padding: 60px 10px;
    }
    
    .features-title {
        font-size: 1.8rem;
    }
    
    .features-subtitle {
        font-size: 0.9rem;
        margin-bottom: 30px;
    }
    
    .feature-box {
        padding: 20px 15px;
    }
    
    .feature-icon {
        width: 40px;
        height: 40px;
    }
    
    .feature-title {
        font-size: 1.1rem;
    }
    
    .feature-description {
        font-size: 0.85rem;
    }
}

/* Technical Architecture Section */
.technical-architecture-section {
    background: linear-gradient(135deg, #9945FF 0%, #14F195 100%);
    padding: 80px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #4FCF8D;
    position: relative;
}

.technical-architecture-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 1;
}

.architecture-container {
    max-width: 1200px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.architecture-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #4FCF8D;
    text-align: center;
    margin-bottom: 50px;
    letter-spacing: -0.02em;
}

.architecture-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

/* Left Column Styles */
.program-architecture-box {
    background-color: #0000002f;
    border: 1px solid #1A1A2E;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.program-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
}

.program-subsection {
    margin-bottom: 20px;
}

.subsection-title {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.program-address {
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    color: #AAAAAA;
    margin-bottom: 12px;
    word-break: break-all;
}

.program-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.program-features li {
    color: #FFFFFF;
    font-size: 0.8rem;
    margin-bottom: 6px;
    padding-left: 16px;
    position: relative;
}

.program-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background-color: #4FCF8D;
    border-radius: 50%;
}

.program-separator {
    display: flex;
    justify-content: center;
    margin: 15px 0;
}

.separator-dot {
    width: 6px;
    height: 6px;
    background-color: #4FCF8D;
    border-radius: 50%;
}

.memory-layout-box {
    background-color: #0000002f;
    border: 1px solid #1A1A2E;
    border-radius: 12px;
    padding: 20px;
}

.memory-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #FFFFFF;
    text-align: center;
    margin-bottom: 18px;
}

.memory-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.memory-item {
    background-color: #0000002f;
    border: 1px solid #1A1A2E;
    border-radius: 6px;
    padding: 10px;
    text-align: center;
}

.memory-label {
    color: #FFFFFF;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 3px;
}

.memory-size {
    color: #FFFFFF;
    font-size: 0.7rem;
    font-weight: 500;
}

.memory-total {
    color: #AAAAAA;
    font-size: 0.7rem;
    text-align: center;
    font-style: italic;
}

/* Right Column Styles */
.architecture-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.principles-section {
    margin-bottom: 30px;
}

.principles-title {
    font-size: 2rem;
    font-weight: 700;
    color: #4FCF8D;
    margin-bottom: 25px;
}

.principle-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
}

.principle-icon {
    width: 32px;
    height: 32px;
    border: 2px solid #4FCF8D;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4FCF8D;
    flex-shrink: 0;
}

.principle-content {
    flex: 1;
}

.principle-name {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 6px;
}

.principle-description {
    color: #c4c4c4;
    font-size: 0.85rem;
    line-height: 1.4;
}

.tech-stack-box {
    background-color: #0000002f;
    border: 1px solid #1A1A2E;
    border-radius: 12px;
    padding: 20px;
}

.tech-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #FFFFFF;
    text-align: center;
    margin-bottom: 18px;
}

.tech-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.tech-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tech-item {
    text-align: center;
}

.tech-name {
    color: #FFFFFF;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.tech-desc {
    color: #c4c4c4;
    font-size: 0.75rem;
}

/* Responsive Technical Architecture */
@media (max-width: 1200px) {
    .architecture-content {
        gap: 40px;
    }
}

@media (max-width: 1024px) {
    .architecture-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .architecture-title {
        font-size: 2.5rem;
    }
    
    .tech-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .technical-architecture-section {
        padding: 80px 15px;
    }
    
    .architecture-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .program-architecture-box,
    .memory-layout-box,
    .tech-stack-box {
        padding: 20px;
    }
    
    .program-title,
    .memory-title,
    .tech-title {
        font-size: 1.3rem;
    }
    
    .principles-title {
        font-size: 1.5rem;
    }
    
    .memory-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .principle-item {
        gap: 12px;
    }
    
    .principle-icon {
        width: 35px;
        height: 35px;
    }
}

/* Footer */
.footer {
    background-color: #1A1A2E;
    padding: 40px 20px;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.copyright {
    color: #666666;
    font-size: 0.9rem;
    font-weight: 400;
    margin: 0;
}

/* Mobile View - Show background image only */
@media (max-width: 768px) {
    /* Hide all content */
    nav, section, div, main, article, aside, header, footer, .navbar, .hero-section, .key-concepts-section, .core-features-section, .technical-architecture-section, .footer {
        display: none !important;
    }
    
    /* Set up the mobile view with background image */
    html, body {
        background: url('mb-screen-bg.png') center center / cover no-repeat !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        z-index: 999999 !important;
    }
}