/* ══════════════════════════════════════════════════════
   Wise × Aeterna Design System
   Light mode public site ; Aeterna yellow accent kept
   Animations untouched (see animations.css)
   ══════════════════════════════════════════════════════ */

:root {
    /* Surfaces */
    --bg-primary: #f5f4f0;
    --bg-secondary: #eeecea;
    --bg-card: #ffffff;
    --bg-dark: #0d0d0d;
    --bg-dark-card: #1a1a1a;

    /* Accent */
    --accent: #ebff00;
    --accent-dark: #d4e600;
    --accent-text: #0d0d0d;

    /* Text */
    --text-primary: #1a1a1a;
    --text-secondary: #454745;
    --text-light: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.6);

    /* Borders */
    --border: #d6d6d6;
    --border-dark: #2a2a2a;

    /* Radius (Wise scale) */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 999px;
}

/* ── Global ── */
body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: "Inter", sans-serif;
}

/* ── Typography ; light sections ── */
section:not(#hero) h1,
section:not(#hero) h2 {
    color: var(--text-primary);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.1;
}
section:not(#hero) h3 {
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.02em;
}
section:not(#hero) h4 {
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.01em;
}
section:not(#hero) p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ── Global buttons ── */
.btn-primary {
    background: var(--accent);
    color: var(--accent-text);
    border-radius: var(--radius-pill);
    padding: 14px 28px;
    font-weight: 700;
    font-size: 0.9rem;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition:
        background 0.2s,
        transform 0.15s;
    text-decoration: none;
    cursor: pointer;
}
.btn-primary:hover {
    background: var(--accent-dark);
    color: var(--accent-text);
    transform: translateY(-1px);
}

.btn-secondary-dark {
    background: var(--bg-dark);
    color: var(--text-light);
    border-radius: var(--radius-pill);
    padding: 14px 28px;
    font-weight: 700;
    font-size: 0.9rem;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition:
        background 0.2s,
        transform 0.15s;
    text-decoration: none;
}
.btn-secondary-dark:hover {
    background: #333333;
    color: var(--text-light);
    transform: translateY(-1px);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--text-light);
    border-radius: var(--radius-pill);
    background: transparent;
    padding: 14px 28px;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition:
        border-color 0.2s,
        background 0.2s;
    text-decoration: none;
}
.btn-outline-light:hover {
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
}

/* ── Section label pill ── */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-bottom: 16px;
}

/* ── Light section cards ── */
.light-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}
.light-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
}

/* ── Wise variables ── */
:root {
    --wise-bg: #e8e8e3;
    --wise-bg-card: #ffffff;
    --wise-text: #1a1a1a;
    --wise-text-muted: #454745;
    --wise-text-subtle: #6b6b68;
    --wise-green: #9fe870;
    --wise-green-hover: #8ad660;
    --wise-border: #c8c8c2;
    --wise-radius: 999px;
}

/* ── Navbar ── */
#main-nav {
    background: #e8e8e300 !important;
    border-bottom: 1px solid transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
#main-nav.scrolled {
    background: var(--wise-bg) !important;
    border-bottom: 1px solid transparent !important;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: none !important;
}
/* Logo: keep dark on sage bg */
#main-nav .nav-logo {
    filter: brightness(0);
}
/* Nav links */
#main-nav nav a,
#main-nav nav button {
    color: var(--wise-text) !important;
    font-weight: 600;
}
/* Nav dropdown */
#main-nav .mega-menu-bg {
    background: var(--wise-bg-card) !important;
    border-color: var(--wise-border) !important;
}
/* Mobile menu */
#mobile-menu {
    background: var(--wise-bg) !important;
}
#mobile-menu nav a {
    color: var(--wise-text) !important;
    border-bottom-color: var(--wise-border) !important;
}
/* Primary CTA hover */
.shimmer-btn:hover {
    background: var(--wise-green-hover) !important;
    transform: translateY(-1px);
}
/* Secondary "Launch App" hover */
a[href="https://app.aeternaio.com/"]:hover {
    background: #f0f0ea !important;
    border-color: #a0a09a !important;
}
/* Hero secondary CTA hover */
.btn-wise-secondary:hover {
    background: #f5f5f0 !important;
    border-color: #a0a09a !important;
}

