/* ============================================================
   UmeAiRT Workflows — Design System
   Inherited from get.umeai.art for brand cohesion
   ============================================================ */

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

/* --- Design Tokens --- */
:root {
    --bg-base: #0B0B0F;
    --bg-elevated: #101018;
    --bg-panel: rgba(22, 22, 35, 0.6);
    --bg-panel-solid: #161623;
    --border-panel: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);

    --text-main: #E2E2E8;
    --text-muted: #9BA1B0;
    --text-dim: #6B7080;

    --accent-primary: #6366F1;
    --accent-light: #818CF8;
    --accent-glow: rgba(99, 102, 241, 0.4);
    --accent-gradient: linear-gradient(135deg, #818CF8 0%, #6366F1 100%);

    --code-bg: #050508;
    --code-border: rgba(99, 102, 241, 0.2);
    --code-text: #A5B4FC;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 24px;

    --shadow-card: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 25px 50px -12px rgba(99, 102, 241, 0.15);

    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-spring: 0.5s cubic-bezier(0.16, 1, 0.3, 1);

    /* Family colors */
    --color-sdxl: #818CF8;
    --color-flux: #F59E0B;
    --color-hidream: #EC4899;
    --color-wan: #10B981;
    --color-ltxv: #EF4444;
    --color-zimg: #06B6D4;
    --color-tools: #78716C;
}

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

/* --- Base --- */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Background Effects --- */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 15% 50%, rgba(99, 102, 241, 0.06), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(236, 72, 153, 0.04), transparent 25%),
        radial-gradient(circle at 50% 80%, rgba(6, 182, 212, 0.03), transparent 30%);
    pointer-events: none;
    z-index: 0;
}

/* --- Layout --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.container--narrow {
    max-width: 900px;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 0;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(11, 11, 15, 0.8);
    border-bottom: 1px solid var(--border-panel);
    transition: background var(--transition-smooth);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    font-size: 1.1rem;
    transition: color var(--transition-fast);
}

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

.nav__brand-icon {
    font-size: 1.4rem;
}

.nav__eyebrow {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-primary);
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
}

.nav__links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: color var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

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

/* --- Hero Section --- */
.hero {
    text-align: center;
    padding: 8rem 0 4rem;
}

.hero__eyebrow {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-primary);
    margin-bottom: 1.25rem;
    display: block;
}

.hero__title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, #FFFFFF 0%, #B8C0EC 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.hero__stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2.5rem;
}

.hero__stat {
    text-align: center;
}

.hero__stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-light);
}

.hero__stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.25rem;
}

/* --- Section --- */
.section {
    padding: 4rem 0;
}

.section__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* --- Family Cards Grid --- */
.family-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.family-card {
    background: var(--bg-panel);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-panel);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-decoration: none;
    color: var(--text-main);
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.family-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--family-color, var(--accent-gradient));
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.family-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

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

.family-card__icon {
    font-size: 2.5rem;
    line-height: 1;
}

.family-card__name {
    font-size: 1.3rem;
    font-weight: 700;
}

.family-card__desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.family-card__meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-panel);
}

.family-card__count {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.family-card__count strong {
    color: var(--accent-light);
    font-weight: 600;
}

/* --- Badge --- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge--available {
    background: rgba(16, 185, 129, 0.15);
    color: #34D399;
}

.badge--coming {
    background: rgba(245, 158, 11, 0.15);
    color: #FBBF24;
}

.badge--new {
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent-light);
}

/* --- Workflow Cards Grid --- */
.workflow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.workflow-card {
    background: var(--bg-panel);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-panel);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: var(--text-main);
    transition: all var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.workflow-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

.workflow-card__image {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-spring);
}

.workflow-card:hover .workflow-card__image {
    transform: scale(1.03);
}

.workflow-card__body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.workflow-card__title {
    font-size: 1.15rem;
    font-weight: 700;
}

.workflow-card__subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.workflow-card__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-dim);
}

.workflow-card__meta-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* --- Workflow Detail Page --- */
.workflow-hero {
    padding: 7rem 0 3rem;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

.breadcrumb__sep {
    color: var(--text-dim);
    user-select: none;
}

.workflow-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.workflow-detail__image-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-panel);
    box-shadow: var(--shadow-card);
}

.workflow-detail__image {
    width: 100%;
    display: block;
}

.workflow-detail__info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.workflow-detail__badge-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.workflow-detail__title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.1;
    background: linear-gradient(135deg, #FFFFFF 0%, #B8C0EC 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.workflow-detail__subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 300;
}

.workflow-detail__desc {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* --- Features List --- */
.features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.features li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
    color: var(--text-main);
}

.features li::before {
    content: '✦';
    color: var(--accent-light);
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* --- Download Buttons --- */
.download-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius-md);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all var(--transition-smooth);
}

.btn--primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-glow);
}

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

.btn--secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.btn--civitai {
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn--civitai:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.btn--guide {
    background: rgba(16, 185, 129, 0.1);
    color: #34D399;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.btn--guide:hover {
    background: rgba(16, 185, 129, 0.2);
    transform: translateY(-2px);
}

/* --- Screenshot Section --- */
.screenshot-section {
    padding: 4rem 0;
}

.screenshot-section__title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.screenshot-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-panel);
    box-shadow: var(--shadow-card);
}

.screenshot-wrap img {
    width: 100%;
    display: block;
}

/* --- Prerequisites Section --- */
.prereq-section {
    padding: 3rem 0;
}

.prereq-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-panel);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.prereq-card__title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.prereq-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.prereq-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.prereq-list li strong {
    color: var(--text-main);
    font-weight: 500;
}

.prereq-list li::before {
    content: '→';
    color: var(--accent-light);
    flex-shrink: 0;
    margin-top: 0.1em;
}

/* --- Footer --- */
.footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border-panel);
    margin-top: 4rem;
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer__brand {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer__brand strong {
    color: var(--text-main);
    font-weight: 600;
}

.footer__links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.footer__links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

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

/* --- Animations --- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.animate-fade-up {
    animation: fadeUp 0.6s var(--transition-spring) forwards;
    opacity: 0;
}

.animate-fade-up:nth-child(2) { animation-delay: 0.08s; }
.animate-fade-up:nth-child(3) { animation-delay: 0.16s; }
.animate-fade-up:nth-child(4) { animation-delay: 0.24s; }
.animate-fade-up:nth-child(5) { animation-delay: 0.32s; }
.animate-fade-up:nth-child(6) { animation-delay: 0.40s; }
.animate-fade-up:nth-child(7) { animation-delay: 0.48s; }
.animate-fade-up:nth-child(8) { animation-delay: 0.56s; }

/* --- Responsive --- */
@media (max-width: 768px) {
    .container { padding: 0 1.25rem; }
    .hero { padding: 6rem 0 2.5rem; }
    .hero__stats { gap: 1.5rem; }
    .hero__stat-value { font-size: 1.5rem; }
    .family-grid { grid-template-columns: 1fr; }
    .workflow-grid { grid-template-columns: 1fr; }
    .workflow-detail { grid-template-columns: 1fr; gap: 2rem; }
    .download-row { flex-direction: column; }
    .nav__links { display: none; }
    .footer__inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .hero__title { font-size: 2rem; }
    .family-card { padding: 1.5rem; }
}
