:root {
    --bg-color: #0b0d17;
    --text-color: #e0e0e0;
    --primary-color: #00f0ff;
    /* Cyan */
    --secondary-color: #9945FF;
    /* Solana Purple */
    --accent-color: #14f195;
    /* Solana Green */
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Orbitron', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: clamp(60px, 12vw, 120px) 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: clamp(30px, 6vw, 60px);
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: -1px;
}

.section-title.center {
    text-align: center;
}

/* ================== Navbar ================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: clamp(12px, 2vw, 20px) 0;
    background: rgba(11, 13, 23, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid var(--card-border);
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    flex-shrink: 0;
    z-index: 1002;
    position: relative;
}

.logo-img {
    height: clamp(28px, 5vw, 36px);
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: clamp(24px, 4vw, 40px);
    align-items: center;
}

.nav-links li a {
    font-weight: 600;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.nav-links li a:hover {
    opacity: 1;
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    padding: 8px;
    z-index: 1002;
    position: relative;
}

.bar {
    width: 26px;
    height: 2.5px;
    background-color: var(--text-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

/* ================== Hero Section ================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: clamp(120px, 20vw, 160px) 0 clamp(60px, 10vw, 80px);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 40%, rgba(0, 240, 255, 0.15) 0%, rgba(11, 13, 23, 1) 70%);
    z-index: -1;
}

.hero-content {
    text-align: center;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 8vw, 5rem);
    line-height: 1.1;
    margin-bottom: clamp(16px, 3vw, 24px);
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: -2px;
}

.glitch {
    position: relative;
    display: inline-block;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
}

.glitch::before {
    left: 3px;
    text-shadow: -2px 0 var(--primary-color);
    animation: glitch-anim-1 2.5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -3px;
    text-shadow: 2px 0 var(--secondary-color);
    animation: glitch-anim-2 3.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {

    0%,
    100% {
        clip-path: inset(10% 0 80% 0);
    }

    20% {
        clip-path: inset(50% 0 20% 0);
    }

    40% {
        clip-path: inset(10% 0 60% 0);
    }

    60% {
        clip-path: inset(80% 0 10% 0);
    }

    80% {
        clip-path: inset(30% 0 40% 0);
    }
}

@keyframes glitch-anim-2 {

    0%,
    100% {
        clip-path: inset(80% 0 10% 0);
    }

    20% {
        clip-path: inset(30% 0 40% 0);
    }

    40% {
        clip-path: inset(60% 0 10% 0);
    }

    60% {
        clip-path: inset(10% 0 80% 0);
    }

    80% {
        clip-path: inset(50% 0 20% 0);
    }
}

.subtitle {
    font-size: clamp(0.95rem, 3vw, 1.4rem);
    margin-bottom: clamp(32px, 6vw, 48px);
    color: #b0b0b0;
    max-width: 800px;
    font-weight: 500;
    line-height: 1.5;
    padding: 0 16px;
}

.cta-group {
    display: flex;
    gap: 16px;
    margin-bottom: clamp(40px, 8vw, 60px);
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    padding: clamp(14px, 2.5vw, 16px) clamp(24px, 4vw, 32px);
    border-radius: 8px;
    font-weight: 700;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    color: var(--text-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    background: rgba(0, 240, 255, 0.1);
    color: var(--primary-color);
}

.hero-image-container {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    border-radius: clamp(12px, 3vw, 20px);
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.7);
    border: 1px solid var(--card-border);
    position: relative;
}

.hero-image-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11, 13, 23, 0.4), transparent);
    pointer-events: none;
}

.hero-image {
    width: 100%;
    display: block;
    height: auto;
    transition: transform 0.5s ease;
}

.hero-image-container:hover .hero-image {
    transform: scale(1.05);
}

/* ================== About Section ================== */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 8vw, 100px);
    align-items: center;
}

.about-text h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 16px;
    font-size: clamp(1.3rem, 3.5vw, 1.8rem);
    letter-spacing: -0.5px;
}

.about-text p {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    margin-bottom: 20px;
    opacity: 0.85;
    line-height: 1.7;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--card-border);
    padding: clamp(24px, 4vw, 36px);
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.2);
}

.stat-card i {
    font-size: clamp(2.2rem, 5vw, 3rem);
    color: var(--primary-color);
    margin-bottom: 16px;
    display: block;
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.stat-card h4 {
    font-family: var(--font-heading);
    margin-bottom: 8px;
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    color: #fff;
}

.stat-card p {
    font-size: clamp(0.9rem, 2vw, 1rem);
    opacity: 0.7;
}

/* ================== Features Section ================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: clamp(20px, 4vw, 32px);
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: clamp(28px, 5vw, 48px);
    border-radius: clamp(16px, 3vw, 24px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.feature-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.icon-box {
    width: clamp(56px, 10vw, 64px);
    height: clamp(56px, 10vw, 64px);
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(153, 69, 255, 0.2));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: clamp(20px, 4vw, 32px);
}

.icon-box i {
    font-size: clamp(1.5rem, 3vw, 1.8rem);
    color: var(--primary-color);
}

.feature-card h3 {
    font-family: var(--font-heading);
    margin-bottom: 12px;
    font-size: clamp(1.2rem, 2.5vw, 1.4rem);
    color: #fff;
}

.feature-card p {
    font-size: clamp(0.95rem, 2vw, 1rem);
    line-height: 1.6;
    opacity: 0.7;
}

/* ================== Roadmap Section ================== */
.timeline {
    position: relative;
    max-width: 900px;
    margin: clamp(40px, 8vw, 60px) auto 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color), transparent);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: clamp(20px, 4vw, 30px) clamp(30px, 6vw, 60px);
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: clamp(20px, 3vw, 24px);
    height: clamp(20px, 3vw, 24px);
    background: var(--bg-color);
    border: 4px solid var(--primary-color);
    top: clamp(30px, 5vw, 40px);
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 15px var(--primary-color);
}

