/* Nexus Connect Partners AG - Dark Technical Design */
/* Infrastructure/network aesthetic: dark surfaces, cyan + green signal accents, sharp edges */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    /* Brand palette - Professional deep blue theme */
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #1e40af;
    --secondary-color: #0ea5e9;
    --secondary-dark: #0284c7;
    --accent-color: #8b5cf6;
    --text-color: #f8fafc;  /* Light text on dark backgrounds */
    --bg-secondary: #0f172a; /* Dark background for sections */
    --gray-color: #94a3b8;
    --white: #ffffff;
    
    /* Clear naming for better readability */
    --dark-color: var(--text-color);
    --light-color: var(--bg-secondary);

    /* Page/card surfaces for the dark theme */
    --page-bg: #020617;
    --surface: #1e293b;

    /* Neutral surfaces (kept for backward-compat with existing inline styles) */
    --industrial-gray: #334155;
    --industrial-light: #475569;
    --border-thin: 1px;
    --border-thick: 2px;

    /* Spacing */
    --spacing-tight: 0.5rem;
    --spacing-base: 1rem;
    --spacing-loose: 2rem;
    --container-max: 1200px;

    /* Typography */
    --font-display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
    --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
    --font-size-small: 0.875rem;
    --font-size-base: 1rem;
    --font-size-large: 1.15rem;
    --font-size-xl: 1.4rem;
    --font-size-xxl: 2rem;
    --font-size-xxxl: 2.75rem;

    /* Surfaces */
    --border-radius: 10px;
    --border-radius-sm: 6px;
    --box-shadow: 0 10px 30px -12px rgba(37, 99, 235, 0.12);
    --box-shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
    --box-shadow-hover: 0 20px 40px -16px rgba(37, 99, 235, 0.22);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--page-bg);
    color: var(--dark-color);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

::selection {
    background-color: var(--secondary-color);
    color: #052e16;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--spacing-base);
    position: relative;
}

/* Header */
header {
    background-color: rgba(6, 11, 16, 0.88);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: var(--border-thin) solid var(--industrial-light);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    row-gap: 0.75rem;
    padding: 1.1rem 0;
}

.logo {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--dark-color);
    text-decoration: none;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.logo i {
    color: var(--primary-color);
    font-size: 1.3rem;
}

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

.nav-links a {
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--gray-color);
    text-decoration: none;
    padding: 0.6rem 1rem;
    border-radius: var(--border-radius-sm);
    transition: all 0.2s ease;
}

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

.mobile-menu-btn {
    display: none;
    background: var(--light-color);
    border: var(--border-thin) solid var(--industrial-light);
    color: var(--dark-color);
    font-size: var(--font-size-xl);
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius-sm);
    transition: all 0.2s;
}

.mobile-menu-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Hero */
.hero {
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.12), transparent 45%), linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    padding: 4.5rem 0;
    position: relative;
    overflow: hidden;
    color: var(--white);
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
}

.hero-text {
    text-align: left;
}
.hero-image {
    text-align: center;
    max-width: 1200px;
    margin: 2rem auto 0;
    padding: 0 var(--spacing-base);
}
.hero-image img {
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    width: 100%;
    height: auto;
}

@media (min-width: 993px) {
    .hero--split {
        padding: 0;
        min-height: 560px;
    }
    .hero-text {
        max-width: 560px;
        padding: 4.5rem 0;
        min-height: 560px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .hero-image {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 54%;
        max-width: none;
        margin: 0;
        padding: 0;
        text-align: initial;
    }
    .hero-image img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center 22%;
        border-radius: 0;
        box-shadow: none;
        max-width: none;
    }
    .hero-image::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, var(--primary-dark) 0%, rgba(30, 58, 138, 0) 16%);
        pointer-events: none;
    }
}

@media (max-width: 992px) {
    .hero-content {
        text-align: center;
    }
    .hero-text {
        text-align: center;
    }
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, var(--font-size-xxxl));
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    max-width: 780px;
}

