@font-face {
    font-family: 'SF-Pro-Display-Regular';
    src: url('fonts/SF-Pro-Display-Regular.otf') format('truetype');
}

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

:root {
    --bg-dark: #141414;
    --bg-secondary: #141414;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --border-color: #2a2a2a;
}

html {
    scroll-behavior: smooth;
    /* Keep anchor-linked section headings clear of the fixed navbar */
    scroll-padding-top: 90px;
}

body {
    font-family: 'SF-Pro-Display-Regular', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-dark);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.8rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
}

.logo-text {
    height: 28px;
    flex: 1;
    object-fit: contain;
    object-position: left center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 3rem;
    flex:0;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.15em;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10rem 3rem 3rem;
    position: relative;
    background: transparent;
}

.hero-content {
    width: 100%;
    max-width: 1400px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
}

/* Hero Banner */
.hero-banner {
    flex: 0 1 380px;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding-left: 1rem;
}

.hero-headline {
    font-size: clamp(2.5rem, 4.5vw, 4rem);
    font-weight: 300;
    letter-spacing: 0.02em;
    line-height: 1.15;
    color: var(--text-primary);
}

.hero-subtext {
    font-size: clamp(1.1rem, 1.4vw, 1.3rem);
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.6;
    letter-spacing: 0.01em;
}

