:root {
    /* Color Palette */
    --bg-light: #F9F9F9;
    --bg-alt: #F4F6F9;
    --bg-dark: #1A2530;
    /* Darker variant for contrast sections like Crisis */

    --text-main: #2D3E50;
    --text-muted: #5C7083;
    --text-inverse: #F9F9F9;

    --accent-primary: #008080;
    /* Cyber Teal */
    --accent-secondary: #4AF626;
    /* Terminal Green */
    --accent-muted: rgba(0, 128, 128, 0.1);

    --border-color: rgba(45, 62, 80, 0.1);

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-mono: 'Fira Code', monospace;
    --font-body: 'Inter', sans-serif;

    /* Variables */
    --max-width: 1200px;
    --header-height: 80px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset & Selection */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

::selection {
    background: var(--accent-primary);
    color: white;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    font-size: 16px;
}

/* Base Utility */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 5%;
}

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

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

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

.bg-light {
    background-color: var(--bg-alt);
}

.bg-dark {
    background-color: var(--bg-dark);
    color: var(--text-inverse);
}

.mt-2 {
    margin-top: 2rem;
}

.mt-3 {
    margin-top: 3rem;
}

.mt-4 {
    margin-top: 4rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.max-w-3xl {
    max-width: 800px;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: inherit;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.bg-dark p {
    color: rgba(249, 249, 249, 0.8);
}

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

a:hover {
    color: var(--text-main);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1rem;
    border-radius: 4px;
    /* Slightly technical corners */
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--text-main);
    color: var(--bg-light);
}

.btn-primary:hover {
    background-color: var(--accent-primary);
    box-shadow: 0 10px 20px rgba(0, 128, 128, 0.2);
    transform: translateY(-2px);
    color: white;
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-main);
    border-color: var(--text-main);
}

.btn-secondary:hover {
    background-color: var(--text-main);
    color: var(--bg-light);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
}

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

/* Background Patterns & Cursor */
.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image:
        linear-gradient(rgba(45, 62, 80, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(45, 62, 80, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -2;
    pointer-events: none;
}

#cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 128, 128, 0.04) 0%, transparent 60%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: -1;
    transition: opacity 0.5s ease;
}

/* Header & Nav */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(249, 249, 249, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.navbar.scrolled {
    height: 70px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

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

.brand {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-logo {
    height: 1.5rem;
    width: auto;
    display: block;
}

.brand-brackets {
    color: var(--accent-secondary);
    font-weight: 400;
}

.brand-suffix {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 400;
}

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

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-link:hover {
    color: var(--text-main);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

.mobile-menu-toggle span {
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--text-main);
    left: 0;
    transition: var(--transition);
}

.mobile-menu-toggle span:nth-child(1) {
    top: 0;
}

.mobile-menu-toggle span:nth-child(2) {
    top: 9px;
}

.mobile-menu-toggle span:nth-child(3) {
    bottom: 0;
}

/* Section Layouts */
.section {
    padding: 6rem 0;
}

.section-header {
    margin-bottom: 4rem;
    max-width: 700px;
}

.section-header.text-center {
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    font-size: 1.125rem;
}

.subsection-title {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

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

/* Animations Core */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
}

.fade-in {
    animation: fadeIn 1.2s ease forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.4s;
}

.delay-4 {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding-top: calc(var(--header-height) + 4rem);
    display: flex;
    align-items: center;
    position: relative;
}

.hero>.container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--text-main);
}

.hero-subtitle {
    font-size: 1.125rem;
    font-weight: 300;
    max-width: 500px;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.abstract-topology {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background: radial-gradient(circle at center, rgba(45, 62, 80, 0.02) 0%, transparent 70%);
}

.abstract-topology .node {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--text-main);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(45, 62, 80, 0.2);
}

.abstract-topology .node::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 1px solid var(--accent-secondary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.abstract-topology .n1 {
    top: 20%;
    left: 30%;
}

.abstract-topology .n2 {
    top: 60%;
    left: 70%;
}

.abstract-topology .n3 {
    top: 80%;
    left: 20%;
}

.abstract-topology .n4 {
    top: 30%;
    left: 80%;
}

.abstract-topology .connection {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, var(--border-color), transparent);
    transform-origin: 0 50%;
}

.abstract-topology .c1 {
    top: 22%;
    left: 32%;
    width: 50%;
    transform: rotate(45deg);
}

.abstract-topology .c2 {
    top: 62%;
    left: 72%;
    width: 60%;
    transform: rotate("165deg");
}

/* Pseudo positioning */

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Social Proof */
.social-proof {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: white;
    padding: 3rem 0;
}

.social-proof-label {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
}

.client-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.client-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    min-width: 250px;
}

.client-name {
    font-weight: 600;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--text-main);
}

.client-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.client-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

/* Workflow */
.workflow-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.feature-list {
    list-style: none;
    margin: 2rem 0;
}

.feature-list li {
    margin-bottom: 1rem;
    color: var(--text-main);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.feature-list .check {
    color: var(--accent-primary);
    font-weight: bold;
}

.technical-proof {
    background: var(--bg-alt);
    padding: 1rem;
    border-left: 3px solid var(--accent-secondary);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-main);
}