.hero p {
    font-size: var(--font-size-large);
    max-width: 680px;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-weight: 700;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    color: #052e16;
    padding: 1rem 2.25rem;
    border: none;
    border-radius: 999px;
    text-decoration: none;
    font-size: var(--font-size-base);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 12px 24px -8px rgba(74, 222, 128, 0.4);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 32px -10px rgba(74, 222, 128, 0.5);
}

/* Features */
.features {
    padding: 4.5rem 0;
    background-color: var(--surface);
}

.section-title {
    font-family: var(--font-display);
    font-size: var(--font-size-xxl);
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 3rem;
    text-align: center;
    letter-spacing: -0.02em;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 56px;
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 0.9rem auto 0;
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
}

.feature-card {
    background-color: var(--surface);
    border: var(--border-thin) solid var(--industrial-light);
    border-radius: var(--border-radius);
    padding: 2rem;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    box-shadow: var(--box-shadow-sm);
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: transparent;
    box-shadow: var(--box-shadow-hover);
}

.feature-icon {
    width: 62px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 16px;
    margin-bottom: 1.25rem;
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--gray-color);
}

/* Trust elements */
.trust-banner {
    background: linear-gradient(135deg, var(--primary-light), #0d2318);
    border: var(--border-thin) solid var(--industrial-light);
    border-radius: var(--border-radius);
    padding: 2rem 2.25rem;
    margin: 2.5rem 0;
    position: relative;
}

.trust-banner h3 {
    font-family: var(--font-display);
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.trust-banner p {
    color: var(--dark-color);
    opacity: 0.85;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin: 2.5rem 0;
}

.trust-badge {
    background-color: var(--surface);
    border: var(--border-thin) solid var(--industrial-light);
    border-radius: var(--border-radius);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.25s ease;
    box-shadow: var(--box-shadow-sm);
    max-width: 340px;
}

.trust-badge:hover {
    transform: translateY(-4px);
    box-shadow: var(--box-shadow);
}

.trust-badge i {
    color: var(--primary-color);
    font-size: 1.6rem;
    flex-shrink: 0;
}

/* Trustpilot rating */
.trustpilot-rating {
    text-align: center;
    background-color: var(--surface);
    border: var(--border-thin) solid var(--industrial-light);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-sm);
    padding: 2rem;
    max-width: 420px;
    margin: 0 auto 2rem;
}

.trustpilot-stars {
    color: var(--secondary-color);
    font-size: 1.5rem;
    letter-spacing: 0.2rem;
    margin-bottom: 0.75rem;
}

.trustpilot-rating p {
    color: var(--dark-color);
}

/* Reviews */
.reviews {
    padding: 4.5rem 0;
    background-color: var(--light-color);
}

.review-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
}

.review-card {
    background-color: var(--surface);
    border: var(--border-thin) solid var(--industrial-light);
    border-radius: var(--border-radius);
    padding: 2rem;
    position: relative;
    transition: all 0.25s ease;
    box-shadow: var(--box-shadow-sm);
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--box-shadow);
}

.stars {
    color: var(--secondary-color);
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.review-text {
    color: var(--dark-color);
    font-style: italic;
    margin-bottom: 1.25rem;
    border-left: 3px solid var(--primary-light);
    padding-left: 1rem;
}

.review-author {
    color: var(--primary-color);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: var(--font-size-small);
}

/* Forms */
.form-section {
    padding: 4.5rem 0;
    background-color: var(--light-color);
}

.form-container {
    background-color: var(--surface);
    border: var(--border-thin) solid var(--industrial-light);
    border-radius: var(--border-radius);
    padding: 3rem;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: var(--box-shadow);
}

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

.form-group label {
    display: block;
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-size: var(--font-size-base);
}

.form-control {
    width: 100%;
    background-color: var(--surface);
    border: var(--border-thin) solid var(--industrial-light);
    color: var(--dark-color);
    padding: 0.85rem 1rem;
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    border-radius: var(--border-radius-sm);
    transition: all 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px var(--primary-light);
}

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

/* Footer */
footer {
    background-color: #030609;
    padding: 3.5rem 0 2rem;
    margin-top: 4rem;
    color: rgba(255, 255, 255, 0.85);
    position: relative;
}

footer::before {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin: 2.5rem 0 2rem;
}

.footer-section h3 {
    font-family: var(--font-display);
    color: var(--white);
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.65);
}

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

