/* Color system */
:root {
    /* Base tones */
    --color-bg: #0A0A0A; /* matte black background */
    --color-bg-secondary: #929292; /* secondary dark for depth */
    --color-text: #E0E0E0; /* main text color */

    /* Accents */
    --color-accent-blue: #00C2FF; /* signal blue */
    --color-accent-orange: #FF5F1F; /* alert/orange */

    /* Support tones */
    --color-card: #8b8b8b; /* card background */
    --color-muted: #797979; /* border/text-muted */
    --color-border: #505050; /* alias for borders */
}

body,html{
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    overflow-x: hidden;
}

/* Utility classes and common components */
.text-muted { color: var(--color-muted); }

.border { border: 1px solid var(--color-border); }

.card {
    background-color: var(--color-card);
    color: var(--color-text);
}

.bg-secondary { background-color: var(--color-bg-secondary); }

.accent { color: var(--color-accent-blue); }
.accent-bg {
    background-color: var(--color-accent-blue);
    color: var(--color-bg);
}

.warning { color: var(--color-accent-orange); }
.warning-bg {
    background-color: var(--color-accent-orange);
    color: var(--color-bg);
}

/* Interactive/focus states */
a, button, [role="button"], input, textarea, select {
    outline-color: var(--color-accent-blue);
}

.glow-accent { box-shadow: 0 0 12px var(--color-accent-blue); }
.glow-warning { box-shadow: 0 0 12px var(--color-accent-orange); }

/* Navbar */
.navbar {
    position: fixed; /* overlay hero */
    top: 0px; /* offset from very top */
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 14px 16px;
    font-size: 14px;
    background: rgba(10,10,10,0.3);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(80,80,80,0.35);
}

.nav-wrap {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-menu { display: flex; align-items: center; gap: 16px; margin-left: 12px; width: 100%; }

.brand-mark {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    background: var(--color-accent-blue);
    color: var(--color-bg);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.brand-name { font-weight: 600; letter-spacing: 0.04em; color: var(--color-text); font-size: 16px; }

.nav-center {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: 12px;
}

.nav-link { color: var(--color-muted); text-decoration: none; font-weight: 400; font-size: 15px; padding: 6px 0; transition: color 160ms ease; }

.nav-link:hover { color: var(--color-text); }

.nav-link.active {
    color: var(--color-accent-blue);
    text-shadow: 0 0 16px rgba(0,194,255,0.45);
}

.nav-right { display: flex; align-items: center; margin-left: auto; }

.pill-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    text-decoration: none;
    color: var(--color-text);
    background: linear-gradient(180deg, rgba(27,27,27,0.8), rgba(16,24,32,0.8));
    border: 1px solid rgba(80,80,80,0.4);
    box-shadow: 0 2px 6px rgba(0,0,0,0.3), inset 0 0 0 1px rgba(0,0,0,0.2);
    transition: box-shadow 180ms ease, border-color 180ms ease, transform 120ms ease;
}

.pill-button:hover {
    border-color: rgba(0,194,255,0.6);
    box-shadow: 0 0 22px rgba(0,194,255,0.25), inset 0 0 0 1px rgba(0,194,255,0.25);
}

.pill-button:active { transform: translateY(1px); }

.pill-button .icon {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-bg);
    color: var(--color-text);
}

/* Responsive: collapse spacing a bit on small screens */
/* Burger button */
.nav-toggle {
    display: none;
    margin-left: auto;
    width: 28px;
    height: 20px;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    position: relative;
}
.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--color-text);
    position: absolute;
    left: 0;
    right: 0;
    transition: transform 200ms ease, opacity 200ms ease;
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-toggle span:nth-child(3) { bottom: 0; }

/* Mobile overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease;
}
.mobile-overlay.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

/* Hero */
.hero {
    position: relative;
    padding-top: 64px; /* space below navbar */
    padding-bottom: 96px;
    min-height: 83vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(800px 220px at 50% 20%, rgba(0,194,255,0.15), rgba(0,0,0,0)),
        url('assets/pics/hero-bg.png') center top/cover no-repeat;
}

