:root {
    --bg: #050508;
    --surface: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.08);
    --primary: #8b5cf6;
    --primary-glow: rgba(139, 92, 246, 0.3);
    --green: #34d399;
    --red: #f87171;
    --text: #ffffff;
    --text-dim: #94a3b8;
    --font-main: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* BACKGROUND DECOR */
.blob-top {
    position: fixed;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: var(--primary-glow);
    filter: blur(120px);
    border-radius: 50%;
    z-index: -1;
}

.blob-bottom {
    position: fixed;
    bottom: -150px;
    left: -100px;
    width: 600px;
    height: 600px;
    background: rgba(52, 211, 153, 0.05);
    filter: blur(150px);
    border-radius: 50%;
    z-index: -1;
}

/* TYPOGRAPHY */
h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

p {
    font-size: 1.1rem;
    color: var(--text-dim);
    margin-bottom: 2rem;
}

.text-gradient {
    background: linear-gradient(135deg, #fff 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* BUTTONS */
button {
    cursor: pointer;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: var(--font-main);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    padding: 1rem 2rem;
    box-shadow: 0 4px 15px var(--primary-glow);
}

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

.btn-secondary {
    background: var(--surface);
    color: #fff;
    border: 1px solid var(--border);
    padding: 1rem 2rem;
    margin-left: 1rem;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.5rem 1.2rem;
}

.btn-mini {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
}

.btn-run {
    background: var(--green);
    color: #000;
}

/* NAV */
.nav-glass {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4rem;
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -1px;
}

.logo span {
    color: var(--primary);
}

/* CONVERSION OPTIMIZATION */
.hustle-subheader {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
    padding: 0 0.5rem;
    line-height: 1.4;
}

.urgency-banner {
    background: linear-gradient(90deg, rgba(255, 71, 71, 0.2), rgba(255, 71, 71, 0.05));
    border-left: 3px solid #ff4747;
    color: #ff4747;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.75rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0% { border-color: #ff4747; }
    50% { border-color: rgba(255, 71, 71, 0.2); }
    100% { border-color: #ff4747; }
}

/* HERO */
.hero {
    max-width: 900px;
    margin: 4rem auto;
    text-align: center;
    padding: 0 2rem;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

/* VIEW SYSTEM */
.view {
    display: none;
    animation: fadeIn 0.5s ease;
}

.view.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* IDE WORKSPACE */
.ide-container {
    display: flex;
    height: 90vh;
    background: #08080c;
    border: 1px solid var(--border);
    margin: 0 4rem;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.ide-sidebar {
    width: 60px;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
}

.ide-logo {
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 2rem;
}

.ide-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.ide-header {
    height: 40px;
    background: #0c0c12;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    font-size: 0.8rem;
}

.ide-editor {
    flex: 1;
    padding: 2rem;
    font-family: var(--font-mono);
    font-size: 1rem;
    background: url('ide-bg.png') no-repeat center center;
    background-size: cover;
    position: relative;
}

.ide-editor::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(8, 8, 12, 0.7); /* Dark overlay to keep code readable */
    z-index: 1;
}

.ide-editor pre {
    position: relative;
    z-index: 2;
}

.keyword { color: var(--primary); }
.string { color: var(--green); }

/* BUILD OVERLAY */
.build-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 8, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    backdrop-filter: blur(4px);
    transition: opacity 0.5s ease;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--surface);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1.5rem;
}

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

.progress-track {
    width: 300px;
    height: 6px;
    background: var(--surface);
    border-radius: 10px;
    margin-top: 1.5rem;
    overflow: hidden;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: var(--primary);
    transition: width 0.1s linear;
}

/* HUSTLE SIDEBAR */
.hustle-sidebar {
    width: 350px;
    background: #0a0a0f;
    border-left: 1px solid var(--border);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    animation: slideInRight 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.hustle-header {
    margin-bottom: 2rem;
}

.hustle-logo {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

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

.loss-aversion .red {
    color: var(--red);
    font-weight: 600;
}

.hustle-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-item {
    background: var(--surface);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.stat-item .label {
    font-size: 0.7rem;
    color: var(--text-dim);
    display: block;
}

.stat-item .value {
    font-size: 1.2rem;
    font-weight: 800;
    font-family: var(--font-mono);
}

.tasks-list {
    flex: 1;
    overflow-y: auto;
}

.task-card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.task-card:hover {
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.05);
    transform: scale(1.02);
}

.task-card .top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.task-card h4 {
    font-size: 0.9rem;
}

.task-card .price {
    color: var(--green);
    font-weight: 800;
    font-family: var(--font-mono);
}

.task-card .meta {
    font-size: 0.7rem;
    color: var(--text-dim);
}

/* LIVE FEED */
.live-feed {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 280px;
    z-index: 100;
}

.feed-item {
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    animation: slideInLeft 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* MODAL */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(8px);
}

.modal-content {
    background: #0a0a0f;
    border: 1px solid var(--border);
    padding: 3rem;
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    text-align: center;
}

.coin-pop {
    font-size: 5rem;
    animation: coinPop 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes coinPop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.green { color: var(--green); }
.hidden { display: none !important; }

/* EXIT INTENT */
.exit-intent {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.exit-content {
    padding: 4rem;
    text-align: center;
}

/* UTILS */
.glass-panel {
    background: var(--surface);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
}

/* PITCH SECTION */
.pitch {
    padding: 10rem 4rem;
    text-align: center;
}

.pitch-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 6rem;
}

.pitch-card {
    padding: 3rem;
    border-radius: 12px;
    text-align: left;
}

.pitch-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.waitlist-container {
    max-width: 600px;
    margin: 0 auto;
}

.waitlist-form-main {
    display: flex; gap: 1rem; margin-bottom: 1rem;
}

.waitlist-form-main input, select {
    background: var(--surface);
    border: 1px solid var(--border);
    color: #fff;
    padding: 1rem;
    border-radius: 8px;
    flex: 1;
}

.btn-link {
    background: transparent;
    color: var(--text-dim);
    text-decoration: underline;
    margin-top: 1rem;
}