.footer-links li {
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.65);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: all 0.2s;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--secondary-color);
    transform: translateX(3px);
}

.footer-links i {
    color: var(--secondary-color);
    width: 1.1rem;
    text-align: center;
    margin-right: 0.4rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: var(--border-thin) solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--font-size-small);
}

/* Footer top: social icons + trust badges */
.footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
    padding-bottom: 2rem;
    border-bottom: var(--border-thin) solid rgba(255, 255, 255, 0.1);
}

.footer-social {
    display: flex;
    gap: 0.9rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.05rem;
    transition: all 0.2s;
}

.footer-social a:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--dark-color);
}

.footer-trust-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
}

.trust-logo-startups {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: rgba(255, 255, 255, 0.85);
}

.trust-logo-startups .bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 26px;
}

.trust-logo-startups .bars span {
    width: 6px;
    display: block;
    border-radius: 1px;
}

.trust-logo-startups .bars span:nth-child(1) { height: 40%; background: #444; }
.trust-logo-startups .bars span:nth-child(2) { height: 60%; background: #c8102e; }
.trust-logo-startups .bars span:nth-child(3) { height: 80%; background: #f4c430; }
.trust-logo-startups .bars span:nth-child(4) { height: 100%; background: #eee; }

.trust-logo-startups .label {
    font-size: 0.82rem;
    line-height: 1.3;
}

.trust-logo-startups .label strong {
    display: block;
    font-size: 0.95rem;
    color: var(--white);
}

.trust-badge-tuv {
    background: #dfe3f5;
    color: #22284a;
    border-radius: 4px;
    overflow: hidden;
    width: 190px;
}

.trust-badge-tuv .tuv-main {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    padding: 0.55rem 0.65rem 0.35rem;
}

.trust-badge-tuv .tuv-logo {
    background: #22284a;
    color: #fff;
    font-weight: 800;
    font-size: 0.62rem;
    line-height: 1.15;
    padding: 0.3rem 0.4rem;
    border-radius: 2px;
    text-align: center;
    flex-shrink: 0;
}

.trust-badge-tuv .tuv-text strong {
    display: block;
    font-size: 0.9rem;
}

.trust-badge-tuv .tuv-text small {
    display: block;
    font-size: 0.6rem;
    opacity: 0.75;
    line-height: 1.3;
}

.trust-badge-tuv .tuv-footer {
    background: #b9c0e8;
    text-align: center;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.3rem 0.4rem;
}

.trust-badge-ekomi {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #f7dd8a, #c99a2e 70%, #a67c1e);
    border: 2px solid #8a6317;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.trust-badge-ekomi i {
    color: #3a2a08;
    font-size: 1.25rem;
}

.trust-badge-kununu {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: #e7f7f4;
    border: 1px solid #a9ddd2;
    border-radius: 6px;
    padding: 0.5rem 0.85rem;
}

.trust-badge-kununu .kununu-logo {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: -0.02em;
    color: #0a6b5f;
}

.trust-badge-kununu .kununu-rating {
    display: flex;
    flex-direction: column;
    font-size: 0.68rem;
    line-height: 1.3;
    color: #0a6b5f;
}

.trust-badge-kununu .kununu-rating strong {
    font-size: 0.85rem;
}

@media (max-width: 480px) {
    .footer-trust-row {
        gap: 1.5rem;
    }
    .trust-badge-tuv {
        width: 165px;
    }
}

/* Live chat widget */
.chat-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 999px;
    padding: 0.9rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    z-index: 1000;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 12px 28px -10px rgba(37, 99, 235, 0.55);
}

.chat-widget:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px -10px rgba(37, 99, 235, 0.65);
}

.chat-icon {
    color: var(--secondary-color);
    font-size: 1.4rem;
}

.chat-text {
    font-family: var(--font-display);
    color: var(--white);
    line-height: 1.3;
}

.chat-text strong {
    display: block;
    font-size: 0.95rem;
}

.chat-text span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Live chat panel */
.chat-panel {
    position: fixed;
    bottom: 6.5rem;
    right: 2rem;
    width: 340px;
    max-width: calc(100vw - 2rem);
    height: 440px;
    background: var(--surface);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-hover);
    border: var(--border-thin) solid var(--industrial-light);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(16px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 1001;
}

.chat-panel.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.chat-panel-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.chat-panel-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-family: var(--font-display);
    font-size: 0.92rem;
}

.chat-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.3);
    flex-shrink: 0;
}