/* ── Architecture ; tab active state (light bg → green) ── */
.active-tab {
    background: #9fe870 !important;
    color: #1a1a1a !important;
    border-color: #9fe870 !important;
    font-weight: 700;
}
.active-tab::after {
    display: none;
}

/* ── Use-case cards hover ── */
#use-cases .use-case-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

/* ── Card-spotlight: green glow on light sections, yellow on dark ── */
#architecture .card-spotlight::after,
#exchange .card-spotlight::after,
#use-cases .card-spotlight::after,
#tokenomics .card-spotlight::after {
    background: radial-gradient(
        500px circle at var(--mouse-x, -9999px) var(--mouse-y, -9999px),
        rgba(159, 232, 112, 0.13),
        transparent 40%
    );
}
#hero .card-spotlight::after,
#ticker-strip .card-spotlight::after {
    background: radial-gradient(
        500px circle at var(--mouse-x, -9999px) var(--mouse-y, -9999px),
        rgba(235, 255, 0, 0.12),
        transparent 40%
    );
}

/* ── Ticker ── */
#ticker-strip {
    background: var(--bg-dark-card);
}

/* ══════════════════════════════════════════════════════
   Wise Card System ; Roadmap
   ══════════════════════════════════════════════════════ */

.feat-card {
    border-radius: 24px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}
.feat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}
.feat-card.content {
    background: #ffffff;
}
.feat-card.sage {
    background: #eeecea;
    border: 1px solid #d0d0ca;
}
.feat-card.green {
    background: #dff5d0;
}
.feat-card.dark {
    background: #1a1a1a;
}

.feat-card.dark .eyebrow {
    color: rgba(255, 255, 255, 0.4);
}
.feat-card.dark h3 {
    color: #9fe870;
}
.feat-card.dark .phase-time {
    color: rgba(255, 255, 255, 0.5);
}
.feat-card.dark li {
    color: rgba(255, 255, 255, 0.75);
}
.feat-card.dark .phase-icon-wrap {
    background: rgba(159, 232, 112, 0.15);
    color: #9fe870;
}

.eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #868685;
}

.roadmap-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 16px;
}
@media (max-width: 768px) {
    .roadmap-card-grid {
        grid-template-columns: 1fr;
    }
    .feat-card.phase-current {
        grid-template-columns: 1fr;
    }
}

/* Phase 1 ; full-width banner, two-column interior */
.feat-card.phase-current {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

/* Phases 2-4 ; equal thirds */
.feat-card.phase-upcoming {
    grid-column: span 1;
}

/* "View all" toggle button */
.view-all-btn {
    background: none;
    border: none;
    padding: 0;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.01em;
    transition: opacity 0.15s;
    margin-top: 4px;
    align-self: flex-start;
}
.view-all-btn:hover {
    opacity: 0.7;
}
.feat-card.content .view-all-btn,
.feat-card.sage .view-all-btn {
    color: #1a1a1a;
}
.feat-card.green .view-all-btn {
    color: #2d7a0f;
}
.feat-card.dark .view-all-btn {
    color: #9fe870;
}

.phase-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0ea;
    color: #1a1a1a;
    flex-shrink: 0;
}

.milestone-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.milestone-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #454745;
    line-height: 1.5;
}
.milestone-list li::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #9fe870;
}
.feat-card.dark .milestone-list li::before {
    content: "✓";
    width: auto;
    height: auto;
    background: none;
    color: #9fe870;
    font-size: 12px;
    font-weight: 800;
    border-radius: 0;
}
.feat-card.sage .milestone-list li::before {
    background: #1a1a1a;
}
.feat-card.green .milestone-list li::before {
    background: #2d7a0f;
}

/* ── Thesis Web2 card on light bg ── */
#thesis .web2-card {
    background: #ffffff;
    border: 1px solid #ffd6d6;
    border-radius: var(--radius-md);
}
#thesis .aeterna-card {
    background: #faffed;
    border: 1px solid rgba(235, 255, 0, 0.4);
    border-radius: var(--radius-md);
}

