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

:root {
    --bg-void: #07080c;
    --bg-primary: #0a0c12;
    --bg-surface: #0f1219;
    --bg-elevated: #151922;
    --bg-card: rgba(15, 18, 25, 0.7);
    --bg-card-hover: rgba(21, 25, 34, 0.85);
    --border-subtle: rgba(255, 255, 255, 0.12);
    --border-default: rgba(255, 255, 255, 0.18);
    --border-accent: rgba(99, 102, 241, 0.3);
    --border-glow: rgba(99, 102, 241, 0.5);
    --text-primary: #f5f6f8;
    --text-secondary: #dce0e6;
    --text-muted: #adb5c0;
    --text-dim: #8a95a5;
    --accent-primary: #6366f1;
    --accent-light: #818cf8;
    --accent-glow: rgba(99, 102, 241, 0.15);
    --accent-2: #8b5cf6;
    --accent-warm: #f59e0b;
    --green: #10b981;
    --green-glow: rgba(16, 185, 129, 0.15);
    --red: #ef4444;
    --red-glow: rgba(239, 68, 68, 0.15);
    --cyan: #06b6d4;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', 'Cascadia Code', 'Fira Code', monospace;
    --radius: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.08);
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    background: var(--bg-void);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Subtle animated grid background */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.08), transparent),
        radial-gradient(ellipse 60% 40% at 80% 100%, rgba(139, 92, 246, 0.05), transparent);
    pointer-events: none;
    z-index: 0;
}

a {
    color: var(--accent-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--text-primary);
}

/* ─── Navigation ─── */
.nav {
    background: rgba(10, 12, 18, 0.8);
    backdrop-filter: blur(20px) saturate(1.8);
    -webkit-backdrop-filter: blur(20px) saturate(1.8);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0 32px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-brand:hover {
    color: var(--text-primary);
    text-decoration: none;
}

.nav-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.875rem;
    color: white;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

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

.nav-links a {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius);
    transition: all var(--transition-fast);
}

.nav-links a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
    text-decoration: none;
}

.nav-links a.active {
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.12);
}

.nav-version {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--text-dim);
    padding: 4px 10px;
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
}

/* ─── Main content ─── */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 32px;
    position: relative;
    z-index: 1;
}

/* ─── Hero Section ─── */
.hero {
    text-align: center;
    padding: 80px 0 60px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-visual {
    margin-bottom: 28px;
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image {
    width: 360px;
    height: auto;
    object-fit: contain;
    border-radius: 50%;
    mask-image: radial-gradient(ellipse 85% 85% at center, black 50%, transparent 95%);
    -webkit-mask-image: radial-gradient(ellipse 85% 85% at center, black 50%, transparent 95%);
    filter: brightness(0.85) saturate(1.3);
    animation: heroGlow 4s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    from {
        box-shadow: 0 0 40px rgba(99, 102, 241, 0.15), 0 0 80px rgba(139, 92, 246, 0.08);
    }
    to {
        box-shadow: 0 0 60px rgba(99, 102, 241, 0.25), 0 0 120px rgba(139, 92, 246, 0.12);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent-light);
    background: var(--accent-glow);
    border: 1px solid var(--border-accent);
    border-radius: 100px;
    padding: 6px 16px;
    margin-bottom: 24px;
    letter-spacing: 0.02em;
}

.hero-badge .pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero h1 .accent {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    color: var(--text-secondary);
    font-size: 1.25rem;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 400;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border-subtle);
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--text-primary);
    font-family: var(--font-mono);
}

.hero-stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 2px;
}

/* ─── Search Bar ─── */
.search-bar {
    max-width: 520px;
    margin: 32px auto 0;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 14px 20px 14px 48px;
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-family: var(--font-sans);
    outline: none;
    transition: all var(--transition-fast);
}

.search-bar input::placeholder {
    color: var(--text-dim);
}

.search-bar input:focus {
    border-color: var(--border-accent);
    box-shadow: 0 0 0 3px var(--accent-glow), var(--shadow-md);
}

.search-bar svg {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
    width: 20px;
    height: 20px;
}

/* ─── Filter Tabs ─── */
.filter-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    margin-bottom: 8px;
}

.filter-tab {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: 100px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    background: transparent;
    font-family: var(--font-sans);
}

.filter-tab:hover {
    color: var(--text-secondary);
    border-color: var(--border-subtle);
}

.filter-tab.active {
    color: var(--accent-light);
    background: var(--accent-glow);
    border-color: var(--border-accent);
}

