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

:root {
    --bg-deep: #0a0a0f;
    --bg-card: #12121a;
    --bg-glow: #1a1a2e;
    --accent: #ff6b35;
    --accent-glow: rgba(255, 107, 53, 0.15);
    --accent-2: #4ecdc4;
    --text-primary: #f0ede6;
    --text-secondary: #8a8a9a;
    --text-dim: #55556a;
    --border: rgba(255, 255, 255, 0.06);
    --status-prototyping: #ff6b35;
    --status-validating: #4ecdc4;
    --status-funded: #ffd93d;
    --status-shipping: #6bcb77;
}

body {
    font-family: 'DM Sans', -apple-system, sans-serif;
    background: var(--bg-deep);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ── NAV ─────────────────────────────────── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 2rem;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--text-primary);
}

/* ── BUTTONS ─────────────────────────────── */
.btn {
    display: inline-block;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    background: var(--accent);
    color: #fff;
    border-radius: 6px;
}

.btn-sm:hover {
    background: #e55a28;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: #e55a28;
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    color: var(--text-primary);
    border-color: rgba(255,255,255,0.15);
}

/* ── HERO ─────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.hero-inner {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.tag {
    display: inline-block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-glow);
    border: 1px solid rgba(255, 107, 53, 0.2);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    margin-bottom: 2rem;
}

h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

h1 .highlight {
    color: var(--accent);
}

.hero-sub {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ── SECTIONS ─────────────────────────────── */
.pipeline, .edge, .closing {
    padding: 6rem 2rem;
    position: relative;
}

.pipeline::before, .edge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.section-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.section-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 1rem;
}

h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 3.5rem;
    line-height: 1.15;
}

/* ── STEPS ─────────────────────────────── */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.step {
    background: var(--bg-card);
    padding: 2.5rem 1.8rem;
    position: relative;
}

.step-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.04);
    position: absolute;
    top: 1rem;
    right: 1.2rem;
}

.step-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.step-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.step-accent {
    width: 32px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    margin-bottom: 1.2rem;
}

/* ── EDGE ─────────────────────────────── */
.edge-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.edge-left h2 { margin-bottom: 1.5rem; }
.edge-left p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
}

.edge-cards {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.edge-card {
    background: var(--bg-card);
    padding: 1.8rem 2rem;
}

.edge-card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent-2);
    margin-bottom: 0.5rem;
}

.edge-card-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ── CLOSING ─────────────────────────────── */
.closing {
    text-align: center;
    padding: 8rem 2rem;
}

.closing::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(78, 205, 196, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.closing-inner {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.closing h2 {
    margin-bottom: 1.5rem;
    font-size: clamp(2rem, 4vw, 3rem);
}

.closing p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* ── FOOTER ─────────────────────────────── */
footer {
    padding: 3rem 2rem;
    border-top: 1px solid var(--border);
}

.footer-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: color 0.2s;
}

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

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

/* ── PORTFOLIO PAGE ─────────────────────────────── */
.page-header {
    padding: 8rem 2rem 3rem;
    text-align: center;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
}

.page-header-inner {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 550px;
    margin: 0 auto;
}

/* ── FILTERS ─────────────────────────────── */
.filters {
    padding: 0 2rem;
    margin-bottom: 3rem;
}

.filters-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.5rem 1.2rem;
    border-radius: 100px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    border-color: rgba(255,255,255,0.15);
    color: var(--text-primary);
}

