/* Modern, Simple Design System */

/* ── Code Connect — Build Studio design tokens (homepage) ──────────────────── */
:root {
    --cc-paper: #F6F5F1;
    --cc-paper-2: #EFEDE6;
    --cc-ink: #17181C;
    --cc-slate: #565B62;
    --cc-slate-light: #8A8E93;
    --cc-signal: #FF6A1A;
    --cc-signal-hover: #E85E12;
    --cc-signal-ink: #3A1900;
    --cc-circuit: #2451C4;
    --cc-hairline: #DEDAD0;
}

html {
    scroll-behavior: smooth;
    height: 100%;
    overflow-x: hidden;
}

* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body {
    background-color: #ffffff;
    color: #1a1a1a;
    overflow-x: hidden;
    overflow-y: auto;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
}

/* Section spacing and layout */
section {
    position: relative;
    isolation: isolate;
}

#hero {
    position: relative;
    z-index: 10;
}

#services {
    position: relative;
    z-index: 20;
}


/* Ensure footer sections are visible */
footer {
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
}

footer .grid {
    display: grid !important;
    visibility: visible !important;
}

footer > div {
    visibility: visible !important;
    opacity: 1 !important;
}

/* Prevent scrolling below footer */
#footer {
    position: relative;
    margin-bottom: 0;
    padding-bottom: 0;
}

#footer::after {
    content: '';
    display: block;
    height: 0;
    clear: both;
}

/* Prevent extra space after footer and ensure no scrolling past it */
body {
    position: relative;
}

/* Remove any extra margin/padding that might cause scroll */
body > *:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Ensure chat widget doesn't create extra scroll space and stays on top */
.chat-widget {
    position: fixed !important;
    bottom: 220px !important;
    right: 20px !important;
}

.chat-icon-fixed {
    position: fixed !important;
    bottom: 60px !important;
    right: 20px !important;
}

/* Global rule to ensure chat widget and icon are always on top */
body > #chat-widget,
body > #chat-icon {
    position: fixed !important;
    z-index: 2147483647 !important;
    isolation: isolate !important;
    transform: translateZ(0) !important;
}

body > #chat-icon {
    z-index: 2147483646 !important;
}

/* Ensure chat widget and all children maintain fixed width */
#chat-widget,
#chat-widget * {
    max-width: 100% !important;
    box-sizing: border-box;
}

#chat-widget {
    width: 380px !important;
    min-width: 380px !important;
    max-width: 380px !important;
}

/* Subtle background pattern */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.03), transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.03), transparent 50%);
    z-index: -1;
    pointer-events: none;
}

/* Homepage (Build Studio redesign) — flat paper background, no blob decoration */
body.homepage::after {
    content: none;
}

/* Simple, subtle animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Smooth transitions */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Modern scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Selection color */
::selection {
    background: rgba(99, 102, 241, 0.2);
    color: #1a1a1a;
}

/* Simple card hover effect */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

/* Navbar enhancements */
.nav-link.active span {
    color: var(--cc-signal);
}

.nav-link.active .absolute.bottom-0 {
    width: 100%;
}

/* Navbar scroll animation */
header {
    transition: all 0.3s ease;
}

header.shadow-2xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Desktop: Show nav-links and nav-cta, hide mobile menu and toggle */
.nav-links,
.nav-cta {
    display: flex;
}

.mobile-menu,
.nav-toggle {
    display: none;
}

/* Medium screens (769px - 1023px) - use mobile menu */
@media (min-width: 769px) and (max-width: 1023px) {
    .nav-links,
    .nav-cta {
        display: none !important;
    }
    
    .nav-toggle {
        display: flex !important;
    }
    
    .mobile-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 40;
    }
    
    .mobile-menu.open {
        display: flex !important;
    }
}

/* Mobile menu styles */
.mobile-menu {
    display: none;
    flex-direction: column;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.mobile-menu.open {
    display: flex !important;
    transform: translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    max-height: 80vh !important;
    overflow-y: auto;
}

/* Smooth navbar transitions */
.nav-link {
    position: relative;
}

/* Mobile styles (<= 768px) */
@media (max-width: 768px) {
    .nav-links,
    .nav-cta {
        display: none !important;
    }
    
    .nav-toggle {
        display: flex !important;
    }
    
    .mobile-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 40;
    }
    
    .mobile-menu.open {
        display: flex !important;
    }
    
    /* Ensure header has proper spacing on mobile */
    header > div {
        min-height: 60px;
    }
}

