@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&family=JetBrains+Mono:wght@400&display=swap');

:root {
    --bg-color: #030308;
    --primary: #00E5FF;
    --primary-glow: rgba(0, 229, 255, 0.4);
    --secondary: #7000FF;
    --text-main: #FFFFFF;
    --text-muted: #8E92A4;
    --surface: rgba(20, 22, 35, 0.6);
    --surface-solid: #141623;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden; /* Prevent scrolling for app-like feel */
    background-color: var(--bg-color);
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
}

#canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    flex-direction: column;
    padding: 24px;
    pointer-events: none; /* Let clicks pass through to 3D if needed */
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -0.5px;
}

.logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
}

.pulse {
    box-shadow: 0 0 0 0 var(--primary-glow);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 var(--primary-glow); }
    70% { box-shadow: 0 0 0 10px rgba(0, 229, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0); }
}

/* Hero Section */
.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 40px;
    pointer-events: auto;
}

.badge {
    align-self: flex-start;
    background: rgba(112, 0, 255, 0.2);
    color: #b985ff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 16px;
    border: 1px solid rgba(112, 0, 255, 0.3);
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.gradient-text {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 32px;
    max-width: 90%;
}

/* Buttons */
.action-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn {
    height: 54px;
    border-radius: 12px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.1s, opacity 0.2s;
}

.btn:active {
    transform: scale(0.97);
}

.primary {
    background: var(--text-main);
    color: var(--bg-color);
}

.secondary {
    background: var(--surface);
    color: var(--text-main);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.full-width {
    width: 100%;
}

.mt-10 {
    margin-top: 10px;
}

/* Bottom Sheets */
.backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 20;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.bottom-sheet {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--surface-solid);
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    padding: 20px 24px 40px;
    z-index: 30;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 -10px 40px rgba(0,0,0,0.5);
}

.bottom-sheet.active {
    transform: translateY(0);
}

.handle {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin: 0 auto 24px;
}

.bottom-sheet h2 {
    font-size: 1.5rem;
    margin-bottom: 24px;
}

/* Features List */
.feature-list {
    list-style: none;
    margin-bottom: 32px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.icon-box {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-text h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.feature-text p {
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* Terminal */
.terminal {
    background: #000;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    margin-bottom: 24px;
    height: 200px;
    display: flex;
    flex-direction: column;
}

.terminal-header {
    background: #1A1A1A;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mac-btn {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.red { background: #FF5F56; }
.yellow { background: #FFBD2E; }
.green { background: #27C93F; }

.terminal-title {
    margin-left: auto;
    margin-right: auto;
    font-size: 0.75rem;
    color: #888;
    font-family: 'Inter', sans-serif;
    transform: translateX(-18px); /* offset the buttons */
}

.terminal-body {
    padding: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: #4AF626;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.log-line {
    opacity: 0;
    animation: fadeIn 0.1s forwards;
}

.log-success {
    color: var(--primary);
    font-weight: bold;
}

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

@media (min-width: 768px) {
    .ui-layer {
        padding: 48px;
    }
    .hero {
        align-items: flex-start;
    }
    h1 {
        font-size: 5rem;
    }
    .action-group {
        flex-direction: row;
        width: 400px;
    }
    .bottom-sheet {
        width: 400px;
        left: 50%;
        margin-left: -200px;
        border-radius: 24px;
        bottom: 24px;
    }
}