/* ============================================
   NEXUS PROTOCOL — CYBER NOIR REDESIGN
   Deep midnight base, electric cyan accents,
   sharp geometry, scan-line atmosphere
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Share+Tech+Mono&family=Inter:wght@300;400;500;600;700&display=swap');

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

:root {
    --bg-void:      #000507;
    --bg-deep:      #020c10;
    --bg-panel:     #04141a;
    --bg-card:      #061820;
    --cyan-bright:  #00f5ff;
    --cyan-mid:     #00b8cc;
    --cyan-dim:     #006070;
    --amber:        #ffaa00;
    --amber-dim:    #7a5100;
    --red-alert:    #ff3366;
    --text-primary: #d0f0f5;
    --text-muted:   #4a7a85;
    --text-dim:     #1e4550;
    --border-glow:  rgba(0, 245, 255, 0.15);
    --border-dim:   rgba(0, 245, 255, 0.06);
    --chrome-light: #d0f0f5;
    --chrome-medium: #4a7a85;
    --chrome-dark:  #1e4550;
    --neon-blue:    #00f5ff;
    --neon-purple:  #00b8cc;
    --neon-green:   #00ff88;
    --pure-black:   #000507;
    --deep-black:   #020c10;
}

/* ── SCANLINE TEXTURE ── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 245, 255, 0.012) 2px,
        rgba(0, 245, 255, 0.012) 4px
    );
    pointer-events: none;
    z-index: 9999;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-void);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ── BACKGROUND SYSTEM ── */
.chrome-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse 80% 60% at 10% 0%,   rgba(0,180,200,0.07) 0%, transparent 60%),
        radial-gradient(ellipse 60% 80% at 90% 100%, rgba(0,120,160,0.09) 0%, transparent 60%),
        radial-gradient(ellipse 40% 40% at 50% 50%,  rgba(0,245,255,0.02) 0%, transparent 70%),
        linear-gradient(180deg, var(--bg-void) 0%, var(--bg-deep) 100%);
}

/* Animated hex grid */
.chrome-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,245,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,245,255,0.04) 1px, transparent 1px);
    background-size: 80px 80px;
    animation: gridScroll 30s linear infinite;
    mask-image: radial-gradient(ellipse 100% 100% at 50% 50%, black 40%, transparent 100%);
}

@keyframes gridScroll {
    0%   { transform: translate(0,0); }
    100% { transform: translate(80px,80px); }
}

/* Particles — cyan sparks */
.particles { position: absolute; inset: 0; overflow: hidden; }

.particle {
    position: absolute;
    width: 1px;
    height: 40px;
    background: linear-gradient(to top, transparent, var(--cyan-bright));
    border-radius: 1px;
    animation: rain 12s linear infinite;
    opacity: 0;
}

.particle:nth-child(odd)  { width: 1px; height: 20px; }
.particle:nth-child(3n)   { background: linear-gradient(to top, transparent, var(--amber)); }

@keyframes rain {
    0%   { transform: translateY(-40px); opacity: 0; }
    5%   { opacity: 0.6; }
    95%  { opacity: 0.4; }
    100% { transform: translateY(100vh); opacity: 0; }
}

/* ── LAYOUT ── */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 28px;
}

/* ── NAVIGATION ── */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 0;
    background: rgba(2, 12, 16, 0.92);
    backdrop-filter: blur(30px);
    border-bottom: 1px solid var(--border-glow);
}

/* Top accent bar */
.nav::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--cyan-dim) 20%,
        var(--cyan-bright) 50%,
        var(--cyan-dim) 80%,
        transparent 100%
    );
    box-shadow: 0 0 12px var(--cyan-bright);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 64px;
    gap: 20px;
}

.logo {
    font-family: 'Orbitron', monospace;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--cyan-bright);
    text-shadow: 0 0 20px var(--cyan-bright), 0 0 40px rgba(0,245,255,0.3);
    letter-spacing: 4px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
    -webkit-text-fill-color: var(--cyan-bright);
}

.logo span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.logo img {
    height: 36px;
    width: auto;
    filter: invert(1) sepia(1) saturate(5) hue-rotate(160deg) brightness(1.4);
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    font-family: 'Share Tech Mono', monospace;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 8px 16px;
    border: 1px solid transparent;
    transition: all 0.25s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--cyan-bright);
    border-color: var(--border-glow);
    background: rgba(0,245,255,0.04);
    text-shadow: 0 0 8px var(--cyan-bright);
}

.nav-links a::after { display: none; }

.connect-btn {
    font-family: 'Orbitron', monospace;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: transparent;
    border: 1px solid var(--cyan-bright);
    padding: 10px 24px;
    color: var(--cyan-bright);
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
    box-shadow: 0 0 15px rgba(0,245,255,0.2), inset 0 0 15px rgba(0,245,255,0.04);
}

