/* ============================================================
   Quantu v7 — Industrial Glass
   Refined Solana Purple (#9945FF) & Electric Blue (#00C2FF)
   ============================================================ */

:root {
    --header-h: 72px;
    --bg-deep: #050508;
    --bg-glass: rgba(15, 15, 25, 0.7);
    --solana-purple: #9945FF;
    --electric-blue: #00C2FF;
    --text-primary: #f0f0f5;
    --text-secondary: #a0a0b0;
    --border-dim: rgba(255, 255, 255, 0.1);
    --glass-blur: 18px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: var(--header-h);
}

/* --- Background Grid --- */
.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

/* --- Typography --- */
h1, h2, h3 {
    font-family: 'Orbitron', sans-serif;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 1rem;
}
h1 { font-size: 3.5rem; font-weight: 700; }
h2 { font-size: 2.2rem; text-align: center; margin-bottom: 2rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.8rem; }

p { color: var(--text-secondary); margin-bottom: 1rem; }
a { color: var(--electric-blue); text-decoration: none; transition: 0.3s; }
a:hover { color: #fff; }

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 0;
}

/* --- Glassmorphism --- */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--border-dim);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* --- Border Beam Animation --- */
.border-beam {
    position: relative;
    z-index: 1;
}
.border-beam::before {
    content: '';
    position: absolute;
    inset: -1px;
    padding: 1px;
    border-radius: inherit;
    background: conic-gradient(
        from var(--beam-angle, 0deg),
        transparent 0%,
        transparent 80%,
        var(--solana-purple) 85%,
        var(--electric-blue) 95%,
        transparent 100%
    );
    -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;
    animation: beam-rotate 4s linear infinite;
}

@property --beam-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes beam-rotate {
    to { --beam-angle: 360deg; }
}

/* --- Header & Nav --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--header-h);
    z-index: 1000;
    background: rgba(5, 5, 8, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-dim);
    display: flex;
    align-items: center;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links li {
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover, .nav-links a.active {
    color: #fff;
}

.drawer-toggle,
.mobile-drawer,
.drawer-overlay {
    display: none;
}

body.no-scroll {
    overflow: hidden;
}

/* --- Hero Section --- */
#hero {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-logo-inline img {
    max-width: 280px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px rgba(153, 69, 255, 0.3));
}

.gradient-ai {
    background: linear-gradient(135deg, var(--solana-purple), var(--electric-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#hero p { font-size: 1.2rem; max-width: 700px; margin: 0 auto 2rem; }

.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: #ffffff;
    color: #0a0a0a;
    border: 2px solid #ffffff;
}

.btn-primary:hover {
    background-color: transparent;
    color: #ffffff;
}

.cta-container {
    margin-top: 28px;
    text-align: center;
}

.online-cta {
    min-width: 242px;
}

.btn-gradient {
    background: var(--bg-glass);
    color: #fff;
    border: 1px solid var(--border-dim);
}

/* --- What is Section --- */
.what-is-container {
    display: flex;
    gap: 60px;
    align-items: center;
}

.section-image { flex: 1; }
.section-text { flex: 1; }

.install-container {
    position: relative;
    display: grid;
    grid-template-columns: minmax(200px, 270px) minmax(0, 1fr);
    gap: clamp(32px, 6vw, 72px);
    align-items: center;
}

#install .section-image {
    justify-self: center;
    width: min(100%, 270px);
}

#install .glass-bezel {
    padding: 8px;
    border-radius: 18px;
    box-shadow:
        inset 0 0 16px rgba(0,0,0,0.5),
        0 18px 34px rgba(0,0,0,0.34);
}

#install .section-text {
    max-width: 560px;
}

#install .section-text h2 {
    text-align: left;
}

.glass-bezel {
    position: relative;
    border-radius: 20px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        inset 0 0 20px rgba(0,0,0,0.5),
        0 20px 40px rgba(0,0,0,0.4);
    overflow: hidden;
}

.glass-bezel video, .glass-bezel img {
    width: 100%;
    border-radius: 12px;
    display: block;
}

.reflection {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 40%);
    pointer-events: none;
}

.bullet-point {
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 12px;
}

/* --- Tech Grid --- */
.tech-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 18px;
    align-items: stretch;
}

.tech-card {
    --card-accent: var(--electric-blue);
    position: relative;
    overflow: hidden;
    padding: 28px;
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(17, 17, 29, 0.9), rgba(8, 8, 16, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.09);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--card-accent), transparent);
    opacity: 0.86;
}

.tech-card::after {
    content: '';
    position: absolute;
    right: -72px;
    bottom: -92px;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--card-accent) 30%, transparent), transparent 68%);
    opacity: 0.32;
    pointer-events: none;
}

.tech-card h3,
.tech-card p,
.tech-card a,
.tech-card .registry-links {
    position: relative;
    z-index: 1;
}

.tech-card:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--card-accent) 48%, rgba(255,255,255,0.12));
    background:
        linear-gradient(180deg, rgba(23, 23, 39, 0.94), rgba(10, 10, 20, 0.98));
}

.tech-featured {
    grid-row: span 2;
    padding: 34px;
}

.tech-featured h3 {
    font-size: 1.95rem;
}

.tech-featured p {
    font-size: 1.05rem;
    line-height: 1.75;
}

