/* =========================================================
   VARIABLES & TOKENS
========================================================= */
:root {
    --bg-color: #050505;
    --grid-color: #333333;
    --border-color: #333333;
    
    --text-main: #F2F2F2;
    --text-muted: #888888;
    --text-dim: #444444;
    
    --font-sans: 'Inter Tight', system-ui, sans-serif;
    --font-mono: 'Space Mono', monospace;
    
    --container-width: 1400px; 
    --spacing-section: 16vh;
}

/* =========================================================
   RESET & BASE
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    letter-spacing: -0.01em;
    font-weight: 400;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

ul { list-style: none; }

img, svg { display: block; max-width: 100%; }

/* =========================================================
   UTILITY CLASSES
========================================================= */

.font-mono {
    font-family: var(--font-mono);
    letter-spacing: -0.02em;
}

.text-muted { color: var(--text-muted); }
.text-white { color: #FFFFFF; }
.text-center { text-align: center; }

/* Section Markers (01 // LABELS) */
.section-marker {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    width: 100%;
}

/* =========================================================
   ARCHITECTURAL BACKGROUND LAYERS
========================================================= */

/* The Blueprint Grid */
.bg-grid {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    pointer-events: none;
    background-image: 
        linear-gradient(rgba(51,51,51,0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(51,51,51,0.3) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.25; /* Subtler opacity */
}

/* Vertical Registration Line */
.guide-line {
    position: fixed;
    z-index: 0;
    pointer-events: none;
}
.guide-line.vertical-left {
    width: 0;
    height: 100%;
    left: 40px; 
    top: 0;
    border-right: 1px dashed rgba(255,255,255,0.15);
}

/* Corner Brackets */
.corner-bracket {
    position: fixed;
    width: 20px;
    height: 20px;
    border-color: rgba(255,255,255,0.3);
    border-style: solid;
    z-index: 10;
    pointer-events: none;
}
.top-left { top: 30px; left: 30px; border-width: 2px 0 0 2px; }
.top-right { top: 30px; right: 30px; border-width: 2px 2px 0 0; }
.bottom-left { bottom: 30px; left: 30px; border-width: 0 0 2px 2px; }
.bottom-right { bottom: 30px; right: 30px; border-width: 0 2px 2px 0; }

/* =========================================================
   CONTAINER & LAYOUT
========================================================= */

.site-wrapper {
    max-width: var(--container-width);
    width: 100%;
    margin: 0 auto;
    padding: 0 60px 0 100px; 
    position: relative;
    z-index: 1;
}

/* =========================================================
   HEADER
========================================================= */

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 0;
}

.logo-link {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 20;
}

.main-nav ul {
    display: flex;
    gap: 32px;
}

.main-nav a {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    transition: color 0.2s ease;
    opacity: 0.8; /* Slight boost to visibility */
}

.main-nav a:hover {
    color: var(--text-main);
    opacity: 1;
}

/* =========================================================
   HERO SECTION (MOCKUP STYLES)
========================================================= */

.hero-section {
    padding: 12vh 0 12vh;
}

.split-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr; 
    gap: 80px;
    align-items: center;
}

.meta-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
    margin-left: -2px;
}

/* Massive Narrative Typography */
.hero-section h1 {
    font-family: var(--font-sans);
    font-size: 5.5rem; 
    font-weight: 600;
    /* Increased line-height slightly for elegance */
    line-height: 1.05; 
    letter-spacing: -0.04em;
    margin-bottom: 2.5rem;
    color: #FFF;
}

/* Make the Ampersand a Structural Joint */
.ampersand {
	font-family: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", "DejaVu Sans", Verdana, sans-serif; /* Serif contrast looks more engineered */
	font-style: normal;
	color: #4F4F4F; /* Dark Grey - distinct from text */
	font-weight: 400;
	font-size: 0.9em; /* Slightly smaller optically */
	display: block; /* Ensures it sits on its line but controls spacing */
	margin: -10px 0; /* Pulls the lines closer together around it */
}

.subtitle-elevated {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 1.25rem;
    line-height: 1.6;
    color: #CCCCCC;
    max-width: 55ch;
    margin-bottom: 3.5rem;
}

/* The Vertical Qualifier Bar */
.qualifier-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.qualifier-bar {
    width: 2px;
    height: 36px;
    background-color: #FFF;
}