/* ══════════════════════════════════════════════════════
   DARK MODE — html.dark
   ══════════════════════════════════════════════════════ */

/* ── Theme toggle button ── */
#theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1.5px solid #c8c8c2;
    background: #ffffff;
    color: #1a1a1a;
    cursor: pointer;
    transition:
        background 0.2s,
        border-color 0.2s,
        color 0.2s;
    flex-shrink: 0;
}
#theme-toggle:hover {
    background: #f0f0ea;
    border-color: #a0a09a;
}
html.dark #theme-toggle {
    background: #1a1a1a;
    border-color: #2a2a2a;
    color: #ffffff;
}
html.dark #theme-toggle:hover {
    background: #2a2a2a;
}

/* ── Body ── */
html.dark body {
    background: #0d0d0d !important;
    color: #ffffff;
}

/* ── Navbar ── */
html.dark #main-nav {
    background: #0d0d0d00 !important;
}
html.dark #main-nav.scrolled {
    background: rgba(13, 13, 13, 0.95) !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}
html.dark #main-nav .nav-logo {
    filter: brightness(0) invert(1) !important;
}
html.dark #main-nav span[style*="color:#1A1A1A"] {
    color: #ffffff !important;
}
html.dark #main-nav nav a,
html.dark #main-nav nav button {
    color: rgba(255, 255, 255, 0.65) !important;
}
html.dark #main-nav nav a:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
}
html.dark #main-nav .shimmer-btn {
    background: #9fe870 !important;
    color: #0d0d0d !important;
}
html.dark #main-nav .shimmer-btn:hover {
    background: #8ad660 !important;
}
html.dark #mobile-menu {
    background: #0d0d0d !important;
}
html.dark #mobile-menu nav a {
    color: rgba(255, 255, 255, 0.75) !important;
    border-bottom-color: #2a2a2a !important;
}

/* ── Section backgrounds ── */
html.dark #hero {
    background: #0d0d0d !important;
}
html.dark #architecture {
    background: #111111 !important;
}
html.dark #exchange {
    background: #111111 !important;
}
html.dark #roadmap {
    background: #141414 !important;
}
html.dark #use-cases {
    background: #111111 !important;
}
html.dark #investors {
    background: #111111 !important;
}
html.dark #thesis {
    background: #0d0d0d !important;
}

/* ── Hero canvas gradient overlay (dark mode) ── */
html.dark .hero-edge-gradient {
    background: radial-gradient(
        ellipse 90% 95% at center,
        transparent 60%,
        #0d0d0d 88%
    ) !important;
}
html.dark .hero-center-mask {
    background: radial-gradient(
        ellipse 42% 48% at center,
        #0d0d0d 55%,
        transparent 100%
    ) !important;
}

/* ── Hero text ── */
html.dark #hero h1 {
    color: #ffffff !important;
}
html.dark #hero p {
    color: rgba(255, 255, 255, 0.55) !important;
}
html.dark #hero [style*="color:#1A1A1A"]:not([style*="background:#9FE870"]):not(.shimmer-btn) {
    color: #ffffff !important;
}
html.dark #hero [style*="color:#6B6B68"] {
    color: rgba(255, 255, 255, 0.4) !important;
}
html.dark #hero [style*="color:#454745"] {
    color: rgba(255, 255, 255, 0.55) !important;
}
html.dark #hero [style*="color:#2D7A0F"] {
    color: #9fe870 !important;
}
html.dark #hero .shimmer-btn {
    background: #9fe870 !important;
    color: #0d0d0d !important;
}
html.dark #hero .btn-wise-secondary {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}
html.dark #hero input[type="email"] {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #fff !important;
}
html.dark #hero input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.3) !important;
}
html.dark #hero form button {
    background: #9fe870 !important;
    color: #0d0d0d !important;
}
html.dark #hero [style*="background:#9FE870"] {
    background: #9fe870 !important;
}
html.dark #hero svg path {
    stroke: rgba(255, 255, 255, 0.4) !important;
}