.hero-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    color: var(--color-text);
    background: rgba(16,24,32,0.35);
    border: 1px solid rgba(80,80,80,0.35);
    box-shadow: 0 4px 18px rgba(0,0,0,0.35), inset 0 0 0 1px rgba(0,0,0,0.2);
    margin-bottom: 28px;
}
.hero-kicker .chevron { color: var(--color-accent-blue); font-weight: 600; }

.hero-title {
    margin: 0;
    line-height: 1.05;
    font-weight: 700;
    font-size: 80px;
    letter-spacing: 0.01em;
    color: var(--color-accent-blue);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-subtitle {
    margin: 22px 0 14px;
    color: var(--color-text);
    opacity: 0.9;
    font-size: 24px;
}

.hero-description {
    margin: 0 auto 28px;
    max-width: 880px;
    color: var(--color-muted);
}

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

.pill-translucent {
    background: rgba(27,27,27,0.45);
    backdrop-filter: blur(6px);
}

.pill-translucent:hover {
    border-color: rgba(0,194,255,0.6);
    box-shadow: 0 0 22px rgba(0,194,255,0.18), inset 0 0 0 1px rgba(0,194,255,0.18);
}

/* Privacy Section */
.section-privacy { padding: 48px 0 96px; }
.section-privacy .section-wrap {
    max-width: 1300px;
    margin: 0 auto;
    padding: 100px 20px;
    display: grid;
    grid-template-columns: 1.6fr 0.8fr;
    gap: 24px;
}

.glass { background: rgba(16,24,32,0.35); border: 1px solid rgba(80,80,80,0.35); border-radius: 16px; box-shadow: 0 8px 28px rgba(0,0,0,0.45), inset 0 0 0 1px rgba(0,0,0,0.25); }
.card { padding: 28px; }
.inset { padding: 22px; border-radius: 12px; background: rgba(0,0,0,0.25); }

.section-title { font-size: 56px; margin: 0 0 16px; }
.privacy-head { margin: 0 0 18px; font-size: 24px; }
.privacy-left p { color: var(--color-text); opacity: 0.9; }
.privacy-actions { display: flex; gap: 14px; padding-top: 18px; }

.panel { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 24px; }
.privacy-right.panel {
    border-radius: 18px;
    background: rgba(16,24,32,0.25);
    border: 1px solid rgba(80,80,80,0.35);
    isolation: isolate; /* ensure pseudo-elements sit behind content when z-indexed */
}
/* Dots with center fade */
.privacy-right.panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(224,224,224,0.085) 0.9px, transparent 0.9px);
    background-size: 10px 10px;
    opacity: 0.85;
    mask-image: radial-gradient(circle at 50% 55%, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 22%, rgba(0,0,0,1) 78%, rgba(0,0,0,0) 100%);
    z-index: 0;
}
/* Dark center vignette + cyan ring */
.privacy-right.panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(320px 320px at 50% 55%, rgba(0,0,0,0.70) 0%, rgba(0,0,0,0.50) 50%, rgba(0,0,0,0.16) 72%, rgba(0,0,0,0) 78%),
        radial-gradient(420px 220px at 50% 55%, rgba(0,194,255,0.10), rgba(0,0,0,0) 60%);
    pointer-events: none;
    z-index: 0;
}
.panel-center { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 12px; padding: 24px 22px; border-radius: 999px; }
.privacy-right .brand-mark { width: 36px; height: 36px; border-radius: 8px; }
.privacy-right .brand-name { font-size: 22px; letter-spacing: 0.08em; }

/* Problem Section */
.section-problem { padding: 56px 0 96px; }
.section-problem .problem-wrap {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 40px;
    align-items: start;
}