/* Extra small mobile screens */
@media (max-width: 480px) {
    .mobile-menu {
        max-height: 85vh !important;
    }
    
    .mobile-menu nav {
        padding: 1rem 0.75rem;
    }
    
    .mobile-menu .nav-link-mobile {
        padding: 0.75rem 1rem;
        font-size: 0.9375rem;
    }
}

/* Ensure header container doesn't overflow on medium screens */
header > div {
    width: 100%;
    box-sizing: border-box;
}

/* Prevent layout issues on medium screens */
@media (min-width: 769px) and (max-width: 1023px) {
    header > div {
        justify-content: space-between;
    }
    
    .nav-toggle {
        margin-left: auto;
    }
}

/* Text reveal animation */
@keyframes text-reveal {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.text-reveal {
    animation: text-reveal 0.6s ease-out forwards;
}

/* Simple slide animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out forwards;
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out forwards;
}

/* Modern button styles */
.btn-primary {
    background: #6366f1;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #4f46e5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
    background: white;
    color: #6366f1;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
    cursor: pointer;
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: #6366f1;
}

/* Modern card style */
.modern-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.modern-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Badge style */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.badge-primary {
    background: #eef2ff;
    color: #6366f1;
    border-color: #c7d2fe;
}

/* Section spacing */
.section-spacing {
    padding: 60px 16px;
}

@media (min-width: 640px) {
    .section-spacing {
        padding: 70px 20px;
    }
}

@media (min-width: 768px) {
    .section-spacing {
        padding: 80px 24px;
    }
}

@media (min-width: 1024px) {
    .section-spacing {
        padding: 80px 24px;
    }
}

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

p {
    line-height: 1.7;
    color: #64748b;
}

/* Focus states */
*:focus {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

/* Tablet and medium screen improvements */
@media (min-width: 768px) and (max-width: 1023px) {
    /* Hamburger menu will be shown, but ensure proper spacing */
    header > div {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Mobile Responsiveness Improvements */
@media (max-width: 1023px) {
    /* Ensure header doesn't overflow */
    header {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Mobile menu button positioning */
    #mobile-menu-btn {
        position: relative;
        z-index: 100;
    }
    
    /* Mobile menu full width and proper z-index */
    #mobile-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 99;
        background: white;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }
    
    /* Ensure desktop nav is hidden on mobile/tablet */
    nav.hidden.lg\:flex {
        display: none !important;
    }
}

@media (max-width: 768px) {
    
    /* Better mobile typography */
    h1 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }
    
    h2 {
        font-size: 1.75rem !important;
        line-height: 1.3 !important;
    }
    
    h3 {
        font-size: 1.5rem !important;
    }
    
    /* Mobile card padding */
    .modern-card {
        padding: 1.5rem;
    }
    
    /* Mobile button full width on small screens */
    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }
    
    /* Mobile grid adjustments */
    .grid {
        gap: 1rem;
    }
    
    /* Mobile spacing adjustments */
    .mb-16 {
        margin-bottom: 3rem;
    }
    
    .mb-12 {
        margin-bottom: 2.5rem;
    }
    
    .mb-10 {
        margin-bottom: 2rem;
    }
    
    .mb-8 {
        margin-bottom: 1.5rem;
    }
    
    /* Hero section mobile adjustments */
    #hero {
        padding-bottom: 3rem;
        min-height: auto;
    }
    
    /* Ensure all headings are responsive */
    h2 {
        font-size: 1.75rem !important;
        line-height: 1.3 !important;
    }
    
    h3 {
        font-size: 1.5rem !important;
    }
    
    /* Better spacing for cards on mobile */
    .modern-card {
        padding: 1.25rem;
    }
    
    /* Improve form inputs on mobile */
    input, textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
}

/* Extra small devices */
@media (max-width: 640px) {
    .section-spacing {
        padding: 40px 12px;
    }
    
    /* Smaller text on very small screens */
    .text-lg {
        font-size: 0.9375rem;
    }
    
    .text-xl {
        font-size: 1.125rem;
    }
    
    /* Tighter spacing */
    .space-y-6 > * + * {
        margin-top: 1rem;
    }
    
    .space-y-4 > * + * {
        margin-top: 0.75rem;
    }
}

/* Chat Icon - Fixed Bottom Left */
.chat-icon-fixed {
    position: fixed !important;
    bottom: 60px !important;
    right: 20px !important;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    border-radius: 50%;
    
    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    z-index: 2147483646 !important;
    isolation: isolate !important;
    transform: translateZ(0) !important;
    will-change: transform !important;

    /* Shadow & border */
    box-shadow:
        0 8px 24px rgba(99, 102, 241, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);

    /* Animation */
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    animation: fadeInUp 0.6s ease-out 0.3s both, pulseGlow 2s ease-in-out infinite;
}

