:root {
    /* Base colors - will be overridden by theme classes */
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --text-primary: #f5f5f5;
    --text-secondary: #a0a0a0;
    --border-color: #2a2a2a;
    --hover-bg: #1a1a1a;
    --cta-bg: #f5f5f5;
    --cta-text: #0a0a0a;
    --cta-hover: #e0e0e0;
    --dropdown-bg: #111111;
    --dropdown-shadow: rgba(0, 0, 0, 0.5);
    --hero-bg: #0a0a0a;
    --purple-section: #7a5d6b;
    --dashboard-bg: #0a0a0a;
    --accent-blue: #4A90E2;
    --accent-blue-soft: rgba(74, 144, 226, 0.15);
    --accent-blue-glow: rgba(74, 144, 226, 0.3);
    --shape-bg: #111111;
}

body.light {
    --bg-primary: #fafafa;
    --bg-secondary: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --border-color: #888888;
    --hover-bg: #f5f5f5;
    --cta-bg: #1a1a1a;
    --cta-text: #ffffff;
    --cta-hover: #333333;
    --dropdown-bg: #ffffff;
    --dropdown-shadow: rgba(0, 0, 0, 0.1);
    --hero-bg: #fafafa;
    --purple-section: #9a7a8a;
    --dashboard-bg: #0a0a0a;
    --accent-blue: #4A90E2;
    --accent-blue-soft: rgba(74, 144, 226, 0.12);
    --accent-blue-glow: rgba(74, 144, 226, 0.25);
    --shape-bg: #ffffff;
}

body.dark {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --text-primary: #f5f5f5;
    --text-secondary: #a0a0a0;
    --border-color: #2a2a2a;
    --hover-bg: #1a1a1a;
    --cta-bg: #f5f5f5;
    --cta-text: #0a0a0a;
    --cta-hover: #e0e0e0;
    --dropdown-bg: #111111;
    --dropdown-shadow: rgba(0, 0, 0, 0.5);
    --hero-bg: #0a0a0a;
    --purple-section: #7a5d6b;
    --dashboard-bg: #0a0a0a;
    --accent-blue: #4A90E2;
    --accent-blue-soft: rgba(74, 144, 226, 0.15);
    --accent-blue-glow: rgba(74, 144, 226, 0.3);
    --shape-bg: #111111;
}

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

