/* BRUTALIST BASE STYLES */
:root {
    --bg-color: #f4f4f0;
    --text-color: #000000;
    --border-color: #000000;
    --accent-color: #000000;
    --shadow-color: #000000;
    --white: #ffffff;
    --gray: #e0e0df;

    --font-mono: 'IBM Plex Mono', monospace;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --border-width: 2px;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--text-color);
    text-decoration: none;
}

/* UTILITIES */
.section-container {
    width: 100%;
    padding: 4rem 4rem;
    border-bottom: var(--border-width) solid var(--border-color);
}

.section-container:last-child {
    border-bottom: none;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
    border-bottom: var(--border-width) solid var(--border-color);
    padding-bottom: 1rem;
    display: inline-block;
}

.text-link {
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: background-color 0.1s, color 0.1s;
}

.text-link:hover {
    background-color: var(--text-color);
    color: var(--white);
    text-decoration: none;
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    border: var(--border-width) solid var(--border-color);
    cursor: pointer;
    transition: transform 0.1s;
}

.btn:active {
    transform: translate(2px, 2px);
    box-shadow: none !important;
}

.btn-primary {
    background-color: var(--text-color);
    color: var(--white);
    box-shadow: 4px 4px 0px var(--gray);
}

.btn-primary:hover {
    background-color: #222;
}

.btn-secondary {
    background-color: var(--white);
    color: var(--text-color);
    box-shadow: 4px 4px 0px var(--text-color);
}

.btn-secondary:hover {
    background-color: var(--gray);
}

/* HEADER */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: var(--text-color);
}

.site-nav {
    display: flex;
    gap: 2rem;
}

.site-nav a {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.25rem 0;
}

.site-nav a:hover {
    border-bottom: var(--border-width) solid var(--border-color);
}

/* HERO SECTION */
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    min-height: calc(100vh - 100px);
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    max-width: 750px;
    margin: 0 auto;
    /* Centers horizontally in its flex column */
    background: var(--bg-color);
    padding: 3.5rem;
    border: var(--border-width) solid var(--border-color);
    box-shadow: 8px 8px 0px var(--text-color);
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.future-blue {
    color: #38bdf8;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 90%;
}

/* HERO MIDDLE IMAGE */
.hero-middle {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem;
}

.hero-ai-badge {
    max-width: 180px;
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(4px 4px 0px var(--text-color));
    transition: transform 0.2s ease;
}

.hero-ai-badge:hover {
    transform: scale(1.05);
}

/* HERO VISUAL & FEATURE POINTERS */
.hero-visual-wrapper {
    flex: 1.6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    width: 100%;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.bacon-avatar {
    width: 100%;
    max-width: 600px;
    height: 750px;
    display: block;
    margin: 0 auto;
    position: relative;
}

/* 3D AVATAR HOTSPOT DOTS (Glued directly to 3D mesh) */
.avatar-dot {
    width: 18px;
    height: 18px;
    background-color: #38bdf8;
    border: 2px solid var(--text-color);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(56, 189, 248, 1);
    cursor: pointer;
    z-index: 10;
    pointer-events: auto;
    padding: 0;
    margin: 0;
    outline: none;
    transition: transform 0.2s ease, background-color 0.2s ease;
    animation: pulse-dot 2.5s infinite ease-in-out;
}

.avatar-dot:hover {
    transform: scale(1.3);
    background-color: #00a8ff;
}

/* CONNECTING LINES */
.connecting-line {
    position: absolute;
    height: 2px;
    border-top: 2px dashed var(--text-color);
    z-index: 4;
    pointer-events: none;
}

/* Blue dot at the start of the line on the avatar */
.connecting-line::before {
    content: '';
    position: absolute;
    left: -6px;
    top: -6px;
    width: 12px;
    height: 12px;
    background-color: #38bdf8;
    border: 2px solid var(--text-color);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(56, 189, 248, 1);
    z-index: 5;
    animation: pulse-dot 2.5s infinite ease-in-out;
}

/* Blue dot on the card side of the line */
.connecting-line::after {
    content: '';
    position: absolute;
    right: -6px;
    top: -6px;
    width: 12px;
    height: 12px;
    background-color: #38bdf8;
    border: 2px solid var(--text-color);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(56, 189, 248, 1);
    z-index: 5;
    animation: pulse-dot 2.5s infinite ease-in-out;
}

.line-1 {
    top: 28%;
    left: 48%;
    right: -1rem;
}

.line-2 {
    top: 48%;
    left: 45%;
    right: -1rem;
}

.line-3 {
    top: 70%;
    left: 52%;
    right: -1rem;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    position: relative;
    z-index: 10;
    width: 290px;
    flex-shrink: 0;
}

.feature-card {
    background-color: var(--white);
    border: var(--border-width) solid var(--border-color);
    box-shadow: 4px 4px 0px var(--text-color);
    padding: 0.9rem 1.1rem;
    width: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 7px 7px 0px var(--text-color);
}

.feature-tag {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--white);
    background-color: var(--text-color);
    display: inline-block;
    padding: 0.25rem 0.6rem;
    margin-bottom: 0.4rem;
}

.feature-card p {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
}

@keyframes pulse-dot {
    0%, 100% {
        transform: translateY(-50%) scale(1);
        box-shadow: 0 0 6px rgba(56, 189, 248, 0.6);
    }
    50% {
        transform: translateY(-50%) scale(1.4);
        box-shadow: 0 0 16px rgba(56, 189, 248, 1);
    }
}

/* HOW IT WORKS */
.asymmetrical-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(200px, auto);
    gap: 2rem;
}

.grid-card {
    background-color: var(--white);
    border: var(--border-width) solid var(--border-color);
    padding: 2rem;
    position: relative;
    box-shadow: 6px 6px 0px var(--text-color);
}

