/* --------------------------------------------------------
   Archbot.co — Main Stylesheet
   Contains core layouts, elements, typography, and section styling.
-------------------------------------------------------- */

:root {
    --font-sans: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
}

/* Base resets and layout */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    font-size: var(--text-body);
    color: var(--color-text-on-dark);
    background-color: var(--color-bg-canvas);
    margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-text-heading);
    font-weight: 500;
}

a {
    color: var(--accent-blue-400);
    text-decoration: none;
}

a:hover {
    color: var(--accent-blue-300);
}

code,
pre {
    font-family: var(--font-mono);
    font-size: var(--text-mono);
}

/* --------------------------------------------------------
   NAV
-------------------------------------------------------- */
.site-nav {
    background: var(--color-bg-canvas);
    border-bottom: 1px solid var(--color-border-dark);
    padding: 0 var(--space-10);
    height: 56px;
    display: flex;
    align-items: center;
    gap: var(--space-6);
    position: relative;
    z-index: 100;
}

.nav-brand {
    display: flex;
    align-items: center;
    margin-right: var(--space-3);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.nav-brand:hover {
    opacity: 0.85;
}

.nav-logo-link {
    display: flex;
    align-items: center;
    margin-right: var(--space-4);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.nav-logo-link:hover {
    opacity: 0.8;
}

.nav-logo-wrapper svg {
    width: 22px;
    height: 22px;
    display: block;
    flex-shrink: 0;
}

.nav-logo-wrapper svg .vertex-core,
.nav-logo-wrapper svg .vertex-outer {
    stroke: #ffffff !important;
}

.nav-logo-wrapper svg .node-core,
.nav-logo-wrapper svg .node-outer {
    fill: #ffffff !important;
}

.nav-wordmark {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text-on-dark);
    letter-spacing: 0.02em;
}

.nav-wordmark span {
    color: var(--accent-blue-400);
}

.nav-wordmark .suffix-blue {
    color: var(--accent-blue-400);
}

.nav-wordmark .suffix-teal {
    color: var(--accent-teal-400);
}

.nav-wordmark .suffix-violet {
    color: var(--accent-violet-400);
}

.nav-link-item {
    font-size: var(--text-small);
    font-weight: 600;
    color: var(--color-text-on-dark-faint);
    text-decoration: none;
    transition: color 0.15s;
}

.nav-link-item:hover,
.nav-link-item.active {
    color: var(--color-text-on-dark);
}

.nav-spacer {
    flex: 1;
}

.nav-login {
    font-size: var(--text-small);
    font-weight: 600;
    color: var(--accent-blue-400);
    margin-right: var(--space-2);
    cursor: pointer;
    transition: color 0.15s;
}

.nav-login:hover {
    color: var(--accent-blue-300);
}

.btn-nav-cta {
    background: var(--accent-blue-400);
    color: #fff;
    font-size: var(--text-small);
    font-weight: 500;
    padding: 7px var(--space-5);
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-nav-cta:hover {
    background: var(--accent-blue-600);
}

.nav-search-wrapper {
    width: auto;
    margin-right: var(--space-4);
}

.nav-search-wrapper .search-bar-component {
    margin-bottom: 0 !important;
}

.nav-search-wrapper .search-input-wrapper {
    width: 120px;
}

.nav-search-wrapper .search-input-wrapper.is-expanded {
    width: 260px;
}

/* --------------------------------------------------------
   HERO
-------------------------------------------------------- */
.hero {
    padding: var(--space-16) var(--space-10) 76px;
    position: relative;
    overflow: hidden;
}

.hero-inner {
    display: flex;
    align-items: center;
    gap: 96px;
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--texture-dot-grid);
    background-size: var(--texture-dot-grid-size);
    pointer-events: none;
}

.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.hero-graphic {
    width: 50%;
    height: 440px;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: var(--space-4);
}

.hero-logo-wordmark {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: var(--font-sans);
    font-size: 3rem;
    font-weight: 500;
    color: var(--color-text-on-dark);
    letter-spacing: 0.04em;
    text-align: center;
    pointer-events: none;
    z-index: 2;
    margin-bottom: var(--space-1);
    margin-top: 30px;
}

.hero-logo-wordmark span {
    color: var(--accent-blue-400);
}

.hero-graphic.logo-formed .hero-logo-wordmark {
    opacity: 1;
    transform: translateY(0);
}

.hero h1 {
    font-size: var(--text-display);
    font-weight: 500;
    color: var(--color-text-on-dark);
    line-height: 1.2;
    margin: 0 0 var(--space-4);
}

.hero h1 em {
    color: var(--accent-blue-300);
    font-style: normal;
}

.hero p {
    color: var(--color-text-on-dark);
    background: var(--color-border-dark);
    backdrop-filter: blur(12px);
    border: 1px solid var(--color-border-dark);
    padding: var(--space-4);
    max-width: 550px;
    line-height: 1.75;
    margin: 0 0 var(--space-6);
}

.hero-btns {
    display: flex;
    gap: var(--space-3);
}

.btn-primary-hero {
    background: var(--accent-blue-400);
    color: #fff;
    font-size: var(--text-small);
    font-weight: 500;
    padding: 10px var(--space-5);
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-primary-hero:hover {
    background: var(--accent-blue-600);
}

.btn-ghost-hero {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-on-dark-muted);
    font-size: var(--text-small);
    padding: 10px var(--space-5);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border-dark);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    line-height: 1.2;
    transition: background 0.15s, color 0.15s;
}