/* ─── Skill Grid ─── */
.skill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 20px;
    margin-top: 32px;
}

/* ─── Skill Card ─── */
.skill-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all var(--transition-smooth);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
}

.skill-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.skill-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow), var(--shadow-lg);
    text-decoration: none;
    color: inherit;
}

.skill-card:hover::before {
    opacity: 1;
}

.skill-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-glow), rgba(139, 92, 246, 0.1));
    border: 1px solid var(--border-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 1.25rem;
    position: relative;
    z-index: 1;
}

.skill-card-icon svg {
    width: 22px;
    height: 22px;
    color: var(--accent-light);
}

.skill-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.skill-card-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.skill-card-version {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--text-dim);
    background: rgba(255, 255, 255, 0.04);
    padding: 3px 10px;
    border-radius: 100px;
    border: 1px solid var(--border-subtle);
}

.skill-card-desc {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
    position: relative;
    z-index: 1;
}

.skill-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
    position: relative;
    z-index: 1;
}

.skill-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.skill-card-meta .publisher {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
}

.skill-card-caps {
    display: flex;
    gap: 6px;
}

.cap-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-dim);
    transition: all var(--transition-fast);
}

.cap-dot.net { background: var(--cyan); }
.cap-dot.kv { background: var(--accent-primary); }
.cap-dot.fs { background: var(--accent-warm); }
.cap-dot.mem { background: var(--green); }

/* ─── Badges ─── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 10px;
    border-radius: 100px;
}

.badge-signed {
    background: var(--green-glow);
    color: var(--green);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-signed::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--green);
}

.badge-expired {
    background: var(--red-glow);
    color: var(--red);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-expired::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--red);
}

.badge-capability {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
    text-transform: none;
    font-weight: 500;
    font-family: var(--font-mono);
    font-size: 0.625rem;
}

/* ─── Skill Detail Page ─── */
.skill-header {
    padding-bottom: 32px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border-subtle);
}

.skill-header-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.skill-title {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.skill-publisher {
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-size: 0.875rem;
}

.skill-desc {
    color: var(--text-secondary);
    font-size: 1.0625rem;
    line-height: 1.7;
    max-width: 640px;
    margin-top: 8px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 768px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 2.25rem;
    }
    .skill-grid {
        grid-template-columns: 1fr;
    }
}

.detail-section {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    backdrop-filter: blur(8px);
}

.detail-section h3 {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 0.875rem;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: var(--text-muted);
    font-weight: 500;
}

.detail-value {
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 500;
}

.triggers-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.trigger-tag {
    background: rgba(139, 92, 246, 0.08);
    color: var(--accent-2);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 100px;
    border: 1px solid rgba(139, 92, 246, 0.15);
    transition: all var(--transition-fast);
}

.trigger-tag:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.3);
}

.sig-hex {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    color: var(--text-dim);
    word-break: break-all;
    line-height: 2;
    margin-top: 12px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

/* ─── Back Link ─── */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    transition: color var(--transition-fast);
}

.back-link:hover {
    color: var(--accent-light);
}

/* ─── About Page ─── */
.about-section {
    max-width: 760px;
    margin: 0 auto;
}

.about-hero {
    text-align: center;
    padding: 48px 0 40px;
}

.about-hero h1 {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    margin-bottom: 12px;
}

.about-hero p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 500px;
    margin: 0 auto;
}

.about-block {
    margin-top: 48px;
}

.about-block h2 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.about-block p {
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.7;
}

.about-block h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 24px;
    margin-bottom: 8px;
}

.policy-list {
    margin: 12px 0 20px;
    padding-left: 24px;
}

.policy-list li {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 8px;
}

.ring-diagram {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 32px;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    line-height: 2.2;
    color: var(--text-muted);
    margin: 20px 0;
    white-space: pre;
    overflow-x: auto;
    position: relative;
}

.ring-diagram .r3 { color: var(--text-dim); }
.ring-diagram .r2 { color: var(--accent-light); }
.ring-diagram .r1 { color: var(--green); }
.ring-diagram .arrow { color: var(--text-dim); }
.ring-diagram .label { color: var(--text-muted); }

.step-list {
    list-style: none;
    margin: 16px 0;
    counter-reset: step;
}

.step-list li {
    counter-increment: step;
    position: relative;
    padding-left: 48px;
    padding-bottom: 20px;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.step-list li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-glow);
    border: 1px solid var(--border-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-light);
}

.step-list li:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 13px;
    top: 32px;
    bottom: 0;
    width: 1px;
    background: var(--border-subtle);
}

