/* ══════════════════════════════════════════
   Shared design tokens & base reset
   ══════════════════════════════════════════ */

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

:root {
    --bg: #fafafa;
    --bg-card: #ffffff;
    --bg-card-hover: #f5f5f5;
    --border: #e5e5e5;
    --border-hover: #ccc;
    --text-primary: #111111;
    --text-secondary: #666;
    --text-tertiary: #999;
    --radius: 16px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate { animation: fadeUp 0.6s var(--ease) both; }
.animate-d1 { animation-delay: 0.1s; }
.animate-d2 { animation-delay: 0.2s; }
.animate-d3 { animation-delay: 0.3s; }
.animate-d4 { animation-delay: 0.4s; }
.animate-d5 { animation-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ── SECTION & GRID (shared across listing pages) ── */
.section {
    padding: 0 2.5rem 6rem;
    max-width: 900px;
    margin: 0 auto;
}

.section-label {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 2rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: #f8f8f8;
    border-radius: var(--radius);
    overflow: hidden;
}
.grid > * { box-shadow: 0 0 0 0.5px var(--border); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-1 { grid-template-columns: 1fr; }

/* ── CARDS ── */
.card {
    background: var(--bg-card);
    padding: 2.5rem;
    display: flex; flex-direction: column;
    justify-content: space-between;
    min-height: 240px;
    position: relative;
    transition: background 0.3s var(--ease);
    text-decoration: none; color: inherit; cursor: pointer;
}
.card:hover { background: var(--bg-card-hover); }
.card-top { display: flex; flex-direction: column; gap: 0.75rem; }
.card-title {
    font-size: 1.25rem; font-weight: 500;
    letter-spacing: -0.02em; line-height: 1.3;
    color: var(--text-primary);
}
.card-desc { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; }
.card-bottom { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 2rem; }
.card-meta { font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-tertiary); }
.card-arrow {
    width: 32px; height: 32px; border-radius: 50%;
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s var(--ease); color: var(--text-tertiary);
}
.card:hover .card-arrow { border-color: var(--text-secondary); color: var(--text-primary); transform: translate(2px, -2px); }
.card-arrow svg { width: 14px; height: 14px; }

.card-sm { min-height: 160px; padding: 2rem 2.5rem; }

/* ── PAGE HEADER (for listing pages) ── */
.page-header {
    padding: 10rem 2.5rem 4rem;
    max-width: 900px;
    margin: 0 auto;
}

.page-header h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 300;
    letter-spacing: -0.04em;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.page-header p {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: var(--text-secondary);
    max-width: 500px;
    line-height: 1.7;
}

/* ── COMING SOON ── */
.coming-soon-badge {
    display: inline-block; padding: 0.2em 0.6em;
    background: #f0f0f0; border: 1px solid var(--border);
    border-radius: 6px; font-size: 0.65rem; font-weight: 500;
    letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--text-secondary);
}

/* ── EMPTY STATE ── */
.empty-state {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px dashed var(--border);
    padding: 3.5rem 2.5rem;
    text-align: center;
}
.empty-state-title {
    font-size: 1rem; font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}
.empty-state-desc {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    line-height: 1.6;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .grid, .grid-2 { grid-template-columns: 1fr; }
    .section { padding: 0 1.5rem 4rem; }
    .page-header { padding: 9rem 1.5rem 3rem; }
}

@media (max-width: 600px) {
    .card { padding: 2rem; min-height: 200px; }
    .card-sm { min-height: 140px; padding: 1.5rem 2rem; }
    .page-header h1 { font-size: 2rem; }
}