.btn-ghost-hero:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text-on-dark);
}

/* Custom additions to remove inline styles from Hero section */
.hero-pill {
    margin-bottom: var(--space-5) !important;
}

.hero-pill-dot {
    width: 5px;
    height: 5px;
    background: var(--accent-blue-300);
    border-radius: 0;
    display: inline-block;
}

/* --------------------------------------------------------
   STATS BAR
-------------------------------------------------------- */
.stats-bar {
    border-top: 1px solid var(--color-border-dark);
    border-bottom: 1px solid var(--color-border-dark);
    display: flex;
    padding: 0 var(--space-10);
}

.stat-item {
    flex: 1;
    padding: 18px var(--space-6);
    border-right: 1px solid var(--color-border-dark);
}

.stat-item:first-child {
    padding-left: 0;
}

.stat-item:last-child {
    border-right: none;
}

.stat-number {
    font-size: 22px;
    font-weight: 500;
    display: block;
    margin-bottom: 3px;
}

.stat-label {
    font-size: var(--text-label);
    color: var(--color-text-on-dark-faint);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* --------------------------------------------------------
   SECTIONS
-------------------------------------------------------- */
.section {
    padding: var(--space-14) var(--space-10);
}

.section-white {
    background: transparent;
}

.section-gray {
    background: transparent;
}

.section-heading {
    font-size: var(--text-h2);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 var(--space-2);
}

.section-sub {
    font-size: var(--text-body);
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.72;
    max-width: 460px;
    margin: 0 0 var(--space-8);
}

.eyebrow {
    margin-bottom: var(--space-2) !important;
}

/* --------------------------------------------------------
   SERVICE CARDS
-------------------------------------------------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4);
}

.service-card {
    background: var(--color-bg-canvas-raised);
    border: 0.5px solid var(--color-border-dark);
    border-radius: var(--radius-xl);
    padding: 22px;
}

.service-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-4);
    font-size: 18px;
}

.service-icon span {
    font-size: 18px;
}

.service-title {
    font-size: var(--text-h3);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: var(--space-2);
}

.service-desc {
    font-size: var(--text-label);
    color: rgba(255, 255, 255, 0.60);
    line-height: 1.6;
    margin-bottom: var(--space-4);
}

.service-link {
    font-size: var(--text-small);
    font-weight: 500;
}

.card-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-label);
    font-weight: 600;
    padding: 4px 10px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: var(--space-4);
}

.badge-icon {
    flex-shrink: 0;
}

.card-features {
    list-style: none;
    padding: 0;
    margin: var(--space-4) 0 0 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.card-features li {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-small);
    color: rgba(255, 255, 255, 0.65);
}

.check-icon {
    color: var(--accent-teal-400);
    flex-shrink: 0;
}

/* --------------------------------------------------------
   PROFILE CARDS & TEAM SECTION
-------------------------------------------------------- */
.team-section-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 44px;
    align-items: start;
}

@media (min-width: 768px) {
    .team-section-layout {
        grid-template-columns: 1fr 1fr;
    }
}

.team-badges-container {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
}

.team-badges-container .badge {
    padding: 4px 10px !important;
    border-radius: var(--radius-sm) !important;
}

