:root {
    --bg-base: #FFFFFF;
    --bg-surface: #F8FAFC;
    --bg-card: #FFFFFF;
    --border-subtle: #E2E8F0;
    --border-strong: #CBD5E1;
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    --accent: #0052FF;
    --accent-hover: #0040CC;
    --accent-soft: rgba(0, 82, 255, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-base);
    color: var(--text-primary);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-base);
    color: var(--text-primary);
    letter-spacing: -0.015em;
    overflow-x: hidden;
    margin: 0;
}

.font-display {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
}

.font-mono-tech {
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

.hero-ambient {
    background:
        radial-gradient(ellipse 65% 45% at 50% 0%, rgba(0, 82, 255, 0.055) 0%, rgba(0, 82, 255, 0.015) 45%, transparent 75%),
        var(--bg-base);
}

.dot-grid-bg {
    background-color: #F8FAFC;
    background-image: radial-gradient(rgba(15, 23, 42, 0.08) 1px, transparent 1px);
    background-size: 20px 20px;
}

.hb-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-subtle);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03), 0 8px 24px rgba(15, 23, 42, 0.03);
    transition: border-color 0.25s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
}

.hb-card:hover {
    border-color: var(--border-strong);
    box-shadow: 0 14px 32px -12px rgba(15, 23, 42, 0.08);
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748B;
}

.section-tag::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 1px;
    background-color: var(--accent);
    display: inline-block;
}

/* Collaborative Cursor Overlay */
.cursor-stage {
    position: relative;
}

.collab-cursor {
    position: absolute;
    z-index: 40;
    pointer-events: none;
    left: 0;
    top: 0;
    will-change: transform, opacity;
    transition: opacity 0.25s ease;
}

.collab-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    color: #FFFFFF;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.16);
    margin-left: 11px;
    margin-top: -1px;
}

.collab-badge.dark-text {
    color: #0F172A;
}

[data-build-stage] {
    position: relative;
}

/* Wireframe Drag-to-Draw Box */
.wireframe-overlay {
    position: absolute;
    inset: 0;
    z-index: 25;
    pointer-events: none;
}

.wireframe-rect {
    position: absolute;
    top: 0;
    left: 0;
    border: 1.5px solid #0052FF;
    background: rgba(0, 82, 255, 0.03);
    border-radius: 12px;
}

.wireframe-handle {
    position: absolute;
    width: 7px;
    height: 7px;
    background: #FFFFFF;
    border: 1.5px solid #0052FF;
    border-radius: 1px;
}

.wireframe-dim {
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    background: #0052FF;
    color: #FFFFFF;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 3px;
    white-space: nowrap;
}

/* Inline typing caret */
.typing-caret {
    display: inline-block;
    width: 2.5px;
    height: 0.92em;
    background-color: currentColor;
    vertical-align: -0.08em;
    margin-left: 1px;
    animation: blinkCaret 0.7s step-end infinite;
}

@keyframes blinkCaret {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.nav-link {
    color: #64748B;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #0F172A;
    font-weight: 600;
}

.footer-wordmark {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 0.85;
    background: linear-gradient(180deg, #0F172A 0%, #94A3B8 75%, rgba(248, 250, 252, 0.2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    user-select: none;
}

.skip-build-btn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 45;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid #CBD5E1;
    color: #0F172A;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.1);
    transition: opacity 0.25s ease, border-color 0.2s ease;
}

.skip-build-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}