.card-defi { --card-accent: var(--solana-purple); }
.card-market { --card-accent: var(--electric-blue); }
.card-models { --card-accent: #FF9E0B; }
.card-registry {
    --card-accent: #22c55e;
    grid-column: 1 / -1;
}

.card-defi h3 { color: var(--solana-purple); }
.card-market h3 { color: var(--electric-blue); }
.card-models h3 { color: #FF9E0B; }
.card-registry h3 { color: #22c55e; }

.registry-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 12px;
}

.registry-links a,
.tech-card > a {
    display: inline-flex;
    width: fit-content;
    font-weight: 700;
}

/* --- Roadmap / Digital Trail --- */
.roadmap-timeline {
    position: relative;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    margin: 60px 0;
    border-radius: 2px;
}

.digital-trail .timeline-line {
    position: absolute;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, var(--solana-purple), var(--electric-blue));
    box-shadow: 0 0 15px var(--electric-blue);
}

.timeline-dot {
    position: absolute;
    top: 50%;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.pulse {
    box-shadow: 0 0 0 0 rgba(0, 194, 255, 0.7);
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% { box-shadow: 0 0 0 0 rgba(0, 194, 255, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(0, 194, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 194, 255, 0); }
}

.dot-1 { left: 16.66%; background: var(--solana-purple); }
.dot-2 { left: 50%; background: #fff; }
.dot-3 { left: 83.33%; background: var(--electric-blue); }

.roadmap-grid {
    display: flex;
    gap: 20px;
}

.roadmap-grid-single {
    max-width: 780px;
    margin: 0 auto;
}

.quarter-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.badge {
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    display: inline-block;
    margin-bottom: 10px;
}

.badge-q1 { background: var(--solana-purple); color: #fff; }
.badge-q2 { background: linear-gradient(135deg, var(--solana-purple), var(--electric-blue)); color: #fff; }
.badge-mid { background: #444; color: #fff; }
.badge-vision { background: var(--electric-blue); color: #000; }

.roadmap-card {
    padding: 24px;
    border-radius: 16px;
}

.roadmap-quarter-single .roadmap-card {
    background:
        linear-gradient(180deg, rgba(17, 17, 29, 0.9), rgba(8, 8, 16, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.09);
}

/* --- Social Bar --- */
.social-bar {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1100;
}

.social-bar a {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
}

.social-bar svg, .social-bar img { width: 24px; height: 24px; fill: #fff; }

/* --- Footer --- */
footer {
    padding: 60px 0;
    border-top: 1px solid var(--border-dim);
    text-align: center;
    margin-top: 80px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

/* --- Fade In --- */
.fade-in {
    opacity: 1;
    transform: translateY(0);
    animation: fade-up 0.7s ease-out both;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive --- */
@media (max-width: 920px) {
    .install-container {
        grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
        gap: 34px;
    }

    #install .section-image {
        width: min(100%, 240px);
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .what-is-container { flex-direction: column; }
    .install-container {
        display: flex;
        flex-direction: column;
        gap: 26px;
    }
    #install .section-image {
        width: min(62vw, 220px);
    }
    #install .section-text {
        max-width: 620px;
        text-align: center;
    }
    #install .section-text h2 {
        text-align: center;
    }
    .tech-grid { grid-template-columns: 1fr; }
    .tech-featured,
    .card-registry {
        grid-column: auto;
        grid-row: auto;
    }
    .tech-featured {
        padding: 28px;
    }
    .tech-featured h3 {
        font-size: 1.5rem;
    }
    .roadmap-grid { flex-direction: column; }
    .roadmap-timeline { display: none; }
    .social-bar { display: none; }
    nav .nav-links { display: none !important; }

    .drawer-toggle {
        order: 0;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        width: 40px;
        height: 40px;
        background: rgba(15, 15, 25, 0.82);
        border: 1px solid var(--border-dim);
        border-radius: 10px;
        cursor: pointer;
        gap: 4px;
    }

    .drawer-toggle span {
        display: block;
        width: 18px;
        height: 2px;
        border-radius: 2px;
        background: #f8fafc;
    }

    nav {
        justify-content: flex-start;
        gap: 14px;
    }

    .logo {
        order: 1;
        font-size: 1.35rem;
        letter-spacing: 1px;
    }

    .mobile-drawer {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1200;
        display: block;
        width: min(82vw, 320px);
        height: 100%;
        padding: calc(var(--header-h) + 18px) 18px 18px;
        background: rgba(5, 5, 12, 0.98);
        border-right: 1px solid var(--border-dim);
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        backdrop-filter: blur(18px);
    }

    .mobile-drawer.open {
        transform: translateX(0);
    }

    .mobile-drawer a {
        display: block;
        padding: 12px 4px;
        border-bottom: 1px solid var(--border-dim);
        color: #e5e7eb;
        font-weight: 700;
    }

    .drawer-close {
        position: absolute;
        top: 16px;
        left: 16px;
        width: 38px;
        height: 38px;
        border: 1px solid var(--border-dim);
        border-radius: 10px;
        background: rgba(15, 15, 25, 0.88);
        cursor: pointer;
    }

    .drawer-close .line {
        position: absolute;
        left: 9px;
        top: 18px;
        width: 18px;
        height: 2px;
        border-radius: 2px;
        background: #f8fafc;
    }

    .drawer-close .line:first-child {
        transform: rotate(45deg);
    }

    .drawer-close .line:last-child {
        transform: rotate(-45deg);
    }

    .drawer-overlay {
        position: fixed;
        inset: 0;
        z-index: 1190;
        display: none;
        background: rgba(0, 0, 0, 0.58);
    }

    .drawer-overlay.show {
        display: block;
    }
}
