:root {
    --bg-color: #05010a;
    --text-main: #e0d8f0;
    --text-muted: #a090c0;
    --accent-purple: #9d4edd;
    --accent-neon: #c77dff;
    --glass-bg: rgba(20, 10, 40, 0.4);
    --glass-border: rgba(157, 78, 221, 0.3);
    
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

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

/* Background Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none; /* Let clicks pass through */
}

/* Glassmorphism Utilities */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem;
    transition: all 0.4s ease;
}

.glass-card:hover {
    box-shadow: 0 0 25px rgba(157, 78, 221, 0.2);
    border-color: rgba(199, 125, 255, 0.5);
    background: rgba(30, 15, 60, 0.5);
}

.glass-image-placeholder {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px dashed var(--glass-border);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    color: var(--text-muted);
    font-family: var(--font-heading);
    letter-spacing: 2px;
    transition: all 0.4s ease;
}

.glass-image-placeholder:hover {
    box-shadow: 0 0 30px rgba(199, 125, 255, 0.3);
    border-color: var(--accent-neon);
}

.prototype-btn-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.glass-btn {
    display: inline-block;
    padding: 20px 50px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    color: var(--text-main);
    font-family: var(--font-heading);
    font-size: 1.3rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    transition: all 0.4s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.glass-btn:hover {
    box-shadow: 0 0 30px rgba(199, 125, 255, 0.4);
    border-color: var(--accent-neon);
    background: rgba(30, 15, 60, 0.7);
    color: #fff;
    transform: translateY(-3px);
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    text-transform: uppercase;
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 3rem;
    text-align: left;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.glow-text {
    font-size: 4.5rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 10px rgba(199, 125, 255, 0.8), 0 0 20px rgba(157, 78, 221, 0.6);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.glow-text-subtle {
    color: var(--accent-neon);
    text-shadow: 0 0 8px rgba(199, 125, 255, 0.4);
}

.highlight {
    color: var(--accent-neon);
    font-weight: 600;
}

/* Layout */
.scroll-container {
    width: 100%;
}

.panel {
    width: 100vw;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 5%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.content {
    width: 100%;
    max-width: 1200px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.grid-2-asym {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Hero Section Specifics */
.hero-content {
    text-align: center;
    padding: 5rem 3rem;
}
.hero-content .subtitle {
    font-size: 1.5rem;
    color: var(--accent-neon);
    margin-bottom: 2rem;
    font-weight: 300;
}
.hero-content .divider {
    width: 60px;
    height: 4px;
    background: var(--accent-purple);
    margin: 0 auto 2rem auto;
    border-radius: 2px;
}
.hero-content .partners {
    font-size: 1.5rem;
    letter-spacing: 2px;
    font-weight: 500;
}

/* Architects Section */
.profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.avatar-placeholder, .avatar-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed var(--glass-border);
    margin-bottom: 2rem;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s;
}
.avatar-image {
    border-style: solid;
    object-fit: cover;
}
.avatar-placeholder::after {
    content: '';
    width: 50px;
    height: 50px;
    background-color: var(--text-muted);
    mask: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12 12C14.21 12 16 10.21 16 8C16 5.79 14.21 4 12 4C9.79 4 8 5.79 8 8C8 10.21 9.79 12 12 12ZM12 14C9.33 14 4 15.34 4 18V20H20V18C20 15.34 14.67 14 12 14Z" fill="currentColor"/></svg>') no-repeat center;
    -webkit-mask: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12 12C14.21 12 16 10.21 16 8C16 5.79 14.21 4 12 4C9.79 4 8 5.79 8 8C8 10.21 9.79 12 12 12ZM12 14C9.33 14 4 15.34 4 18V20H20V18C20 15.34 14.67 14 12 14Z" fill="currentColor"/></svg>') no-repeat center;
}

.profile-card:hover .avatar-placeholder,
.profile-card:hover .avatar-image {
    border-color: var(--accent-neon);
    box-shadow: 0 0 20px rgba(199, 125, 255, 0.4);
}
.profile-card .name {
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}
.profile-card p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* DNA Section */
.dna-content {
    text-align: center;
    padding: 6rem 4rem;
}
.dna-content blockquote {
    font-size: 2.2rem;
    line-height: 1.5;
    font-weight: 300;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}
.quote-mark {
    color: var(--accent-purple);
    font-weight: 900;
    font-family: var(--font-heading);
    opacity: 0.5;
}
.dna-content .author {
    font-family: var(--font-heading);
    color: var(--accent-neon);
    letter-spacing: 3px;
    font-size: 1rem;
}

/* Solutions Sections */
.solution .text-block ul {
    list-style: none;
}
.solution .text-block ul li {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    position: relative;
    color: var(--text-muted);
}
.solution .text-block ul li::before {
    content: '▶';
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--accent-purple);
    font-size: 1rem;
}
.solution .text-block ul li strong {
    color: var(--text-main);
}
.block-subtitle {
    font-size: 1.5rem;
    color: var(--accent-neon);
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}
.mt-4 {
    margin-top: 2.5rem;
}
.solution .text-block p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* Workflow Container (Section 5) */
.workflow-container {
    position: relative;
    width: 100%;
    height: 500px; /* Explicit height is required for percentage positions */
}

.workflow-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none; /* Let clicks pass through */
}

.workflow-grid {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
}

.workflow-node {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 50px; /* Eliptyczny kształt */
    width: 160px;
    height: 100px;
    transition: all 0.3s ease;
    position: absolute;
    transform: translate(-50%, -50%); /* Środkowanie względem podanego top/left */
}

.workflow-node .node-icon {
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
}

.workflow-node .node-label {
    font-size: 0.75rem;
    font-family: var(--font-heading);
    color: var(--text-main);
    letter-spacing: 1px;
}

/* Pozycjonowanie organiczne (procentowe) */
#node-audio {
    top: 10%;
    left: 8%;
}

#node-whisper {
    top: 25%;
    left: 33%;
}

#node-json-1 {
    top: 40%;
    left: 58%;
}