/* ── White cards → dark cards ── */
html.dark [style*="background:#FFFFFF"] {
    background: #1a1a1a !important;
}
html.dark [style*="background: #FFFFFF"] {
    background: #1a1a1a !important;
}
html.dark [style*="background:#F5F4F0"] {
    background: #141414 !important;
}
html.dark [style*="background:#EEECEA"] {
    background: #141414 !important;
}
html.dark [style*="background:#E8E8E3"] {
    background: #111111 !important;
}
html.dark [style*="background:#DFF5D0"] {
    background: #132010 !important;
}
html.dark [style*="background:#FAFFED"] {
    background: #1a1e0a !important;
}

/* ── Borders ── */
html.dark [style*="border:1px solid #D6D6D6"] {
    border-color: #2a2a2a !important;
}
html.dark [style*="border:1.5px solid #D6D6D6"] {
    border-color: #2a2a2a !important;
}
html.dark [style*="border:1px solid #C8C8C2"] {
    border-color: #2a2a2a !important;
}
html.dark [style*="border:1px solid #D0D0CA"] {
    border-color: #2a2a2a !important;
}
html.dark [style*="border:1px solid rgba(239,68,68"] {
    border-color: rgba(239, 68, 68, 0.35) !important;
}

/* ── Text ── */
html.dark
    section:not(#hero):not(#tokenomics):not(#ticker-strip):not(#solutions):not(
        footer
    )
    h2,
html.dark
    section:not(#hero):not(#tokenomics):not(#ticker-strip):not(#solutions):not(
        footer
    )
    h3,
html.dark
    section:not(#hero):not(#tokenomics):not(#ticker-strip):not(#solutions):not(
        footer
    )
    h4 {
    color: #ffffff !important;
}
html.dark
    section:not(#tokenomics):not(#ticker-strip):not(#solutions):not(footer)
    p {
    color: rgba(255, 255, 255, 0.55) !important;
}
html.dark [style*="color:#1A1A1A"]:not(#main-nav *):not(.active-tab):not([style*="background:#9FE870"]):not(.shimmer-btn) {
    color: #ffffff !important;
}
html.dark [style*="color:#454745"] {
    color: rgba(255, 255, 255, 0.55) !important;
}
html.dark [style*="color:#6B6B68"] {
    color: rgba(255, 255, 255, 0.4) !important;
}
html.dark [style*="color:#9A9A96"] {
    color: rgba(255, 255, 255, 0.3) !important;
}
html.dark [style*="color:#868685"] {
    color: rgba(255, 255, 255, 0.35) !important;
}

/* ── Section label pill ── */
html.dark .section-label {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.5) !important;
}

/* ── Architecture tabs ── */
html.dark [data-arch-tab] {
    background: #1a1a1a !important;
    border-color: #2a2a2a !important;
    color: rgba(255, 255, 255, 0.5) !important;
}
html.dark .active-tab {
    background: #9fe870 !important;
    color: #0d0d0d !important;
    border-color: #9fe870 !important;
}

/* ── Architecture cards — specific override (attr selector may miss these) ── */
html.dark #architecture .card-spotlight {
    background: #1a1a1a !important;
}
html.dark #architecture [style*="border:1px solid #D6D6D6"],
html.dark #architecture [style*="border:1.5px solid #D6D6D6"] {
    border-color: #2a2a2a !important;
}

/* ── Exchange cards ── */
html.dark #exchange .card-spotlight {
    background: #1a1a1a !important;
}
html.dark #exchange [style*="background:#D6D6D6"] {
    background: #2a2a2a !important;
}
html.dark #exchange [style*="border:1px solid #D6D6D6"] {
    border-color: #2a2a2a !important;
}
/* Exchange hover overlay on dark bg → subtle yellow glow */
html.dark #exchange .card-spotlight .absolute[style*="rgba(159,232,112"] {
    background: linear-gradient(
        135deg,
        rgba(235, 255, 0, 0.06) 0%,
        transparent 60%
    ) !important;
}