body {
    font-family: 'Familjen Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 0;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

/* Brand */
.navbar-brand {
    flex-shrink: 0;
}

.brand-link {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.brand-link:hover {
    color: var(--text-primary);
    opacity: 0.8;
}

.brand-link sup {
    font-size: 0.6em;
    vertical-align: super;
    font-weight: 400;
}

/* Navigation Links */
.navbar-nav {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    justify-content: center;
    margin: 0 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    position: relative;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--text-primary);
    background-color: var(--hover-bg);
    outline: none;
}

.dropdown-arrow {
    transition: transform 0.2s ease;
}

.dropdown-container:hover .dropdown-arrow,
.dropdown-container:focus-within .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-container {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    background-color: var(--dropdown-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--dropdown-shadow);
    list-style: none;
    min-width: 180px;
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 100;
}

.dropdown-container:hover .dropdown-menu,
.dropdown-container:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 0.625rem 1rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.dropdown-link:hover,
.dropdown-link:focus {
    color: var(--text-primary);
    background-color: var(--hover-bg);
    outline: none;
}

/* Navbar Actions */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.theme-toggle:hover,
.theme-toggle:focus {
    background-color: var(--hover-bg);
    color: var(--text-primary);
    outline: none;
}

.theme-icon {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

body.light .moon-icon {
    display: none;
}

body.dark .sun-icon {
    display: none;
}

/* CTA Button */
.cta-button {
    background-color: var(--cta-bg);
    color: var(--cta-text);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 0.625rem 1.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: inline-block;
    white-space: nowrap;
}

.cta-button:hover,
.cta-button:focus {
    background-color: var(--cta-hover);
    transform: translateY(-1px);
    outline: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

body.dark .cta-button:hover,
body.dark .cta-button:focus {
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero {
    background-color: var(--hero-bg);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 4rem 2rem 4rem;
    position: relative;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    text-align: center;
}

.hero-headline {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.hero-subheadline {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 2rem;
}

.hero-clarification {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 1.5rem auto 0;
    opacity: 0.8;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.hero-cta-primary,
.hero-cta-secondary {
    padding: 0.625rem 1.5rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}

.hero-cta-primary {
    background-color: var(--cta-bg);
    color: var(--cta-text);
}

.hero-cta-primary:hover {
    background-color: #e0e0e0;
    transform: translateY(-1px);
}

.hero-cta-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.hero-cta-secondary:hover {
    border-color: var(--border-color);
    background-color: var(--hover-bg);
}

/* System Preview - Hero Section Only */
.hero .system-preview {
    margin-top: 4rem;
}

/* Blue Section Container - Hero */
.purple-section {
    background: linear-gradient(135deg, #4A90E2 0%, #5BA3F5 50%, #6BB6FF 100%);
    border-radius: 24px;
    padding: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    transition: background 0.3s ease;
}

/* Transformation View Container */
.dashboard-container {
    background-color: var(--dashboard-bg);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    z-index: 2;
    height: 500px;
    display: flex;
    flex-direction: column;
    max-width: 900px;
    margin: 0 auto;
}

.transformation-view {
    display: flex;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.transformation-before {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: #f5f5f5;
    padding: 1rem;
    scrollbar-width: thin;
    scrollbar-color: #e8e8e8 #f5f5f5;
}

.transformation-before::-webkit-scrollbar {
    width: 6px;
}

.transformation-before::-webkit-scrollbar-track {
    background-color: #f5f5f5;
}

.transformation-before::-webkit-scrollbar-thumb {
    background-color: #e8e8e8;
    border-radius: 3px;
}

.transformation-after {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: var(--dashboard-bg);
    padding: 1rem;
    scrollbar-width: thin;
    scrollbar-color: #1a1a1a var(--dashboard-bg);
}

.transformation-after::-webkit-scrollbar {
    width: 6px;
}

.transformation-after::-webkit-scrollbar-track {
    background-color: var(--dashboard-bg);
}

.transformation-after::-webkit-scrollbar-thumb {
    background-color: #1a1a1a;
    border-radius: 3px;
}

.transformation-divider {
    width: 4px;
    background-color: rgba(255, 255, 255, 0.2);
    cursor: col-resize;
    position: relative;
    flex-shrink: 0;
    z-index: 10;
}

.transformation-divider:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.divider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 48px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.divider-handle::before,
.divider-handle::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 1px;
}

.divider-handle::before {
    left: 8px;
}

.divider-handle::after {
    right: 8px;
}

.spreadsheet-table {
    width: 100%;
    font-size: 0.8125rem;
    color: #333;
}

.spreadsheet-table table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
}

.spreadsheet-table th {
    background-color: #e8e8e8;
    padding: 0.5rem 0.75rem;
    text-align: left;
    font-weight: 600;
    border: 1px solid #d0d0d0;
    font-size: 0.75rem;
}

.spreadsheet-table td {
    padding: 0.5rem 0.75rem;
    border: 1px solid #e0e0e0;
    background-color: #fff;
}

.spreadsheet-table tr:nth-child(even) td {
    background-color: #fafafa;
}

.system-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.request-card {
    background-color: #111111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 1rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.card-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.status-pill {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
    text-transform: capitalize;
}

.status-completed {
    background-color: rgba(183, 223, 185, 0.3);
    color: #a5d6a7;
}

.status-in-progress {
    background-color: rgba(179, 229, 252, 0.3);
    color: #81d4fa;
}

.status-pending {
    background-color: rgba(255, 224, 178, 0.3);
    color: #ffcc80;
}

.card-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.card-owner {
    font-weight: 500;
}

.card-date {
    color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 768px) {
    .transformation-view {
        flex-direction: column;
    }
    
    .transformation-divider {
        width: 100%;
        height: 4px;
        cursor: row-resize;
    }
    
    .divider-handle {
        width: 48px;
        height: 32px;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }
    
    .divider-handle::before,
    .divider-handle::after {
        width: 12px;
        height: 2px;
    }
    
    .divider-handle::before {
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .divider-handle::after {
        bottom: 8px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .transformation-before,
    .transformation-after {
        flex: 0 0 50%;
    }
}

.dashboard-nav {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background-color: #111111;
    padding: 0;
    gap: 0;
}

.dashboard-tab {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: 'Familjen Grotesk', sans-serif;
    border: 2px solid transparent;
    margin: 0.25rem;
    border-radius: 0;
}

.dashboard-tab:hover {
    color: rgba(255, 255, 255, 0.8);
}

.dashboard-tab.active {
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.dashboard-content {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
}

/* Custom scrollbar for dashboard */
.dashboard-content::-webkit-scrollbar {
    width: 6px;
}

.dashboard-content::-webkit-scrollbar-track {
    background: #0a0a0a;
}

.dashboard-content::-webkit-scrollbar-thumb {
    background: #1a1a1a;
    border-radius: 3px;
}

.dashboard-content::-webkit-scrollbar-thumb:hover {
    background: #2a2a2a;
}

/* Firefox scrollbar */
.dashboard-content {
    scrollbar-width: thin;
    scrollbar-color: #1a1a1a #0a0a0a;
}

.dashboard-panel {
    display: none;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.dashboard-panel.active {
    display: block;
    opacity: 1;
}

/* Overview Panel - Dense Layout */
.overview-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    height: 100%;
}

.overview-kpis {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.kpi-item {
    background-color: #111111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 1rem;
}

.kpi-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kpi-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
}

.chart-container {
    background-color: #111111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 1rem;
}

.chart-header {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Vertical Bar Chart for Performance Metrics */
.bar-chart-vertical {
    height: 80px;
    position: relative;
}

.chart-axes {
    display: flex;
    height: 100%;
    gap: 0.5rem;
}

.chart-y-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-right: 0.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 30px;
}

.axis-label {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: right;
}

.chart-bars-container {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    gap: 0.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chart-bar-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    gap: 0.25rem;
}

.chart-bar {
    width: 100%;
    min-width: 8px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 2px 2px 0 0;
    transition: background-color 0.2s ease;
}

.chart-x-label {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bar-chart {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bar-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.bar-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    width: 60px;
    font-weight: 500;
}

.bar {
    flex: 1;
    height: 16px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.bar::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.6) 100%);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.bar-item:nth-child(1) .bar::after { width: 85%; }
.bar-item:nth-child(2) .bar::after { width: 70%; }
.bar-item:nth-child(3) .bar::after { width: 55%; }
.bar-item:nth-child(4) .bar::after { width: 40%; }

.bar-value {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    width: 40px;
    text-align: right;
    font-weight: 500;
}

.status-panel {
    background-color: #111111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 1rem;
}

.status-header {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-indicator.running {
    background-color: rgba(255, 180, 220, 0.8);
}

.status-indicator.delayed {
    background-color: rgba(255, 150, 200, 0.8);
}

.status-indicator.flagged {
    background-color: rgba(255, 100, 180, 0.8);
}

.status-text {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

.activity-feed {
    background-color: #111111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 1rem;
    grid-column: span 2;
}

.activity-header {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.activity-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-time {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    width: 50px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.activity-text {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.7);
    flex: 1;
}

/* Workflows Panel - Reorganized Layout */
.workflow-layout {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
}

.workflow-main {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
}

.workflow-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.workflow-metric-card {
    background-color: #111111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 0.75rem;
}

.workflow-metric-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.workflow-metric-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.workflow-metric-trend {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
}

.workflow-chart-container {
    background-color: #111111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 1rem;
}

.workflow-timeline-chart {
    height: 60px;
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline-bar {
    position: absolute;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 2px 2px 0 0;
    min-width: 20px;
}

.workflow-steps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.workflow-step-card {
    background-color: #111111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.step-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
    flex-shrink: 0;
}

.step-info {
    flex: 1;
}

.step-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.step-status {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-weight: 500;
    display: inline-block;
}

.step-status.running {
    background-color: rgba(255, 180, 220, 0.2);
    color: rgba(255, 180, 220, 0.9);
}

.step-status.queued {
    background-color: rgba(255, 160, 200, 0.2);
    color: rgba(255, 160, 200, 0.9);
}

.step-status.pending {
    background-color: rgba(255, 150, 200, 0.2);
    color: rgba(255, 150, 200, 0.9);
}

.step-progress {
    width: 100%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.progress-bar {
    height: 100%;
    background-color: rgba(255, 180, 220, 0.6);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.sidebar-header {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.metric-item:last-child {
    border-bottom: none;
}

.metric-label {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.6);
}

.metric-value {
    font-size: 0.8125rem;
    color: #ffffff;
    font-weight: 600;
}

.error-count {
    font-size: 1.25rem;
    color: rgba(255, 100, 180, 0.9);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.error-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.error-item {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    padding: 0.5rem;
    background-color: rgba(255, 100, 180, 0.1);
    border-radius: 4px;
}

/* Clients Panel - Dense Layout */
.clients-layout {
    display: grid;
    grid-template-columns: 1fr 240px;
    gap: 1rem;
    height: 100%;
}

.clients-main {
    overflow-y: auto;
}

.table-filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.filter-btn {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    font-family: 'Familjen Grotesk', sans-serif;
}

.filter-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.filter-btn.active {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.table-container {
    display: flex;
    flex-direction: column;
}

.table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr 2fr;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 0.5rem;
}

.table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr 2fr;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.table-col {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.table-header .table-col {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.table-action {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    font-family: 'Familjen Grotesk', sans-serif;
    margin-right: 0.5rem;
}

.table-action:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.active {
    background-color: rgba(255, 180, 220, 0.8);
}

.status-dot.pending {
    background-color: rgba(255, 150, 200, 0.8);
}

.clients-sidebar {
    background-color: #111111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 1rem;
    overflow-y: auto;
}

.summary-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-value {
    font-size: 0.875rem;
    color: #ffffff;
    font-weight: 500;
}

/* Automations Panel - Dense Layout */
.automations-layout {
    height: 100%;
    overflow-y: auto;
}

.rule-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.rule-card {
    background-color: #111111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 1rem;
}

.rule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.rule-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
}

.rule-toggle {
    width: 36px;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.rule-toggle::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.2s ease;
}

.rule-toggle.active {
    background-color: rgba(255, 180, 220, 0.4);
}

.rule-toggle.active::after {
    transform: translateX(16px);
    background-color: rgba(255, 180, 220, 0.9);
}

.rule-logic {
    margin-bottom: 0.75rem;
}

.rule-if {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.rule-then {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.rule-metrics {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    padding: 0.75rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.metric {
    display: flex;
    gap: 0.5rem;
}

.metric-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.metric-value {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

.rule-actions {
    display: flex;
    gap: 0.5rem;
}

.rule-btn {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    font-family: 'Familjen Grotesk', sans-serif;
}

.rule-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* What We Build Section */
.what-we-build {
    background-color: var(--bg-primary);
    padding: 6rem 2rem;
    transition: background-color 0.3s ease;
}

.what-we-build-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.what-we-build-header {
    margin-bottom: 4rem;
}

.what-we-build-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.2;
    padding-left: calc((100% - 1200px) / 2);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Pricing Section Styles */
.pricing-header-centered {
    text-align: center;
    margin-bottom: 3rem;
}

.pricing-title-centered {
    padding-left: 0 !important;
    text-align: center;
}

.pricing-subtitle-centered {
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 0;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    display: block;
}

.pricing-card {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--shape-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2.5rem;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.pricing-card:hover {
    box-shadow: 0 0 30px rgba(74, 144, 226, 0.4), 0 0 60px rgba(74, 144, 226, 0.2);
    border-color: rgba(74, 144, 226, 0.3);
}

.pricing-price-section {
    text-align: center;
    margin-bottom: 0;
    margin-left: -2.5rem;
    margin-right: -2.5rem;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0;
}

.pricing-divider {
    width: calc(100% + 5rem);
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 2rem -2.5rem;
}

.pricing-features-section {
    text-align: left;
}

.pricing-features-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.pricing-feature-group {
    margin-bottom: 1.5rem;
}

.pricing-feature-group:last-child {
    margin-bottom: 0;
}

.pricing-feature-group-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.pricing-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.pricing-feature-item:last-child {
    margin-bottom: 0;
}

.check-icon {
    flex-shrink: 0;
    margin-top: 0.125rem;
    color: var(--accent-blue);
    width: 16px;
    height: 16px;
}

@media (max-width: 768px) {
    .pricing-card {
        padding: 1.5rem;
    }
    
    .pricing-price-section {
        margin-left: -1.5rem;
        margin-right: -1.5rem;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .pricing-divider {
        width: calc(100% + 3rem);
        margin: 2rem -1.5rem;
    }
    
    .pricing-price {
        font-size: 2.5rem;
    }
    
    .pricing-features-title {
        font-size: 1.125rem;
    }
    
    .pricing-feature-group-title {
        font-size: 0.9375rem;
    }
    
    .pricing-feature-item {
        font-size: 0.875rem;
    }
}

.what-we-build-subtext {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 600px;
}

.what-we-build-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: minmax(280px, 320px) minmax(280px, 320px);
    gap: 1.5rem;
    grid-auto-flow: row;
}

.build-block {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.2s ease;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Light mode - cards stay white, shapes are white with black borders */
body.light .build-block {
    background-color: var(--bg-secondary);
}

.build-block:hover {
    border-color: var(--text-secondary);
    background-color: var(--hover-bg);
}

/* Blue borders on hover for Internal Dashboards, Client & Partner Portals, and Process Automation */
.build-block:nth-child(2):hover {
    border-color: var(--accent-blue);
}

.build-block:nth-child(3):hover {
    border-color: var(--accent-blue);
}

.build-block:nth-child(4):hover {
    border-color: var(--accent-blue);
}

/* Explicit grid placement */
.build-block-primary {
    grid-column: 1;
    grid-row: 1 / 3;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    transition: border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light mode - primary card stays white */
body.light .build-block-primary {
    background-color: var(--bg-secondary);
}

.build-block-primary:hover {
    border-color: var(--accent-blue);
    background-color: var(--hover-bg);
}

.build-block:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}

.build-block:nth-child(3) {
    grid-column: 3;
    grid-row: 1;
}

.build-block:nth-child(4) {
    grid-column: 2 / 4;
    grid-row: 2;
}

.build-block-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.3;
    flex-shrink: 0;
}

.build-block-description {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}

/* System Previews (scoped to build blocks only) */
.build-block .system-preview {
    margin-top: auto;
    opacity: 0.35;
    transition: opacity 0.4s ease;
    pointer-events: none;
    flex-shrink: 0;
    overflow: hidden;
}

.build-block:hover .system-preview {
    opacity: 0.45;
}

/* Custom Business Platforms - 4-Piece Puzzle */
.system-preview-platform {
    position: relative;
    flex: 1;
    min-height: 280px;
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--bg-primary);
    border-radius: 8px;
}

.puzzle-container {
    position: relative;
    width: 200px;
    height: 200px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 16px;
    transition: gap 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Puzzle pieces with rounded corners and spacing */
.puzzle-piece {
    background-color: var(--shape-bg);
    border: 2.5px solid var(--border-color);
    opacity: 0.75;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: relative;
    border-radius: 10px;
}

/* Light mode visibility fix for puzzle pieces */
body.light .puzzle-piece {
    opacity: 0.9;
    border-width: 2.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Puzzle piece 1 - top left */
.puzzle-piece-1 {
    border-radius: 10px;
}

/* Puzzle piece 2 - top right */
.puzzle-piece-2 {
    border-radius: 10px;
}

/* Puzzle piece 3 - bottom left */
.puzzle-piece-3 {
    border-radius: 10px;
}

/* Puzzle piece 4 - bottom right */
.puzzle-piece-4 {
    border-radius: 10px;
}

/* Blue glow overlay */
.platform-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, var(--accent-blue-glow) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 1;
}

/* Hover - Blue shines in, pieces come together, one piece turns blue */
.build-block-primary:hover .puzzle-container {
    gap: 2px;
}

.build-block-primary:hover .platform-glow {
    opacity: 0.5;
}

.build-block-primary:hover .puzzle-piece {
    opacity: 0.85;
    border-color: var(--border-color);
}

/* One puzzle piece turns blue on hover */
.build-block-primary:hover .puzzle-piece-2 {
    background-color: var(--accent-blue-soft);
    border-color: var(--accent-blue);
    box-shadow: 0 0 15px var(--accent-blue-glow), 0 0 30px var(--accent-blue-glow);
    opacity: 0.95;
}

/* Internal Dashboards - Dashboard Panel with Metrics & Charts */
.system-preview-dashboard {
    position: relative;
    flex: 1;
    min-height: 200px;
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--bg-primary);
    border-radius: 8px;
}

.system-preview-dashboard .dashboard-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 19px, var(--border-color) 19px, var(--border-color) 20px),
        repeating-linear-gradient(90deg, transparent, transparent 19px, var(--border-color) 19px, var(--border-color) 20px);
    opacity: 0;
    transition: opacity 0.5s linear;
}

/* Main dashboard panel - scoped to What We Build section only */
.system-preview-dashboard .dashboard-panel {
    position: relative;
    width: 88%;
    height: 82%;
    background-color: var(--shape-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    opacity: 0.7;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
    gap: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Light mode visibility fix for dashboard panel */
body.light .system-preview-dashboard .dashboard-panel {
    opacity: 0.9;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* KPI metric boxes - scoped to What We Build section */
.system-preview-dashboard .dashboard-metric {
    background-color: var(--bg-primary);
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    height: 42px;
    opacity: 0.6;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Light mode visibility fix for dashboard metrics */
body.light .system-preview-dashboard .dashboard-metric {
    background-color: var(--shape-bg);
    opacity: 0.85;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

/* Chart area - scoped to What We Build section */
.system-preview-dashboard .dashboard-chart {
    grid-column: span 2;
    background-color: var(--bg-primary);
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    height: 70px;
    opacity: 0.55;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Light mode visibility fix for dashboard chart */
body.light .system-preview-dashboard .dashboard-chart {
    background-color: var(--shape-bg);
    opacity: 0.8;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.dashboard-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, var(--accent-blue-glow) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 1;
}

/* Hover - Blue shines in */
.build-block:nth-child(2):hover .dashboard-glow {
    opacity: 0.5;
}

.build-block:nth-child(2):hover .system-preview-dashboard .dashboard-grid {
    opacity: 0.12;
}

.build-block:nth-child(2):hover .system-preview-dashboard .dashboard-panel {
    opacity: 0.9;
    border-color: var(--accent-blue);
    box-shadow: 0 0 25px var(--accent-blue-glow), 0 0 50px var(--accent-blue-glow), 0 0 75px var(--accent-blue-glow);
}

.build-block:nth-child(2):hover .system-preview-dashboard .dashboard-metric {
    opacity: 0.75;
    border-color: var(--accent-blue);
    box-shadow: 0 0 12px var(--accent-blue-glow), 0 0 20px var(--accent-blue-glow);
}

.build-block:nth-child(2):hover .system-preview-dashboard .dashboard-chart {
    opacity: 0.7;
    border-color: var(--accent-blue);
    box-shadow: 0 0 15px var(--accent-blue-glow), 0 0 25px var(--accent-blue-glow);
}

/* Client & Partner Portals - Form Fields */
.system-preview-portal {
    position: relative;
    flex: 1;
    min-height: 200px;
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--bg-primary);
    border-radius: 8px;
}

.form-container {
    position: relative;
    width: 80%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 2;
    overflow: hidden;
    transform: translateY(0);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-field {
    width: 100%;
    height: 45px;
    flex-shrink: 0;
    background-color: transparent;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    opacity: 0.5;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light mode visibility fix for form fields */
body.light .form-field {
    opacity: 0.8;
    border-width: 2.5px;
    border-color: #d0d0d0;
}

.form-field-large {
    height: 80px;
}

.portal-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, var(--accent-blue-glow) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 1;
}

/* Hover - Blue shines in and form scrolls down */
.build-block:nth-child(3):hover .portal-glow {
    opacity: 0.5;
}

.build-block:nth-child(3):hover .form-container {
    transform: translateY(-40%);
}

.build-block:nth-child(3):hover .form-field {
    opacity: 0.85;
    border-color: var(--accent-blue);
    box-shadow: 0 0 12px var(--accent-blue-glow), 0 0 20px var(--accent-blue-glow);
}

/* Process Automation Systems Preview */
/* Process Automation Systems - Grid of Squares Merge into One */
.system-preview-automation {
    position: relative;
    flex: 1;
    min-height: 200px;
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--bg-primary);
    border-radius: 8px;
}

.automation-rectangles {
    position: relative;
    width: 90%;
    height: 85%;
    z-index: 2;
}

.automation-rectangle {
    position: absolute;
    width: 35px;
    height: 85%;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--shape-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    opacity: 0.65;
    transition: left 1.2s cubic-bezier(0.4, 0, 0.2, 1), opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), border-color 1.2s cubic-bezier(0.4, 0, 0.2, 1), background-color 1.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Position rectangles evenly spaced, centered - consistent gaps */
.automation-rectangle:nth-child(1) {
    left: calc(50% - 3 * 35px - 3 * 16px);
}

.automation-rectangle:nth-child(2) {
    left: calc(50% - 2 * 35px - 2 * 16px);
}

.automation-rectangle:nth-child(3) {
    left: calc(50% - 1 * 35px - 1 * 16px);
}

.automation-rectangle:nth-child(4) {
    left: calc(50% - 17.5px);
}

.automation-rectangle:nth-child(5) {
    left: calc(50% + 16px);
}

.automation-rectangle:nth-child(6) {
    left: calc(50% + 1 * 35px + 2 * 16px);
}

.automation-rectangle:nth-child(7) {
    left: calc(50% + 2 * 35px + 3 * 16px);
}

.automation-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, var(--accent-blue-glow) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 1;
}

/* Light mode visibility fix for automation rectangles */
body.light .automation-rectangle {
    opacity: 0.85;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Hover - All rectangles converge to center smoothly */
.build-block:nth-child(4):hover .automation-glow {
    opacity: 0.15;
}

/* All rectangles converge to center - all move to center position */
.build-block:nth-child(4):hover .automation-rectangle {
    left: calc(50% - 17.5px);
    opacity: 0.9;
    border-color: var(--accent-blue);
    background-color: transparent;
    box-shadow: 0 0 8px var(--accent-blue-glow);
}

/* Responsive What We Build */
@media (max-width: 768px) {
    .what-we-build {
        padding: 4rem 1.5rem;
    }

    .what-we-build-header {
        margin-bottom: 3rem;
    }

    .what-we-build-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 1.25rem;
    }

    .build-block-primary,
    .build-block:nth-child(2),
    .build-block:nth-child(3),
    .build-block:nth-child(4) {
        grid-column: 1;
        grid-row: auto;
    }

    .build-block {
        padding: 1.5rem;
        min-height: auto;
        max-height: none;
    }

    .system-preview-platform {
        height: 120px;
    }

    .system-preview-dashboard {
        min-height: 150px;
    }

    .system-preview-portal {
        min-height: 150px;
    }

    .system-preview-automation {
        min-height: 150px;
    }

    .automation-steps {
        width: 90%;
    }

    .automation-step {
        width: 16%;
        height: 35px;
    }
}

/* How It Works Section */
.how-it-works {
    background-color: var(--bg-primary);
    padding: 6rem 2rem;
    transition: background-color 0.3s ease;
}

.how-it-works-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Section Title - Outside the container */
.how-it-works-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.2;
    padding-left: calc((100% - 1200px) / 2);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Dark mode title */
body.dark .how-it-works-title {
    color: #ffffff;
}

/* Light mode title */
body.light .how-it-works-title {
    color: #1a1a1a;
}

/* Intro paragraph - Outside the container, under title */
.how-it-works-intro {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 600px;
}

/* Dark mode intro */
body.dark .how-it-works-intro {
    color: rgba(255, 255, 255, 0.8);
}

/* Light mode intro */
body.light .how-it-works-intro {
    color: rgba(26, 26, 26, 0.7);
}

/* Blue rounded container wrapping the whole section */
.how-it-works-pink-wrapper {
    background: linear-gradient(135deg, #4A90E2 0%, #5BA3F5 50%, #6BB6FF 100%);
    border-radius: 24px;
    padding: 3rem;
    transition: background 0.3s ease;
}

body.light .how-it-works-pink-wrapper {
    background: linear-gradient(135deg, #5BA3F5 0%, #6BB6FF 50%, #7BC9FF 100%);
}

/* Black rounded container matching "what we build" section */
.how-it-works-content-wrapper {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 3rem;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 3rem;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Content Panel (Left) */
.how-it-works-content-panel {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Content Panel - no longer needs hide-header for intro since it's outside */

/* Step Content */
.how-it-works-step-content {
    margin-top: 2rem;
    min-height: 120px;
    transition: opacity 0.2s ease;
    opacity: 1;
}

.how-it-works-step-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
    display: block;
}

/* Dark mode step title */
body.dark .how-it-works-step-title {
    color: #ffffff;
}

/* Light mode step title */
body.light .how-it-works-step-title {
    color: #1a1a1a;
}

.how-it-works-step-description {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    display: block;
}

/* Dark mode step description */
body.dark .how-it-works-step-description {
    color: rgba(255, 255, 255, 0.9);
}

/* Light mode step description */
body.light .how-it-works-step-description {
    color: rgba(26, 26, 26, 0.8);
}

/* Step Selector Container - Black rounded box */
.how-it-works-step-selector-container {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: border-color 0.2s ease;
}

/* Step Selector (Right) */
.how-it-works-step-selector {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.step-button {
    background: none;
    border: 1px solid transparent;
    padding: 1rem 1.25rem;
    text-align: left;
    cursor: pointer;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
}

.step-button:focus {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

.step-button.active:focus {
    outline: none;
}

/* Inactive step buttons */
.step-button {
    opacity: 0.6;
    border-color: transparent;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}

/* When a button is active, fade others */
.how-it-works-step-selector-container.has-active .step-button:not(.active) {
    opacity: 0.3;
}

/* Active step button - blue highlight matching container */
.step-button.active {
    opacity: 1;
    border-color: rgba(74, 144, 226, 0.9);
    background-color: transparent;
    box-shadow: 0 0 12px rgba(74, 144, 226, 0.15), 0 0 20px rgba(74, 144, 226, 0.3);
}

body.light .step-button.active {
    border-color: rgba(74, 144, 226, 0.95);
}

/* Step number */
.step-number {
    font-size: 0.875rem;
    font-weight: 600;
    min-width: 24px;
}

/* Dark mode step number */
body.dark .step-number {
    color: #ffffff;
}

/* Light mode step number */
body.light .step-number {
    color: #1a1a1a;
}

/* Step name */
.step-name {
    font-size: 0.9375rem;
    font-weight: 500;
}

/* Dark mode step name */
body.dark .step-name {
    color: #ffffff;
}

/* Light mode step name */
body.light .step-name {
    color: #1a1a1a;
}

/* Removed left vertical line - no ::before pseudo-element */

/* Responsive How It Works */
@media (max-width: 968px) {
    .how-it-works-pink-wrapper {
        padding: 2rem;
    }

    .how-it-works-content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }

    .how-it-works-step-selector {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .step-button {
        flex: 1;
        min-width: 140px;
        padding: 0.875rem 1rem;
    }

    /* Removed left vertical line for mobile as well */
}

@media (max-width: 768px) {
    .how-it-works {
        padding: 4rem 1.5rem;
    }

    .how-it-works-pink-wrapper {
        padding: 1.5rem;
    }

    .how-it-works-content-wrapper {
        padding: 1.5rem;
    }

    .how-it-works-title {
        font-size: 1.75rem;
    }

    .how-it-works-step-title {
        font-size: 1.25rem;
    }

    .step-button {
        min-width: 120px;
        padding: 0.75rem 0.875rem;
    }

    .step-name {
        font-size: 0.875rem;
    }
}

/* Demos Section */
.demos {
    background-color: var(--bg-primary);
    padding: 6rem 2rem;
    transition: background-color 0.3s ease;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.demos-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.demos-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.2;
    text-align: left;
    padding-left: calc((100% - 1250px) / 2);
    max-width: 1250px;
    margin-left: auto;
    margin-right: auto;
}

.demos-subheadline {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 800px;
    text-align: left;
    padding-left: calc((100% - 1250px) / 2);
    max-width: 1250px;
    margin-left: auto;
    margin-right: auto;
}

.demos-viewport {
    position: relative;
    width: 100%;
    height: 75vh;
    min-height: 600px;
    overflow: hidden;
}

.demo-cards-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.demo-card {
    position: absolute;
    width: 100%;
    max-width: 1200px;
    height: 100%;
    left: 50%;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 0;
    display: flex;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.3s ease;
    pointer-events: none;
}

.demo-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

.demo-card.active {
    opacity: 1;
    transform: translateX(-50%);
    pointer-events: all;
}

.demo-card-visual {
    width: 50%;
    height: 100%;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    border-right: 1px dashed var(--border-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.demo-card:hover .demo-card-visual {
    border-right-color: rgba(255, 255, 255, 0.3);
}

.demo-card-content {
    width: 50%;
    height: 100%;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.demo-number {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
}

.demo-name {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.demo-description {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.demo-explore {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.75rem 2rem;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    align-self: flex-start;
    text-align: center;
}

.demo-explore:hover {
    border-color: var(--text-secondary);
    background-color: var(--hover-bg);
}

/* Visual Elements - Operations Dashboard (Demo 1) */
.demo-card[data-demo="1"] .visual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    width: 100%;
    margin-bottom: 2rem;
}

.demo-card[data-demo="1"] .visual-panel {
    aspect-ratio: 1.5;
    border: 1px dashed #666666;
    border-radius: 4px;
    opacity: 0.8;
    background-color: transparent;
    background-image: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 4px,
        rgba(102, 102, 102, 0.2) 4px,
        rgba(102, 102, 102, 0.2) 8px
    );
    box-shadow: none;
    transition: opacity 0.3s ease, border-color 0.3s ease;
}

.demo-card[data-demo="1"]:hover .visual-panel {
    border-color: #333333;
    background-image: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 4px,
        rgba(102, 102, 102, 0.3) 4px,
        rgba(102, 102, 102, 0.3) 8px
    );
    opacity: 1;
}

.demo-card[data-demo="1"] .visual-bars {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.demo-card[data-demo="1"] .visual-bar {
    height: 12px;
    border: 1px dashed #666666;
    border-radius: 2px;
    opacity: 0.8;
    background-color: transparent;
    background-image: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 3px,
        rgba(102, 102, 102, 0.2) 3px,
        rgba(102, 102, 102, 0.2) 6px
    );
    box-shadow: none;
    transition: opacity 0.3s ease, border-color 0.3s ease;
}

.demo-card[data-demo="1"]:hover .visual-bar {
    border-color: #333333;
    background-image: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 3px,
        rgba(102, 102, 102, 0.3) 3px,
        rgba(102, 102, 102, 0.3) 6px
    );
    opacity: 1;
}

.demo-card[data-demo="1"] .visual-bar:nth-child(1) { width: 60%; }
.demo-card[data-demo="1"] .visual-bar:nth-child(2) { width: 80%; }
.demo-card[data-demo="1"] .visual-bar:nth-child(3) { width: 45%; }
.demo-card[data-demo="1"] .visual-bar:nth-child(4) { width: 70%; }


/* Visual Elements - Client Portal (Demo 2) */
.demo-card[data-demo="2"] .visual-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    margin-bottom: 2rem;
}

.demo-card[data-demo="2"] .visual-list-item {
    height: 40px;
    border: 1px dashed #666666;
    border-radius: 4px;
    opacity: 0.8;
    background-color: transparent;
    background-image: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 4px,
        rgba(102, 102, 102, 0.2) 4px,
        rgba(102, 102, 102, 0.2) 8px
    );
    box-shadow: none;
    transition: opacity 0.3s ease, border-color 0.3s ease;
}

.demo-card[data-demo="2"]:hover .visual-list-item {
    border-color: #333333;
    background-image: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 4px,
        rgba(102, 102, 102, 0.3) 4px,
        rgba(102, 102, 102, 0.3) 8px
    );
    opacity: 1;
}

.demo-card[data-demo="2"] .visual-columns {
    display: flex;
    gap: 1rem;
    width: 100%;
}

.demo-card[data-demo="2"] .visual-column {
    flex: 1;
    height: 120px;
    border: 1px dashed #666666;
    border-radius: 4px;
    opacity: 0.8;
    background-color: transparent;
    background-image: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 4px,
        rgba(102, 102, 102, 0.2) 4px,
        rgba(102, 102, 102, 0.2) 8px
    );
    box-shadow: none;
    transition: opacity 0.3s ease, border-color 0.3s ease;
}

.demo-card[data-demo="2"]:hover .visual-column {
    border-color: #333333;
    background-image: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 4px,
        rgba(102, 102, 102, 0.3) 4px,
        rgba(102, 102, 102, 0.3) 8px
    );
    opacity: 1;
}


/* Visual Elements - Automation System (Demo 3) */
.demo-card[data-demo="3"] .visual-sequence {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 0.5rem;
}

.demo-card[data-demo="3"] .visual-block {
    width: 80px;
    height: 80px;
    border: 1px dashed #666666;
    border-radius: 4px;
    opacity: 0.8;
    background-color: transparent;
    background-image: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 4px,
        rgba(102, 102, 102, 0.2) 4px,
        rgba(102, 102, 102, 0.2) 8px
    );
    box-shadow: none;
    transition: opacity 0.3s ease, border-color 0.3s ease;
}

.demo-card[data-demo="3"]:hover .visual-block {
    border-color: #333333;
    background-image: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 4px,
        rgba(102, 102, 102, 0.3) 4px,
        rgba(102, 102, 102, 0.3) 8px
    );
    opacity: 1;
}

.demo-card[data-demo="3"] .visual-connector {
    width: 20px;
    height: 2px;
    border-top: 2px dashed #666666;
    background-color: transparent;
    opacity: 0.8;
    box-shadow: none;
    transition: opacity 0.3s ease, border-color 0.3s ease;
}

.demo-card[data-demo="3"]:hover .visual-connector {
    border-top-color: #333333;
    opacity: 1;
}

.demo-card[data-demo="3"]:hover .visual-connector {
    opacity: 1;
}

/* Visual Elements - Business Platform (Demo 4) */
.demo-card[data-demo="4"] .visual-modules {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    gap: 1rem;
    width: 100%;
    height: 100%;
}

.demo-card[data-demo="4"] .visual-module {
    border: 1px dashed #666666;
    border-radius: 4px;
    opacity: 0.8;
    background-color: transparent;
    background-image: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 4px,
        rgba(102, 102, 102, 0.2) 4px,
        rgba(102, 102, 102, 0.2) 8px
    );
    box-shadow: none;
    transition: opacity 0.3s ease, border-color 0.3s ease;
}

.demo-card[data-demo="4"]:hover .visual-module {
    border-color: #333333;
    background-image: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 4px,
        rgba(102, 102, 102, 0.3) 4px,
        rgba(102, 102, 102, 0.3) 8px
    );
    opacity: 1;
}

.demo-card[data-demo="4"] .visual-module.large {
    grid-row: 1 / 4;
}

.demo-card[data-demo="4"] .visual-module.medium {
    grid-column: 2;
    grid-row: 2 / 4;
}

/* Navigation Arrow */
.demo-nav-arrow {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 1rem;
    opacity: 0.6;
    transition: opacity 0.2s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.demo-nav-arrow:hover {
    opacity: 1;
}

.demo-nav-arrow svg {
    width: 32px;
    height: 32px;
}

/* Responsive Demos */
@media (max-width: 1024px) {
    .demos {
        min-height: 75vh;
    }

    .demos-viewport {
        height: 65vh;
        min-height: 500px;
    }

    .demo-card {
        width: 90%;
    }

    .demo-card-content {
        padding: 3rem;
    }
}

@media (max-width: 768px) {
    .demos {
        padding: 4rem 1.5rem;
        min-height: auto;
    }

    .demos-title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

    .demos-viewport {
        height: 70vh;
        min-height: 550px;
    }

    .demo-card {
        width: 95%;
        flex-direction: column;
    }

    .demo-card-visual {
        width: 100%;
        height: 45%;
        padding: 2rem;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .demo-card-content {
        width: 100%;
        height: 55%;
        padding: 2rem;
    }

    .demo-name {
        font-size: 1.5rem;
    }

    .demo-description {
        font-size: 1rem;
    }

    .demo-nav-arrow {
        right: 1rem;
    }

    .demo-nav-arrow svg {
        width: 28px;
        height: 28px;
    }

    /* Adjust visual elements for mobile */
    .demo-card[data-demo="1"] .visual-grid {
        gap: 1rem;
    }

    .demo-card[data-demo="3"] .visual-block {
        width: 60px;
        height: 60px;
    }

    .demo-card[data-demo="4"] .visual-modules {
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .demos-viewport {
        height: 65vh;
        min-height: 500px;
    }

    .demo-card-visual {
        padding: 1.5rem;
    }

    .demo-card-content {
        padding: 1.5rem;
    }

    .demo-number {
        margin-bottom: 1rem;
    }

    .demo-name {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .demo-description {
        font-size: 0.9375rem;
        margin-bottom: 1.5rem;
    }
}

/* Responsive Hero */
@media (max-width: 768px) {
    .hero {
        padding: 6rem 1rem 3rem;
    }

    .hero-ctas {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-cta-primary,
    .hero-cta-secondary {
        width: 100%;
        text-align: center;
    }

    .purple-section {
        padding: 1.5rem;
    }

    .dashboard-container {
        height: 450px;
    }

    .dashboard-nav {
        overflow-x: auto;
    }

    .dashboard-tab {
        padding: 1rem 1.25rem;
        white-space: nowrap;
    }

    .dashboard-content {
        padding: 1.5rem;
    }

    .overview-layout {
        grid-template-columns: 1fr;
    }

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

    .activity-feed {
        grid-column: span 1;
    }

    .workflow-layout {
        grid-template-columns: 1fr;
    }

    .workflow-sidebar {
        max-height: 200px;
    }

    .clients-layout {
        grid-template-columns: 1fr;
    }

    .clients-sidebar {
        max-height: 200px;
    }

    .table-header,
    .table-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .table-header {
        display: none;
    }

    .table-col {
        display: block;
    }

    .rule-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .navbar-nav {
        gap: 0.25rem;
        margin: 0 1rem;
    }

    .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 768px) {
    .navbar-container {
        padding: 0 1rem;
        height: 64px;
    }

    .navbar-nav {
        display: none;
    }

    .brand-link {
        font-size: 1.25rem;
    }

    .cta-button {
        padding: 0.5rem 1.25rem;
        font-size: 0.875rem;
    }

    .navbar-actions {
        gap: 0.75rem;
    }
}

/* Contact Section */
.contact {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    padding: 6rem 2rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-title {
    font-family: 'Familjen Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 3rem;
    text-align: center;
}

.contact-content-wrapper {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 5rem;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}


.contact-layout {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
    align-items: stretch;
}

.contact-divider {
    width: 1px;
    background-color: var(--border-color);
    margin: 0 3rem;
    align-self: stretch;
    min-height: 100%;
}

/* Contact Form */
.contact-form-wrapper {
    width: 100%;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

/* Massive spacing after the textarea field */
.contact-form .form-field:has(textarea) {
    margin-bottom: 3rem;
}

.contact-form .form-field {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

.contact-form .form-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: 0.01em;
    margin-bottom: 0;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    display: block;
    box-shadow: none !important;
}

.form-input,
.form-textarea,
.form-select {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    padding: 1rem 1.25rem;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    transition: all 0.2s ease;
    width: 100%;
    line-height: 1.5;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--text-primary);
    background-color: var(--hover-bg);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.form-textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.6;
    padding: 1rem 1.25rem;
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 4L6 8L10 4' stroke='%23a0a0a0' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    padding-right: 1.5rem;
}

/* Extra spacing for Project timeline and fields below */
.contact-form .form-field-timeline {
    margin-top: 5rem !important;
}

.contact-form .form-field-checkbox {
    margin-top: 4rem;
}

body.light .form-select {
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 4L6 8L10 4' stroke='%23666666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.form-checkbox-label {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.875rem;
    cursor: pointer;
    padding: 0.75rem 0;
    line-height: 1.5;
}

.form-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--text-primary);
    flex-shrink: 0;
}

.form-submit {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    padding: 1rem 2.5rem;
    background-color: var(--cta-bg);
    color: var(--cta-text);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 2rem;
    align-self: flex-start;
    letter-spacing: 0.01em;
}

.form-submit:hover {
    background-color: var(--cta-hover);
    transform: translateY(-1px);
}

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

.form-message {
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    padding: 1.25rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    text-align: center;
    line-height: 1.6;
}

.form-message.success {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.form-message.error {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Availability Calendar */
.contact-calendar-wrapper {
    width: 100%;
    position: relative;
}

.availability-calendar {
    background-color: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    transition: opacity 0.3s ease, pointer-events 0.3s ease;
    min-height: 400px;
}

.availability-calendar.disabled {
    opacity: 0.3;
    pointer-events: none;
}

.calendar-header {
    margin-bottom: 1.5rem;
}

.calendar-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.calendar-month-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.calendar-nav-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.calendar-nav-btn:hover {
    background-color: var(--hover-bg);
}

.calendar-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.calendar-month-year {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.calendar-day-header {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: center;
    padding: 0.5rem 0;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    color: var(--text-primary);
    background-color: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calendar-day:hover:not(.disabled):not(.past) {
    background-color: var(--hover-bg);
    border-color: var(--border-color);
}

.calendar-day.past {
    color: var(--text-secondary);
    opacity: 0.4;
    cursor: not-allowed;
}

.calendar-day.disabled {
    opacity: 0.2;
    cursor: not-allowed;
}

.calendar-day.selected {
    background-color: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
}

.calendar-time-selector {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: transparent;
    padding: 0;
    margin: 0;
    border: none;
    display: flex;
    flex-direction: column;
}

.time-selector-back {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    color: var(--text-secondary);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
    text-align: left;
    transition: color 0.2s ease;
    align-self: flex-start;
}

.time-selector-back:hover {
    color: var(--text-primary);
}

.time-selector-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.time-range-display {
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-align: center;
    padding: 0.75rem;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

.time-confirm-btn {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.625rem 1.5rem;
    background-color: var(--cta-bg);
    color: var(--cta-text);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 1.5rem;
    align-self: flex-start;
}

.time-confirm-btn:hover {
    background-color: var(--cta-hover);
}

.selected-times-list {
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.selected-times-header {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.selected-time-item {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.selected-time-item:last-child {
    border-bottom: none;
}

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

.remove-time-btn {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    color: var(--text-secondary);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    line-height: 1;
}

.remove-time-btn:hover {
    color: var(--text-primary);
}

.time-slider-container {
    position: relative;
    padding: 0;
    flex: 1;
    display: flex;
    align-items: stretch;
}

.time-slider {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 300px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: crosshair;
}

.time-marks {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0.5rem;
}

.time-mark {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: right;
    padding-right: 0.5rem;
}

.time-selection {
    position: absolute;
    left: 0;
    right: 0;
    background-color: rgba(245, 245, 245, 0.2);
    border: 1px solid var(--text-primary);
    border-radius: 4px;
    pointer-events: none;
    transition: all 0.1s ease;
}

body.light .time-selection {
    background-color: rgba(26, 26, 26, 0.1);
}

/* Responsive Design for Contact Section */
@media (max-width: 968px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-divider {
        width: 100%;
        height: 1px;
        margin: 3rem 0;
    }
    
    .contact-content-wrapper {
        padding: 3rem;
    }
    
    .contact {
        padding: 4rem 2rem;
    }
    
    .contact-form {
        gap: 3.5rem;
    }
    
    .contact-form .form-field {
        gap: 1rem;
    }
}

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

    .cta-button {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }

    .theme-toggle {
        width: 36px;
        height: 36px;
        padding: 0.375rem;
    }
}

