:root {
    --bg-dark: #0A0A0A;
    --bg-surface: #121212;
    --bg-card: #1A1A1A;
    --border-color: #2A2A2A;
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0A0;
    --text-muted: #666666;
    --accent-orange: #F28C28;
    /* Orange from logo */
    --accent-glow: rgba(242, 140, 40, 0.2);
    --accent-purple: #8E44AD;
    /* Purple from logo */

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: 'Fira Code', 'Roboto Mono', Consolas, Monaco, monospace;
}

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

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

/* Grid Background */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.mono {
    font-family: var(--font-mono);
    font-size: 0.9em;
    letter-spacing: -0.01em;
}

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

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

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

.section {
    padding: 8rem 0;
}

.section-label {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    display: block;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    max-width: 800px;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin-bottom: 4rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(10, 10, 10, 0.8);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
}

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

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-orange);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-glow);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(242, 140, 40, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(242, 140, 40, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(242, 140, 40, 0);
    }
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

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

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-only {
    display: none !important;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
    position: relative;
}

.hero-content {
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid var(--accent-purple);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-purple);
    margin-bottom: 2rem;
    background: rgba(142, 68, 173, 0.05);
    box-shadow: 0 4px 15px rgba(142, 68, 173, 0.25);
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: var(--font-mono);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-purple), #6C3483);
    color: var(--text-primary);
    border: 1px solid rgba(142, 68, 173, 0.5);
    box-shadow: 0 4px 15px rgba(142, 68, 173, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #9B59B6, #76448A);
    box-shadow: 0 6px 20px rgba(142, 68, 173, 0.4);
    border-color: var(--accent-purple);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--accent-orange);
    color: var(--accent-orange);
}

.cta-group {
    display: flex;
    gap: 1rem;
}

/* Capabilities Grid */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 8px;
    transition: transform 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-orange), var(--accent-purple));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: #444;
}

.card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    margin-bottom: 1.5rem;
    color: var(--accent-purple);
}

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

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