.chat-panel-close {
    background: transparent;
    border: none;
    color: var(--white);
    cursor: pointer;
    font-size: 1rem;
    opacity: 0.85;
    padding: 0.25rem;
}

.chat-panel-close:hover {
    opacity: 1;
}

.chat-panel-body {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    background-color: var(--light-color);
}

.chat-message {
    display: flex;
}

.chat-message-user {
    justify-content: flex-end;
}

.chat-message-bot {
    justify-content: flex-start;
}

.chat-bubble {
    max-width: 82%;
    padding: 0.65rem 0.9rem;
    border-radius: 14px;
    font-size: 0.88rem;
    line-height: 1.45;
}

.chat-message-bot .chat-bubble {
    background-color: var(--surface);
    border: var(--border-thin) solid var(--industrial-light);
    border-bottom-left-radius: 4px;
    color: var(--dark-color);
}

.chat-message-user .chat-bubble {
    background-color: var(--primary-color);
    color: var(--white);
    border-bottom-right-radius: 4px;
}

.chat-bubble a {
    color: inherit;
    text-decoration: underline;
}

.chat-message-group {
    display: flex;
    flex-direction: column;
    max-width: 82%;
}

.chat-message-user .chat-message-group {
    align-items: flex-end;
}

.chat-message-group .chat-bubble {
    max-width: 100%;
}

.chat-message-time {
    font-size: 0.7rem;
    color: var(--gray-color);
    margin-top: 0.25rem;
    padding: 0 0.3rem;
}

.chat-caret {
    display: inline-block;
    width: 2px;
    height: 0.9em;
    margin-left: 2px;
    background-color: var(--primary-color);
    vertical-align: middle;
    animation: chatCaretBlink 0.8s step-end infinite;
}

@keyframes chatCaretBlink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.chat-typing-bubble {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 0.85rem 1rem;
}

.chat-typing-bubble span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--gray-color);
    animation: chatTyping 1s infinite ease-in-out;
}

.chat-typing-bubble span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing-bubble span:nth-child(3) { animation-delay: 0.3s; }

@keyframes chatTyping {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-4px); opacity: 1; }
}

.chat-panel-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-top: var(--border-thin) solid var(--industrial-light);
    background-color: var(--surface);
    flex-shrink: 0;
}

.chat-panel-input input {
    flex: 1;
    border: var(--border-thin) solid var(--industrial-light);
    border-radius: 999px;
    padding: 0.6rem 1rem;
    font-family: var(--font-body);
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.2s;
}

.chat-panel-input input:focus {
    border-color: var(--primary-color);
}

.chat-panel-input button {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border: none;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.chat-panel-input button:hover {
    background-color: var(--primary-dark);
}

@media (max-width: 480px) {
    .chat-panel {
        right: 1rem;
        left: 1rem;
        width: auto;
        bottom: 5.5rem;
        height: 65vh;
    }
}

/* Admin dashboard */
.admin-container {
    min-height: 100vh;
    background-color: var(--light-color);
}

.login-box {
    max-width: 420px;
    margin: 7rem auto;
    background-color: var(--surface);
    border: var(--border-thin) solid var(--industrial-light);
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--box-shadow);
    position: relative;
}