.connect-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--cyan-bright);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.connect-btn:hover {
    color: var(--bg-void);
    text-shadow: none;
    box-shadow: 0 0 30px rgba(0,245,255,0.5), inset 0 0 30px rgba(0,245,255,0.1);
}

.connect-btn:hover::before { opacity: 1; }

.connect-btn span { position: relative; z-index: 1; }

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    flex-shrink: 0;
}

.mobile-menu-btn span {
    width: 100%;
    height: 2px;
    background: var(--cyan-bright);
    border-radius: 0;
    transition: all 0.3s ease;
    box-shadow: 0 0 6px var(--cyan-bright);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.back-btn {
    background: transparent;
    border: 1px solid var(--border-glow);
    padding: 8px 16px;
    color: var(--text-muted);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.8rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}

.back-btn:hover {
    border-color: var(--cyan-bright);
    color: var(--cyan-bright);
}

/* ── HERO ── */
.hero {
    padding: 180px 0 100px;
    text-align: center;
    position: relative;
}

/* Corner brackets on hero */
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
}
.hero::before {
    top: 140px; left: 28px;
    border-top: 2px solid var(--cyan-dim);
    border-left: 2px solid var(--cyan-dim);
}
.hero::after {
    bottom: 60px; right: 28px;
    border-bottom: 2px solid var(--cyan-dim);
    border-right: 2px solid var(--cyan-dim);
}

.hero-content {
    display: flex;
    flex-direction: column-reverse;
    gap: 60px;
    align-items: center;
}

@media (min-width: 768px) {
    .hero-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.hero-text { flex: 1; }

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Rotating ring behind hero image */
.hero-image::before {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    border: 1px solid rgba(0,245,255,0.12);
    border-top-color: var(--cyan-bright);
    animation: spinRing 8s linear infinite;
}

.hero-image::after {
    content: '';
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    border: 1px solid rgba(0,245,255,0.06);
    border-bottom-color: var(--amber);
    animation: spinRing 12s linear infinite reverse;
}

@keyframes spinRing {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.hero-image img {
    max-width: 100%;
    height: auto;
    position: relative;
    z-index: 1;
    animation: floatImage 6s ease-in-out infinite;
    filter: drop-shadow(0 0 40px rgba(0,245,255,0.25)) drop-shadow(0 0 80px rgba(0,180,200,0.15));
}

@keyframes floatImage {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-16px); }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px 6px 8px;
    background: rgba(0,245,255,0.04);
    border: 1px solid rgba(0,245,255,0.25);
    margin-bottom: 32px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.75rem;
    color: var(--cyan-bright);
    letter-spacing: 3px;
    text-transform: uppercase;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 8px 100%);
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--cyan-bright);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 10px var(--cyan-bright);
    flex-shrink: 0;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 8px var(--cyan-bright); }
    50%       { opacity: 0.4; transform: scale(1.5); box-shadow: 0 0 20px var(--cyan-bright); }
}

.hero-title {
    font-family: 'Orbitron', monospace;
    font-size: 3.8rem;
    font-weight: 800;
    margin-bottom: 28px;
    line-height: 1.15;
    letter-spacing: -1px;
    color: var(--text-primary);
    text-shadow: 0 0 60px rgba(0,245,255,0.12);
    -webkit-text-fill-color: var(--text-primary);
}

/* Accent word in cyan */
.hero-title em {
    font-style: normal;
    color: var(--cyan-bright);
    -webkit-text-fill-color: var(--cyan-bright);
    text-shadow: 0 0 30px var(--cyan-bright);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 540px;
    margin: 0 0 40px;
    line-height: 1.7;
    font-weight: 300;
    font-family: 'Inter', sans-serif;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: flex-start;
    flex-wrap: wrap;
    align-items: center;
}

.chain-selector {
    background: rgba(0,245,255,0.03);
    border: 1px solid rgba(0,245,255,0.2);
    padding: 15px 20px;
    color: var(--text-primary);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.85rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.25s ease;
    min-width: 180px;
    clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}

.chain-selector:hover,
.chain-selector:focus {
    background: rgba(0,245,255,0.06);
    border-color: rgba(0,245,255,0.5);
    outline: none;
}

.chain-selector option {
    background: var(--bg-deep);
    color: var(--text-primary);
}

.primary-btn {
    font-family: 'Orbitron', monospace;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: var(--cyan-bright);
    border: none;
    padding: 16px 36px;
    color: var(--bg-void);
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
    box-shadow: 0 0 30px rgba(0,245,255,0.35);
}

