/* MALUS - Clean Room as a Service */
/* Branding applied from branding folder */

:root {
    /* Branding colors - Malus Corp */
    --primary-black: #1A1A1A;
    --accent-red: #C41E3A;
    --neutral-gray: #E8E8E8;
    --dark-gray: #2D2D2D;
    --light-gray: #F5F5F5;
    
    /* Backgrounds - adapted from branding */
    --bg-base: #FFFFFF;
    --bg-floor: #F8F8F8;
    --bg-panel: #FFFFFF;
    --bg-panel-hover: #F5F5F5;
    --bg-inset: #F8F8F8;
    --bg-surface: #FFFFFF;
    
    /* Steel / aluminum tones - adapted for light theme */
    --steel-dark: #1A1A1A;
    --steel-mid: #2D2D2D;
    --steel-light: #4A4A4A;
    --steel-highlight: #666666;
    
    /* Borders - adapted for light theme */
    --border-dark: #E8E8E8;
    --border-mid: #D0D0D0;
    --border-light: #B8B8B8;
    --border-highlight: #A0A0A0;
    
    /* Brand red - Crimson Red */
    --red-primary: var(--accent-red);
    --red-dark: #A01A2E;
    --red-muted: rgba(196, 30, 58, 0.1);
    
    /* Inspection pass - adapted for light theme */
    --pass-primary: #4A7C4A;
    --pass-muted: rgba(74, 124, 74, 0.1);
    --pass-border: #3A6A3A;
    
    /* Warning amber - adapted */
    --amber-primary: #8B6F3A;
    --amber-muted: rgba(139, 111, 58, 0.1);
    
    /* Text - dark for light background */
    --text-primary: #1A1A1A;
    --text-secondary: #4A4A4A;
    --text-muted: #666666;
    --text-label: #808080;
    
    /* Shadows - tight, not soft */
    --shadow-tight: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-panel: 0 2px 4px rgba(0, 0, 0, 0.25);
    --shadow-inset: inset 0 1px 3px rgba(0, 0, 0, 0.2);
    --shadow-lifted: 0 3px 8px rgba(0, 0, 0, 0.3);
    
    /* Edge highlights - light catching */
    --edge-top: rgba(255, 255, 255, 0.08);
    --edge-left: rgba(255, 255, 255, 0.04);
    --edge-bottom: rgba(0, 0, 0, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Brand typography - Playfair Display for display text */
.display-font,
.logo-text,
.hero h1,
.section-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

/* Background texture - adapted for branding aesthetic */
.bg-texture {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background: linear-gradient(135deg, #FFFFFF 0%, #F8F8F8 100%);
}

/* Subtle gradient overlay from branding */
.bg-texture::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(196, 30, 58, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(26, 26, 26, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* NAVIGATION - control strip */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--bg-base);
    border-bottom: 1px solid var(--neutral-gray);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--primary-black);
}

.highlight {
    color: var(--red-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.15s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.btn-nav {
    background: var(--accent-red);
    padding: 0.5rem 1rem !important;
    border-radius: 4px;
    color: white !important;
    font-weight: 600;
    border: 1px solid var(--accent-red);
    transition: all 0.3s ease;
}

.btn-nav:hover {
    background: #A01A2E;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(196, 30, 58, 0.3);
}

/* INDUSTRIAL CONTROL BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1.25rem;
    border: none;
    border-radius: 1px;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.12s ease;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.btn-primary {
    background: var(--accent-red);
    color: white;
    border: 1px solid var(--accent-red);
    box-shadow: 0 2px 4px rgba(196, 30, 58, 0.2);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #A01A2E;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-inset);
}

.btn-secondary {
    background: var(--bg-panel);
    color: var(--text-primary);
    border: 1px solid var(--neutral-gray);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--light-gray);
    border-color: var(--accent-red);
    color: var(--accent-red);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--neutral-gray);
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--light-gray);
    border-color: var(--accent-red);
    color: var(--accent-red);
}

.btn-large {
    padding: 0.75rem 1.5rem;
    font-size: 0.75rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn-icon {
    font-size: 0.8rem;
}

.btn-arrow {
    transition: transform 0.12s ease;
}

.btn:hover .btn-arrow {
    transform: translateX(2px);
}

/* MALUS BRAND HEADER */
.malus-header {
    height: 20vh;
    min-height: 200px;
    max-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FFFFFF 0%, #F8F8F8 100%);
    position: relative;
    overflow: hidden;
    padding: 2rem;
    margin-top: 60px; /* Account for fixed navbar */
    border-bottom: 1px solid var(--neutral-gray);
}

.malus-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(196, 30, 58, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(26, 26, 26, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.malus-header-content {
    text-align: center;
    z-index: 1;
    position: relative;
    width: 100%;
    max-width: 1200px;
}

.malus-logo {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--primary-black);
    margin-bottom: 0.5rem;
    line-height: 1;
    text-transform: uppercase;
}

.malus-tagline {
    font-size: clamp(0.75rem, 1.5vw, 1rem);
    font-weight: 300;
    letter-spacing: 0.3em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.malus-divider {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-red), transparent);
    margin: 0 auto;
    position: relative;
}

.malus-divider::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: var(--accent-red);
    border-radius: 50%;
}

/* HERO SECTION */
.hero {
    min-height: calc(100vh - 20vh - 60px);
    padding: 4rem 2rem 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

/* LABEL PLATE - etched industrial tag */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-panel);
    border: 1px solid var(--border-dark);
    padding: 0.3rem 0.6rem;
    border-radius: 1px;
    font-size: 0.55rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    box-shadow: var(--shadow-tight);
    /* Notch corners effect */
    clip-path: polygon(
        4px 0, calc(100% - 4px) 0,
        100% 4px, 100% calc(100% - 4px),
        calc(100% - 4px) 100%, 4px 100%,
        0 calc(100% - 4px), 0 4px
    );
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.875rem;
    letter-spacing: -0.02em;
    color: var(--primary-black);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 0.875rem;
    font-weight: 400;
}

.hero-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
    max-width: 480px;
    line-height: 1.65;
}

.hero-cta {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

/* STATS - spec sheet panel */
.hero-stats {
    display: flex;
    gap: 0;
    background: var(--bg-panel);
    border: 1px solid var(--border-mid);
    border-radius: 1px;
    box-shadow: var(--shadow-panel), inset 0 1px 0 var(--edge-top);
    overflow: hidden;
}

.stat {
    padding: 1rem 1.25rem;
    text-align: left;
    border-right: 1px solid var(--border-dark);
    position: relative;
}

.stat:last-child {
    border-right: none;
}

/* Stat label plate */
.stat::before {
    content: attr(data-label);
    position: absolute;
    top: 0.4rem;
    left: 0.5rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.45rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.stat-number {
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    margin-top: 0.5rem;
}

.stat-label {
    font-size: 0.55rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

/* MACHINE PANEL CODE BLOCKS */
.hero-visual {
    display: flex;
    justify-content: center;
}

.transformation-preview {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

/* Code block as powder-coated enclosure */
.code-block {
    background: var(--bg-panel);
    border: 1px solid var(--neutral-gray);
    border-radius: 8px;
    overflow: visible;
    width: 240px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Turd stain overlay on input block */
.input-block {
    overflow: hidden;
}

.turd-stain {
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
    z-index: 10;
    opacity: 0.75;
    mix-blend-mode: multiply;
    transform: rotate(-5deg);
}

.code-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-dark);
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 1px;
    background: var(--steel-mid);
}

.filename {
    margin-left: auto;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.55rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.code-block pre {
    padding: 0.75rem;
    margin: 0;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    line-height: 1.5;
    color: var(--text-secondary);
    background: var(--bg-inset);
}

.code-block code {
    color: var(--text-secondary);
}

/* License status tags */
.license-tag {
    position: absolute;
    padding: 0.15rem 0.4rem;
    border-radius: 1px;
    font-size: 0.5rem;
    font-weight: 600;
    font-family: 'IBM Plex Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.license-tag.apache {
    bottom: 6px;
    left: 6px;
    background: var(--amber-muted);
    color: var(--amber-primary);
    border: 1px solid rgba(168, 134, 58, 0.25);
}

.license-tag.mit {
    bottom: 26px;
    left: 6px;
    background: var(--amber-muted);
    color: var(--amber-primary);
    border: 1px solid rgba(168, 134, 58, 0.25);
}

.license-tag.agpl {
    bottom: 46px;
    left: 6px;
    background: var(--red-muted);
    color: var(--red-primary);
    border: 1px solid rgba(196, 60, 53, 0.25);
}

.license-tag.malus {
    bottom: 6px;
    right: 6px;
    background: var(--pass-muted);
    color: var(--pass-primary);
    border: 1px solid var(--pass-border);
}

.output-block {
    border-color: var(--pass-border);
}

.arrow-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.arrow-svg {
    width: 60px;
    height: 30px;
}

.process-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.5rem;
    text-align: center;
    color: var(--text-muted);
    letter-spacing: 0.12em;
    font-weight: 500;
    text-transform: uppercase;
}

/* SECTION STYLES */
section {
    padding: 4.5rem 0;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: 0.6rem;
    letter-spacing: -0.02em;
    font-weight: 700;
    color: var(--primary-black);
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-red);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* PROBLEMS SECTION */
.problems {
    background: var(--light-gray);
    border-top: 1px solid var(--neutral-gray);
    border-bottom: 1px solid var(--neutral-gray);
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 1.5rem;
}

/* MACHINE HOUSING CARD */
.problem-card {
    background: var(--bg-panel);
    border: 1px solid var(--neutral-gray);
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: relative;
    width: 100%;
    max-width: 100%;
}

.problem-card:hover {
    border-color: var(--accent-red);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Card label plate */
.problem-card::before {
    content: attr(data-id);
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.45rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
}

.problem-icon {
    font-size: 1.1rem;
    padding: 0.875rem 1rem 0.4rem;
    color: var(--steel-light);
}

.problem-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    padding: 0 1rem;
    margin-bottom: 0.4rem;
    color: var(--text-label);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.problem-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.55;
    padding: 0 1rem 1rem;
}

/* SOLUTION SECTION */
.solution-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.solution-text h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    margin-bottom: 0.875rem;
    font-weight: 600;
}

.solution-text p {
    color: var(--text-secondary);
    margin-bottom: 0.875rem;
    line-height: 1.65;
    font-size: 0.95rem;
}

.feature-list {
    list-style: none;
    margin-bottom: 1rem;
    background: var(--bg-panel);
    border: 1px solid var(--border-mid);
    border-radius: 1px;
    padding: 0.4rem;
    box-shadow: var(--shadow-tight), inset 0 1px 0 var(--edge-top);
}

.feature-list li {
    padding: 0.4rem 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border-dark);
}

.feature-list li:last-child {
    border-bottom: none;
}

.check {
    color: var(--pass-primary);
    font-weight: bold;
    font-size: 0.8rem;
}

.disclaimer {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-style: italic;
}

/* PROCESS DIAGRAM */
.diagram-box {
    background: var(--bg-panel);
    border: 1px solid var(--border-mid);
    border-radius: 1px;
    padding: 1.25rem;
    box-shadow: var(--shadow-panel), inset 0 1px 0 var(--edge-top);
    position: relative;
}

.diagram-title {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.55rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 1.25rem;
    letter-spacing: 0.14em;
    font-weight: 500;
    text-transform: uppercase;
    padding-bottom: 0.875rem;
    border-bottom: 1px solid var(--border-dark);
}

.diagram-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin-bottom: 0.6rem;
    flex-wrap: wrap;
}

.diagram-flow.reverse {
    margin-top: 0.6rem;
}

.flow-step {
    background: var(--bg-inset);
    border: 1px solid var(--border-dark);
    border-radius: 1px;
    padding: 0.6rem;
    text-align: center;
    min-width: 75px;
    transition: all 0.12s ease;
}

.flow-step.highlight-step {
    border-color: var(--red-dark);
    background: var(--red-muted);
}

.flow-step.success-step {
    border-color: var(--pass-border);
    background: var(--pass-muted);
}

.step-icon {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    color: var(--steel-light);
}

.step-label {
    font-size: 0.5rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
}

.flow-arrow {
    color: var(--steel-mid);
    font-size: 0.9rem;
    font-weight: bold;
}

.flow-arrow.down {
    position: absolute;
    right: 40px;
}

/* HOW IT WORKS */
.how-it-works {
    background: var(--light-gray);
    border-top: 1px solid var(--neutral-gray);
    border-bottom: 1px solid var(--neutral-gray);
}

.steps-timeline {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.step-card {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 1.25rem;
    background: var(--bg-panel);
    border: 1px solid var(--border-mid);
    border-radius: 1px;
    padding: 1.25rem;
    transition: all 0.12s ease;
    box-shadow: var(--shadow-panel), inset 0 1px 0 var(--edge-top);
    position: relative;
}

/* Step serial number */
.step-card::before {
    content: attr(data-batch);
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.45rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
}

.step-card:hover {
    border-color: var(--border-light);
}

.step-number {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--steel-mid);
    letter-spacing: -0.02em;
}

.step-content h3 {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    margin-bottom: 0.4rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-primary);
}