.kicker-line { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.kicker-dot { color: var(--color-accent-blue); font-weight: 600; }
.kicker-line .line { flex: 0 0 84px; height: 2px; background: rgba(80,80,80,0.6); }

.problem-title { font-size: 56px; margin: 0 0 10px; font-weight: 600; }
.problem-copy { color: var(--color-text); opacity: 0.9; max-width: 560px; }
.problem-actions { display: flex; gap: 12px; margin-top: 18px; }

.problem-right { position: relative; }
.stat-card {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 14px;
    background:
        url('assets/pics/circuit-bg.png') center/cover no-repeat,
        linear-gradient(180deg, rgba(27,27,27,0.6), rgba(16,24,32,0.6));
    border: 1px solid rgba(80,80,80,0.35);
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.2);
    margin-bottom: 22px;
    overflow: hidden;
}

.stat-left { display: flex; align-items: center; gap: 14px; }
.stat-icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,0.55); color: var(--color-text); }
.stat-title { font-size: 22px; font-weight: 600; }
.stat-sub { color: var(--color-muted); font-size: 14px; }
.stat-link { color: var(--color-accent-blue); text-decoration: none; white-space: nowrap; }

/* Solution Section */
.section-solution { padding: 6px 0 4px; }
.section-solution .solution-wrap {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}
.solution-title { font-size: 46px; margin: 0 0 10px; font-weight: 600; }
.solution-copy { color: var(--color-text); opacity: 0.9; max-width: 820px; }
.solution-links a { color: var(--color-accent-blue); text-decoration: none; }
.solution-links a:hover { text-decoration: underline; }
.solution-links .dot { color: var(--color-muted); margin: 0 10px; }

/* CTA Section */
.section-cta { padding: 24px 0 64px; }
.cta-wrap { max-width: 1300px; margin: 0 auto; padding: 0 20px; }
.cta-card {
    position: relative;
    padding: 36px 28px;
    border-radius: 16px;
    background:
        url('assets/pics/join-bg.png') center/cover no-repeat,
        linear-gradient(180deg, rgba(27,27,27,0.75), rgba(16,24,32,0.75));
    border: 1px solid rgba(80,80,80,0.35);
    box-shadow: 0 8px 28px rgba(0,0,0,0.45), inset 0 0 0 1px rgba(0,0,0,0.25);
    text-align: center;
}
.cta-title { margin: 0 0 10px; font-size: 20px; font-weight: 600; }
.cta-text { margin: 0 auto 16px; color: var(--color-text); opacity: 0.9; max-width: 800px;}
.cta-actions { display: flex; justify-content: center; }
/* Drivers (Key Value) */
.section-drivers { padding: 24px 0 80px; }
.drivers-wrap { max-width: 1300px; margin: 0 auto; padding: 0 20px; }
.drivers-panel { padding: 18px; border-radius: 16px; }
.drivers-heading { font-size: 28px; font-weight: 600; margin: 0 0 16px; }
.drivers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.driver-card {
    padding: 18px 18px;
    border-radius: 14px;
    background:
        url('assets/pics/value-bg.png') center/cover no-repeat,
        linear-gradient(180deg, rgb(0, 0, 0), rgb(0, 0, 0));
}
.driver-title { margin: 0 0 8px; font-size: 18px; color: var(--color-text); }
.driver-text { margin: 0; color: var(--color-muted); }

/* System Preview */
.section-system { padding: 64px 0 96px; }
.system-wrap { max-width: 900px; margin: 0 auto; padding: 0; text-align: center; }
.system-kicker { color: var(--color-text); opacity: 0.7; letter-spacing: 0.08em; margin-bottom: 8px; }
.system-title { margin: 0 0 10px; font-size: 34px; font-weight: 700; }
.system-sub { margin: 0 auto 16px; max-width: 820px; color: var(--color-muted); }
.system-tabs { display: inline-flex; gap: 10px; }
.system-tabs .tab { background: rgba(16,24,32,0.5); border: 1px solid rgba(80,80,80,0.35); color: var(--color-text); padding: 8px 14px; border-radius: 999px; cursor: pointer; }
.system-tabs .tab.active { color: var(--color-accent-blue); box-shadow: 0 0 16px rgba(0,194,255,0.25); }

