:root {
    --bg-base: #f8f7f4;
    --bg-surface: #fff;
    --bg-elevated: #f0efe9;
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-card-hover: #fff;
    --text-primary: #1a1a1a;
    --text-secondary: #525252;
    --text-muted: #737373;
    --accent: #b45309;
    --accent-dim: rgba(180, 83, 9, 0.12);
    --border: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.14);
    --radius: 12px;
    --radius-lg: 16px;
    --font-sans: 'Inter', 'Noto Sans JP', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

body {
    font-family: var(--font-sans);
    background: var(--bg-base);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    font-feature-settings: "palt" 1;
    letter-spacing: 0.02em;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(180, 83, 9, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 100% 100%, rgba(180, 83, 9, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.background-animation {
    display: none;
}

.container {
    max-width: 560px;
    margin: 0 auto;
    padding: 3rem 1.25rem;
    position: relative;
    z-index: 1;
}

/* Profile */
.profile-section {
    text-align: center;
    margin-bottom: 2.5rem;
}

.avatar-wrapper {
    display: inline-block;
    margin-bottom: 1.25rem;
}

.avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.avatar:hover {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent-dim);
}

.name {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    letter-spacing: 0.04em;
}

.profile-social-links {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.profile-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.profile-social-link svg,
.profile-social-link img {
    width: 28px;
    height: 28px;
}

.profile-social-link:hover {
    opacity: 0.85;
    transform: scale(1.05);
}

.profile-social-link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.profile-x-link {
    background: #000;
    border: 1px solid #000;
    color: #fff;
}

.profile-discord-link {
    background: #5865f2;
    border: 1px solid #5865f2;
}

.profile-substack-link {
    background: #ff6719;
    border: 1px solid #ff6719;
}

.profile-youtube-link img {
    width: 50px;
    height: 50px;
}

.profile-youtube-link {
    background: #ff0000;
    border: 1px solid #ff0000;
}

.title {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--accent);
    margin-bottom: 1rem;
    letter-spacing: 0.08em;
}

.bio-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 420px;
    margin: 0 auto;
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: left;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.bio-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.bio-icon {
    font-size: 1rem;
    flex-shrink: 0;
    opacity: 0.9;
}

.bio-text {
    flex: 1;
}

/* Links */
.links-section {
    margin-bottom: 2rem;
}

.link-category {
    margin-bottom: 2.25rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border);
}

.link-category:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.link-category:first-child {
    padding-top: 0;
}

.category-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.category-title::before {
    content: '';
    width: 4px;
    height: 1.125em;
    background: var(--accent);
    border-radius: 2px;
}

.category-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 1rem;
    padding-left: 0;
}

.links-grid {
    display: grid;
    gap: 0.75rem;
}

