/* D3Xproject — premium hub */

:root {
    --hub-bg: #060811;
    --hub-bg-deep: #03040a;
    --hub-text: #f4f7ff;
    --hub-muted: #9aa8c8;
    --hub-dim: #61708f;
    --hub-cyan: #00d9ff;
    --hub-cyan-soft: rgba(0, 217, 255, 0.14);
    --hub-purple: #8b5cf6;
    --hub-purple-soft: rgba(139, 92, 246, 0.16);
    --hub-rose: #f43f5e;
    --hub-green: #7cffb2;
    --hub-gold: #fbbf24;
    --hub-border: rgba(255, 255, 255, 0.09);
    --hub-border-strong: rgba(255, 255, 255, 0.16);
    --hub-card: rgba(12, 17, 31, 0.64);
    --hub-card-strong: rgba(16, 23, 41, 0.82);
    --hub-radius-sm: 14px;
    --hub-radius-md: 20px;
    --hub-radius-lg: 28px;
    --hub-radius-xl: 36px;
    --hub-shadow-card: 0 24px 70px rgba(0, 0, 0, 0.42);
    --hub-shadow-glow: 0 0 46px rgba(0, 217, 255, 0.14);
    --hub-gradient-primary: linear-gradient(135deg, var(--hub-cyan), var(--hub-purple));
    --hub-gradient-rose: linear-gradient(135deg, var(--hub-rose), var(--hub-purple));
    --hub-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body.hub-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background:
        radial-gradient(circle at 15% -10%, rgba(0, 217, 255, 0.16), transparent 34rem),
        radial-gradient(circle at 90% 10%, rgba(139, 92, 246, 0.16), transparent 34rem),
        linear-gradient(180deg, var(--hub-bg) 0%, var(--hub-bg-deep) 100%);
    color: var(--hub-text);
    line-height: 1.55;
    min-height: 100vh;
    overflow-x: hidden;
}

body.hub-page::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
        radial-gradient(ellipse at center, transparent 38%, rgba(0, 0, 0, 0.42) 100%);
    background-size: 72px 72px, 72px 72px, auto;
    mask-image: linear-gradient(to bottom, black, transparent 92%);
}

a,
button {
    -webkit-tap-highlight-color: transparent;
}

#webCanvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hub-header {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--hub-border);
    background: rgba(5, 7, 14, 0.72);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

.hub-header-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.hub-brand,
.hub-header-link,
.btn,
.cs-link {
    text-decoration: none;
}

.hub-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: inherit;
}

.hub-brand-mark {
    width: 42px;
    height: 42px;
    border-radius: var(--hub-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.26), transparent 30%),
        var(--hub-gradient-primary);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    box-shadow: 0 0 26px rgba(0, 217, 255, 0.22);
}

.hub-brand-text {
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hub-header-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.62rem 0.95rem;
    border-radius: 999px;
    color: var(--hub-muted);
    font-size: 0.88rem;
    font-weight: 700;
    border: 1px solid var(--hub-border);
    background: rgba(255, 255, 255, 0.035);
    transition: transform 0.22s var(--hub-ease), color 0.22s var(--hub-ease), border-color 0.22s var(--hub-ease);
}

.hub-header-link:hover {
    color: var(--hub-text);
    border-color: rgba(0, 217, 255, 0.35);
    transform: translateY(-1px);
}

.hub-main {
    position: relative;
    z-index: 2;
    max-width: 1180px;
    margin: 0 auto;
    padding: 2.3rem 1.5rem 4rem;
    perspective: 1400px;
    transform-style: preserve-3d;
}