.step-content p {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.55;
    font-size: 0.9rem;
}

.step-content code {
    background: var(--bg-inset);
    padding: 0.1rem 0.35rem;
    border-radius: 1px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-secondary);
    border: 1px solid var(--border-dark);
}

.step-visual {
    margin-top: 0.6rem;
}

.mini-code {
    background: var(--bg-inset);
    border: 1px solid var(--border-dark);
    border-radius: 1px;
    padding: 0.75rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-secondary);
    overflow-x: auto;
}

.robot-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.4rem;
}

.robot-cell {
    background: var(--bg-inset);
    border: 1px solid var(--border-dark);
    border-radius: 1px;
    padding: 0.6rem;
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.robot-cell small {
    color: var(--text-muted);
    display: block;
    margin-top: 0.2rem;
    font-size: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.firewall-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: var(--bg-inset);
    padding: 1rem;
    border-radius: 1px;
    border: 1px solid var(--border-dark);
}

.fw-side {
    text-align: center;
    padding: 0.6rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.fw-wall {
    background: var(--red-primary);
    padding: 0.75rem 0.875rem;
    border-radius: 1px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 0.12em;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    border: 1px solid var(--red-dark);
}

.license-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

.license-before, .license-after {
    background: var(--bg-inset);
    border-radius: 1px;
    overflow: hidden;
    border: 1px solid var(--border-dark);
}

.license-header {
    padding: 0.5rem;
    text-align: center;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 0.12em;
    font-weight: 600;
    text-transform: uppercase;
}

.license-header.bad {
    background: var(--red-muted);
    color: var(--red-primary);
    border-bottom: 1px solid rgba(196, 60, 53, 0.2);
}

.license-header.good {
    background: var(--pass-muted);
    color: var(--pass-primary);
    border-bottom: 1px solid rgba(106, 125, 106, 0.2);
}

.license-before ul, .license-after ul {
    list-style: none;
    padding: 0.6rem;
}

.license-before li, .license-after li {
    padding: 0.35rem 0;
    font-size: 0.75rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-dark);
}

.license-before li:last-child, .license-after li:last-child {
    border-bottom: none;
}

/* UPLOAD SECTION */
.upload-section {
    background: var(--bg-base);
}

.upload-container {
    max-width: 540px;
    margin: 0 auto 2rem;
}

/* Upload box - inspection window */
.upload-box {
    background: var(--bg-panel);
    border: 2px dashed var(--neutral-gray);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

/* Label plate */
.upload-box::before {
    content: 'INPUT: DROP ZONE';
    position: absolute;
    top: -0.5rem;
    left: 0.875rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.5rem;
    color: var(--text-muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: var(--bg-panel);
    padding: 0 0.4rem;
}

.upload-box:hover, .upload-box.dragover {
    border-color: var(--accent-red);
    background: var(--light-gray);
    border-style: solid;
}

.upload-icon {
    margin-bottom: 1rem;
    opacity: 0.5;
}

.upload-box h3 {
    font-family: 'Inter', sans-serif;
    margin-bottom: 0.4rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.upload-box p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.03em;
}

/* Upload preview - output panel */
.upload-preview {
    background: var(--bg-panel);
    border: 1px solid var(--pass-border);
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
}

.upload-preview::before {
    content: 'OUTPUT: ANALYSIS COMPLETE';
    position: absolute;
    top: -0.5rem;
    left: 0.875rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.5rem;
    color: var(--pass-primary);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: var(--bg-panel);
    padding: 0 0.4rem;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--border-dark);
}

.preview-header h3 {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}

.btn-reset {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.12s ease;
    padding: 0.2rem;
}

.btn-reset:hover {
    color: var(--red-primary);
}

.dependencies-list {
    background: var(--bg-inset);
    border-radius: 1px;
    padding: 0.6rem;
    margin-bottom: 1rem;
    max-height: 160px;
    overflow-y: auto;
    border: 1px solid var(--border-dark);
}

.dep-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0.4rem;
    border-bottom: 1px solid var(--border-dark);
}

.dep-item:last-child {
    border-bottom: none;
}

.dep-name {
    font-family: 'IBM Plex Mono', monospace;
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.dep-license {
    font-size: 0.5rem;
    padding: 0.15rem 0.35rem;
    border-radius: 1px;
    background: var(--amber-muted);
    color: var(--amber-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: 1px solid rgba(168, 134, 58, 0.25);
}

.dep-license.agpl, .dep-license.gpl {
    background: var(--red-muted);
    color: var(--red-primary);
    border-color: rgba(196, 60, 53, 0.25);
}

.quote-summary {
    background: var(--bg-inset);
    border-radius: 1px;
    padding: 0.875rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-dark);
}

.quote-line {
    display: flex;
    justify-content: space-between;
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--border-dark);
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.quote-line:last-child {
    border-bottom: none;
    font-weight: 600;
    color: var(--pass-primary);
    font-size: 0.9rem;
    padding-top: 0.6rem;
    font-family: 'IBM Plex Mono', monospace;
}

.supported-formats {
    text-align: center;
}

.supported-formats h4 {
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.55rem;
}

.format-icons {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.format-badge {
    background: var(--bg-panel);
    border: 1px solid var(--border-dark);
    padding: 0.35rem 0.6rem;
    border-radius: 1px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* PRICING SECTION */
.pricing {
    background: var(--light-gray);
    border-top: 1px solid var(--neutral-gray);
    border-bottom: 1px solid var(--neutral-gray);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Pricing card - specification panel */
.price-card {
    background: var(--bg-panel);
    border: 1px solid var(--neutral-gray);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 100%;
}

.price-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-red);
}

.price-card.featured {
    border-color: var(--accent-red);
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.15);
}

.price-card.featured:hover {
    transform: scale(1.02) translateY(-5px);
    box-shadow: 0 12px 40px rgba(196, 30, 58, 0.2);
}

.featured-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-red);
    padding: 0.3rem 0.875rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.5rem;
    letter-spacing: 0.14em;
    font-weight: 600;
    border-radius: 0 0 4px 4px;
    color: white;
    text-transform: uppercase;
}