.chat-icon-fixed::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899);
    opacity: 0;
    z-index: -1;
    filter: blur(12px);
    transition: opacity 0.3s ease;
    animation: pulseRing 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4),
                    0 4px 12px rgba(0, 0, 0, 0.15),
                    inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow: 0 8px 32px rgba(99, 102, 241, 0.6),
                    0 4px 16px rgba(0, 0, 0, 0.2),
                    inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }
}

@keyframes pulseRing {
    0%, 100% {
        opacity: 0;
        transform: scale(0.95);
    }
    50% {
        opacity: 0.3;
        transform: scale(1.1);
    }
} */

.chat-icon-fixed:hover {
    transform: scale(1.15) translateY(-2px);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.5),
                0 6px 16px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #db2777 100%);
}

.chat-icon-fixed:hover::before {
    opacity: 0.4;
}

.chat-icon-fixed:active {
    transform: scale(0.95);
}

/* Mobile adjustments for chat icon */
@media (max-width: 768px) {
    .chat-icon-fixed {
        width: 48px;
        height: 48px;
        bottom: 16px;
        right: 16px;
    }
    
    .chat-icon-fixed span[data-svg-icon] svg {
        width: 1.25rem;
        height: 1.25rem;
    }
}

/* Extra small devices */
@media (max-width: 640px) {
    .chat-icon-fixed {
        width: 48px;
        height: 48px;
        bottom: 12px;
        left: 12px;
    }
} */

/* Chat Widget Styles - Simple & Clean */
.chat-widget {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    width: 380px !important;
    min-width: 280px !important; /* Minimum width to prevent breaking */
    max-width: 380px !important;
    min-height: 350px;
    max-height: 350px;
    height: 350px;
    background: #ffffff !important;
    border-radius: 12px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 0, 0, 0.15) !important;
    z-index: 2147483647 !important;
    display: flex !important;
    flex-direction: column;
    overflow: hidden !important;
    box-sizing: border-box !important;
    /* Prevent any child from expanding width */
    contain: layout style;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    border: 2px solid rgba(0, 0, 0, 0.15) !important;
    mix-blend-mode: normal !important;
    isolation: isolate !important;
    transform: translateZ(0) !important;
    will-change: transform, opacity, visibility !important;
    /* Allow transform for dragging */
    transition: opacity 0.3s ease, visibility 0.3s ease !important;
}

/* Disable transition during drag for smooth movement */
.chat-widget.dragging {
    transition: none !important;
}

.chat-widget[data-state="closed"] {
    opacity: 0 !important;
    visibility: hidden !important;
}

.chat-widget[data-state="open"],
.chat-widget[data-state="minimized"] {
    opacity: 1 !important;
    visibility: visible !important;
    min-height: 60px !important;
    max-height: 60px !important;
    height: 60px !important;
    transform: translateY(0) translateZ(0) !important; /* Position at bottom */
    bottom: 20px !important; /* Ensure it's at bottom */
}

.chat-widget[data-state="maximized"] {
    opacity: 1 !important;
    visibility: visible !important;
    min-height: 350px !important;
    max-height: 350px !important;
    height: 350px !important;
    transform: translateY(0) translateZ(0) !important; /* Position at bottom */
    bottom: 20px !important; /* Ensure it's at bottom */
}

/* Ensure all child elements are fully opaque when widget is visible */
.chat-widget[data-state="maximized"],
.chat-widget[data-state="minimized"],
.chat-widget[data-state="open"] {
    mix-blend-mode: normal !important;
}

.chat-widget[data-state="maximized"] *,
.chat-widget[data-state="minimized"] *,
.chat-widget[data-state="open"] * {
    opacity: 1 !important;
    mix-blend-mode: normal !important;
}

/* Chat Widget Header - Simple */
.chat-widget-header {
    height: 60px;
    max-width: 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-radius: 12px 12px 0 0;
    flex-shrink: 0;
    opacity: 1 !important;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    overflow: hidden;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.chat-widget-header:active {
    cursor: grabbing;
}

.chat-widget-header .chat-widget-btn {
    cursor: pointer;
}

.chat-widget-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    flex: 1;
    cursor: grab;
    user-select: none;
}

.chat-widget-title:active {
    cursor: grabbing;
}