.hub-hero {
    position: relative;
    isolation: isolate;
    min-height: min(760px, calc(100vh - 92px));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.2rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: var(--hub-radius-xl);
    background:
        radial-gradient(circle at 50% 22%, rgba(0, 217, 255, 0.16), transparent 34%),
        radial-gradient(circle at 55% 78%, rgba(139, 92, 246, 0.14), transparent 42%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
    box-shadow: var(--hub-shadow-card), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    animation: hub-fade-up 0.72s var(--hub-ease) both;
}

.hub-hero::before {
    content: "D3X";
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: -1;
    transform: translate(-50%, -54%);
    font-size: clamp(8rem, 24vw, 19rem);
    font-weight: 900;
    letter-spacing: -0.12em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.08);
    text-shadow: 0 0 80px rgba(0, 217, 255, 0.08);
}

.hub-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(ellipse at center, transparent 42%, rgba(0, 0, 0, 0.38) 100%);
}

.hub-hero-orb {
    position: absolute;
    width: 330px;
    height: 330px;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.52;
    pointer-events: none;
}

.hub-hero-orb--cyan {
    left: -110px;
    top: 18%;
    background: var(--hub-cyan);
}

.hub-hero-orb--purple {
    right: -130px;
    bottom: 12%;
    background: var(--hub-purple);
}

.hub-hero-grid {
    position: absolute;
    inset: 10%;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: inherit;
    background:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(circle at center, black 35%, transparent 78%);
    pointer-events: none;
}

.hub-hero-content {
    position: relative;
    z-index: 2;
    max-width: 860px;
    margin: 0 auto;
    padding: 5.5rem 1.3rem;
    text-align: center;
    transform-style: preserve-3d;
}

.hub-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.52rem 0.95rem;
    margin-bottom: 1.15rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #bff6ff;
    background: rgba(0, 217, 255, 0.11);
    border: 1px solid rgba(0, 217, 255, 0.24);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hub-kicker {
    margin-bottom: 0.55rem;
    color: var(--hub-dim);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.hub-hero h1 {
    font-size: clamp(2.8rem, 8vw, 6.7rem);
    font-weight: 900;
    letter-spacing: -0.075em;
    line-height: 0.94;
    margin-bottom: 1.25rem;
    transform-style: preserve-3d;
    animation: hub-title-float 7s ease-in-out infinite;
}

@keyframes hub-title-float {
    0%, 100% { transform: translateZ(0) rotateX(0deg); }
    50% { transform: translateZ(18px) rotateX(1.8deg); }
}

.hub-hero h1 span {
    background: linear-gradient(120deg, #fff 10%, var(--hub-cyan) 45%, var(--hub-purple) 85%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hub-hero-lead {
    max-width: 720px;
    margin: 0 auto;
    color: var(--hub-muted);
    font-size: clamp(1rem, 2vw, 1.2rem);
}

.hub-hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 2rem;
}

.hub-signal-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.35rem;
}

.hub-signal-row span {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    padding: 0.52rem 0.75rem;
    border-radius: 999px;
    color: var(--hub-muted);
    font-size: 0.78rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--hub-border);
}

.hub-signal-row i {
    color: var(--hub-green);
    font-size: 0.55rem;
}

.hub-profile {
    margin-bottom: 2.8rem;
    animation: hub-fade-up 0.7s var(--hub-ease) 0.08s both;
}

.hub-profile-card,
.project-card,
.clan-stat,
.clan-panel,
.clan-perk,
.clan-step-body,
.clan-cta,
.clan-rules {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.hub-profile-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.35rem 1.5rem;
    border-radius: var(--hub-radius-lg);
    background:
        radial-gradient(circle at top right, rgba(0, 217, 255, 0.08), transparent 44%),
        var(--hub-card);
    border: 1px solid var(--hub-border);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transform-style: preserve-3d;
    transition: box-shadow 0.3s var(--hub-ease), border-color 0.3s var(--hub-ease);
    overflow: hidden;
}

.hub-profile-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.25rem;
    width: 100%;
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out;
}

.hub-profile-card:hover {
    border-color: rgba(0, 217, 255, 0.22);
    box-shadow: var(--hub-shadow-card), var(--hub-shadow-glow);
}