.primary-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.primary-btn:hover { box-shadow: 0 0 60px rgba(0,245,255,0.6), 0 8px 30px rgba(0,180,200,0.4); transform: translateY(-2px); }
.primary-btn:hover::before { left: 100%; }

.secondary-btn {
    font-family: 'Orbitron', monospace;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: transparent;
    border: 1px solid rgba(0,245,255,0.3);
    padding: 16px 36px;
    color: var(--cyan-mid);
    cursor: pointer;
    transition: all 0.25s ease;
    clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}

.secondary-btn:hover {
    border-color: var(--cyan-bright);
    color: var(--cyan-bright);
    box-shadow: 0 0 20px rgba(0,245,255,0.15);
    transform: translateY(-2px);
}

/* ── STATS SECTION ── */
.stats-section {
    padding: 60px 0;
    border-top: 1px solid var(--border-dim);
    border-bottom: 1px solid var(--border-dim);
    background: rgba(0,245,255,0.015);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: 'SYSTEM METRICS';
    position: absolute;
    top: 12px; left: 50%;
    transform: translateX(-50%);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 4px;
    color: var(--text-dim);
    text-transform: uppercase;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.stat-item {
    text-align: center;
    padding: 20px;
    border-right: 1px solid var(--border-dim);
    position: relative;
}

.stat-item:last-child { border-right: none; }

.stat-value {
    font-family: 'Orbitron', monospace;
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--cyan-bright);
    text-shadow: 0 0 20px rgba(0,245,255,0.5);
    margin-bottom: 8px;
    letter-spacing: -1px;
    -webkit-text-fill-color: var(--cyan-bright);
}

.stat-label {
    font-family: 'Share Tech Mono', monospace;
    color: var(--text-muted);
    font-size: 0.72rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* ── SECTION SHARED ── */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-header::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--cyan-bright);
    margin: 20px auto 0;
    box-shadow: 0 0 10px var(--cyan-bright);
}

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
    letter-spacing: 2px;
    text-transform: uppercase;
    -webkit-text-fill-color: var(--text-primary);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ── SERVICES ── */
.services {
    padding: 120px 0;
    background: rgba(0,245,255,0.008);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan-dim), transparent);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    background: var(--border-dim);
    border: 1px solid var(--border-dim);
}

.service-card {
    background: var(--bg-card);
    padding: 24px 20px;
    transition: all 0.25s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: none;
    border-radius: 0;
}

/* Glitch line on hover */
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan-bright), var(--amber));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    box-shadow: 0 0 8px var(--cyan-bright);
}

.service-card::after { display: none; }

.service-card:hover {
    background: rgba(0,245,255,0.04);
    transform: none;
    box-shadow: inset 0 0 30px rgba(0,245,255,0.04);
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
    width: 36px;
    height: 36px;
    background: rgba(0,245,255,0.06);
    border: 1px solid rgba(0,245,255,0.15);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    font-size: 1rem;
}

.service-icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: invert(1) sepia(1) saturate(4) hue-rotate(160deg) brightness(1.4);
    opacity: 0.8;
}

.service-title {
    font-family: 'Share Tech Mono', monospace;
    font-weight: 400;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.service-desc {
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.5;
}

/* ── FEATURES ── */
.features {
    padding: 120px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.feature-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-dim);
    border-radius: 0;
    padding: 20px 16px;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
}

/* Scan animation on hover */
.feature-card::before {
    content: '';
    position: absolute;
    top: -100%; left: 0; right: 0;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0,245,255,0.04), transparent);
    transition: top 0.5s ease;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: var(--cyan-bright);
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: 0 0 8px var(--cyan-bright);
}

.feature-card:hover {
    border-color: rgba(0,245,255,0.2);
    background: rgba(0,245,255,0.03);
    transform: translateY(-3px);
}

.feature-card:hover::before { top: 100%; }
.feature-card:hover::after  { opacity: 1; }

.feature-icon {
    width: 36px;
    height: 36px;
    background: rgba(0,245,255,0.06);
    border: 1px solid rgba(0,245,255,0.15);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin: 0 auto 12px;
}

.feature-title {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: var(--cyan-mid);
}

.feature-description {
    color: var(--text-muted);
    line-height: 1.5;
    font-size: 0.75rem;
}

/* ── CTA SECTION ── */
.cta-section {
    padding: 120px 0;
    text-align: center;
}

.cta-card {
    background: var(--bg-panel);
    border: 1px solid rgba(0,245,255,0.12);
    padding: 80px 40px;
    position: relative;
    overflow: hidden;
}