.login-box h2 {
    font-family: var(--font-display);
    color: var(--dark-color);
    margin-bottom: 0.75rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.login-box h2 i {
    color: var(--primary-color);
}

.login-box > p {
    text-align: center;
    color: var(--gray-color);
}

.dashboard {
    padding: 2.5rem 0 4rem;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    font-family: var(--font-display);
    font-size: var(--font-size-xxl);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

/* Dashboard tiles/panels that keep a white card background even in the
   dark theme - redefine the text tokens locally so var(--dark-color)/
   var(--gray-color) resolve to real dark values instead of the
   near-white ones used on the page's dark background. */
.admin-light-card {
    --dark-color: #1e293b;
    --gray-color: #64748b;
    color: #1e293b;
}

/* Form fields inside these cards keep their own dark (--surface)
   background regardless of the card override above, so their text
   must stay light - otherwise it's dark-on-dark and unreadable. */
.admin-light-card .form-control,
.admin-light-card select.form-control option {
    color: var(--text-color);
}

.applications-table {
    background-color: var(--surface);
    border: var(--border-thin) solid var(--industrial-light);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-sm);
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead th {
    background-color: var(--light-color);
    color: var(--dark-color);
    font-family: var(--font-display);
    font-size: var(--font-size-small);
    text-align: left;
    padding: 0.9rem 1rem;
    border-bottom: var(--border-thin) solid var(--industrial-light);
    white-space: nowrap;
}

tbody td {
    padding: 0.9rem 1rem;
    border-bottom: var(--border-thin) solid var(--industrial-light);
    font-size: var(--font-size-small);
    color: var(--dark-color);
}

tbody tr:hover {
    background-color: var(--light-color);
}

tbody tr:last-child td {
    border-bottom: none;
}

/* Footer link for header (visible on admin page) */
header .navbar a.logo {
    color: var(--dark-color);
}

/* Responsive */
@media (max-width: 1200px) {
    :root {
        --container-max: 1000px;
    }
}

@media (max-width: 992px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--surface);
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        border-bottom: var(--border-thin) solid var(--industrial-light);
        box-shadow: var(--box-shadow);
        z-index: 1000;
    }

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

    .nav-links a {
        padding: 0.85rem 1rem;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .feature-cards,
    .review-cards {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 3.5rem 0;
    }

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

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .form-container {
        padding: 2rem 1.25rem;
    }

    .feature-card,
    .review-card {
        padding: 1.5rem;
    }

    .chat-widget {
        right: 1rem;
        bottom: 1rem;
        padding: 0.75rem 1rem;
    }

    .login-box {
        margin: 4rem 1rem;
        padding: 2rem 1.5rem;
    }
}

/* Team avatar with graceful fallback if the placeholder image fails to load */
.team-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    box-shadow: 0 0 0 4px var(--primary-light);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.team-avatar i {
    color: rgba(255, 255, 255, 0.85);
    font-size: 2.4rem;
}

.team-avatar img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Career page hero + job card (kept responsive via classes instead of inline styles) */
.career-hero {
    padding: 5rem 0 7rem;
}

.job-card {
    margin: -4rem auto 0;
    padding: 2.5rem;
}

.history-card {
    padding: 2.75rem;
}

@media (max-width: 768px) {
    .career-hero {
        padding: 3.5rem 0 5.5rem;
    }

    .job-card {
        margin-top: -3rem;
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .career-hero {
        padding: 3rem 0 4.5rem;
    }

    .job-card {
        margin-top: -2rem;
        padding: 1.5rem 1.25rem;
    }

    .history-card {
        padding: 1.5rem 1.25rem;
    }
}

/* Application page layout */
.application-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 2rem;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
}

.job-summary-card {
    position: sticky;
    top: 6rem;
}

.job-summary-list {
    list-style: none;
    display: grid;
    gap: 0.9rem;
    margin: 1.25rem 0;
}

.job-summary-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.9rem;
    color: var(--dark-color);
}

.job-summary-list i {
    color: var(--primary-color);
    margin-top: 0.2rem;
    width: 1.1rem;
    text-align: center;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .application-grid {
        grid-template-columns: 1fr;
    }

    .job-summary-card {
        position: static;
    }
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.25); }
    70% { box-shadow: 0 0 0 12px rgba(37, 99, 235, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    background-color: var(--light-color);
}

::-webkit-scrollbar-thumb {
    background-color: #24333f;
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--primary-color);
}