.profile-eyebrow {
    display: block;
    margin-bottom: 0.15rem;
    color: var(--hub-cyan);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hub-profile-copy h2 {
    font-size: 1.42rem;
    margin-bottom: 0.3rem;
    letter-spacing: -0.035em;
}

.avatar {
    width: 92px;
    height: 92px;
    flex-shrink: 0;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.18), transparent 28%),
        linear-gradient(135deg, rgba(0, 217, 255, 0.18), rgba(139, 92, 246, 0.12));
    border-radius: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 217, 255, 0.24);
    overflow: hidden;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}

.avatar i {
    font-size: 2.25rem;
    color: var(--hub-cyan);
    filter: drop-shadow(0 0 16px rgba(0, 217, 255, 0.36));
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bio-text {
    color: var(--hub-muted);
    font-size: 0.96rem;
    max-width: 620px;
}

.hub-profile-stack {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.45rem;
    max-width: 240px;
}

.hub-profile-stack span {
    padding: 0.42rem 0.62rem;
    border-radius: 999px;
    color: var(--hub-muted);
    font-size: 0.75rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--hub-border);
}

.hub-section-head {
    margin-bottom: 1.15rem;
}

.hub-section-head span {
    display: block;
    margin-bottom: 0.32rem;
    color: var(--hub-cyan);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hub-section-head h2 {
    font-size: clamp(1.7rem, 4vw, 2.45rem);
    font-weight: 900;
    letter-spacing: -0.055em;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
    gap: 1.25rem;
    perspective: 1200px;
}

.project-card {
    position: relative;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.062), rgba(255, 255, 255, 0.018)),
        var(--hub-card);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: var(--hub-radius-lg);
    padding: 0;
    border: 1px solid var(--hub-border);
    transition: box-shadow 0.3s var(--hub-ease), border-color 0.3s var(--hub-ease), transform 0.3s var(--hub-ease);
    animation: hub-fade-up 0.62s var(--hub-ease) backwards;
    animation-delay: calc(var(--order, 0) * 0.08s + 0.12s);
    display: flex;
    flex-direction: column;
    transform-style: preserve-3d;
    overflow: hidden;
}

.project-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(520px circle at var(--tilt-x, 50%) var(--tilt-y, 50%), rgba(0, 217, 255, 0.15), transparent 42%);
    transition: opacity 0.28s var(--hub-ease);
}

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

.project-card-3d {
    position: relative;
    z-index: 1;
    padding: 1.45rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.14s ease-out;
}

.tilt-glare {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 2;
}

.project-card:hover {
    border-color: rgba(0, 217, 255, 0.24);
    box-shadow: var(--hub-shadow-card), 0 0 38px rgba(0, 217, 255, 0.1);
}

.project-card--featured {
    border-color: rgba(0, 217, 255, 0.28);
    background:
        radial-gradient(circle at top right, rgba(0, 217, 255, 0.13), transparent 45%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.066), rgba(255, 255, 255, 0.018)),
        var(--hub-card);
}

.project-card--clan {
    border-color: rgba(244, 63, 94, 0.28);
    background:
        radial-gradient(circle at top left, rgba(244, 63, 94, 0.15), transparent 42%),
        radial-gradient(circle at bottom right, rgba(139, 92, 246, 0.1), transparent 50%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.056), rgba(255, 255, 255, 0.016)),
        var(--hub-card);
}

.project-card--clan::before {
    background: radial-gradient(520px circle at var(--tilt-x, 50%) var(--tilt-y, 50%), rgba(244, 63, 94, 0.16), transparent 42%);
}

.project-card--clan:hover {
    border-color: rgba(244, 63, 94, 0.35);
    box-shadow: var(--hub-shadow-card), 0 0 42px rgba(244, 63, 94, 0.13);
}

.project-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--hub-cyan);
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.18), rgba(139, 92, 246, 0.13));
    border: 1px solid rgba(0, 217, 255, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.card-icon--clan {
    color: #fda4af;
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.2), rgba(139, 92, 246, 0.13));
    border-color: rgba(244, 63, 94, 0.22);
}

