:root {
    /* Colors - Light Industrial Platinum */
    --bg-light: #E5E4E2;
    --bg-panel: #F0F0F0;
    --bg-accent: #D4D4D4;
    --text-primary: #1A1A1A;
    --text-secondary: #555555;
    --accent-green: #009926;
    --accent-amber: #CC8800;
    --border-color: #CCCCCC;

    /* Typography */
    --font-heading: 'Courier New', Courier, monospace;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    /* Spacing */
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;

    /* Misc */
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* ============================
   BASE RESET
   ============================ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

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

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

a:hover {
    color: var(--accent-green);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* ============================
   UTILITIES
   ============================ */
.text-green {
    color: var(--accent-green);
}

.text-amber {
    color: var(--accent-amber);
}

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

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

.mono {
    font-family: var(--font-heading);
}

.uppercase {
    text-transform: uppercase;
}

/* ============================
   BUTTONS
   ============================ */
.btn {
    display: inline-block;
    padding: var(--spacing-md) var(--spacing-lg);
    background: #1A1A1A;
    border: 1px solid #1A1A1A;
    color: #FFFFFF;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 4px;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.btn:hover {
    background: #333333;
    border-color: #333333;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: #1A1A1A;
}

.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.08) 50%, transparent 70%);
    animation: btnShine 3s infinite;
}

@keyframes btnShine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

.btn-full {
    width: 100%;
    text-align: center;
}

/* ============================
   GRID BACKGROUND
   ============================ */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(200, 200, 200, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(200, 200, 200, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
    pointer-events: none;
}

/* ============================
   HEADER
   ============================ */
header {
    background: rgba(229, 228, 226, 0.95);
    border-bottom: 1px solid var(--border-color);
    padding: var(--spacing-md) 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
}

nav a {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-primary);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ============================
   HERO — FULL SCREEN
   ============================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
    /* account for fixed header */
}

#living-core {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.4;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.05;
    margin-bottom: var(--spacing-lg);
    font-weight: 700;
    letter-spacing: 1px;
}

.hero-sub {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    max-width: 700px;
    line-height: 1.7;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: var(--accent-green);
    margin-bottom: var(--spacing-md);
    background: rgba(0, 153, 38, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: blink 2s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-text {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: var(--text-secondary);
}

.scroll-chevron {
    animation: scrollBounce 2s infinite;
    color: var(--text-secondary);
}

@keyframes scrollBounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(8px);
    }

    60% {
        transform: translateY(4px);
    }
}

/* ============================
   SECTION HEADERS
   ============================ */
.section-header {
    margin-bottom: var(--spacing-lg);
    font-size: 1.25rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: var(--spacing-sm);
    display: inline-block;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: -0.5rem;
    margin-bottom: var(--spacing-lg);
    max-width: 600px;
}

/* ============================
   BLOCK LAYOUT SYSTEM
   ============================ */
.block-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    padding-top: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
}

.block-section {
    background: #EAEAEA;
    border: 1px solid var(--border-color);
    padding: var(--spacing-xl) var(--spacing-lg);
    border-radius: var(--border-radius);
    transition: box-shadow 0.4s ease;
}

.block-section:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

/* ============================
   SERVICES GRID
   ============================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.service-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    transition: var(--transition);
    height: 100%;
}

.service-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transform: translateY(-5px);
    border-color: #BBBBBB;
}

.service-icon-wrap {
    margin-bottom: var(--spacing-md);
}

.service-icon {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: bold;
    font-size: 0.9rem;
    display: block;
    text-transform: uppercase;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ============================
   SPLIT GRID (Row 2)
   ============================ */
.split-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--spacing-lg);
}

/* Case Study / Deployment Log */
.case-study-content {
    display: flex;
    flex-direction: row;
    background: #FFF;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.case-visual {
    flex: 1;
    padding: 0;
    display: flex;
    align-items: stretch;
}

.case-details {
    flex: 1;
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.case-details h3 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.case-sector {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: var(--accent-green);
    margin-bottom: var(--spacing-md);
}

.case-details .description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.text-link {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-primary);
    font-weight: bold;
    margin-top: auto;
    padding-top: var(--spacing-sm);
}

.text-link:hover {
    color: var(--accent-green);
}

/* Terminal Mockup */
.terminal-mockup {
    width: 100%;
    background: #1a1a1a;
    display: flex;
    flex-direction: column;
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: #2a2a2a;
    border-bottom: 1px solid #333;
}

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

.terminal-dot.red {
    background: #ff5f57;
}

.terminal-dot.yellow {
    background: #febc2e;
}

.terminal-dot.green {
    background: #28c840;
}

.terminal-title {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    color: #888;
    margin-left: 8px;
}

.terminal-body {
    padding: 16px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: #ccc;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.terminal-line {
    display: flex;
    gap: 8px;
}

.t-green {
    color: var(--accent-green);
}

.t-dim {
    color: #666;
}

/* Protocol Section */
#protocol {
    display: flex;
    flex-direction: column;
}