.btn-team-cta {
    display: inline-block;
    background: var(--accent-teal-400);
    color: #fff;
    font-size: var(--text-small);
    font-weight: 500;
    padding: 9px var(--space-5);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: background 0.15s;
}

.btn-team-cta:hover {
    background: var(--accent-teal-600);
    color: #fff;
}

.profile-card {
    background: var(--color-bg-canvas-raised);
    border: 0.5px solid var(--color-border-dark);
    border-radius: var(--radius-lg);
    padding: var(--space-4) var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-3);
}

.profile-avatar {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--text-small);
    font-weight: 500;
    flex-shrink: 0;
}

.avatar-blue {
    background: #162A52;
}

.avatar-teal {
    background: #0F3D35;
}

.avatar-violet {
    background: #2A1F5A;
}

.profile-name {
    font-size: var(--text-small);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
}

.profile-role {
    font-size: var(--text-label);
    color: rgba(255, 255, 255, 0.50);
    margin-top: 2px;
}

/* --------------------------------------------------------
   CTA SECTION
-------------------------------------------------------- */
.cta-section {
    padding: var(--space-16) var(--space-10);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--texture-dot-grid);
    background-size: var(--texture-dot-grid-size);
    pointer-events: none;
}

.cta-section h2 {
    font-size: 26px;
    font-weight: 500;
    color: var(--color-text-on-dark);
    margin-bottom: var(--space-3);
    position: relative;
    z-index: 1;
}

.cta-section p {
    color: var(--color-text-on-dark-muted);
    margin-bottom: var(--space-6);
    position: relative;
    z-index: 1;
}

.cta-section .cta-btns {
    display: flex;
    gap: var(--space-3);
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* --------------------------------------------------------
   FOOTER
-------------------------------------------------------- */
.site-footer {
    background: #060914;
    border-top: 1px solid var(--color-border-dark);
    padding: var(--space-8) var(--space-10);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-copy {
    font-size: var(--text-label);
    color: var(--color-text-on-dark-faint);
}

.footer-links {
    display: flex;
    gap: var(--space-5);
}

.footer-links a {
    font-size: var(--text-label);
    color: var(--color-text-on-dark-faint);
}

.footer-links a:hover {
    color: var(--color-text-on-dark);
}

/* --------------------------------------------------------
   DOCUMENTATION SPECIFIC STYLES
-------------------------------------------------------- */
.doc-container {
    max-width: 800px;
    margin: var(--space-10) auto;
    padding: 0 var(--space-6);
}

.doc-content h1 {
    font-size: 28px;
    margin-bottom: var(--space-4);
}

.doc-content h2 {
    font-size: 20px;
    margin-top: var(--space-8);
    margin-bottom: var(--space-3);
}

.doc-content p {
    line-height: 1.75;
    margin-bottom: var(--space-4);
}

.doc-content code {
    background: var(--color-bg-page);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
}

.doc-content pre {
    background: #111b30;
    color: #fff;
    padding: var(--space-4);
    border-radius: var(--radius-md);
    overflow-x: auto;
}

.doc-content pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

/* Responsive adjustments for Hero section */
@media (max-width: 768px) {
    .hero {
        padding: var(--space-10) var(--space-4) 80px;
    }

    .hero-inner {
        flex-direction: column;
        gap: var(--space-6);
        align-items: center;
        text-align: center;
    }

    .hero-graphic {
        width: 280px;
        height: 280px;
        margin: 0 auto;
        padding-bottom: 0;
    }

    .hero-logo-wordmark {
        font-size: 2.2rem;
        margin-top: 15px;
        margin-bottom: 0;
    }

    .hero p {
        margin: 0 auto var(--space-6);
    }

    .hero-btns {
        justify-content: center;
    }
}

@media (min-width: 769px) {
    .hero-inner {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0;
        max-width: none;
        width: 100%;
    }

    .hero-graphic {
        justify-self: center;
    }

    .hero-content {
        justify-self: start;
        width: 80%;
    }

    .hero p {
        max-width: none;
    }
}

/* --------------------------------------------------------
   NAV — MOBILE OVERRIDES
-------------------------------------------------------- */
@media (max-width: 992px) {
    .site-nav {
        padding: 0 var(--space-4);
        gap: var(--space-3);
    }

    .nav-link-item {
        font-size: 11px;
    }

    .nav-spacer {
        display: none;
    }

    .nav-search-wrapper {
        display: none;
    }

    .nav-logo-link {
        margin-right: var(--space-2);
    }

    .nav-brand {
        margin-right: auto;
    }

    .btn-nav-cta {
        font-size: 11px;
        padding: 5px var(--space-3);
    }
}

@media (max-width: 640px) {
    .nav-link-item {
        display: none;
    }
}

/* --------------------------------------------------------
   SEARCH & DOCUMENTATION LAYOUT
-------------------------------------------------------- */
[x-cloak] {
    display: none !important;
}



/* Search Bar Component */
.search-bar-component {
    position: relative;
    margin-bottom: var(--space-4);
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 120px;
    transition: width 0.2s ease;
    overflow: hidden;
}

.search-input-wrapper.is-expanded {
    width: 260px;
}

.search-input-wrapper .search-icon {
    position: absolute;
    left: 10px;
    color: var(--color-text-on-dark-muted);
    pointer-events: none;
    z-index: 1;
    flex-shrink: 0;
}

.search-input {
    width: 100%;
    padding: 7px 36px 7px 32px;
    background: transparent;
    border: 1px solid var(--color-border-dark);
    color: var(--color-text-on-dark);
    font-size: 13px;
    font-family: var(--font-sans);
    outline: none;
    transition: background 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}

.search-input::placeholder {
    color: var(--color-text-on-dark-faint);
}

.search-input:focus,
.is-expanded .search-input {
    background: var(--color-bg-surface-dark);
    border-color: var(--color-border-dark);
    cursor: text;
}

.search-input:focus {
    border-color: var(--accent-blue-400);
}

/* Shortcut hint "/" — visible when collapsed */
.search-shortcut {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--color-border-dark);
    color: var(--color-text-on-dark-faint);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    line-height: 1;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.15s ease;
}

.search-shortcut.hidden {
    opacity: 0;
}

/* Esc hint — visible when expanded */
.search-esc {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 18px;
    padding: 0 4px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--color-border-dark);
    color: var(--color-text-on-dark-faint);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.search-esc.visible {
    opacity: 1;
}

.search-esc:hover {
    color: var(--color-text-on-dark-muted);
    border-color: var(--color-text-on-dark-faint);
}

/* Dropdown */
.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg-canvas-raised);
    border: 1px solid var(--color-border-dark);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    margin-top: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.search-status {
    padding: var(--space-4);
    font-size: 13px;
    color: var(--color-text-on-dark-muted);
    text-align: center;
}