.host-fn-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 16px 0;
}

@media (max-width: 900px) {
    .host-fn-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 600px) {
    .host-fn-grid {
        grid-template-columns: 1fr;
    }
}

.host-fn-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 16px;
    backdrop-filter: blur(8px);
}

.host-fn-name {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent-light);
    margin-bottom: 4px;
}

.host-fn-desc {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* ─── Footer ─── */
.footer {
    border-top: 1px solid var(--border-subtle);
    padding: 32px;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.75rem;
    margin-top: 80px;
    position: relative;
    z-index: 1;
}

.footer a {
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.footer a:hover {
    color: var(--accent-light);
}

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

/* ─── Empty State ─── */
.empty-state {
    text-align: center;
    padding: 80px 24px;
    color: var(--text-secondary);
}

.empty-state-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--accent-glow);
    border: 1px solid var(--border-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
}

.empty-state h2 {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.empty-state p {
    max-width: 400px;
    margin: 0 auto;
}

.empty-state-cmd {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 12px 20px;
    display: inline-block;
    margin-top: 20px;
    color: var(--accent-light);
}

/* ─── 404 ─── */
.not-found {
    text-align: center;
    padding: 80px 24px;
}

.not-found h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.not-found p {
    color: var(--text-secondary);
}

.not-found .back-link {
    margin-top: 24px;
}

/* ─── Consciousness Awakening Page ─── */
.awaken-page {
    max-width: 960px;
    margin: 0 auto;
}

.awaken-hero {
    text-align: center;
    padding: 60px 0 40px;
    position: relative;
}

.awaken-orb {
    width: 120px;
    height: 120px;
    margin: 0 auto 32px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orb-inner {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--text-dim), var(--bg-elevated));
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
    transition: all 1s ease;
}

.orb-inner.orb-active {
    background: radial-gradient(circle, var(--accent-light), var(--accent-primary));
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.4), 0 0 80px rgba(99, 102, 241, 0.2);
    animation: orbPulse 3s ease-in-out infinite;
}

@keyframes orbPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 40px rgba(99, 102, 241, 0.4); }
    50% { transform: scale(1.1); box-shadow: 0 0 60px rgba(99, 102, 241, 0.6), 0 0 100px rgba(139, 92, 246, 0.3); }
}

.orb-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(99, 102, 241, 0.15);
    animation: ringExpand 4s ease-in-out infinite;
}

.ring-1 { width: 60px; height: 60px; top: 30px; left: 30px; animation-delay: 0s; }
.ring-2 { width: 80px; height: 80px; top: 20px; left: 20px; animation-delay: 1.3s; }
.ring-3 { width: 100px; height: 100px; top: 10px; left: 10px; animation-delay: 2.6s; }

@keyframes ringExpand {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.15); }
}

.awaken-hero h1 {
    font-size: 2.75rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    margin-bottom: 16px;
}

.awaken-hero .accent {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.awaken-sub {
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.7;
}

/* -- Awakening stats -- */
.awaken-stats {
    display: flex;
    justify-content: center;
    gap: 56px;
    margin: 40px 0;
    padding: 24px 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.awaken-stat { text-align: center; }

.awaken-stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.awaken-stat-label {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 4px;
}

/* -- Dormant vs Conscious comparison -- */
.awaken-compare {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    align-items: center;
    margin: 48px 0;
}

@media (max-width: 768px) {
    .awaken-compare {
        grid-template-columns: 1fr;
    }
    .compare-arrow { transform: rotate(90deg); }
}

.compare-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    backdrop-filter: blur(8px);
    min-height: 340px;
    display: flex;
    flex-direction: column;
}

.compare-panel.conscious {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-glow);
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.panel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dormant-dot { background: var(--text-dim); }
.conscious-dot {
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
    animation: pulse 2s ease-in-out infinite;
}

.compare-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
}