/* System image container */
.card-1.ai-depin-section.responsive {
    position: relative;
    width: 100%;
    padding: 20px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(27,27,27,0.65), rgba(16,24,32,0.65));
    border: 1px solid rgba(80,80,80,0.35);
    box-shadow: 0 8px 28px rgba(0,0,0,0.45), inset 0 0 0 1px rgba(0,0,0,0.25);
}

.card-1.ai-depin-section.responsive .system-image {
    display: block;
    width: auto;
    max-width: 100%;
    margin: 0 auto;
    height: auto;
}

/* System Status strip */
.section-status { padding: 12px 0 64px; }
.status-wrap { max-width: 1200px; margin: 0 auto; padding: 0 0; }
.status-card {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 14px;
    border-radius: 14px;
}
.status-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid rgba(80,80,80,0.35);
    border-radius: 999px;
    background: rgba(16,24,32,0.45);
    white-space: nowrap;
    justify-content: center;
}
.status-item .muted { color: var(--color-muted); }
.status-item .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.status-item .dot.green { background: #36d399; }

/* Roadmap */
.section-roadmap { padding: 64px 0 120px; }
.roadmap-wrap { max-width: 1300px; margin: 0 auto; padding: 0 20px; }
.roadmap-title { font-size: 44px; margin: 0 0 18px; font-weight: 700; }
.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.phase-card {
    padding: 16px;
    border-radius: 16px;
    background:
        url('assets/pics/roadmap-card-bg.png') center/cover no-repeat,
        linear-gradient(180deg, rgba(27,27,27,0.65), rgba(16,24,32,0.65));
}
.phase-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.phase-head .phase { color: var(--color-text); opacity: 0.8; }
.phase-head .when { color: var(--color-muted); }
.phase-head .state { color: var(--color-accent-blue); font-weight: 600; }
.phase-card.done .state { color: #36d399; }
.phase-card.inprogress .state { color: var(--color-accent-blue); }
.phase-card.pending .state { color: var(--color-muted); }
.phase-title { margin: 0 0 8px; font-size: 18px; }
.phase-list { margin: 0; padding-left: 18px; color: var(--color-muted); }
.phase-list li { margin: 4px 0; }
/* Token Utility */
.section-token { padding: 64px 0 120px; }
.token-wrap { max-width: 1300px; margin: 0 auto; padding: 0 20px; }
.token-title { font-size: 34px; margin: 0 0 18px; font-weight: 700; }
.token-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.token-card { padding: 18px; border-radius: 16px; background: linear-gradient(180deg, rgba(27,27,27,0.6), rgba(16,24,32,0.6)); border: 1px solid rgba(80,80,80,0.35); box-shadow: inset 0 0 0 1px rgba(0,0,0,0.25); }
.token-card-title { margin: 0 0 10px; font-size: 18px; }
.token-list { margin: 0 0 12px; padding-left: 18px; color: var(--color-muted); }
.token-list li { margin: 6px 0; }
.token-actions { display: flex; gap: 10px; }

/* Footer */
.main-footer { padding: 40px 0 60px; background: linear-gradient(180deg, rgba(16,24,32,0.6), rgba(10,10,10,0.6)); border-top: 1px solid rgba(80,80,80,0.35); }
.footer-wrap { max-width: 1300px; margin: 0 auto; padding: 0 20px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.footer-brand { display: flex; flex-direction: column; gap: 12px; font-weight: 600; }
.footer-logo { display: inline-flex; align-items: center; gap: 8px; }
.footer-tagline { color: var(--color-text); opacity: 0.9; }
.footer-cta { display: flex; gap: 10px; }
.footer-link-pill { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(80,80,80,0.35); background: rgba(16,24,32,0.6); color: var(--color-text); text-decoration: none; }
.footer-link-pill:hover { border-color: rgba(0,194,255,0.6); }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.footer-title { margin: 0 0 8px; font-size: 16px; color: var(--color-text); }
.footer-list { margin: 0; padding-left: 16px; }
.footer-list a { color: var(--color-muted); text-decoration: none; }
.footer-list a:hover { color: var(--color-text); }
.footer-bottom { margin-top: 22px; color: var(--color-muted); font-size: 14px; display: flex; align-items: center; justify-content: space-between; }
.footer-ca { color: var(--color-text); opacity: 0.9; }

/* ============================================
   RESPONSIVE BREAKPOINTS (organized by width)
   ============================================ */

/* 1100px and below - Token grid */
@media (max-width: 1100px) {
    .token-grid { grid-template-columns: 1fr 1fr; }
}

/* 980px and below - Roadmap, Drivers, Problem */
@media (max-width: 980px) {
    .roadmap-grid { grid-template-columns: 1fr 1fr; }
    .drivers-grid { grid-template-columns: 1fr 1fr; }
    .section-problem .problem-wrap { grid-template-columns: 1fr; }
}

/* 960px and below - Privacy, Status */
@media (max-width: 960px) {
    .section-privacy .section-wrap { grid-template-columns: 1fr; }
    .panel { min-height: 260px; }
    .status-card { grid-template-columns: 1fr 1fr; }
}

/* 900px and below - Hero */
@media (max-width: 900px) {
    .hero-title { font-size: 56px; }
    .hero-subtitle { font-size: 20px; }
}

/* 860px and below - Footer */
@media (max-width: 860px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-top { flex-direction: column; align-items: flex-start; }
}

/* 720px and below - Navbar mobile */
@media (max-width: 720px) {
    .navbar { padding: 12px 16px; }
    .brand-name { display: inline; font-size: 14px; letter-spacing: 0.06em; }
    .nav-toggle { display: flex; align-items: center; justify-content: center; }
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: block;
        background: rgba(16,24,32,0.95);
        backdrop-filter: blur(12px);
        border: 1px solid rgba(80,80,80,0.35);
        border-top: none;
        border-radius: 0 0 12px 12px;
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        transition: max-height 240ms ease, opacity 200ms ease;
        margin-left: 0;
    }
    .nav-menu.open { max-height: 320px; opacity: 1; }
    .nav-center,
    .nav-right { display: block; margin-left: 0; }
    .nav-center { padding: 10px 12px; }
    .nav-right { padding: 0 12px 12px; }
    .nav-link { display: block; padding: 10px 0; }
}

/* 640px and below - Drivers, Roadmap, Token, Status, Problem cards */
@media (max-width: 640px) {
    .drivers-grid { grid-template-columns: 1fr; }
    .roadmap-grid { grid-template-columns: 1fr; }
    .token-grid { grid-template-columns: 1fr; }
    .status-wrap { max-width: 90%; margin: 0 auto; }
    .status-card { justify-items: center; padding: 14px 0; }
    .status-item { margin: 0 auto; justify-content: center; max-width: fit-content; }
    .section-problem .problem-right { max-width: 350px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
    .section-problem .stat-card { grid-template-columns: 1fr; width: 100%; }
    .section-problem .stat-link { justify-self: start; padding-top: 8px; display: inline-block; }
}

/* 560px and below - Footer */
@media (max-width: 560px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* 520px and below - Status */
@media (max-width: 520px) {
    .status-card { grid-template-columns: 1fr; }
}

/* 480px and below - System image */
@media (max-width: 480px) {
    .system-wrap { max-width: 85%; }
    .card-1.ai-depin-section.responsive { padding: 5px 5px; }
    .card-1.ai-depin-section.responsive .system-image { width: 100%; max-width: none; }
}

/* 420px and below - Mobile tight fit */
@media (max-width: 420px) {
    .hero-title { font-size: 44px; line-height: 1.05; }
    .hero-title span:first-child { white-space: nowrap; }
    .section-title { font-size: 28px; white-space: nowrap; }
    .section-title .accent { display: inline; }
    .privacy-head { font-size: 18px; }
    .problem-title { font-size: 30px; white-space: nowrap; }
    .section-privacy .section-wrap { padding: 60px 16px; }
    .section-problem .problem-wrap { padding: 0 16px; }
}

/* 360px and below - Extra small screens */
@media (max-width: 360px) {
    .problem-title { font-size: 28px; }
}