.qualifier-text {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #888;
    max-width: 42ch;
    line-height: 1.4;
}

/* Visual Split Container */
.hero-visual-split {
    position: relative;
    display: flex;
    height: 550px;
    width: 100%;
    align-items: center;
    justify-content: center;
}

/* Each Half of the Image */
.visual-half {
    width: 50%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* VISUAL BLENDING */
.hero-visual-split {
    /* Add a fading mask to the top and bottom of the container */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
}

.visual-half img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Fix the Wireframe Visibility */
.cad-side img {
    object-position: left center;
    /* Boost brightness so the thin lines pop against the black */
    filter: brightness(1.3) contrast(1.1); 
    opacity: 0.9;
}

/* Interactive Hover Effect (Optional but cool) */
.hero-visual-split:hover .visual-half img {
    transform: scale(1.02); /* Subtle zoom on hover */
}

/* Sketch Adjustment */
.sketch-side img {
    object-position: right center;
    filter: invert(1) grayscale(1) brightness(0.8); /* Inverts white paper to black */
}

/* Wireframe Adjustment */
.cad-side img {
    object-position: left center;
}

/* The Center Split Line */
.split-line {
    position: absolute;
    left: 50%;
    top: 5%;
    bottom: 5%;
    width: 1px;
    background: rgba(255,255,255,0.2);
    z-index: 5;
}

/* =========================================================
   BUTTONS / CTAS
========================================================= */

/* The White Block Button */
.button-block {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    background: #FFF;
    color: #000;
    padding: 24px 48px;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    min-width: 280px;
    transition: transform 0.2s cubic-bezier(0.2, 0, 0.2, 1);
    cursor: pointer;
}

.button-block:hover {
    background: #F2F2F2;
    transform: translateY(-2px);
	font-size: 0.9rem; /* Slightly smaller text makes the box feel bigger/heavier */
    letter-spacing: 0.08em; /* Wider tracking = more premium */
    font-weight: 700;
}

.mono-dash {
    font-family: var(--font-mono);
    color: #888; /* Grey dashes, not black */
    letter-spacing: -2px; /* Connect the dashes slightly */
}

/* Standard Outline Button */
.button-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    background: transparent;
    transition: all 0.2s ease;
}

.button-outline:hover {
    border-color: var(--text-main);
    background: rgba(255,255,255,0.05);
}

/* Standard Solid Button (Fallback) */
.button-solid {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    background: #FFF;
    color: #000;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
}

.button-solid.large { padding: 18px 42px; font-size: 1rem; }
.button-solid:hover { background: #D4D4D4; }

/* =========================================================
   SECTIONS & TYPOGRAPHY
========================================================= */

section {
    padding: var(--spacing-section) 0;
}

/* Narrow content for text-heavy sections */
.content-narrow {
    max-width: 800px;
}

h2 {
    font-family: var(--font-sans);
    font-size: 2.5rem;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

h2 span.text-white { color: #FFF; }

.text-block p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.text-block strong { color: var(--text-main); font-weight: 700; }

/* =========================================================
   ROLE GRID
========================================================= */

.section-header {
    margin-bottom: 4rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}
.section-header h2 { font-size: 0.9rem; margin: 0 0 0.5rem 0; letter-spacing: 0.1em; text-transform: uppercase; }
.section-header h3 { font-size: 2rem; color: var(--text-main); margin: 0; }

.role-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.role-column {
    padding: 0 30px;
}

.role-column.border-left {
    border-left: 1px solid var(--border-color);
}
.role-column:first-child {
    border-left: none;
    padding-left: 0;
}

.role-column h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.role-column ul li {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    padding-left: 1rem;
    position: relative;
}
.role-column ul li::before {
    content: "+";
    position: absolute;
    left: 0;
    color: var(--text-dim);
    font-size: 0.8rem;
}

/* =========================================================
   SYSTEM STACK
========================================================= */

.system-stack {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border-color);
}

.stack-tier {
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
    display: grid;
    grid-template-columns: 200px 1fr 1fr;
    align-items: baseline;
    transition: background 0.2s ease;
}

.stack-tier:hover {
    background: rgba(255,255,255,0.03);
}

.tier-header {
    display: flex;
    flex-direction: column;
}

.tier-label {
    font-size: 0.75rem;
    color: var(--text-main);
    font-weight: 700;
}
.tier-status {
    font-size: 0.65rem;
    color: var(--text-dim);
    margin-top: 4px;
}

.stack-tier h3 {
    font-family: var(--font-sans);
    font-size: 1.5rem;
    color: var(--text-main);
}

.system-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding-top: 1rem;
}

.link-arrow {
    font-size: 0.9rem;
    border-bottom: 1px solid var(--text-muted);
    padding-bottom: 2px;
}
.link-arrow:hover { border-bottom-color: #FFF; }

/* =========================================================
   PROOF (Boxed)
========================================================= */

.border-box {
    border: 1px solid var(--border-color);
    padding: 4rem;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.05), transparent 40%);
}