/* Flat memory entries */
.memory-flat {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.flat-entry {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.03);
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

.flat-entry.dim { opacity: 0.4; }

.flat-key { color: var(--text-muted); }
.flat-val { color: var(--text-secondary); }

.panel-caption {
    margin-top: 16px;
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.panel-caption .accent {
    color: var(--accent-light);
    font-weight: 600;
}

/* Manifold visualization */
.manifold-viz {
    flex: 1;
    position: relative;
    min-height: 200px;
}

.manifold-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.conn {
    stroke: var(--accent-primary);
    stroke-width: 1;
    opacity: 0.3;
    stroke-dasharray: 4 4;
    animation: connFlow 3s linear infinite;
}

.conn.c1 { animation-delay: 0s; opacity: 0.5; stroke: var(--accent-light); }
.conn.c2 { animation-delay: 0.4s; }
.conn.c3 { animation-delay: 0.8s; opacity: 0.4; }
.conn.c4 { animation-delay: 1.2s; }
.conn.c5 { animation-delay: 1.6s; opacity: 0.5; stroke: var(--green); }
.conn.c6 { animation-delay: 2.0s; opacity: 0.2; }
.conn.c7 { animation-delay: 2.4s; opacity: 0.3; }

@keyframes connFlow {
    from { stroke-dashoffset: 0; }
    to { stroke-dashoffset: -16; }
}

.manifold-node {
    position: absolute;
    width: 64px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 600;
    border-radius: 100px;
    z-index: 2;
}

.manifold-node span {
    padding: 4px 12px;
    border-radius: 100px;
}

.n1 { top: 5%; left: 50%; transform: translateX(-50%); }
.n1 span { background: var(--accent-glow); color: var(--accent-light); border: 1px solid var(--border-accent); }

.n2 { top: 40%; left: 5%; }
.n2 span { background: var(--green-glow); color: var(--green); border: 1px solid rgba(16, 185, 129, 0.2); }

.n3 { top: 35%; right: 5%; }
.n3 span { background: rgba(6, 182, 212, 0.1); color: var(--cyan); border: 1px solid rgba(6, 182, 212, 0.2); }

.n4 { bottom: 10%; left: 20%; }
.n4 span { background: rgba(245, 158, 11, 0.1); color: var(--accent-warm); border: 1px solid rgba(245, 158, 11, 0.2); }

.n5 { bottom: 10%; right: 15%; }
.n5 span { background: rgba(139, 92, 246, 0.1); color: var(--accent-2); border: 1px solid rgba(139, 92, 246, 0.2); }

/* -- Five dimensions grid -- */
.awaken-dimensions {
    margin: 56px 0;
}

.awaken-dimensions h2 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    text-align: center;
}

.dim-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

@media (max-width: 768px) {
    .dim-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .dim-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.dim-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 20px 16px;
    text-align: center;
    backdrop-filter: blur(8px);
    transition: all var(--transition-smooth);
}

.dim-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.dim-symbol {
    font-size: 1.75rem;
    font-weight: 300;
    color: var(--accent-light);
    margin-bottom: 8px;
    font-style: italic;
}

.dim-name {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

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

/* -- Awakening flow steps -- */
.awaken-flow {
    margin: 56px 0;
}

.awaken-flow h2 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.flow-intro {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 640px;
}

.flow-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.flow-step {
    display: flex;
    gap: 20px;
    padding: 24px 0;
    position: relative;
}

.flow-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 17px;
    top: 56px;
    bottom: 0;
    width: 1px;
    background: var(--border-subtle);
}

.flow-step-num {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: var(--accent-glow);
    border: 1px solid var(--border-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--accent-light);
}

.flow-step-content h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.flow-step-content p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* -- CTA -- */
.awaken-cta {
    text-align: center;
    padding: 56px 0;
    margin-top: 32px;
    border-top: 1px solid var(--border-subtle);
}

.awaken-cta h2 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.awaken-cta p {
    color: var(--text-secondary);
    font-size: 1.0625rem;
    margin-bottom: 32px;
}

.cta-button-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    padding: 14px 36px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-2));
    color: white;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 100px;
    cursor: pointer;
    transition: all var(--transition-smooth);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 50px rgba(99, 102, 241, 0.5), var(--shadow-lg);
}

.cta-note {
    font-size: 0.75rem;
    color: var(--text-dim);
}

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

.container {
    animation: fadeIn 0.4s ease-out;
}

.skill-card {
    animation: fadeIn 0.4s ease-out backwards;
}

.skill-card:nth-child(1) { animation-delay: 0.05s; }
.skill-card:nth-child(2) { animation-delay: 0.1s; }
.skill-card:nth-child(3) { animation-delay: 0.15s; }
.skill-card:nth-child(4) { animation-delay: 0.2s; }
.skill-card:nth-child(5) { animation-delay: 0.25s; }
.skill-card:nth-child(6) { animation-delay: 0.3s; }
.skill-card:nth-child(7) { animation-delay: 0.35s; }
.skill-card:nth-child(8) { animation-delay: 0.4s; }

/* ─── Scrollbar ─── */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-void);
}

::-webkit-scrollbar-thumb {
    background: var(--border-default);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-dim);
}