.workflow-visual {
    min-width: 0;
    max-width: 100%;
}

.code-window {
    background: var(--text-main);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.window-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.dot.red {
    background: #FF5F56;
}

.dot.yellow {
    background: #FFBD2E;
}

.dot.green {
    background: #27C93F;
}

.window-title {
    margin-left: auto;
    margin-right: auto;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #8892B0;
}

.code-window pre {
    padding: 1.5rem;
    margin: 0;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.5;
    color: #E6ECF1;
}

.token-keyword {
    color: #FF7B72;
}

.token-string {
    color: #A5D6FF;
}

.token-property {
    color: #79C0FF;
}

.token-comment {
    color: #8B949E;
    font-style: italic;
}

/* Service Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(45, 62, 80, 0.05);
    border-color: var(--accent-primary);
}

.service-icon {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
}

.service-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.service-desc {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Differentiator & Two Col */
.two-col-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
}

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

.metrics-dashboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.metric-card {
    background: white;
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.metric-card.full-width {
    grid-column: 1 / -1;
}

.metric-val {
    display: block;
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.metric-val .tiny-text {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.metric-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.diff-block p {
    border-left: 2px solid var(--accent-muted);
    padding-left: 1.5rem;
    margin-top: 1rem;
}

/* Crisis Section */
.crisis-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 4rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.alert-text {
    color: #F05A5A;
}

.lead-text {
    font-size: 1.25rem;
    color: white;
    font-weight: 400;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.radar-scan {
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    margin: 0 auto;
    background: radial-gradient(circle, rgba(240, 90, 90, 0.1) 0%, transparent 60%);
    overflow: hidden;
}

.radar-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px dashed rgba(240, 90, 90, 0.2);
    border-radius: 50%;
}

.radar-circle:nth-child(1) {
    width: 100px;
    height: 100px;
}

.radar-circle:nth-child(2) {
    width: 200px;
    height: 200px;
}

.radar-circle:nth-child(3) {
    width: 300px;
    height: 300px;
}

.radar-sweep {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150px;
    height: 150px;
    background: linear-gradient(45deg, rgba(240, 90, 90, 0.4) 0%, transparent 50%);
    transform-origin: 0 0;
    animation: sweep 4s linear infinite;
}

@keyframes sweep {
    to {
        transform: rotate(360deg);
    }
}

/* About / Sign Off */
.about-text {
    font-size: 1.125rem;
}

.author-signature {
    margin-top: 3rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--text-main);
}

/* Contact / Form */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
}

.contact-item {
    margin-bottom: 1.5rem;
}

.contact-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.contact-value {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-main);
}

.social-links a {
    margin-right: 1.5rem;
    font-weight: 500;
}

.custom-form {
    background: white;
    padding: 3rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    box-shadow: 0 15px 35px rgba(45, 62, 80, 0.03);
}

.form-group {
    flex: 1;
    min-width: 200px;
}

.form-group.full-width {
    flex: 100%;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #E2E8F0;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-main);
    transition: var(--transition);
    background: var(--bg-light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: white;
    box-shadow: 0 0 0 3px var(--accent-muted);
}

.submit-btn {
    width: 100%;
    border: none;
    padding: 1.25rem;
    font-size: 1.125rem;
}

/* CSS */
#g-recaptcha-response {
    display: block !important;
    position: absolute;
    margin: -50px 0 0 0 !important;
    z-index: -999999;
    opacity: 0;
}

/* Footer */
.site-footer {
    background: var(--text-main);
    color: white;
    padding: 3rem 0;
    font-size: 0.875rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-brand {
    font-family: var(--font-mono);
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-brand .brand-brackets {
    color: var(--accent-primary);
}

.footer-copy {
    color: rgba(255, 255, 255, 0.6);
}

.footer-scroll-top a {
    color: white;
    font-family: var(--font-mono);
}

/* Responsive Adjustments */
@media (max-width: 992px) {

    .hero>.container,
    .workflow-grid,
    .two-col-layout,
    .crisis-card,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero {
        min-height: auto;
        padding-top: 8rem;
        padding-bottom: 5rem;
    }

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

    .hero-actions {
        justify-content: center;
    }

    .badge {
        margin-left: auto;
        margin-right: auto;
    }

    .abstract-topology {
        display: none;
    }

    /* Simplify on mobile */
    .client-divider {
        width: 100%;
        height: 1px;
    }

    .client-grid {
        flex-direction: column;
    }

    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease;
    }

    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

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

}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .section {
        padding: 4rem 0;
    }

    .crisis-card {
        padding: 2rem;
    }

    .custom-form {
        padding: 1.5rem;
    }
}

@media screen and (max-width: 400px) {
    .g-recaptcha {
        transform: scale(0.8);
        -webkit-transform: scale(0.8);
        transform-origin: 0 0;
        -webkit-transform-origin: 0 0;
    }

    .recaptcha-wrapper {
        width: 250px;
        /* Force the container to be smaller */
        overflow: hidden;
    }
}