/* Demo Stage */
.demo-stage {
    flex: 1 1 750px;
    min-width: 0;
    max-width: 1100px;
    aspect-ratio: 16 / 9;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin-right: 0.5rem;
    position: relative;
    background-image: url('assets/sand-dunes.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 8px;
}

/* Mac Window */
.mac-window {
    width: 88%;
    height: 88%;
    background: #fafafa;
    border: 1px solid #d1d1d1;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.window-header {
    display: flex;
    align-items: center;
    padding: 0.4rem 0.65rem;
    border-bottom: 1px solid #c8c8c8;
    background: #ececec;
}

.window-controls {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.control-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
}

.control-dot.close {
    background: #ff5f57;
}

.control-dot.minimize {
    background: #febc2e;
}

.control-dot.maximize {
    background: #28c840;
}

.window-title {
    flex: 1;
    text-align: center;
    font-size: 0.6rem;
    color: #6a6a6a;
    letter-spacing: 0.05em;
    text-transform: lowercase;
    font-weight: 500;
}

.window-spacer {
    flex-shrink: 0;
    width: calc(3 * 10px + 2 * 6px);
}

/* Window Content Layout */
.window-content {
    display: flex;
    flex: 1;
    overflow: hidden;
    background: #f5f5f5;
}

/* File Explorer Sidebar */
.file-explorer {
    width: 15%;
    min-width: 75px;
    display: flex;
    flex-direction: column;
    background: #f0f0f0;
    border-right: 1px solid #c8c8c8;
    overflow: hidden;
}

.explorer-header {
    padding: 0.35rem 0.55rem;
    border-bottom: 1px solid #d8d8d8;
    background: #efefef;
}

.explorer-title {
    font-size: 0.58rem;
    color: #7a7a7a;
    letter-spacing: 0.05em;
    text-transform: lowercase;
    font-weight: 400;
}

.explorer-tree {
    flex: 1;
    overflow-y: auto;
    padding: 0.25rem 0;
}

.tree-section {
    user-select: none;
}

.tree-folder {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.13rem 0.45rem;
    cursor: pointer;
}

.tree-folder.nested {
    padding-left: 0.85rem;
}

.folder-icon {
    font-size: 0.5rem;
    color: #8a8a8a;
    width: 0.55rem;
    text-align: center;
    flex-shrink: 0;
}

.folder-name {
    font-size: 0.58rem;
    color: #4a4a4a;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.tree-children {
    /* shown by default when folder is open */
}

.tree-file {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.1rem 0.45rem;
    cursor: pointer;
    border-radius: 3px;
    margin: 0 0.15rem;
}

.tree-file.nested {
    padding-left: 0.85rem;
}

.tree-file:hover {
    background: #e4e4e4;
}

.tree-file.active {
    background: #dce6f0;
}

.tree-children.nested .tree-file {
    padding-left: 1.25rem;
}

.file-icon {
    font-size: 0.45rem;
    color: #9a9a9a;
    width: 0.55rem;
    text-align: center;
    flex-shrink: 0;
}

.file-name {
    font-size: 0.55rem;
    color: #5a5a5a;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Middle Panel: Graph */
.graph-panel {
    width: 55%;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #c8c8c8;
    background: #f8f8f8;
}

.panel-header {
    padding: 0.35rem 0.55rem;
    border-bottom: 1px solid #d8d8d8;
    background: #efefef;
}

.panel-title {
    font-size: 0.58rem;
    color: #7a7a7a;
    letter-spacing: 0.05em;
    text-transform: lowercase;
    font-weight: 400;
}

.graph-canvas {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: #f8f8f8;
}

.graph-canvas .export-btn {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    padding: 0.22rem 0.55rem;
    background: #f5f5f5;
    color: #000000;
    border: 1px solid #c8c8c8;
    cursor: pointer;
    font-size: 0.55rem;
    text-transform: lowercase;
    border-radius: 3px;
    z-index: 10;
}

.grid-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(#dadada 1px, transparent 1px),
        linear-gradient(90deg, #dadada 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.4;
}

/* Ontology Nodes - Simple fade in, no scaling/rotation */
.ontology-node {
    position: absolute;
    min-width: 100px;
    min-height: 36px;
    background: radial-gradient(circle at 30% 30%, #ffffff, #fafafa);
    border: none;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    z-index: 10;
    animation: nodeFadeIn 0.25s ease-out;
    box-shadow: 
        0 6px 18px rgba(0, 0, 0, 0.1),
        0 2px 6px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    padding: 0.35rem 0.8rem;
    gap: 0.15rem;
}

/* Category nodes (top-level) */
.category-node {
    min-width: 110px;
    min-height: 40px;
    border: none;
    border-radius: 12px;
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.12),
        0 3px 8px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Detail nodes (zoomed view) */
.detail-node {
    min-width: 78px;
    min-height: 28px;
    border: none;
    border-radius: 10px;
}

/* Constraint nodes (filters/rules) - Cleaner styling */
.constraint-node {
    min-width: 80px;
    min-height: 30px;
    border: 1.5px solid #b84040;
    border-radius: 10px;
    background: radial-gradient(circle at 30% 30%, #fffafa, #ffebeb);
    box-shadow: 
        0 4px 14px rgba(184, 64, 64, 0.15),
        0 2px 6px rgba(184, 64, 64, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.constraint-icon {
    font-size: 0.65rem;
    color: #b84040;
    font-weight: 700;
    line-height: 1;
}

/* Node Stack Wrapper - positions the node and its stacked image cards */
.node-stack-wrapper {
    position: absolute;
    transform: translate(-50%, -50%);
    z-index: 10;
    animation: nodeFadeIn 0.25s ease-out;
}

/* Stacked image cards behind each node */
.node-stack-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    overflow: hidden;
    transform-origin: center top;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.1),
        0 1px 4px rgba(0, 0, 0, 0.06);
}

.node-stack-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Stack card positioning - fanned out to the right, each progressively more */
.node-stack-card:nth-child(1) {
    transform: translateY(8px) translateX(18px) rotate(8deg);
    z-index: 1;
    opacity: 0.5;
}

.node-stack-card:nth-child(2) {
    transform: translateY(5px) translateX(12px) rotate(5deg);
    z-index: 2;
    opacity: 0.65;
}

.node-stack-card:nth-child(3) {
    transform: translateY(3px) translateX(6px) rotate(2.5deg);
    z-index: 3;
    opacity: 0.8;
}

/* The main node sits on top of the stack */
.node-stack-wrapper .ontology-node {
    position: relative;
    z-index: 5;
    left: auto;
    top: auto;
    transform: none;
}

@keyframes nodeFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.node-label {
    font-size: 0.58rem;
    color: #1a1a1a;
    font-weight: 600;
    text-align: center;
    line-height: 1.1;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.node-count {
    font-size: 0.48rem;
    color: #5a5a5a;
    font-weight: 500;
}

.node-subgroups {
    font-size: 0.44rem;
    color: #7a7a7a;
    font-weight: 400;
}

.constraint-type {
    font-size: 0.48rem;
    color: #c84a4a;
    background: rgba(200, 74, 74, 0.1);
    padding: 0.08rem 0.25rem;
    border-radius: 6px;
    font-weight: 600;
}

.node-confidence {
    font-size: 0.46rem;
    color: #4a4a4a;
    background: linear-gradient(135deg, #f5f5f5, #ececec);
    padding: 0.08rem 0.28rem;
    border-radius: 6px;
    font-weight: 600;
    border: 1px solid #d0d0d0;
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    letter-spacing: 0.02em;
}

.node-attrs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.18rem;
    justify-content: center;
    margin-top: 0.15rem;
    max-width: 85%;
}

.attr-badge {
    font-size: 0.44rem;
    color: #2a2a2a;
    background: linear-gradient(135deg, #ececec, #e0e0e0);
    padding: 0.08rem 0.28rem;
    border-radius: 5px;
    border: 1px solid #c0c0c0;
    line-height: 1;
    font-weight: 500;
    box-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    letter-spacing: 0.01em;
}

/* Ontology Edges - Uniform styling, no weight variations */
.ontology-edge {
    position: absolute;
    background: rgba(100, 100, 100, 0.5);
    z-index: 5;
    transform-origin: 0 0;
    animation: edgeFadeIn 0.25s ease-out;
    height: 1.5px;
    opacity: 0.5;
}

@keyframes edgeFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 0.5;
    }
}

.category-edge {
    opacity: 0.55;
}

.detail-edge {
    opacity: 0.45;
}

.constraint-edge {
    background: rgba(200, 74, 74, 0.6);
    opacity: 0.7;
}

.edge-label {
    position: absolute;
    transform: translate(-50%, -50%);
    font-size: 0.42rem;
    padding: 0.08rem 0.28rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #c0c0c0;
    color: #5a5a5a;
    z-index: 8;
    white-space: nowrap;
    font-weight: 600;
    letter-spacing: 0.02em;
    animation: nodeFadeIn 0.25s ease-out;
    pointer-events: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Animated Cursor */
.animated-cursor {
    position: absolute;
    width: 20px;
    height: 20px;
    background-image: url('mac-cursor.png');
    background-size: contain;
    background-repeat: no-repeat;
    transform: translate(-20%, -20%);
    z-index: 100;
    pointer-events: none;
    opacity: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.animated-cursor.clicking {
    animation: cursorClick 0.15s ease-out;
}

@keyframes cursorClick {
    0% { transform: translate(-20%, -20%) scale(1); }
    50% { transform: translate(-20%, -20%) scale(0.9); }
    100% { transform: translate(-20%, -20%) scale(1); }
}

/* Persistent Demo Cursor - visible throughout entire animation */
.demo-cursor {
    position: absolute;
    width: 20px;
    height: 20px;
    background-image: url('mac-cursor.png');
    background-size: contain;
    background-repeat: no-repeat;
    transform: translate(-20%, -20%);
    z-index: 200;
    pointer-events: none;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: left 0.7s cubic-bezier(0.4, 0.0, 0.2, 1), top 0.7s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.demo-cursor.clicking {
    animation: cursorClick 0.15s ease-out;
}

/* Back Arrow Button (only in zoomed view) */
.back-arrow {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.2rem 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #c8c8c8;
    border-radius: 4px;
    color: #2a2a2a;
    font-size: 0.55rem;
    font-weight: 500;
    cursor: pointer;
    z-index: 100;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.back-arrow:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateX(-2px) scale(1.05);
}
.node-changed {
    background: radial-gradient(circle at 30% 30%, #fff5f5, #ffe8e8) !important;
    border: none !important;
    box-shadow: 
        0 12px 32px rgba(200, 74, 74, 0.2),
        0 4px 12px rgba(200, 74, 74, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

/* Diff colors — static red/green to show kept vs removed */
.node-diff-removed {
    background: radial-gradient(circle at 30% 30%, #fff0f0, #ffd9d9) !important;
    border: none !important;
    box-shadow:
        0 4px 14px rgba(200, 64, 64, 0.18),
        0 2px 6px rgba(200, 64, 64, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

.node-diff-kept {
    background: radial-gradient(circle at 30% 30%, #f0fff2, #d9ffe0) !important;
    border: none !important;
    box-shadow:
        0 4px 14px rgba(50, 160, 70, 0.15),
        0 2px 6px rgba(50, 160, 70, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

@keyframes edgeAppear {
    from {
        opacity: 0;
        transform: scaleX(0);
    }
    to {
        opacity: 0.7;
        transform: scaleX(1);
    }
}

/* Right Panel: Text */
.text-panel {
    width: 30%;
    display: flex;
    flex-direction: column;
    background: #fafafa;
}

.prompt-header {
    margin-top: 0;
}

.text-area {
    padding: 0.45rem;
    min-height: 50px;
    background: #fdfdfd;
    border-top: 1px solid #d8d8d8;
    display: flex;
    flex-direction: column;
    position: relative;
}

.prompt-input {
    display: flex;
    align-items: flex-start;
    gap: 0.3rem;
    color: #3a3a3a;
    font-size: 0.58rem;
    font-weight: 300;
    flex: 1;
}

.prompt-symbol {
    color: #8a8a8a;
    flex-shrink: 0;
    font-weight: 300;
    font-size: 0.6rem;
}

.prompt-text {
    flex: 1;
    word-wrap: break-word;
    font-weight: 300;
}

.output-area {
    flex: 1;
    padding: 0.45rem;
    overflow-y: auto;
    font-size: 0.52rem;
    color: #5a5a5a;
    background: #f6f6f6;
    border-top: 1px solid #d8d8d8;
}

.output-content {
    white-space: pre-wrap;
    word-wrap: break-word;
}

.user-message {
    color: #1a1a1a;
    margin: 0.3rem 0;
    display: block;
    background: #e8e8e8;
    padding: 0.3rem 0.45rem;
    border-radius: 3px;
    border-left: 2px solid #c8c8c8;
    font-size: 0.52rem;
}

.action-buttons {
    display: flex;
    gap: 0.3rem;
    align-self: flex-end;
    margin-top: 0.3rem;
}

.run-btn {
    padding: 0.2rem 0.45rem;
    background: #e0e0e0;
    border: 1px solid #b8b8b8;
    cursor: pointer;
    font-size: 0.6rem;
    border-radius: 3px;
    color: #000000;
    line-height: 1;
}

/* Waitlist Section */
.waitlist-section-container {
    padding: 0.75rem 2rem 3rem;
    background: transparent;
}

.waitlist-section-container .section-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0;
}

.waitlist-title {
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    align-content: center;
    text-align: center;
}

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

/* When waitlist is shown inside the hero banner, tighten layout and align with text */
.hero-banner .waitlist-section-container {
    padding: 1.5rem 0 0;
}

.hero-banner .waitlist-section-container .section-container {
    margin: 0;
    text-align: left;
}

.hero-banner .waitlist-form {
    margin: 0;
}

.terminal-input {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    background: transparent;
    padding: 0;
}

.terminal-prompt {
    color: var(--text-secondary);
    font-size: 1.2rem;
    padding: 0 1rem;
    user-select: none;
    font-family: 'SF-Pro-Display-Regular', sans-serif;
}

.email-input {
    flex: 1;
    padding: 1rem 0;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'SF-Pro-Display-Regular', sans-serif;
    outline: none;
}

.email-input::placeholder {
    color: var(--text-secondary);
    font-family: 'SF-Pro-Display-Regular', sans-serif;
}

.submit-btn {
    padding: 0.8rem 1.6rem;
    background: transparent;
    color: white;
    border: none;
    border-left: 1px solid var(--border-color);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 400;
    font-family: 'SF-Pro-Display-Regular', sans-serif;
    text-transform: lowercase;
    white-space: nowrap;
}

.form-message {
    margin-top: 1rem;
    font-size: 0.9rem;
    min-height: 1.5rem;
}

.form-message.success {
    color: var(--text-primary);
}

.form-message.error {
    color: var(--text-secondary);
}



/* Ascii Wave Divider */
.ascii-wave {
    width: 100%;
    height: 2in;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.ascii-wave-rows {
    margin: 0;
    color: #ffffff;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    line-height: 1.25;
    letter-spacing: 0.05em;
    white-space: pre;
    text-align: center;
    opacity: 0.8;
}

/* Section Styles */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 3rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    margin-bottom: 3rem;
    text-align: center;
    letter-spacing: 0.05em;
}

/* About Section */
.about {
    background: transparent;
    position: relative;
    margin-top: 8rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-text {
    max-width: 100%;
    margin: 0;
    text-align: left;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 0;
}

.feature-card {
    padding: 2rem;
    background: transparent;
    border: 1px solid var(--border-color);
    text-align: left;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    letter-spacing: 0.05em;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Contact Section */
.contact {
    background: transparent;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.contact-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.1rem;
}

.contact-value {
    color: var(--text-primary);
    font-size: 1.1rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-input,
.form-textarea {
    padding: 1rem;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit-btn {
    padding: 1rem 2rem;
    background: transparent;
    color: white;
    border: 1px solid var(--text-primary);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    align-self: flex-start;
}

/* Footer */
.footer {
    background: transparent;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 3rem 2rem;
}

.footer-content {
    text-align: center;
    margin-bottom: 2rem;
}

.footer-content .footer-logo {
    height: 24px;
    margin-bottom: 0.5rem;
    flex: none;
}

.footer-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Desktop Images Container - for exported labeled images */
.desktop-images-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.labeled-image-card {
    position: absolute;
    width: 18%;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: scale(0.3);
}

.labeled-image-card.visible {
    animation: imagePopIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes imagePopIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.card-image {
    width: 100%;
    display: block;
    border-radius: 4px 4px 0 0;
}

.image-filename {
    padding: 3px 4px;
    font-size: 0.45rem;
    color: #2a2a2a;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(4px);
}

/* Responsive Design */

/* Stack banner + demo vertically on narrow / tall viewports */
@media (max-width: 1024px) {
    .hero {
        padding: 5rem 2rem 2rem;
        min-height: auto;
    }

    .hero-content {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
    }

    .hero-banner {
        flex: 0 0 auto;
        min-width: unset;
        max-width: 600px;
        width: 100%;
        text-align: center;
        padding-left: 0;
    }

    .demo-stage {
        flex: 0 0 auto;
        margin-right: 0;
        max-width: 700px;
        width: 100%;
        min-height: 320px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 1rem 1.5rem;
    }

    .nav-menu {
        gap: 1.5rem;
    }

    .hero {
        padding: 6.25rem 1.5rem 2rem;
    }

    .hero-banner {
        max-width: 100%;
    }

    .demo-stage {
        max-width: 100%;
        min-height: 280px;
    }

    .section-container {
        padding: 4rem 1.5rem;
    }

    .ascii-wave {
        height: 0.55in;
    }

    .ascii-wave-rows {
        font-size: 0.7rem;
        letter-spacing: 0.03em;
    }

    .terminal-input {
        flex-direction: column;
    }

    .terminal-prompt {
        display: none;
    }

    .email-input {
        width: 100%;
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
    }

    .submit-btn {
        width: 100%;
        border-left: none;
        border-top: 1px solid var(--border-color);
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .form-submit-btn {
        width: 100%;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    /* Shrink demo window contents so panels don't overcrowd on mobile */
    .file-explorer {
        width: 26%;
        min-width: 72px;
    }

    .graph-panel {
        width: 44%;
    }

    .tree-folder.nested,
    .tree-file.nested {
        padding-left: 0.5rem;
    }

    .folder-name {
        font-size: 0.46rem;
    }

    .file-name {
        font-size: 0.42rem;
    }

    .folder-icon,
    .file-icon {
        font-size: 0.38rem;
    }

    .window-title {
        font-size: 0.5rem;
    }

    .graph-canvas .export-btn {
        font-size: 0.4rem;
        padding: 0.14rem 0.35rem;
    }

    .ontology-node {
        min-width: 54px;
        min-height: 20px;
        padding: 0.18rem 0.4rem;
    }

    .category-node {
        min-width: 60px;
        min-height: 22px;
    }

    .detail-node {
        min-width: 42px;
        min-height: 16px;
    }

    .constraint-node {
        min-width: 44px;
        min-height: 18px;
    }

    .node-label {
        font-size: 0.42rem;
    }

    .node-count,
    .node-confidence {
        font-size: 0.36rem;
    }

    .node-subgroups,
    .attr-badge,
    .constraint-type {
        font-size: 0.34rem;
    }

    /* Stack badges vertically so nodes don't grow wider than their min-width and overlap neighbors */
    .node-attrs {
        flex-direction: column;
        max-width: 100%;
    }

    .prompt-input {
        font-size: 0.5rem;
    }

    .prompt-symbol {
        font-size: 0.52rem;
    }

    .output-area,
    .user-message {
        font-size: 0.46rem;
    }

    .run-btn {
        font-size: 0.52rem;
        padding: 0.16rem 0.4rem;
    }
}

@media (max-width: 480px) {
    .logo-text {
        height: 22px;
    }

    .ascii-wave {
        height: 0.4in;
    }

    .ascii-wave-rows {
        font-size: 0.55rem;
        letter-spacing: 0.02em;
    }

    .nav-menu {
        gap: 1rem;
    }

    .nav-link {
        font-size: 0.8rem;
    }

    .hero {
        padding: 6.5rem 1rem 1.5rem;
    }

    .demo-stage {
        min-height: 240px;
    }

    .hero-headline {
        font-size: 2rem;
    }

    /* Further shrink demo window contents on small phones */
    .file-explorer {
        width: 30%;
        min-width: 64px;
    }

    .graph-panel {
        width: 40%;
    }

    .folder-name {
        font-size: 0.4rem;
    }

    .file-name {
        font-size: 0.36rem;
    }

    .folder-icon,
    .file-icon {
        font-size: 0.34rem;
    }

    .tree-folder,
    .tree-file {
        padding: 0.1rem 0.3rem;
    }

    .tree-folder.nested,
    .tree-file.nested {
        padding-left: 0.4rem;
    }

    .window-title {
        font-size: 0.46rem;
    }

    .control-dot {
        width: 8px;
        height: 8px;
    }

    .window-spacer {
        width: calc(3 * 8px + 2 * 6px);
    }

    .graph-canvas .export-btn {
        font-size: 0.36rem;
        padding: 0.12rem 0.3rem;
    }

    .ontology-node {
        min-width: 44px;
        min-height: 16px;
        padding: 0.14rem 0.32rem;
    }

    .category-node {
        min-width: 48px;
        min-height: 18px;
    }

    .detail-node {
        min-width: 34px;
        min-height: 13px;
    }

    .constraint-node {
        min-width: 36px;
        min-height: 14px;
    }

    .node-label {
        font-size: 0.36rem;
    }

    .node-count,
    .node-confidence {
        font-size: 0.32rem;
    }

    .node-subgroups,
    .attr-badge,
    .constraint-type {
        font-size: 0.3rem;
    }

    .prompt-input {
        font-size: 0.44rem;
    }

    .prompt-symbol {
        font-size: 0.46rem;
    }

    .output-area,
    .user-message {
        font-size: 0.4rem;
    }

    .run-btn {
        font-size: 0.46rem;
        padding: 0.14rem 0.35rem;
    }
}

#navbar-logo{
  height: 50px;
  width: 50px;
  flex: 0;
  margin-right: 10px;
}