.price-header {
    padding: 1.25rem 1.25rem 1rem;
    text-align: center;
    border-bottom: 1px solid var(--border-dark);
    background: var(--bg-surface);
}

.price-header h3 {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.6rem;
    margin-bottom: 0.6rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.price {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.price span {
    font-size: 0.75rem;
    font-weight: normal;
    color: var(--text-muted);
}

.price-body {
    padding: 1.25rem;
}

.price-desc {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    text-align: center;
    font-size: 0.8rem;
}

.price-body ul {
    list-style: none;
    margin-bottom: 1.25rem;
}

.price-body li {
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--border-dark);
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.price-body li:last-child {
    border-bottom: none;
}

.price-body .btn {
    width: 100%;
    justify-content: center;
}

/* Guarantee - certification plate */
.guarantee-box {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: var(--bg-panel);
    border: 1px solid var(--pass-border);
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
}

.guarantee-box::before {
    content: 'CERT: ISO-MC-2024';
    position: absolute;
    top: -0.5rem;
    left: 0.875rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.5rem;
    color: var(--pass-primary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: var(--bg-floor);
    padding: 0 0.4rem;
}

.guarantee-icon {
    font-size: 1.75rem;
    color: var(--pass-primary);
}

.guarantee-text h4 {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.guarantee-text p {
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
    line-height: 1.55;
    font-size: 0.85rem;
}

.guarantee-text small {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.7rem;
}

/* TESTIMONIALS */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

/* Testimonial - inspection report */
.testimonial-card {
    background: var(--bg-panel);
    border: 1px solid var(--neutral-gray);
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: relative;
    width: 100%;
    max-width: 100%;
}

.testimonial-card::before {
    content: 'REPORT: VERIFIED';
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.45rem;
    color: var(--pass-primary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.testimonial-card:hover {
    border-color: var(--accent-red);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.testimonial-content {
    padding: 1.25rem 1rem 0.875rem;
}

.testimonial-content p {
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.6;
    font-size: 0.85rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-dark);
}

.author-avatar {
    font-size: 1.5rem;
    color: var(--steel-mid);
}

.author-info strong {
    display: block;
    margin-bottom: 0.1rem;
    color: var(--text-primary);
    font-size: 0.85rem;
}

.author-info span {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.logos-section {
    text-align: center;
}

.logos-title {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    font-size: 0.75rem;
}

.logo-grid {
    display: flex;
    justify-content: center;
    gap: 0.875rem;
    flex-wrap: wrap;
}

.company-logo {
    background: var(--bg-panel);
    border: 1px solid var(--border-dark);
    padding: 0.6rem 1rem;
    border-radius: 1px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.55rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    font-weight: 500;
    text-transform: uppercase;
}

/* FAQ */
.faq {
    background: var(--light-gray);
    border-top: 1px solid var(--neutral-gray);
    border-bottom: 1px solid var(--neutral-gray);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 1rem;
}

.faq-item {
    background: var(--bg-panel);
    border: 1px solid var(--neutral-gray);
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
}

.faq-item:hover {
    border-color: var(--accent-red);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.faq-item h4 {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.6rem;
    padding: 0.875rem 1rem 0.4rem;
    color: var(--text-label);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.faq-item p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.55;
    padding: 0 1rem 1rem;
}

/* FINAL CTA */
.final-cta {
    background: var(--bg-base);
    text-align: center;
    padding: 5rem 2rem;
    border-top: 1px solid var(--border-dark);
}

.cta-content h2 {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.cta-content p {
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 1.5rem;
    font-size: 0.95rem;
    line-height: 1.55;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.cta-note {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* FOOTER */
.footer {
    background: var(--primary-black);
    border-top: 1px solid var(--neutral-gray);
    padding: 2.5rem 0 1.25rem;
    color: var(--neutral-gray);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand p {
    color: var(--neutral-gray);
    margin: 0.75rem 0;
    font-size: 0.9rem;
}

.footer-tagline {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    color: var(--accent-red);
    text-transform: uppercase;
    margin-top: 1rem;
}

.footer-links h4 {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.55rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
    letter-spacing: 0.14em;
    font-weight: 500;
    text-transform: uppercase;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--neutral-gray);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.12s ease;
}

.footer-links a:hover {
    color: var(--accent-red);
}

.footer-bottom {
    border-top: 1px solid var(--border-dark);
    padding-top: 1.25rem;
    text-align: center;
}

.footer-bottom p {
    color: var(--neutral-gray);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-bottom .disclaimer {
    font-size: 0.75rem;
    max-width: 650px;
    margin: 0 auto;
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 26, 0.85);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-panel);
    border: 1px solid var(--neutral-gray);
    border-radius: 8px;
    padding: 1.75rem;
    max-width: 440px;
    width: 100%;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.modal-content::before {
    content: 'TXN: SECURE CHANNEL';
    position: absolute;
    top: -0.5rem;
    left: 0.875rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.5rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: var(--bg-panel);
    padding: 0 0.4rem;
}

.modal-close {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    transition: color 0.12s ease;
}

.modal-close:hover {
    color: var(--red-primary);
}

.modal-content h2 {
    font-family: 'Inter', sans-serif;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.form-group {
    margin-bottom: 0.875rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--text-muted);
    font-size: 0.6rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.form-group input {
    width: 100%;
    padding: 0.65rem;
    background: var(--bg-inset);
    border: 1px solid var(--border-dark);
    border-radius: 1px;
    color: var(--text-primary);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.85rem;
    transition: border-color 0.12s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--border-mid);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 0.6rem;
}

.checkout-summary {
    background: var(--bg-inset);
    border-radius: 1px;
    padding: 0.875rem;
    margin-bottom: 0.875rem;
    border: 1px solid var(--border-dark);
}

.checkout-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.7rem;
    margin-top: 0.75rem;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .malus-header {
        height: 18vh;
        min-height: 180px;
        padding: 1.5rem 2rem;
    }
    
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-description {
        margin: 0 auto 1.75rem;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .transformation-preview {
        flex-direction: column;
    }
    
    .arrow-flow {
        transform: rotate(90deg);
    }
    
    .solution-main {
        grid-template-columns: 1fr;
    }
    
    .problems-grid,
    .pricing-grid,
    .testimonials-grid,
    .faq-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
        gap: 1.25rem;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .problems-grid,
    .pricing-grid,
    .testimonials-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .malus-header {
        height: 16vh;
        min-height: 160px;
        padding: 1.5rem 1rem;
    }
    
    .malus-logo {
        margin-bottom: 0.4rem;
    }
    
    .malus-tagline {
        margin-bottom: 0.75rem;
    }
    
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .step-card {
        grid-template-columns: 1fr;
    }
    
    .step-number {
        font-size: 1.35rem;
    }
    
    .robot-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .license-comparison {
        grid-template-columns: 1fr;
    }
    
    /* Make all grid sections single column on mobile */
    .problems-grid,
    .pricing-grid,
    .testimonials-grid,
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .price-card {
        width: 100%;
        max-width: 100%;
    }
    
    .price-card.featured {
        transform: none;
    }
    
    .price-card.featured:hover {
        transform: translateY(-2px);
    }
    
    .guarantee-box {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .malus-header {
        height: 15vh;
        min-height: 140px;
        padding: 1rem;
    }
    
    .malus-divider {
        width: 60px;
    }
    
    .problems-grid,
    .pricing-grid,
    .testimonials-grid,
    .faq-grid {
        gap: 0.875rem;
    }
    
    .price-card,
    .problem-card,
    .testimonial-card,
    .faq-item {
        padding: 1rem;
    }
    
    .container {
        padding: 0 1rem;
    }
}

/* SCROLLBAR */
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--neutral-gray);
    border-radius: 1px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--steel-mid);
}

/* SELECTION */
::selection {
    background: var(--accent-red);
    color: white;
}