.link-card {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 0 1rem;
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.link-card .icon {
    grid-row: 1 / -1;
}

.link-card .link-text {
    grid-column: 2;
    grid-row: 1;
}

.link-card .link-username {
    grid-column: 2;
    grid-row: 2;
    margin-top: 0.125rem;
}

.link-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.link-card .icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.link-card .icon img,
.link-card .icon svg {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.link-card .icon svg {
    color: var(--text-secondary);
}

.link-card:hover .icon {
    border-color: var(--border-hover);
}

.link-text {
    font-weight: 600;
    font-size: 0.9375rem;
    flex: 1;
    min-width: 0;
}

.link-username {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.125rem;
    display: block;
}


/* Audio section */
.audio-content-wrapper {
    margin-top: 0;
}

.audio-content-center {
    text-align: left;
    margin-bottom: 1rem;
}

.audio-content-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
}

.audio-platforms {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
}

.audio-platform-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.audio-platform-link:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.platform-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.platform-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.platform-name {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Udemy coupon button */
.udemy-card-wrapper {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
}

.udemy-card-wrapper .link-card.udemy-card {
    flex: 1;
    min-width: 0;
}

.coupon-btn {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    width: 60px;
    padding: 0.5rem 0.25rem;
    background: var(--bg-card);
    border: 1px solid rgba(164, 53, 240, 0.35);
    border-radius: var(--radius);
    color: #a435f0;
    cursor: pointer;
    font-size: 0.65rem;
    font-weight: 600;
    font-family: var(--font-sans);
    letter-spacing: 0.02em;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.coupon-btn:hover {
    background: rgba(164, 53, 240, 0.06);
    border-color: #a435f0;
}

.coupon-btn svg {
    width: 18px;
    height: 18px;
}

.coupon-icon-check {
    display: none;
    color: #16a34a;
}

.coupon-btn.copied {
    background: rgba(22, 163, 74, 0.08);
    border-color: #16a34a;
    color: #16a34a;
}

.coupon-btn.copied .coupon-icon-copy {
    display: none;
}

.coupon-btn.copied .coupon-icon-check {
    display: block;
}

/* Udemy courses section */
.brain-articles .category-title::before {
    background: #111827;
}

.brain-card {
    border-left: 3px solid rgba(17, 24, 39, 0.28);
}

.brain-card:hover {
    border-left-color: #111827;
    box-shadow: 0 4px 12px rgba(17, 24, 39, 0.08);
}

.brain-icon {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.08) 0%, rgba(17, 24, 39, 0.03) 100%) !important;
    border-color: rgba(17, 24, 39, 0.16) !important;
}

.udemy-courses .category-title::before {
    background: #a435f0;
}

.udemy-deadline {
    display: inline-block;
    margin-top: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #a435f0;
}

.udemy-coupon-note {
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: rgba(180, 83, 9, 0.06);
    border: 1px solid rgba(180, 83, 9, 0.15);
    border-radius: 8px;
    padding: 0.6rem 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.55;
}

.udemy-grid .link-text {
    font-size: 0.9rem;
    line-height: 1.35;
}

.udemy-card {
    border-left: 3px solid rgba(164, 53, 240, 0.35);
}

.udemy-card:hover {
    border-left-color: #a435f0;
    box-shadow: 0 4px 12px rgba(164, 53, 240, 0.08);
}

.udemy-icon {
    background: linear-gradient(135deg, rgba(164, 53, 240, 0.12) 0%, rgba(164, 53, 240, 0.06) 100%) !important;
    border-color: rgba(164, 53, 240, 0.2) !important;
}

.udemy-icon svg {
    color: #a435f0 !important;
}

.udemy-card:hover .udemy-icon {
    border-color: rgba(164, 53, 240, 0.35) !important;
}

.udemy-price {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.udemy-price .price-original {
    text-decoration: line-through;
    color: var(--text-muted);
    font-weight: 400;
}

.udemy-price .price-sale {
    color: #a435f0;
    font-weight: 600;
}

/* Remove old category border-left and per-card gradient overrides */
.general-activity,
.ai-community,
.brain-articles,
.audio-distribution,
.nft-project,
.udemy-courses {
    border-left: none;
}

/* Particles: hide for cleaner look */
.background-particles {
    display: none;
}

/* Focus styles */
.link-card:focus-visible,
.audio-platform-link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Responsive */
@media (max-width: 640px) {
    .container {
        padding: 2rem 1rem;
    }

    .name {
        font-size: 1.5rem;
    }

    .avatar {
        width: 80px;
        height: 80px;
    }

    .bio-container {
        padding: 0.875rem 1rem;
    }

    .bio-item {
        font-size: 0.8125rem;
    }

    .link-card {
        padding: 0.875rem 1rem;
    }

    .link-card .icon {
        width: 40px;
        height: 40px;
    }

    .link-card .icon img,
    .link-card .icon svg {
        width: 22px;
        height: 22px;
    }

    .udemy-grid .link-text {
        font-size: 0.8125rem;
    }

    .audio-platforms {
        grid-template-columns: repeat(2, 1fr);
    }

    .platform-icon img {
        width: 36px;
        height: 36px;
    }

    .platform-name {
        font-size: 0.6875rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