#node-agents {
    top: 90%;
    left: 20%;
}

#node-json-2 {
    top: 75%;
    left: 55%;
}

#node-crm {
    top: 55%;
    left: 85%;
    box-shadow: 0 0 15px var(--accent-purple);
    border-color: var(--accent-neon);
    width: 170px;
    height: 110px;
}

/* ROI Calculator */
.roi-calculator {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.calculator-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.roi-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.roi-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-body);
    font-size: 0.95rem;
}

/* Number Input Styling */
.roi-val-input {
    background: rgba(20, 10, 40, 0.6);
    border: 1px solid var(--accent-purple);
    color: var(--accent-neon);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    width: 100px;
    text-align: right;
    outline: none;
    transition: all 0.3s ease;
}

.roi-val-input:focus {
    box-shadow: 0 0 10px rgba(199, 125, 255, 0.5);
    border-color: var(--accent-neon);
}

/* Usuwamy domyślne strzałki w input number dla lepszego designu (Chrome/Safari/Edge/Opera) */
.roi-val-input::-webkit-outer-spin-button,
.roi-val-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
.roi-val-input[type=number] {
  -moz-appearance: textfield;
}

/* Results */
.roi-results {
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.roi-result-box {
    text-align: center;
}

.roi-result-box h4 {
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.roi-number {
    font-size: 2.2rem;
    font-family: var(--font-heading);
    font-weight: 700;
}

.roi-number-ev {
    font-size: 2.8rem;
    font-family: var(--font-heading);
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 10px rgba(199, 125, 255, 0.8), 0 0 20px rgba(157, 78, 221, 0.6);
}

.highlight-box {
    background: rgba(157, 78, 221, 0.1);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(199, 125, 255, 0.3);
}

/* Responsive */
@media (max-width: 992px) {
    .grid-2, .grid-2-asym {
        grid-template-columns: 1fr;
    }
    .prototype-btn-container {
        min-height: auto;
        padding: 2rem 0;
    }
    .glow-text {
        font-size: 3rem;
    }
    .section-title {
        font-size: 2rem;
        text-align: center;
    }
    .panel {
        padding: 4rem 5%;
    }
}

@media (max-width: 576px) {
    /* Wyłączenie scroll-snappingu na mobilkach */
    html {
        scroll-snap-type: none;
    }
    .panel {
        scroll-snap-align: none;
        min-height: auto;
    }

    /* Typografia główna */
    .glow-text {
        font-size: 2.2rem;
    }
    .section-title {
        font-size: 1.5rem;
    }
    
    /* Odstępy i paddingi */
    .panel {
        padding: 3rem 1rem;
    }
    .glass-card {
        padding: 1.5rem;
    }

    /* Kalkulator ROI */
    .roi-label-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .roi-val-input {
        width: 100%;
        text-align: left;
    }
    .roi-number {
        font-size: 2rem;
    }
    .roi-number-ev {
        font-size: 2.5rem;
    }

    .mobile-break {
        display: block;
    }

    /* Node Network (Pionowo na mobile) */
    .workflow-container {
        height: auto;
    }
    .workflow-svg {
        display: none !important;
    }
    .workflow-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        position: static;
        width: 100%;
        height: auto;
    }
    .workflow-node {
        position: static !important;
        transform: none !important;
        width: 80%;
        font-size: 0.9rem;
        padding: 1rem;
    }
    
    #node-audio { order: 1; }
    #node-whisper { order: 2; }
    #node-json-1 { order: 3; }
    #node-crm { order: 4; }
    #node-agents { order: 5; }
    #node-json-2 { order: 6; }
}