/* Alerts */
.alert {
    padding: 1.5rem 1.75rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    font-family: var(--font-body);
    border: var(--border-thin) solid transparent;
}

.alert h3, .alert h4 {
    font-family: var(--font-display);
}

.alert-success {
    border-color: #1a4a30;
    background-color: #0c1f16;
    color: #4ade80;
}

.alert-info {
    border-color: #164a5c;
    background-color: #0a1f28;
    color: #38bdf8;
}

/* Inline info popover (e.g. PostIdent explainer) */
.info-popover-wrap {
    position: relative;
    display: inline-flex;
    vertical-align: middle;
}

.info-icon-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0;
    margin-right: 0.15rem;
    font-size: inherit;
    line-height: 1;
}

.info-icon-trigger:hover,
.info-icon-trigger:focus-visible {
    color: var(--secondary-color);
}

.info-popover {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    z-index: 20;
    background: var(--surface, #101826);
    color: rgba(255, 255, 255, 0.85);
    border: var(--border-thin) solid #164a5c;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 16px 34px -12px rgba(0, 0, 0, 0.55);
    padding: 1rem 1.15rem;
    width: min(360px, 85vw);
    font-size: 0.88rem;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.info-popover.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-weight: 600;
    background-color: var(--surface);
    color: var(--dark-color);
    padding: 0.8rem 1.6rem;
    border: var(--border-thin) solid var(--industrial-light);
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--box-shadow-sm);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-secondary {
    background-color: var(--surface);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-light);
}

.btn-export {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #052e16;
}

.btn-export:hover {
    background-color: var(--secondary-dark);
    border-color: var(--secondary-dark);
}

/* Utilities */
.text-center { text-align: center; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* Code block */
.code-block {
    background-color: #05080b;
    border-radius: var(--border-radius-sm);
    padding: 1.5rem;
    margin: 1.5rem 0;
    overflow-x: auto;
    font-family: 'Share Tech Mono', monospace;
    font-size: var(--font-size-small);
    color: #7dd3fc;
}

.code-block::before {
    content: '$';
    color: var(--secondary-color);
    margin-right: 0.5rem;
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: var(--font-size-small);
    font-weight: 600;
}

.status-active {
    background-color: #0c1f16;
    color: #4ade80;
}

.status-pending {
    background-color: #241d09;
    color: #facc15;
}

.status-complete {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

/* Notifications (created dynamically by main.js) */
.notification {
    border-radius: var(--border-radius-sm);
    font-family: var(--font-body);
}

.notification-close {
    opacity: 0.7;
}

.notification-close:hover {
    opacity: 1;
}

/* Nav CTA button, shown next to the hamburger menu */
.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.88rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    padding: 0.6rem 1.25rem;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 6px 16px -6px rgba(21, 128, 61, 0.5);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-left: 0.5rem;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px -6px rgba(21, 128, 61, 0.6);
}

/* Hero split layout: text left, floating stat card right (desktop) */
.hero-split {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 2.5rem;
    align-items: center;
}

.hero-stats-card {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(6px);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
}

.hero-stats-card .stat {
    text-align: center;
}

.hero-stats-card .stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 800;
    color: #fff;
}

.hero-stats-card .stat span {
    display: block;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 0.2rem;
}

@media (max-width: 900px) {
    .hero-split {
        grid-template-columns: 1fr;
    }

    .hero-stats-card {
        max-width: 420px;
    }
}

/* Step timeline: connected horizontal steps (desktop) collapsing to a
   left-aligned vertical timeline (mobile) - replaces the plain card grid
   used for the same content elsewhere. */
.step-timeline {
    display: flex;
    align-items: flex-start;
    gap: 0;
    max-width: 1000px;
    margin: 0 auto;
}

.step-timeline .step {
    flex: 1;
    text-align: center;
    position: relative;
    padding: 0 0.75rem;
}

.step-timeline .step-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 0.9rem;
    position: relative;
    z-index: 1;
}

.step-timeline .step::before {
    content: '';
    position: absolute;
    top: 21px;
    left: -50%;
    width: 100%;
    height: 3px;
    background: var(--primary-light);
    z-index: 0;
}