.step-number {
    font-family: var(--font-mono);
    font-size: 3rem;
    font-weight: 600;
    line-height: 1;
    position: absolute;
    top: 1rem;
    right: 1rem;
    opacity: 0.1;
}

.grid-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.grid-card p {
    font-size: 1rem;
}

.step-1 {
    grid-column: 1 / 7;
}

.step-2 {
    grid-column: 7 / 13;
}

.step-3 {
    grid-column: 3 / 11;
}

/* GET STARTED */
.get-started-box {
    background-color: var(--white);
    border: var(--border-width) solid var(--border-color);
    padding: 2.5rem;
    box-shadow: 6px 6px 0px var(--text-color);
}

.get-started-box p {
    font-size: 1.2rem;
    line-height: 1.6;
}

.get-started-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* DASHBOARD PREVIEW */
.dashboard-header-text p {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.ui-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    background-color: var(--gray);
    padding: 2rem;
    border: var(--border-width) solid var(--border-color);
}

.ui-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ui-module {
    background-color: var(--white);
    border: var(--border-width) solid var(--border-color);
    padding: 1.5rem;
}

.module-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: #555;
    border-bottom: 1px solid var(--text-color);
    padding-bottom: 0.5rem;
}

.credits-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.credits-subtext {
    font-size: 0.85rem;
    color: #555;
}

/* TOGGLE SWITCH */
.control-module {
    text-align: center;
}

.toggle-container {
    margin: 1rem 0;
    display: inline-block;
}

.toggle-checkbox {
    display: none;
}

.toggle-label {
    display: block;
    width: 80px;
    height: 40px;
    background-color: var(--white);
    border: var(--border-width) solid var(--border-color);
    position: relative;
    cursor: pointer;
    transition: background-color 0.1s;
}

.toggle-label::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 32px;
    height: 32px;
    background-color: var(--text-color);
    transition: transform 0.1s;
}

.toggle-checkbox:checked+.toggle-label {
    background-color: #c4f1c4;
    /* Very harsh, raw green */
}

.toggle-checkbox:checked+.toggle-label::after {
    transform: translateX(40px);
}

.toggle-status {
    display: block;
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 0.9rem;
}

/* LOG MODULE */
.log-module {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.log-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.live-indicator {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--white);
    background-color: #e60000;
    /* Harsh red */
    padding: 0.2rem 0.5rem;
}

.log-content {
    flex-grow: 1;
    background-color: var(--text-color);
    color: #00ff00;
    /* Terminal green */
    font-family: var(--font-mono);
    font-size: 0.85rem;
    padding: 1rem;
    overflow-y: auto;
    max-height: 250px;
}

.log-entry {
    margin-bottom: 0.5rem;
    word-break: break-all;
}

.log-entry::before {
    content: '>';
    margin-right: 0.5rem;
    color: #fff;
}

/* PRICING */
.pricing-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.pricing-box,
.requirement-box {
    border: var(--border-width) solid var(--border-color);
    padding: 2rem;
    background-color: var(--white);
    box-shadow: 4px 4px 0px var(--text-color);
}

.pricing-box h3,
.requirement-box h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.price-rate {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    background: var(--text-color);
    color: var(--white);
    display: inline-block;
    padding: 0.25rem 0.5rem;
}

.requirement-box {
    background-color: #ffcccc;
    /* Harsh warning red background */
}

/* FOOTER */
.site-footer {
    background-color: var(--text-color);
    color: var(--white);
    border-top: none;
}

.footer-content h3 {
    font-family: var(--font-mono);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.footer-content p {
    font-size: 1.1rem;
    max-width: 800px;
    margin-bottom: 3rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    border-top: 1px solid #555;
    padding-top: 1rem;
    color: #aaa;
}

/* RESPONSIVE */
@media (max-width: 1400px) {
    .hero-features {
        width: 250px;
        gap: 1.5rem;
    }
}

@media (max-width: 1200px) {
    .section-container {
        padding: 3rem 2rem;
    }

    .connecting-line {
        display: none;
    }

    .hero-visual-wrapper {
        flex-direction: column;
        gap: 2rem;
    }

    .hero-visual {
        order: 1;
        width: 100%;
    }

    .hero-features {
        order: 2;
        width: 100%;
        max-width: 550px;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .feature-card {
        flex: 1 1 220px;
    }

    .bacon-avatar {
        max-width: 480px;
        height: 480px;
    }
}

@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        min-height: auto;
        gap: 2rem;
    }

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

    .bacon-avatar {
        max-width: 400px;
        height: 400px;
    }
    
    .section-container {
        padding: 2rem 1.5rem;
    }

    .ui-container {
        grid-template-columns: 1fr;
    }

    .pricing-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .section-container {
        padding: 2rem 1rem;
    }

    .hero-content {
        padding: 2rem 1.25rem;
    }

    .bacon-avatar {
        max-width: 320px;
        height: 340px;
    }

    .hero-features {
        flex-direction: column;
        gap: 0.8rem;
    }

    .feature-card {
        width: 100%;
    }

    .site-nav {
        display: none;
        /* simple hide for mobile on this demo */
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .step-1,
    .step-2,
    .step-3 {
        grid-column: 1 / 13;
        padding: 1.5rem;
    }

    .step-number {
        font-size: 2.5rem;
    }

    .ui-module {
        padding: 1rem;
    }

    .credits-value {
        font-size: 2rem;
    }
}

/* HOTSPOT TEXT */
.ai-chest-hotspot {
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 3rem;
    font-weight: 800;
    font-family: var(--font-mono);
    pointer-events: none;
    text-shadow: 0px 0px 10px rgba(255, 255, 255, 0.5);
    /* subtle glow to stand out */
}