.filter-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* ── CONCEPTS GRID ─────────────────────────────── */
.concepts-grid {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem 6rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.concept-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.concept-card:hover {
    border-color: rgba(255,255,255,0.12);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.concept-thumb {
    width: 100%;
    height: 200px;
    background: var(--bg-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

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

.concept-thumb-placeholder {
    font-size: 3rem;
    opacity: 0.15;
}

.concept-body {
    padding: 1.5rem;
}

.concept-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.status-badge {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.25rem 0.7rem;
    border-radius: 100px;
}

.status-prototyping {
    background: rgba(255, 107, 53, 0.15);
    color: var(--status-prototyping);
    border: 1px solid rgba(255, 107, 53, 0.25);
}

.status-validating {
    background: rgba(78, 205, 196, 0.15);
    color: var(--status-validating);
    border: 1px solid rgba(78, 205, 196, 0.25);
}

.status-funded {
    background: rgba(255, 217, 61, 0.15);
    color: var(--status-funded);
    border: 1px solid rgba(255, 217, 61, 0.25);
}

.status-shipping {
    background: rgba(107, 203, 119, 0.15);
    color: var(--status-shipping);
    border: 1px solid rgba(107, 203, 119, 0.25);
}

.concept-genre {
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.concept-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.concept-tagline {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.concept-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.vote-count {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.vote-count svg {
    width: 16px;
    height: 16px;
}

.play-badge {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-2);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* ── CONCEPT DETAIL PAGE ─────────────────────────────── */
.concept-detail {
    max-width: 1100px;
    margin: 0 auto;
    padding: 7rem 2rem 4rem;
}

.concept-detail-header {
    margin-bottom: 2.5rem;
}

.concept-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    transition: color 0.2s;
}

.concept-back:hover {
    color: var(--text-primary);
}

.concept-detail-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.concept-detail-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.concept-detail-tagline {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 700px;
}

/* ── PROTOTYPE PLAYER ─────────────────────────────── */
.prototype-section {
    margin-bottom: 3rem;
}

.prototype-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.prototype-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.prototype-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.prototype-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-2);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.prototype-frame {
    width: 100%;
    height: 500px;
    border: none;
    display: block;
    background: #000;
}

.prototype-placeholder {
    width: 100%;
    height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--text-dim);
}

.prototype-placeholder svg {
    width: 48px;
    height: 48px;
    opacity: 0.3;
}

.prototype-placeholder span {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
}

/* ── DETAIL GRID ─────────────────────────────── */
.detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.detail-description {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
}

.detail-description h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
}

.detail-description p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    white-space: pre-line;
}

/* ── VOTE PANEL ─────────────────────────────── */
.vote-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    position: sticky;
    top: 6rem;
}

.vote-panel h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.vote-panel p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.vote-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    display: block;
    margin-bottom: 0.25rem;
}

.vote-label {
    font-size: 0.8rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.vote-btn {
    width: 100%;
    padding: 0.9rem 1.5rem;
    border-radius: 10px;
    border: none;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.vote-btn-upvote {
    background: var(--accent);
    color: #fff;
}

.vote-btn-upvote:hover {
    background: #e55a28;
    transform: translateY(-1px);
}

.vote-btn-voted {
    background: rgba(255, 107, 53, 0.15);
    color: var(--accent);
    border: 1px solid rgba(255, 107, 53, 0.3);
}

.vote-btn-voted:hover {
    background: rgba(255, 107, 53, 0.25);
}

.detail-info {
    margin-top: 1.5rem;
    text-align: left;
}

.detail-info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
}

.detail-info-label {
    color: var(--text-dim);
}

.detail-info-value {
    color: var(--text-primary);
    font-weight: 500;
}

/* ── EMPTY STATE ─────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 6rem 2rem;
    color: var(--text-dim);
}

.empty-state svg {
    width: 64px;
    height: 64px;
    opacity: 0.2;
    margin-bottom: 1.5rem;
}

.empty-state h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.empty-state p {
    font-size: 0.9rem;
}

/* ── LOADING ─────────────────────────────── */
.loading {
    display: flex;
    justify-content: center;
    padding: 4rem 2rem;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ── RESPONSIVE ─────────────────────────────── */
@media (max-width: 768px) {
    .hero { padding: 5rem 1.5rem 3rem; }
    .pipeline, .edge, .closing { padding: 4rem 1.5rem; }
    .steps { grid-template-columns: 1fr; }
    .edge-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .footer-inner { flex-direction: column; gap: 0.8rem; text-align: center; }
    .concepts-grid { grid-template-columns: 1fr; }
    .detail-grid { grid-template-columns: 1fr; }
    .vote-panel { position: static; }
    .concept-detail { padding: 5rem 1.5rem 3rem; }
    .prototype-frame, .prototype-placeholder { height: 300px; }
}

@media (max-width: 480px) {
    .step { padding: 1.8rem 1.4rem; }
    .nav-links { gap: 0.75rem; }
}