.proof-statement {
    font-family: var(--font-sans);
    font-size: 1.8rem;
    line-height: 1.4;
    color: var(--text-main);
    max-width: 30ch;
}

/* =========================================================
   READINESS (CTA Box)
========================================================= */

.readiness-section .cta-box {
    background: var(--grid-color);
    padding: 4rem;
    border-left: 4px solid var(--text-main);
}

.h3-style {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #FFF;
}

.readiness-section p {
    margin-bottom: 2rem;
    max-width: 60ch;
}

/* =========================================================
   FINAL CTA & FOOTER
========================================================= */

.final-cta-section h2 {
    font-size: 3rem;
    color: #FFF;
    margin-bottom: 3rem;
}

.site-footer {
    padding: 40px 0;
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-dim);
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {
    /* Reset Grid */
    .bg-grid { background-size: 40px 40px; }
    .guide-line.vertical-left { display: none; }
    .corner-bracket { display: none; }

    .site-wrapper { padding: 0 24px; }

    /* Stack Split Hero */
    .split-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-section h1 { font-size: 3.5rem; }
    
    /* On Mobile, stack the visual halves vertically or hide one */
    .hero-visual-split { height: 300px; order: -1; }
    .split-line { width: 100%; height: 1px; top: 50%; left: 0; }

    /* Stack Role Grid */
    .role-grid { grid-template-columns: 1fr; }
    .role-column { padding: 20px 0; }
    .role-column.border-left { border-left: none; border-bottom: 1px solid var(--border-color); }

    /* Stack System Tiers */
    .stack-tier { grid-template-columns: 1fr; gap: 10px; }
    .tier-header { flex-direction: row; gap: 10px; margin-bottom: 5px; }
    
    .system-footer { flex-direction: column; align-items: flex-start; gap: 20px; }
    .footer-content { flex-direction: column; gap: 20px; align-items: flex-start; }

    .border-box, .readiness-section .cta-box { padding: 2rem; }
    .proof-statement { font-size: 1.3rem; }
    
    .main-nav { display: none; }
}
/* =========================================================
   DIAGNOSTIC FORM STYLES (Industrial Look)
========================================================= */

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: #050505; /* Matches body background */
    text-align: left;
    /* Re-using the border-box style from Proof section */
    border: 1px solid var(--border-color);
    padding: 3rem;
}

.diagnostic-form {
    margin-bottom: 1.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group.full-width {
    grid-column: span 2;
}

/* LABELS: Technical Monospace Look */
.form-group label {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* INPUTS: Transparent, White Border on Focus */
.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255,255,255,0.03);
    border: 1px solid #333;
    color: #FFF;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    padding: 12px 16px;
    border-radius: 0; /* Sharp edges */
    transition: all 0.2s ease;
    width: 100%;
}

.form-group textarea {
    resize: vertical; /* Allow vertical resizing only */
}

/* Focus State: The "Glow" */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #FFF;
    background: rgba(255,255,255,0.08);
}

/* Placeholder Text Color */
::placeholder {
    color: #555;
    opacity: 1;
}

/* Submit Button Adjustment */
.full-width-btn {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
}

/* Mobile Responsiveness for Form */
@media (max-width: 700px) {
    .form-container {
        padding: 1.5rem;
        border-left: none; 
        border-right: none;
    }
    
    .form-grid {
        grid-template-columns: 1fr; /* Stack inputs vertically */
        gap: 1rem;
    }
    
    .form-group.full-width {
        grid-column: span 1;
    }
}