.search-results-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-result-item {
    border-bottom: 1px solid var(--color-border-dark);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-link {
    display: flex;
    flex-direction: column;
    padding: var(--space-3) var(--space-4);
    text-decoration: none;
    color: var(--color-text-on-dark);
    transition: background 0.15s;
}

.search-result-link:hover {
    background: var(--color-bg-surface-dark);
}

.search-result-title {
    font-size: 13px;
    font-weight: 500;
}

.search-result-route {
    font-size: 11px;
    color: var(--color-text-on-dark-faint);
    margin-top: 2px;
}

.search-highlight {
    background: rgba(var(--accent-teal-400-rgb), 0.2);
    color: var(--accent-teal-400);
    padding: 0 2px;
    font-weight: 600;
}

/* Blog/Docs page search (non-nav, full-width) */
.blog-search-wrapper .search-input-wrapper,
.blog-post-nav-search .search-input-wrapper {
    width: 100%;
}

.blog-search-wrapper .search-input-wrapper.is-expanded,
.blog-post-nav-search .search-input-wrapper.is-expanded {
    width: 100%;
}

/* Blog Layout */
.blog-container {
    max-width: 800px;
    margin: var(--space-10) auto;
    padding: 0 var(--space-6);
}

.blog-header {
    margin-bottom: var(--space-8);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: var(--space-6);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.blog-search-wrapper {
    width: 300px;
}

.blog-date {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: var(--space-4);
}

.blog-content {
    line-height: 1.8;
}

.blog-content h1 {
    font-size: 32px;
    margin-bottom: var(--space-4);
}

.blog-content h2 {
    font-size: 22px;
    margin-top: var(--space-8);
    margin-bottom: var(--space-3);
}

.blog-content p {
    margin-bottom: var(--space-4);
}


/* Global Reset to remove all roundness and enforce sharp, geometrical design */
*,
*::before,
*::after {
    border-radius: 0 !important;
}