.chat-widget-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-widget-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.chat-widget-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.chat-widget-btn:active {
    transform: scale(0.95);
}


/* Chat Widget Content - Simple */
.chat-widget-content {
    flex: 1;
    min-height: 0;
    max-height: 100%;
    max-width: 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #ffffff !important;
    opacity: 1 !important;
    color: #1a1a1a !important;
    box-sizing: border-box;
}

.chat-widget[data-state="maximized"] .chat-widget-content {
    min-height: 290px;
}

/* Responsive content height adjustments */
@media (max-width: 640px) {
    .chat-widget[data-state="maximized"] .chat-widget-content {
        min-height: calc(100vh - 160px); /* Account for header and input */
    }
}

@media (max-width: 480px) {
    .chat-widget[data-state="maximized"] .chat-widget-content {
        min-height: calc(100vh - 140px); /* Account for header and input */
    }
}

@media (max-width: 360px) {
    .chat-widget[data-state="maximized"] .chat-widget-content {
        min-height: calc(100vh - 130px); /* Account for header and input */
    }
}

.chat-widget[data-state="minimized"] .chat-widget-content {
    display: none;
}

.chat-widget-messages {
    flex: 1;
    min-height: 200px;
    max-height: 100%;
    max-width: 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-sizing: border-box;
    /* Prevent content from expanding */
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Custom scrollbar for chat messages */
.chat-widget-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-widget-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-widget-messages::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.2);
    border-radius: 3px;
}

.chat-widget-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.4);
}

.chat-message {
    max-width: 80% !important;
    min-width: 120px !important; /* Ensure messages don't shrink too much */
    width: auto !important;
    padding: 14px 18px;
    border-radius: 18px;
    font-size: 0.9375rem;
    line-height: 1.6;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    animation: messageSlideIn 0.3s ease-out;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    overflow: visible; /* Changed from hidden to visible for better text display */
}

.chat-message:hover {
    transform: translateY(-1px);
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.chat-message-bot {
    align-self: flex-start;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: #1e293b;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
    border-top-left-radius: 4px;
}

.chat-message-bot:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.08);
}

.chat-message-user {
    align-self: flex-end;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4), 0 2px 8px rgba(139, 92, 246, 0.3);
    border-bottom-right-radius: 4px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    position: relative;
}

.chat-message-user::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    border-radius: 18px;
    pointer-events: none;
}

.chat-message-user:hover {
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5), 0 3px 10px rgba(139, 92, 246, 0.4);
}


.chat-message p {
    margin: 0;
    color: inherit;
    font-weight: 400;
    letter-spacing: 0.01em;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap; /* Preserve whitespace and wrap */
}

.chat-message-user p {
    font-weight: 500;
}

/* Error Message */
.chat-message-error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%) !important;
    border-color: #f87171 !important;
    color: #991b1b !important;
}

/* Chat Sources */
.chat-sources {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    max-width: 100%;
    overflow: hidden;
    word-wrap: break-word;
    box-sizing: border-box;
}

.chat-sources-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.chat-source-item {
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(99, 102, 241, 0.05);
    border-radius: 8px;
    border-left: 3px solid #6366f1;
}

.chat-source-filename {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #6366f1;
    display: block;
    margin-bottom: 4px;
}

.chat-source-quote {
    font-size: 0.8125rem;
    color: #475569;
    font-style: italic;
    margin-top: 4px;
}

/* Confidence Score */
.chat-confidence {
    margin-top: 8px;
    padding: 6px 12px;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 6px;
    font-size: 0.75rem;
    color: #16a34a;
    font-weight: 500;
    display: inline-block;
}

/* Follow-up Question */
.chat-follow-up {
    margin-top: 12px;
    padding: 12px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 12px;
    border: 1px solid #bae6fd;
}

.chat-follow-up-label {
    font-size: 0.75rem;
    color: #0369a1;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.chat-follow-up-button {
    width: 100%;
    padding: 10px 16px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.chat-follow-up-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.chat-follow-up-button:active {
    transform: translateY(0);
}

/* Onboarding Form */
.chat-onboarding-form {
    margin-top: 12px;
    padding: 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.chat-onboarding-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
}

.chat-onboarding-input {
    width: 100%;
    padding: 10px 14px;
    margin-bottom: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.875rem;
    outline: none;
    transition: all 0.2s ease;
    background: #ffffff;
    color: #1e293b;
    box-sizing: border-box;
}

.chat-onboarding-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.chat-onboarding-submit {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 4px;
}

.chat-onboarding-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.chat-onboarding-submit:active {
    transform: translateY(0);
}

/* Onboarding Choice Buttons */
.chat-onboarding-choice-btn {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.chat-onboarding-choice-btn:last-child {
    margin-bottom: 0;
}

.chat-onboarding-choice-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.chat-onboarding-choice-btn:active {
    transform: translateY(0);
}

/* Typing Indicator */
.chat-message-loading {
    align-self: flex-start;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
    border-top-left-radius: 4px;
    padding: 16px 20px;
}

.chat-typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 0;
}

.chat-typing-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6366f1;
    display: inline-block;
    animation: typingBounce 1.4s infinite ease-in-out;
}