.protocol-content {
    background: #FFF;
    padding: var(--spacing-lg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    flex-grow: 1;
}

.protocol-lead {
    font-size: 1rem;
    margin-bottom: var(--spacing-md);
}

.protocol-content>p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.protocol-list {
    list-style: none;
    margin: var(--spacing-md) 0;
    padding: 0;
}

.protocol-list li {
    font-size: 0.85rem;
    padding: 0.4rem 0 0.4rem 1.2rem;
    position: relative;
    color: var(--text-secondary);
}

.protocol-list li::before {
    content: "›";
    position: absolute;
    left: 0;
    color: var(--accent-green);
    font-weight: bold;
}

.protocol-guarantee {
    font-family: var(--font-heading);
    font-weight: bold;
    color: var(--text-primary) !important;
    margin-top: var(--spacing-md);
    font-size: 0.9rem;
}

/* ============================
   SCROLL REVEAL ANIMATIONS
   ============================ */
.reveal-block {
    opacity: 0;
    transform: translateY(60px) scale(0.98);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-block.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Stagger children */
.split-grid .reveal-block:nth-child(2) {
    transition-delay: 0.15s;
}

/* ============================
   MODAL OVERLAY SYSTEM
   ============================ */
.modal-overlay {
    display: none;
    position: fixed;
    z-index: 5000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* ============================
   PRICING MODAL
   ============================ */
.pricing-modal-panel {
    position: relative;
    z-index: 5001;
    background: #F5F5F5;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: var(--spacing-xl);
    max-width: 1100px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-secondary);
    line-height: 1;
    transition: color 0.2s;
    z-index: 10;
}

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

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

.pricing-modal-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: var(--spacing-xl);
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    align-items: stretch;
}

.pricing-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-color: #999;
}

.pricing-card.featured {
    border: 2px solid var(--text-primary);
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured:hover {
    transform: scale(1.03);
}

.card-ribbon {
    position: absolute;
    top: 12px;
    right: -30px;
    background: var(--accent-green);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.6rem;
    font-weight: bold;
    padding: 4px 36px;
    transform: rotate(45deg);
    letter-spacing: 1px;
}

.card-header {
    margin-bottom: var(--spacing-md);
    border-bottom: 2px solid #F0F0F0;
    padding-bottom: var(--spacing-sm);
}

.card-header h3 {
    font-size: 1.25rem;
    margin-bottom: 0.2rem;
}

.badge {
    font-size: 0.75rem;
    font-family: var(--font-heading);
    color: var(--text-secondary);
    text-transform: uppercase;
}

.card-body .description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    min-height: 3rem;
}

.features {
    list-style: none;
    margin-bottom: var(--spacing-lg);
}

.features li {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    padding-left: 1.2rem;
    position: relative;
}

.features li::before {
    content: "›";
    position: absolute;
    left: 0;
    color: var(--accent-green);
    font-weight: bold;
}

.features li.highlight {
    font-weight: bold;
    color: var(--text-primary);
}

/* ============================
   CAPTURE MODAL
   ============================ */
.capture-modal-panel {
    position: relative;
    z-index: 5001;
    background: #FFFFFF;
    border: 1px solid var(--text-primary);
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-header {
    background: #F0F0F0;
    padding: var(--spacing-md) var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1rem;
}

.modal-header .modal-close-btn {
    position: static;
    font-size: 1.5rem;
}

.modal-body {
    padding: var(--spacing-lg);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    background: #FAFAFA;
    transition: border-color 0.2s, background 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--text-primary);
    background: #FFFFFF;
}

/* Radio Group */
.radio-group {
    display: flex;
    gap: 0.5rem;
}

.radio-box {
    flex: 1;
    position: relative;
    cursor: pointer;
}

.radio-box input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-box span {
    display: block;
    text-align: center;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--text-secondary);
    transition: var(--transition);
}

.radio-box input:checked+span {
    background: var(--text-primary);
    color: #FFFFFF;
    border-color: var(--text-primary);
}

/* Status Message */
.status-message {
    margin-top: var(--spacing-md);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    text-align: center;
    min-height: 1rem;
}

.status-message.success {
    color: var(--accent-green);
}

.status-message.error {
    color: #D00;
}

/* ============================
   FOOTER
   ============================ */
footer {
    padding: var(--spacing-xl) 0;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: #E5E4E2;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-col h4 {
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-md);
    letter-spacing: 1px;
}

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

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

.footer-col a:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

.copyright {
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 900px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .services-grid,
    .pricing-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .case-study-content {
        flex-direction: column;
    }

    .case-visual {
        border-right: none;
    }

    nav {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    nav.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-light);
        padding: var(--spacing-md);
        border-bottom: 1px solid var(--border-color);
    }

    nav ul {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .pricing-modal-panel {
        width: 98%;
        padding: var(--spacing-lg) var(--spacing-md);
    }

    .pricing-card.featured {
        transform: none;
    }
}