.project-tag {
    padding: 0.34rem 0.68rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.055em;
    color: var(--hub-muted);
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--hub-border);
}

.project-tag--live {
    color: #baffd7;
    border-color: rgba(124, 255, 178, 0.25);
    background: rgba(124, 255, 178, 0.08);
}

.project-tag--clan {
    color: #fda4af;
    border-color: rgba(244, 63, 94, 0.28);
    background: rgba(244, 63, 94, 0.1);
}

.project-card h2 {
    font-size: 1.42rem;
    font-weight: 900;
    margin-bottom: 0.55rem;
    letter-spacing: -0.035em;
}

.project-card p {
    color: var(--hub-muted);
    font-size: 0.93rem;
    margin-bottom: 1rem;
    flex: 1;
}

.clan-hash {
    font-size: 0.72em;
    color: var(--hub-muted);
    font-weight: 800;
}

.project-preview {
    min-height: 116px;
    margin: 0.2rem 0 1rem;
    border-radius: var(--hub-radius-md);
    background: rgba(0, 0, 0, 0.24);
    border: 1px solid rgba(255, 255, 255, 0.075);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

.messenger-preview {
    display: grid;
    grid-template-columns: 70px 1fr;
}

.preview-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.52rem;
    padding: 0.85rem;
    border-right: 1px solid var(--hub-border);
    background: rgba(255, 255, 255, 0.035);
}

.preview-sidebar span {
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
}

.preview-sidebar span:first-child {
    width: 30px;
    height: 30px;
    border-radius: 11px;
    background: var(--hub-gradient-primary);
}

.preview-chat {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.9rem;
}

.preview-bubble {
    width: max-content;
    max-width: 86%;
    padding: 0.48rem 0.7rem;
    border-radius: 14px;
    color: var(--hub-text);
    font-size: 0.74rem;
    font-weight: 800;
}

.preview-bubble--left {
    background: rgba(255, 255, 255, 0.09);
}

.preview-bubble--right {
    align-self: flex-end;
    background: var(--hub-gradient-primary);
}

.clan-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
    padding: 0.8rem;
}

.clan-board div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(244, 63, 94, 0.08);
    border: 1px solid rgba(244, 63, 94, 0.16);
}

.clan-board strong {
    color: #fda4af;
    font-size: 1.18rem;
    font-weight: 900;
}

.clan-board span {
    color: var(--hub-muted);
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
}

.raffle-ticket {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem;
    background:
        radial-gradient(circle at right center, rgba(0, 0, 0, 0.45) 0 10px, transparent 11px),
        linear-gradient(135deg, rgba(251, 191, 36, 0.18), rgba(139, 92, 246, 0.13));
}