/* Corner brackets */
.cta-card::before,
.cta-card::after {
    content: '';
    position: absolute;
    width: 40px; height: 40px;
}
.cta-card::before {
    top: -1px; left: -1px;
    border-top: 2px solid var(--cyan-bright);
    border-left: 2px solid var(--cyan-bright);
    box-shadow: -4px -4px 12px rgba(0,245,255,0.2);
}
.cta-card::after {
    bottom: -1px; right: -1px;
    border-bottom: 2px solid var(--cyan-bright);
    border-right: 2px solid var(--cyan-bright);
    box-shadow: 4px 4px 12px rgba(0,245,255,0.2);
}

/* Ambient glow — no JS needed */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.cta-content { position: relative; z-index: 1; }

.cta-title {
    font-family: 'Orbitron', monospace;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
    letter-spacing: 2px;
    text-transform: uppercase;
    -webkit-text-fill-color: var(--text-primary);
}

.cta-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 36px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* ── FOOTER ── */
.footer {
    padding: 48px 0;
    border-top: 1px solid var(--border-dim);
    text-align: center;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan-dim), transparent);
}

.footer-text {
    font-family: 'Share Tech Mono', monospace;
    color: var(--text-dim);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

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

.footer-links a {
    font-family: 'Share Tech Mono', monospace;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.25s ease;
}

.footer-links a:hover {
    color: var(--cyan-bright);
    text-shadow: 0 0 8px var(--cyan-bright);
}

/* ── SCROLL ANIMATIONS ── */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.fade {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .hero-title     { font-size: 2.8rem; }
    .features-grid  { grid-template-columns: repeat(3, 1fr); }
    .services-grid  { grid-template-columns: repeat(2, 1fr); }
    .stats-grid     { grid-template-columns: repeat(2, 1fr); }
    .stat-item      { border-bottom: 1px solid var(--border-dim); }
    .stat-item:nth-child(2) { border-right: none; }
}

@media (max-width: 768px) {
    .mobile-menu-btn { display: flex; }

    .nav-content {
        padding: 8px 12px;
        min-height: auto;
        align-items: center;
        gap: 10px;
    }

    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        width: 75%; max-width: 280px;
        height: 100vh;
        background: rgba(2,12,16,0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 28px;
        transition: right 0.3s ease;
        z-index: 1000;
        border-left: 1px solid var(--border-glow);
        padding-top: 60px;
    }

    .nav-links.active { right: 0; }
    .nav-links a { font-size: 1rem; }
    .connect-btn { display: none; }

    .hero { padding: 120px 0 80px; }
    .hero-title { font-size: 1.9rem; letter-spacing: -0.5px; }
    .hero::before, .hero::after { display: none; }
    .hero-image::before, .hero-image::after { width: 260px; height: 260px; }
    .hero-subtitle { font-size: 0.95rem; max-width: 100%; }
    .hero-badge { font-size: 0.7rem; padding: 5px 14px 5px 8px; }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    .hero-actions button, .hero-actions select { width: 100%; }
    .chain-selector { min-width: auto; }

    .features-grid { grid-template-columns: repeat(2, 1fr); gap: 2px; }
    .feature-card  { padding: 16px 14px; }

    .services-grid { grid-template-columns: repeat(3, 1fr); }
    .service-card  { padding: 14px 10px; }
    .service-icon  { width: 28px; height: 28px; margin-bottom: 10px; }
    .service-icon img { width: 16px; height: 16px; }
    .service-title { font-size: 0.72rem; }
    .service-desc  { font-size: 0.7rem; }

    .stats-grid {
        display: flex;
        gap: 0;
        overflow-x: auto;
        padding-bottom: 10px;
        scroll-snap-type: x mandatory;
        background: none;
    }
    .stat-item {
        flex: 0 0 auto;
        min-width: 150px;
        scroll-snap-align: start;
        border-right: 1px solid var(--border-dim);
        border-bottom: none;
    }
    .stat-value { font-size: 1.8rem; }

    .section-title  { font-size: 1.6rem; letter-spacing: 1px; }
    .section-subtitle { font-size: 0.9rem; padding: 0 8px; }

    .cta-card   { padding: 50px 20px; }
    .cta-title  { font-size: 1.5rem; }

    .footer-links { flex-wrap: wrap; gap: 16px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero-title { font-size: 1.5rem; }
    .hero-subtitle { font-size: 0.88rem; }
    .features-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { display: grid; grid-template-columns: 1fr 1fr; }
    .stat-value { font-size: 2rem; }
    .logo {
        font-size: 0.72rem;
        letter-spacing: 1.5px;
        flex-shrink: 1;
        min-width: 0;
        max-width: 55%;
        overflow: visible;
    }
    .logo span {
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        word-break: break-word;
        line-height: 1.3;
    }
    .logo img { height: 26px; }
    .primary-btn, .secondary-btn, .chain-selector { padding: 14px 20px; font-size: 0.7rem; }
}