/* ── Thesis Aeterna card — gradient fix ── */
html.dark #thesis .aeterna-flow-card {
    background: linear-gradient(
        135deg,
        rgba(159, 232, 112, 0.07) 0%,
        rgba(255, 255, 255, 0.02) 60%
    ) !important;
    border-color: rgba(159, 232, 112, 0.25) !important;
}
/* Step circles inside Aeterna card → dark bg, green border */
html.dark
    #thesis
    .aeterna-flow-card
    [style*="background:#FFFFFF;border:1px solid #1A1A1A"] {
    background: #1a1a1a !important;
    border-color: rgba(159, 232, 112, 0.4) !important;
    color: #9fe870 !important;
}

/* ── Tokenomics mechanics cards ── */
html.dark #tokenomics {
    background: #141414 !important;
}
html.dark #tokenomics .card-spotlight {
    background: #1a1a1a !important;
}
html.dark #tokenomics [style*="background:#D6D6D6"] {
    background: #2a2a2a !important;
}
html.dark #tokenomics [style*="border:1px solid #D6D6D6"] {
    border-color: #2a2a2a !important;
}
html.dark #tokenomics [style*="background:#FFFFFF"] {
    background: #1a1a1a !important;
}
html.dark #tokenomics [style*="background:#F5F4F0"] {
    background: #2a2a2a !important;
    border-color: #333 !important;
}
html.dark #tokenomics [style*="border:1.5px solid #D0D0CA"] {
    border-color: #333 !important;
}
/* Flywheel pills */
html.dark #tokenomics [style*="background:rgba(159,232,112"] {
    background: rgba(159, 232, 112, 0.12) !important;
}
/* Hover overlay on dark → subtle yellow */
html.dark #tokenomics .card-spotlight .absolute[style*="rgba(235,255,0"] {
    background: linear-gradient(
        135deg,
        rgba(235, 255, 0, 0.06) 0%,
        transparent 60%
    ) !important;
}

/* ── Card spotlight glow (dark mode → yellow for light sections) ── */
html.dark #architecture .card-spotlight::after,
html.dark #exchange .card-spotlight::after,
html.dark #use-cases .card-spotlight::after,
html.dark #tokenomics .card-spotlight::after {
    background: radial-gradient(
        500px circle at var(--mouse-x, -9999px) var(--mouse-y, -9999px),
        rgba(235, 255, 0, 0.07),
        transparent 40%
    );
}

/* ── Roadmap cards ── */
html.dark .feat-card.content {
    background: #1a1a1a !important;
}
html.dark .feat-card.sage {
    background: #141414 !important;
    border-color: #2a2a2a !important;
}
html.dark .feat-card.green {
    background: #132010 !important;
}
html.dark .feat-card.content .view-all-btn,
html.dark .feat-card.sage .view-all-btn {
    color: rgba(255, 255, 255, 0.7) !important;
}
html.dark .feat-card.green .view-all-btn {
    color: #9fe870 !important;
}
html.dark .phase-icon-wrap {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
}
html.dark .milestone-list li {
    color: rgba(255, 255, 255, 0.65) !important;
}
html.dark .feat-card.content .milestone-list li::before,
html.dark .feat-card.sage .milestone-list li::before {
    background: #9fe870 !important;
}
html.dark .feat-card.green .milestone-list li::before {
    background: #9fe870 !important;
}
html.dark .eyebrow {
    color: rgba(255, 255, 255, 0.35) !important;
}

/* ── Thesis ── */
html.dark #thesis .web2-card {
    background: #1a1a1a !important;
    border-color: rgba(239, 68, 68, 0.2) !important;
}
html.dark #thesis .aeterna-card {
    background: #1a1e0a !important;
    border-color: rgba(159, 232, 112, 0.2) !important;
}

/* ── Investors investor cards ── */
html.dark #investors [style*="background:#FFFFFF"] {
    background: #1a1a1a !important;
}

/* ── Exchange steps ── */
html.dark [style*="background:#F5F4F0"][class*="rounded"] {
    background: #1a1a1a !important;
}

/* ── Back to top button ── */
html.dark #back-to-top {
    background: #1a1a1a !important;
    border-color: #2a2a2a !important;
}