.chat-typing-indicator span:nth-child(1) {
    animation-delay: -0.32s;
}

.chat-typing-indicator span:nth-child(2) {
    animation-delay: -0.16s;
}

.chat-typing-indicator span:nth-child(3) {
    animation-delay: 0;
}

@keyframes typingBounce {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Chat Widget Input Container */
.chat-widget-input-container {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px;
    border-top: 1px solid #e2e8f0;
    background: #ffffff;
    flex-shrink: 0;
    flex-grow: 0;
    min-height: fit-content;
    max-width: 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
    overflow: hidden;
}

.chat-widget[data-state="minimized"] .chat-widget-input-container {
    display: none;
}

.chat-widget-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    font-size: 0.9375rem;
    outline: none;
    transition: all 0.2s ease;
    background: #f8fafc;
    color: #1e293b;
}

.chat-widget-input:focus {
    border-color: #6366f1;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.chat-widget-input::placeholder {
    color: #94a3b8;
}

.chat-widget-send-btn {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.chat-widget-send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

.chat-widget-send-btn:active {
    transform: scale(0.95);
}

.chat-widget-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Chat icon visibility is handled by JavaScript */

/* Responsive styles for chat widget */
@media (max-width: 768px) {
    .chat-widget {
        width: calc(100vw - 40px) !important;
        min-width: 280px !important; /* Prevent too narrow on small tablets */
        max-width: calc(100vw - 40px) !important;
        right: 20px !important;
        left: 20px !important;
        bottom: 80px !important; /* Space for chat icon */
        min-height: 300px !important;
        max-height: calc(100vh - 120px) !important; /* Account for icon and padding */
        height: 350px !important;
    }
    
    .chat-widget[data-state="maximized"] {
        height: calc(100vh - 120px) !important;
        max-height: calc(100vh - 120px) !important;
        bottom: 80px !important;
    }
    
    .chat-widget[data-state="minimized"],
    .chat-widget[data-state="open"] {
        height: 60px !important;
        min-height: 60px !important;
        max-height: 60px !important;
        bottom: 20px !important; /* Position at bottom when minimized */
        transform: translateY(0) translateZ(0) !important;
    }
    
    .chat-icon-fixed {
        bottom: 20px !important;
        left: 20px !important;
        right: auto !important;
    }
    
    .chat-message {
        max-width: 85% !important;
        min-width: 120px !important;
    }
}

@media (max-width: 640px) {
    .chat-widget {
        width: calc(100vw - 24px) !important;
        min-width: 260px !important; /* Prevent too narrow */
        max-width: calc(100vw - 24px) !important;
        right: 12px !important;
        left: 12px !important;
        bottom: 72px !important; /* Space for chat icon */
        min-height: 280px !important;
        max-height: calc(100vh - 100px) !important; /* Account for icon and padding */
        height: 320px !important;
        border-radius: 16px;
    }
    
    .chat-widget[data-state="maximized"] {
        height: calc(100vh - 100px) !important;
        max-height: calc(100vh - 100px) !important;
        bottom: 72px !important;
    }
    
    .chat-widget[data-state="minimized"],
    .chat-widget[data-state="open"] {
        height: 60px !important;
        min-height: 60px !important;
        max-height: 60px !important;
        bottom: 12px !important; /* Position at bottom when minimized */
        transform: translateY(0) translateZ(0) !important;
    }
    
    .chat-icon-fixed {
        bottom: 12px !important;
        left: 12px !important;
    }
    
    .chat-widget-header {
        border-radius: 16px 16px 0 0;
        height: 60px;
        padding: 0 16px;
    }
    
    .chat-widget-title {
        font-size: 1rem;
    }
    
    .chat-widget-btn {
        width: 32px;
        height: 32px;
    }
    
    .chat-message {
        max-width: 85% !important;
        min-width: 100px !important;
        padding: 12px 16px;
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .chat-widget {
        width: calc(100vw - 24px) !important;
        min-width: 240px !important; /* Prevent too narrow on small phones */
        max-width: calc(100vw - 24px) !important;
        right: 12px !important;
        left: 12px !important;
        bottom: 70px !important; /* Space for chat icon */
        min-height: 250px !important;
        max-height: calc(100vh - 90px) !important; /* Account for icon and padding */
        height: 300px !important;
    }
    
    .chat-widget[data-state="maximized"] {
        height: calc(100vh - 90px) !important;
        max-height: calc(100vh - 90px) !important;
        bottom: 70px !important;
    }
    
    .chat-widget[data-state="minimized"],
    .chat-widget[data-state="open"] {
        height: 60px !important;
        min-height: 60px !important;
        max-height: 60px !important;
        bottom: 12px !important; /* Position at bottom when minimized */
        transform: translateY(0) translateZ(0) !important;
    }
    
    .chat-icon-fixed {
        width: 50px !important;
        height: 50px !important;
        bottom: 12px !important;
        left: 12px !important;
    }
    
    .chat-widget-header {
        height: 50px;
        padding: 0 16px;
    }
    
    .chat-widget-title {
        font-size: 0.875rem;
    }
    
    .chat-message {
        max-width: 90% !important;
        min-width: 80px !important;
        padding: 12px 14px;
        font-size: 0.8125rem;
    }
    
    .chat-widget-input-container {
        padding: 12px;
    }
    
    .chat-widget-messages {
        padding: 16px;
    }
}

@media (max-width: 360px) {
    .chat-widget {
        width: calc(100vw - 16px) !important;
        min-width: 220px !important; /* Absolute minimum width */
        max-width: calc(100vw - 16px) !important;
        right: 8px !important;
        left: 8px !important;
        bottom: 68px !important; /* Space for chat icon */
        min-height: 220px !important;
        max-height: calc(100vh - 85px) !important; /* Account for icon and padding */
        height: 280px !important;
    }
    
    .chat-widget[data-state="maximized"] {
        height: calc(100vh - 85px) !important;
        max-height: calc(100vh - 85px) !important;
        bottom: 68px !important;
    }
    
    .chat-widget[data-state="minimized"],
    .chat-widget[data-state="open"] {
        height: 60px !important;
        min-height: 60px !important;
        max-height: 60px !important;
        bottom: 10px !important; /* Position at bottom when minimized */
        transform: translateY(0) translateZ(0) !important;
    }
    
    .chat-icon-fixed {
        width: 48px !important;
        height: 48px !important;
        bottom: 10px !important;
        left: 10px !important;
    }
    
    .chat-message {
        max-width: 92% !important;
        min-width: 70px !important;
        padding: 10px 12px;
        font-size: 0.75rem;
    }
}

/* Additional breakpoints for better coverage - Middle level screens */
@media (min-width: 481px) and (max-width: 639px) {
    .chat-widget {
        width: calc(100vw - 24px) !important;
        min-width: 260px !important;
        max-width: calc(100vw - 24px) !important;
        right: 12px !important;
        left: 12px !important;
        bottom: 72px !important;
        min-height: 280px !important;
        max-height: calc(100vh - 100px) !important;
        height: 320px !important;
    }
    
    .chat-widget[data-state="maximized"] {
        height: calc(100vh - 100px) !important;
        max-height: calc(100vh - 100px) !important;
        bottom: 72px !important;
    }
    
    .chat-widget[data-state="minimized"],
    .chat-widget[data-state="open"] {
        height: 60px !important;
        min-height: 60px !important;
        max-height: 60px !important;
        bottom: 12px !important;
        transform: translateY(0) translateZ(0) !important;
    }
    
    .chat-icon-fixed {
        bottom: 12px !important;
        left: 12px !important;
    }
}

@media (min-width: 641px) and (max-width: 767px) {
    .chat-widget {
        width: calc(100vw - 40px) !important;
        min-width: 280px !important;
        max-width: calc(100vw - 40px) !important;
        right: 20px !important;
        left: 20px !important;
        bottom: 80px !important;
        min-height: 300px !important;
        max-height: calc(100vh - 120px) !important;
        height: 350px !important;
    }
    
    .chat-widget[data-state="maximized"] {
        height: calc(100vh - 120px) !important;
        max-height: calc(100vh - 120px) !important;
        bottom: 80px !important;
    }
    
    .chat-widget[data-state="minimized"],
    .chat-widget[data-state="open"] {
        height: 60px !important;
        min-height: 60px !important;
        max-height: 60px !important;
        bottom: 20px !important;
        transform: translateY(0) translateZ(0) !important;
    }
    
    .chat-icon-fixed {
        bottom: 20px !important;
        left: 20px !important;
        right: auto !important;
    }
}

@media (min-width: 361px) and (max-width: 479px) {
    .chat-widget {
        width: calc(100vw - 24px) !important;
        min-width: 240px !important;
        max-width: calc(100vw - 24px) !important;
        right: 12px !important;
        left: 12px !important;
        bottom: 70px !important;
        min-height: 250px !important;
        max-height: calc(100vh - 90px) !important;
        height: 300px !important;
    }
    
    .chat-widget[data-state="maximized"] {
        height: calc(100vh - 90px) !important;
        max-height: calc(100vh - 90px) !important;
        bottom: 70px !important;
    }
    
    .chat-widget[data-state="minimized"],
    .chat-widget[data-state="open"] {
        height: 60px !important;
        min-height: 60px !important;
        max-height: 60px !important;
        bottom: 12px !important;
        transform: translateY(0) translateZ(0) !important;
    }
    
    .chat-icon-fixed {
        width: 50px !important;
        height: 50px !important;
        bottom: 12px !important;
        left: 12px !important;
    }
}

/* Tablet and medium screens */
@media (min-width: 769px) and (max-width: 1024px) {
    .chat-widget {
        width: 360px !important;
        min-width: 360px !important;
        max-width: 360px !important;
        bottom: 20px !important;
        right: 20px !important;
    }
    
    .chat-widget[data-state="maximized"] {
        height: 350px !important;
        max-height: 350px !important;
        bottom: 20px !important;
    }
    
    .chat-widget[data-state="minimized"],
    .chat-widget[data-state="open"] {
        height: 60px !important;
        min-height: 60px !important;
        max-height: 60px !important;
        bottom: 20px !important;
        transform: translateY(0) translateZ(0) !important;
    }
}

@media (min-width: 1025px) and (max-width: 1280px) {
    .chat-widget {
        width: 380px !important;
        min-width: 380px !important;
        max-width: 380px !important;
        bottom: 20px !important;
        right: 20px !important;
    }
    
    .chat-widget[data-state="maximized"] {
        height: 350px !important;
        max-height: 350px !important;
        bottom: 20px !important;
    }
    
    .chat-widget[data-state="minimized"],
    .chat-widget[data-state="open"] {
        height: 60px !important;
        min-height: 60px !important;
        max-height: 60px !important;
        bottom: 20px !important;
        transform: translateY(0) translateZ(0) !important;
    }
}

/* Ensure minimized state always at bottom on desktop */
@media (min-width: 769px) {
    .chat-widget[data-state="minimized"],
    .chat-widget[data-state="open"] {
        bottom: 20px !important;
        transform: translateY(0) translateZ(0) !important;
    }
}

/* Extra coverage for very specific screen sizes */
@media (min-width: 320px) and (max-width: 359px) {
    .chat-widget {
        width: calc(100vw - 16px) !important;
        min-width: 220px !important;
        max-width: calc(100vw - 16px) !important;
        right: 8px !important;
        left: 8px !important;
        bottom: 68px !important;
        min-height: 220px !important;
        max-height: calc(100vh - 85px) !important;
        height: 280px !important;
    }
    
    .chat-widget[data-state="maximized"] {
        height: calc(100vh - 85px) !important;
        max-height: calc(100vh - 85px) !important;
        bottom: 68px !important;
    }
    
    .chat-widget[data-state="minimized"],
    .chat-widget[data-state="open"] {
        height: 60px !important;
        min-height: 60px !important;
        max-height: 60px !important;
        bottom: 10px !important;
        transform: translateY(0) translateZ(0) !important;
    }
    
    .chat-icon-fixed {
        width: 48px !important;
        height: 48px !important;
        bottom: 10px !important;
        left: 10px !important;
    }
}

/* Catch-all rule to prevent breaking on any screen size */
@media (max-width: 1920px) {
    .chat-widget {
        /* Ensure widget never exceeds viewport */
        max-width: min(380px, calc(100vw - 40px)) !important;
        max-height: min(350px, calc(100vh - 40px)) !important;
    }
    
    .chat-widget[data-state="maximized"] {
        max-height: min(500px, calc(100vh - 40px)) !important;
    }
    
    .chat-widget[data-state="minimized"],
    .chat-widget[data-state="open"] {
        max-height: 60px !important;
        height: 60px !important;
    }
}

/* ── Code Connect — Build Studio homepage ───────────────────────────────────
   Flat design language: hairline borders instead of shadows, no gradients,
   no floating blur decoration. Scoped to body.homepage so other pages
   (projects, project room, admin, client) keep their existing look. ────── */

body.homepage {
    background-color: var(--cc-paper);
    color: var(--cc-ink);
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body.homepage h1,
body.homepage h2,
body.homepage h3,
body.homepage h4 {
    font-family: 'Archivo', sans-serif;
    color: var(--cc-ink);
    letter-spacing: -0.01em;
}

body.homepage p {
    color: var(--cc-slate);
}

body.homepage a {
    color: inherit;
}

body.homepage *:focus-visible {
    outline: 2px solid var(--cc-signal);
    outline-offset: 2px;
}

/* Section label — small uppercase mono annotation, replaces numbered badges */
.section-label {
    font-family: 'IBM Plex Mono', 'Courier New', monospace;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--cc-slate-light);
}

/* Buttons */
.btn-signal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: var(--cc-signal);
    color: var(--cc-signal-ink);
    font-weight: 600;
    padding: 0.9rem 1.75rem;
    border-radius: 4px;
    border: 1px solid var(--cc-signal);
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-signal:hover {
    background-color: var(--cc-signal-hover);
    border-color: var(--cc-signal-hover);
}

.btn-outline-ink {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: transparent;
    color: var(--cc-ink);
    font-weight: 600;
    padding: 0.85rem 1.7rem;
    border-radius: 4px;
    border: 1px solid var(--cc-hairline);
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.btn-outline-ink:hover {
    border-color: var(--cc-ink);
    background-color: var(--cc-paper-2);
}

/* Build-spec schematic — vertical list of disciplines with dot markers */
.build-spec-item {
    position: relative;
    padding-left: 1.75rem;
    border-left: 1px solid var(--cc-hairline);
}

.build-spec-item::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 0.4rem;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: var(--cc-circuit);
    border: 2px solid var(--cc-paper);
}

.build-spec-item.is-active::before {
    background-color: var(--cc-signal);
}

/* Service cards */
.svc-card {
    border: 1px solid var(--cc-hairline);
    background-color: var(--cc-paper);
    padding: 2rem;
    transition: border-color 0.2s ease;
}

.svc-card:hover {
    border-color: var(--cc-ink);
}

.svc-num {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    color: var(--cc-slate-light);
}

/* Process rows */
.process-row {
    border-top: 1px solid var(--cc-hairline);
}

.process-row:last-child {
    border-bottom: 1px solid var(--cc-hairline);
}

/* Proof band */
.proof-band {
    background-color: var(--cc-ink);
    color: var(--cc-paper);
}

.proof-band p {
    color: var(--cc-slate-light);
}

.proof-stat-num {
    font-family: 'Archivo', sans-serif;
    font-weight: 800;
    color: var(--cc-signal);
}

/* Work page — case studies */
.case-study {
    border-top: 1px solid var(--cc-hairline);
    padding: 3rem 0;
}

.case-study:first-child {
    border-top: none;
    padding-top: 0;
}

.tech-pill {
    display: inline-flex;
    align-items: center;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    color: var(--cc-slate);
    border: 1px solid var(--cc-hairline);
    padding: 0.35rem 0.7rem;
    border-radius: 3px;
}

/* Status badge — small pill with a colored dot, used on the Work page */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--cc-slate);
    border: 1px solid var(--cc-hairline);
    padding: 0.35rem 0.7rem;
    border-radius: 3px;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--cc-slate-light);
    flex-shrink: 0;
}

.status-dot--shipped {
    background-color: var(--cc-signal);
}

.status-dot--active {
    background-color: var(--cc-circuit);
}

.status-dot--soon {
    background-color: var(--cc-slate-light);
}

.state-text {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.9rem;
    color: var(--cc-slate-light);
    text-align: center;
    padding: 4rem 0;
}

/* Contact form */
.form-field label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cc-slate-light);
    display: block;
    margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    background-color: var(--cc-paper);
    border: 1px solid var(--cc-hairline);
    border-radius: 4px;
    padding: 0.75rem 1rem;
    font-family: 'IBM Plex Sans', sans-serif;
    color: var(--cc-ink);
    transition: border-color 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--cc-signal);
}

.form-textarea {
    resize: vertical;
    min-height: 140px;
}

/* Respect reduced-motion preference site-wide */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