/* Architecture Visual */
.arch-visual {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.arch-diagram {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    max-width: 800px;
}

.arch-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.arch-node {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    flex: 1;
    position: relative;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: border-color 0.3s ease;
}

.arch-node:hover {
    border-color: var(--accent-purple);
    color: var(--text-primary);
}

.arch-node.core {
    border-color: var(--text-primary);
    color: var(--text-primary);
    flex: 2;
    animation: floatGlow 4s ease-in-out infinite;
}

@keyframes floatGlow {

    0%,
    100% {
        transform: translateY(0);
        box-shadow: 0 0 0 rgba(142, 68, 173, 0);
    }

    50% {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(142, 68, 173, 0.15);
    }
}

/* Tech Stack */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1.5rem;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.tech-item:hover {
    color: var(--text-primary);
    border-color: var(--accent-purple);
    background: var(--bg-surface);
}

.tech-item svg {
    width: 32px;
    height: 32px;
    margin-bottom: 1rem;
    fill: currentColor;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    background: var(--bg-dark);
}

.footer-content {
    padding-top: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-brand {
    max-width: 300px;
}

.footer-col h4 {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.footer-col p,
.footer-col a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    display: block;
}

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

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Responsive */

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.1s ease-out, visibility 0.1s ease-out;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    position: relative;
    transform: translateY(10px) scale(0.98);
    opacity: 0;
    transition: transform 0.1s ease-out, opacity 0.1s ease-out;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal-close {
    position: sticky;
    top: -1rem;
    float: right;
    margin-top: -1.5rem;
    margin-right: -1.5rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    color: var(--text-primary);
    border-color: var(--accent-orange);
    box-shadow: 0 0 10px rgba(242, 140, 40, 0.2);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-family: var(--font-mono);
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.form-group label::after {
    content: " *";
    color: #ff4d4f;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 2px rgba(142, 68, 173, 0.2);
}

textarea.form-control {
    resize: vertical;
}

/* Custom Select Dropdown */
.custom-select-value {
    color: var(--text-secondary);
}

.form-message {
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 1rem;
    padding: 0.8rem;
    border-radius: var(--radius-sm, 6px);
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
    border: 1px solid rgba(39, 174, 96, 0.2);
}

.form-message.error {
    display: block;
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.custom-select-hidden-input {
    opacity: 0;
    height: 0;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    pointer-events: none;
    z-index: -1;
}

.custom-select {
    position: relative;
    width: 100%;
}

.custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}

.custom-select-icon {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.3s ease;
}

.custom-select.open .custom-select-icon {
    transform: rotate(180deg);
}

.custom-select.open .custom-select-trigger {
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 2px rgba(142, 68, 173, 0.2);
}

.custom-select-options {
    position: absolute;
    bottom: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 100;
    transition: all 0.2s ease-out;
    transform: translateY(5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.custom-select.open .custom-select-options {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateY(0);
}

.custom-select-option {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.custom-select-option:hover {
    background-color: rgba(142, 68, 173, 0.1);
    color: var(--text-primary);
}

.custom-select-option.selected {
    color: var(--accent-purple);
    background-color: rgba(142, 68, 173, 0.05);
}

/* --- Extracted Inline Styles --- */

/* Sections & Layout */
.bg-surface-alt {
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
}

.bg-surface-alt-top {
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-color);
}

.bg-surface-alt-both {
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.grid-platforms {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-industries {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-proof {
    grid-template-columns: repeat(2, 1fr);
}

.grid-tech {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

/* Navbar & Footer */
.logo img {
    height: 36px;
    width: auto;
}

.logo span {
    font-size: 1.25rem;
    white-space: nowrap;
}

.logo-footer {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-footer img {
    height: 36px;
    width: auto;
    opacity: 0.8;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.logo-footer:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.btn-nav {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    white-space: nowrap;
}

/* Badges */
.badge-metrics-container {
    margin-top: 4rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-start;
    opacity: 0.8;
}

.hero-badge.badge-metric {
    margin-bottom: 0;
    background: transparent;
    border-color: var(--border-color);
    color: var(--text-secondary);
}

.platform-badge {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    white-space: nowrap;
}

.platform-badge.orange {
    background: rgba(242, 140, 40, 0.1);
    color: var(--accent-orange);
}

.platform-badge.purple {
    background: rgba(142, 68, 173, 0.1);
    color: var(--accent-purple);
}

/* Typography */
.text-h3-sm {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.text-h3-md {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.text-h3-lg {
    font-size: 1.5rem;
    margin-bottom: 0 !important;
}

.text-h3-industry {
    font-size: 1.1rem;
    margin-bottom: 0;
}

.text-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

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

.text-mono-sm {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.text-mono-sm.purple {
    color: var(--accent-purple);
}

.text-mono-sm.orange {
    color: var(--accent-orange);
}

/* Cards */
.card-dark {
    background: var(--bg-dark);
}

.card-p-lg {
    padding: 2rem;
}

.card-p-md {
    padding: 1.5rem 2rem;
}

.card-p-top {
    padding-top: 2rem;
}

.card-flex-col {
    display: flex;
    flex-direction: column;
}

.card-flex-center {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.card-flex-center h3 {
    white-space: nowrap;
    font-size: 1.35rem;
}

.card-flex-align {
    display: flex;
    align-items: center;
}

.border-left-orange {
    border-left: 2px solid var(--accent-orange);
}

.border-left-purple {
    border-left: 2px solid var(--accent-purple);
}

.border-left-orange-thick {
    border-left: 3px solid var(--accent-orange);
}

.border-left-purple-thick {
    border-left: 3px solid var(--accent-purple);
}

.card-engagement {
    padding: 2.5rem 2rem;
}

.border-top-orange {
    border-top: 3px solid var(--accent-orange);
}

.border-top-purple {
    border-top: 3px solid var(--accent-purple);
}

/* Platform Links */
.platform-desc {
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.platform-link {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: opacity 0.3s;
}

.platform-link.orange {
    color: var(--accent-orange);
}

.platform-link.purple {
    color: var(--accent-purple);
}

.platform-link:hover {
    opacity: 0.8;
}

/* Arch Diagram */
.arch-arrow {
    text-align: center;
    color: var(--accent-orange);
}

.arch-node-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.arch-node-desc {
    font-size: 0.75rem;
}

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

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

/* Tech Grid */
.tech-item-center {
    text-align: center;
    padding: 1.5rem 1rem;
}

.tech-item-title {
    font-size: 1.05rem;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-weight: 500;
}

/* Modal */
.modal-header {
    margin-bottom: 2rem;
}

.btn-submit {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
}

/* Responsive Overrides (Moved to bottom for precedence) */
@media (max-width: 992px) {
    .container {
        padding: 0 1.25rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .cta-group {
        flex-direction: column;
        width: 100%;
    }

    .cta-group .btn {
        width: 100%;
    }

    .logo span {
        font-size: 1.1rem;
    }

    .btn-outline.btn-nav {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
        white-space: nowrap;
        margin: 0px;
    }

    .grid-3,
    .grid-platforms,
    .grid-industries,
    .grid-proof,
    .grid-tech {
        grid-template-columns: 1fr !important;
    }

    .footer-content {
        padding-top: 2rem;
        flex-direction: column;
        gap: 3rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }

    .arch-row {
        flex-direction: column;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: inline-flex !important;
        justify-content: center;
        margin-top: 1rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: rgba(10, 10, 10, 0.98);
        border-bottom: 1px solid var(--border-color);
        padding: 2rem 1.25rem;
        gap: 1.5rem;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    .nav-links.active {
        display: flex !important;
    }
}