/* ── Use-case cards hover ── */
html.dark #use-cases .use-case-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* ── Use Cases Accordion ─────────────────────────────── */
.uc-accordion {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 12px;
    height: 580px;
    align-items: stretch;
}
.uc-item {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    cursor: pointer;
    transition: flex 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
    min-width: 72px;
    display: flex;
    align-items: stretch;
}
.uc-item.uc-active {
    flex: 4;
    cursor: default;
}
.uc-collapsed {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 28px 0 20px;
    height: 100%;
    width: 100%;
    position: relative;
}
.uc-item.uc-active .uc-collapsed {
    display: none;
}
.uc-num {
    font-size: 72px;
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1;
    -webkit-text-stroke: 1.5px currentColor;
    color: transparent;
    opacity: 1;
    align-self: center;
    position: absolute;
    bottom: 18px;
}
.uc-vtitle {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-size: 17px;
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: -0.01em;
    margin-top: 28px;
}
.uc-expanded {
    display: none;
    flex-direction: column;
    padding: 32px;
    width: 100%;
    height: 100%;
    overflow-y: auto;
}
.uc-item.uc-active .uc-expanded {
    display: flex;
    animation: ucFadeIn 0.35s ease 0.2s both;
}
@keyframes ucFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.uc-exp-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}
.uc-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.uc-icon svg {
    width: 24px;
    height: 24px;
}
.uc-exp-num {
    font-size: 52px;
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1;
    -webkit-text-stroke: 1.5px currentColor;
    color: transparent;
    opacity: 0.6;
}
.uc-title {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 14px;
    line-height: 1.2;
}
.uc-desc {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 22px;
}
.uc-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: auto;
}
.uc-feat {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.uc-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 4px;
}
.uc-feat-title {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 3px;
}
.uc-feat-desc {
    font-size: 13px;
    line-height: 1.55;
}
/* Mobile: vertical stack */
@media (max-width: 768px) {
    .uc-accordion {
        flex-direction: column;
        height: auto;
    }
    .uc-item {
        flex: none !important;
        min-width: 0;
        min-height: 68px;
    }
    .uc-item.uc-active {
        min-height: auto;
    }
    .uc-collapsed {
        flex-direction: row;
        padding: 18px 24px;
        align-items: center;
        justify-content: flex-start;
        gap: 14px;
    }
    .uc-vtitle {
        writing-mode: horizontal-tb;
        transform: none;
        font-size: 14px;
    }
    .uc-features {
        grid-template-columns: 1fr;
    }
}

/* ── FINAL OVERRIDES: green-bg elements always keep black text ── */
html.dark [style*="background:#9FE870"] { color: #1A1A1A !important; }
html.dark [style*="background:#9FE870"] * { color: #1A1A1A !important; }
html.dark #hero .shimmer-btn { color: #1A1A1A !important; }

/* ══════════════════════════════════════════════════════
   RESPONSIVE — Tablet (max 1024px) + Mobile (max 768px)
   ══════════════════════════════════════════════════════ */

/* ── Use Cases: stack vertically on tablet too ── */
@media (max-width: 1024px) {
    .uc-accordion {
        flex-direction: column;
        height: auto;
    }
    .uc-item {
        flex: none !important;
        min-width: 0;
        min-height: 72px;
    }
    .uc-item.uc-active {
        min-height: auto;
    }
    .uc-collapsed {
        flex-direction: row;
        padding: 18px 24px;
        align-items: center;
        justify-content: flex-start;
        gap: 14px;
    }
    .uc-vtitle {
        writing-mode: horizontal-tb;
        transform: none;
        font-size: 15px;
    }
    .uc-num {
        position: static;
        font-size: 40px;
        flex-shrink: 0;
    }
    .uc-features {
        grid-template-columns: 1fr 1fr;
    }
    .uc-expanded {
        padding: 24px;
    }
}

/* ── Roadmap: Phase 1 two-col interior → one-col on tablet ── */
@media (max-width: 1024px) {
    .roadmap-card-grid {
        grid-template-columns: 1fr;
    }
    .feat-card.phase-current {
        grid-template-columns: 1fr !important;
        gap: 24px;
    }
    .milestone-list {
        border-left: none !important;
        padding-left: 0 !important;
    }
}

/* ── Solutions table: stacked cards on tablet/mobile ── */
@media (max-width: 900px) {
    .solutions-header-row {
        display: none !important;
    }
    .solutions-data-row {
        display: flex !important;
        flex-direction: column;
        gap: 0;
        border-bottom: 1px solid rgba(255,255,255,0.08) !important;
    }
    .solutions-data-row > div {
        border-left: none !important;
        padding: 10px 20px !important;
        position: relative;
    }
    .solutions-data-row > div::before {
        content: attr(data-label);
        display: block;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: rgba(255,255,255,0.3);
        margin-bottom: 4px;
    }
    .solutions-data-row > div:first-child {
        padding-top: 18px !important;
    }
    .solutions-data-row > div:last-child {
        padding-bottom: 18px !important;
    }
}

/* ── Architecture tabs: scroll on mobile ── */
@media (max-width: 768px) {
    #architecture .flex.flex-wrap.justify-center.gap-2 {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    #architecture .flex.flex-wrap.justify-center.gap-2::-webkit-scrollbar {
        display: none;
    }
    #architecture [data-arch-tab] {
        white-space: nowrap;
        flex-shrink: 0;
    }
}