.timeline-item:nth-child(odd)::after {
    right: calc(-1 * clamp(10px, 1.5vw, 12px));
}

.timeline-item:nth-child(even)::after {
    left: calc(-1 * clamp(10px, 1.5vw, 12px));
}

.timeline-content {
    background: rgba(255, 255, 255, 0.03);
    padding: clamp(24px, 4vw, 32px);
    border-radius: clamp(14px, 3vw, 20px);
    border: 1px solid var(--card-border);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-color);
}

.timeline-item.future .timeline-content {
    opacity: 0.5;
    border-style: dashed;
}

.phase {
    display: block;
    font-size: clamp(0.75rem, 1.8vw, 0.85rem);
    color: var(--secondary-color);
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.timeline-content h3 {
    font-family: var(--font-heading);
    margin-bottom: 10px;
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: #fff;
}

.timeline-content p {
    font-size: clamp(0.9rem, 2vw, 1rem);
    opacity: 0.8;
}

/* ================== Footer ================== */
.footer {
    background: #05060a;
    padding: clamp(60px, 12vw, 100px) 0 clamp(30px, 5vw, 40px);
    border-top: 1px solid var(--card-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: clamp(40px, 8vw, 80px);
    flex-wrap: wrap;
    gap: clamp(32px, 6vw, 48px);
}

.footer-logo h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 4vw, 2rem);
    color: var(--primary-color);
    margin-bottom: 10px;
}

.footer-logo p {
    font-size: clamp(0.9rem, 2vw, 1rem);
    opacity: 0.7;
}

.footer-links {
    display: flex;
    gap: clamp(24px, 5vw, 40px);
    flex-wrap: wrap;
}

.footer-links a {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: #888;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.footer-bottom {
    text-align: center;
    padding-top: clamp(24px, 5vw, 40px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #555;
    font-size: clamp(0.85rem, 2vw, 0.95rem);
}

/* ================== Responsive Design ================== */

/* Tablet Landscape */
@media screen and (max-width: 1024px) {
    .hero-image-container {
        max-width: 600px;
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    }
}

/* Tablet Portrait and Mobile */
@media screen and (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .section {
        padding: clamp(50px, 10vw, 80px) 0;
    }

    /* Mobile Navigation */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 100%;
        height: 100vh;
        background: rgba(11, 13, 23, 0.98);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 60px 40px;
        text-align: center;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1001;
        gap: 36px;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li a {
        font-size: 1.3rem;
        letter-spacing: 3px;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8.5px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8.5px) rotate(-45deg);
    }

    /* Hero Adjustments */
    .hero {
        padding-top: clamp(100px, 18vw, 140px);
        min-height: auto;
    }

    .hero h1 {
        letter-spacing: -1px;
    }

    .cta-group {
        flex-direction: row;
        justify-content: center;
        max-width: 100%;
    }

    .btn {
        flex: 1;
        min-width: 140px;
        justify-content: center;
    }

    /* About Section */
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Timeline Mobile */
    .timeline::after {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding: 16px 0 16px 50px;
        text-align: left !important;
        left: 0 !important;
    }

    .timeline-item::after {
        left: 10px !important;
        right: auto !important;
        top: 26px;
        width: 20px;
        height: 20px;
        border-width: 3px;
    }

    .timeline-content {
        padding: 20px;
    }
}

/* Small Mobile */
@media screen and (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding-top: 100px;
    }

    .cta-group {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .btn {
        width: 100%;
        min-width: auto;
    }

    .feature-card {
        padding: 24px 20px;
    }

    .nav-links.active {
        padding: 60px 24px;
    }

    .nav-links li a {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }
}

/* Extra Small Devices */
@media screen and (max-width: 360px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

/* Hover Effects - Disable on Touch Devices */
@media (hover: none) and (pointer: coarse) {

    .feature-card:hover,
    .stat-card:hover,
    .hero-image-container:hover .hero-image,
    .btn-primary:hover,
    .btn-secondary:hover {
        transform: none;
        box-shadow: none;
    }

    .feature-card:active {
        transform: scale(0.98);
    }

    .btn:active {
        transform: scale(0.96);
    }
}

/* Landscape Mobile Phones */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }

    .nav-links.active {
        padding: 40px 24px;
        justify-content: flex-start;
        overflow-y: auto;
    }

    .nav-links li a {
        font-size: 1.1rem;
    }

    .nav-links {
        gap: 24px;
    }
}