.step-timeline .step:first-child::before {
    display: none;
}

.step-timeline .step h3 {
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
}

.step-timeline .step p {
    font-size: 0.9rem;
    color: var(--gray-color);
}

@media (max-width: 768px) {
    .step-timeline {
        flex-direction: column;
        align-items: stretch;
        gap: 1.75rem;
        max-width: 420px;
    }

    .step-timeline .step {
        text-align: left;
        padding-left: 3.25rem;
    }

    .step-timeline .step-circle {
        position: absolute;
        left: 0;
        top: 0;
        margin: 0;
    }

    .step-timeline .step::before {
        top: 0;
        left: 20px;
        width: 3px;
        height: calc(100% + 1.75rem);
    }
}

/* Stat ticker: inline monospace stat row with dividers, used instead of
   card grids for a more "systems dashboard" feel. */
.stat-ticker {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    background: var(--surface);
    border: var(--border-thin) solid var(--industrial-light);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.stat-ticker .tick {
    flex: 1 1 160px;
    text-align: center;
    padding: 1.75rem 1rem;
    border-right: var(--border-thin) solid var(--industrial-light);
}

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

.stat-ticker .tick strong {
    display: block;
    font-family: 'Share Tech Mono', var(--font-display), monospace;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.01em;
}

.stat-ticker .tick span {
    display: block;
    font-size: 0.78rem;
    color: var(--gray-color);
    margin-top: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Partner grid: dedicated component for showcasing partner companies,
   not present on the other two sites. */
.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.partner-card {
    background: var(--surface);
    border: var(--border-thin) solid var(--industrial-light);
    border-radius: var(--border-radius);
    padding: 1.75rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.partner-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
}

.partner-card .partner-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: var(--border-radius-sm);
    background: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.partner-card h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    margin-bottom: 0.35rem;
    color: var(--dark-color);
}

.partner-card p {
    font-size: 0.86rem;
    color: var(--gray-color);
}

/* Spec table: definition-list style job details, replaces the gradient
   info-card grid used on the other two sites. */
.spec-table {
    display: grid;
    border: var(--border-thin) solid var(--industrial-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 2.5rem;
}

.spec-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    border-top: var(--border-thin) solid var(--industrial-light);
}

.spec-row:first-child {
    border-top: none;
}

.spec-row dt {
    padding: 0.9rem 1.25rem;
    background: var(--industrial-gray);
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.spec-row dd {
    padding: 0.9rem 1.25rem;
    font-size: 0.92rem;
}

@media (max-width: 560px) {
    .spec-row {
        grid-template-columns: 1fr;
    }

    .spec-row dt {
        border-bottom: var(--border-thin) solid var(--industrial-light);
    }
}

/* Certificates Section */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
    margin-bottom: 2rem;
}

.certificate-card {
    background-color: var(--surface);
    border: var(--border-thin) solid var(--industrial-light);
    border-radius: var(--border-radius);
    padding: 2rem;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    box-shadow: var(--box-shadow-sm);
}

.certificate-card:hover {
    transform: translateY(-6px);
    border-color: transparent;
    box-shadow: var(--box-shadow-hover);
}

.certificate-icon {
    width: 62px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 16px;
    margin-bottom: 1.25rem;
}

.certificate-card h3 {
    font-family: var(--font-display);
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
}

.certificate-card p {
    color: var(--gray-color);
    margin-bottom: 1rem;
}

.certificate-badge {
    display: inline-block;
    background-color: var(--primary-light);
    color: var(--primary-color);
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: var(--font-size-small);
    font-weight: 600;
    font-family: var(--font-display);
}

.certificate-note {
    text-align: center;
    color: var(--gray-color);
    font-size: var(--font-size-small);
    padding: 1rem;
    border-top: var(--border-thin) solid var(--industrial-light);
    margin-top: 1.5rem;
}

.certificate-note i {
    color: var(--secondary-color);
    margin-right: 0.5rem;
}

@media (max-width: 768px) {
    .certificates-grid {
        grid-template-columns: 1fr;
    }
}