/* ── General mobile refinements ── */
@media (max-width: 768px) {
    /* Section headings smaller on phones */
    .text-4xl { font-size: 1.875rem !important; }
    .md\:text-5xl { font-size: 2.25rem; }

    /* Hero headline */
    #hero h1 { font-size: 2.5rem !important; line-height: 1.08 !important; }

    /* Hero stats: smaller gap */
    #hero .flex.flex-wrap.justify-center.gap-8 { gap: 1.5rem !important; }

    /* Hero CTA buttons: stack on very small phones */
    #hero .flex.flex-wrap.justify-center.gap-4 { gap: 0.75rem !important; }

    /* Sections: reduce vertical padding on mobile */
    section.py-24 { padding-top: 4rem; padding-bottom: 4rem; }

    /* Exchange code block: horizontal scroll */
    #exchange pre { overflow-x: auto; font-size: 12px; }

    /* Tokenomics stats grid: 2 cols fine, just reduce padding */
    #tokenomics .grid.grid-cols-2 .rounded-xl { padding: 1rem; }

    /* Thesis grid: already md:grid-cols-2, fine */

    /* Investors lead cards: smaller */
    #investors .w-48 { width: 10rem; }
    #investors .h-36 { height: 8rem; }

    /* Features grids single column on mobile */
    .uc-features { grid-template-columns: 1fr !important; }

    /* Mobile menu hamburger bars dark mode */
    .menu-bar { background: currentColor; }
}

/* ── Hamburger + mobile toggle: dark mode ── */
html.dark .menu-bar { background: #ffffff; }
html.dark #menu-toggle { color: #ffffff; }
.menu-bar { background: #1A1A1A; }

/* ── Dark mode mobile menu bottom buttons ── */
html.dark #mobile-menu .mt-6 a[style*="background:#9FE870"] { color: #1A1A1A !important; }
html.dark #mobile-menu .mt-6 button { background: rgba(255,255,255,0.06) !important; color: #ffffff !important; border-color: rgba(255,255,255,0.12) !important; }

/* ── Dark mode: mobile toggle button correct styling on initial load ── */
html.dark #theme-toggle-mobile {
    background: #1a1a1a !important;
    border-color: #2a2a2a !important;
    color: #ffffff !important;
}

/* ── Investors: white logos in dark mode ── */
html.dark #investors .investor-logo {
    filter: brightness(0) invert(1);
}
html.dark #investors .investor-name {
    color: rgba(255,255,255,0.5) !important;
}
html.dark #investors a[class*="rounded"] {
    background: rgba(255,255,255,0.04) !important;
    border-color: rgba(255,255,255,0.08) !important;
}

/* ── Tablet nav: ensure items don't overflow at md ── */
@media (max-width: 900px) and (min-width: 769px) {
    #main-nav nav a {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        font-size: 13px;
    }
}