.raffle-ticket span,
.raffle-ticket small {
    color: var(--hub-muted);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.raffle-ticket strong {
    color: var(--hub-gold);
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1;
}

.profile-card-preview {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem;
}

.preview-avatar {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 900;
    background: var(--hub-gradient-primary);
    box-shadow: 0 0 26px rgba(0, 217, 255, 0.18);
}

.profile-card-preview div:last-child {
    display: grid;
    gap: 0.48rem;
}

.profile-card-preview span {
    display: block;
    height: 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.profile-card-preview span:nth-child(1) { width: 82%; }
.profile-card-preview span:nth-child(2) { width: 62%; }
.profile-card-preview span:nth-child(3) { width: 72%; }

.clan-mini-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.82rem;
    color: var(--hub-muted);
}

.clan-mini-stats strong {
    color: #fda4af;
    font-weight: 900;
}

.status-badge,
.profile-preview {
    font-size: 0.82rem;
    padding: 0.58rem 0.76rem;
    border-radius: 14px;
    margin-bottom: 1rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--hub-border);
    color: var(--hub-muted);
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.status-badge[data-status="online"] {
    color: #baffd7;
    border-color: rgba(124, 255, 178, 0.24);
}

.status-badge[data-status="offline"] {
    color: #fca5a5;
    border-color: rgba(248, 113, 113, 0.22);
}

.card-actions {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.btn {
    position: relative;
    padding: 0.68rem 1.05rem;
    border-radius: 14px;
    font-weight: 800;
    font-size: 0.88rem;
    transition: transform 0.22s var(--hub-ease), box-shadow 0.22s var(--hub-ease), border-color 0.22s var(--hub-ease), background 0.22s var(--hub-ease);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.46rem;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-xl {
    padding: 0.86rem 1.25rem;
    min-width: 190px;
}

.btn.primary {
    flex: 1;
    min-width: 140px;
    background: var(--hub-gradient-primary);
    color: #fff;
    box-shadow: 0 14px 30px rgba(0, 217, 255, 0.2);
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(0, 217, 255, 0.28);
}

.btn.secondary {
    background: rgba(255, 255, 255, 0.055);
    color: var(--hub-text);
    border: 1px solid var(--hub-border);
}

.btn.secondary:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 217, 255, 0.28);
    background: rgba(255, 255, 255, 0.075);
}

.btn--clan {
    background: var(--hub-gradient-rose) !important;
    box-shadow: 0 14px 30px rgba(244, 63, 94, 0.22) !important;
}

.btn--clan:hover {
    box-shadow: 0 18px 38px rgba(244, 63, 94, 0.3) !important;
}

.hub-footer {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem 1.5rem 2.7rem;
    border-top: 1px solid var(--hub-border);
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.2));
}

.cs-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.7rem 1.15rem;
    margin-bottom: 1rem;
    border-radius: 999px;
    color: var(--hub-muted);
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--hub-border);
    cursor: pointer;
    font-size: 0.9rem;
    font-family: inherit;
    transition: transform 0.22s var(--hub-ease), color 0.22s var(--hub-ease), border-color 0.22s var(--hub-ease);
}

.cs-link:hover {
    color: var(--hub-cyan);
    border-color: rgba(0, 217, 255, 0.3);
    transform: translateY(-1px);
}

.cs-link strong {
    color: var(--hub-text);
}

.hub-footer-copy {
    color: var(--hub-muted);
    font-size: 0.85rem;
}

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

@media (max-width: 900px) {
    .hub-main {
        padding-top: 1.2rem;
    }

    .hub-hero {
        min-height: auto;
    }

    .hub-hero-content {
        padding: 4rem 1rem;
    }

    .hub-profile-inner {
        grid-template-columns: auto 1fr;
    }

    .hub-profile-stack {
        grid-column: 1 / -1;
        justify-content: flex-start;
        max-width: none;
    }
}

@media (max-width: 720px) {
    .hub-header {
        padding: 0.85rem 1rem;
    }

    .hub-brand-text {
        font-size: 1.08rem;
    }

    .hub-main {
        padding-inline: 1rem;
    }

    .hub-hero {
        border-radius: 26px;
    }

    .hub-hero::before {
        font-size: 8rem;
        top: 44%;
    }

    .hub-hero-grid,
    .hub-hero-orb {
        opacity: 0.55;
    }

    .hub-hero-actions,
    .card-actions {
        flex-direction: column;
    }

    .hub-profile-card {
        text-align: center;
    }

    .hub-profile-inner {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .hub-profile-stack {
        justify-content: center;
    }

    .bio-text {
        margin: 0 auto;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .btn.primary,
    .btn.secondary,
    .btn-xl {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hub-header-link {
        padding: 0.55rem 0.7rem;
        font-size: 0.8rem;
    }

    .hub-brand-mark {
        width: 38px;
        height: 38px;
    }

    .hub-hero-content {
        padding: 3.2rem 0.85rem;
    }

    .hub-hero-badge,
    .hub-kicker {
        font-size: 0.68rem;
    }

    .project-card-3d {
        padding: 1.15rem;
    }

    .project-preview {
        min-height: 104px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
    }
}
