/* ============================================
   Groundwork — Muted, Product-Forward Design
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #292524;
    background: #fafaf9;
    line-height: 1.6;
    overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* --- Palette ---
   Stone-based, no bright colors.
   Accent: muted warm gold #a0916b
   Text: #292524 (stone-900), #57534e (stone-600), #78716c (stone-500), #a8a29e (stone-400)
   Borders: #e7e5e4 (stone-200), #d6d3d1 (stone-300)
   Backgrounds: #fafaf9 (stone-50), #f5f5f4 (stone-100)
*/

/* --- Buttons --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 500; border-radius: 6px; transition: all 0.2s ease;
    font-size: 14px; padding: 10px 20px; gap: 6px; white-space: nowrap;
}
.btn-primary {
    background: #292524; color: #fafaf9;
}
.btn-primary:hover { background: #1c1917; }
.btn-ghost {
    background: transparent; color: #57534e; border: 1px solid #d6d3d1;
}
.btn-ghost:hover { border-color: #a8a29e; color: #292524; }
.btn-nav {
    font-size: 13px; padding: 7px 16px; background: #292524; color: #fafaf9; border-radius: 5px;
}
.btn-nav:hover { background: #1c1917; }
.btn-block { width: 100%; }
.btn-sm { font-size: 13px; padding: 7px 14px; }

/* --- Navigation --- */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(250,250,249,0.88); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(231,229,228,0.6);
}
.nav.scrolled { box-shadow: 0 1px 8px rgba(0,0,0,0.04); }
.nav-inner {
    max-width: 1120px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
    height: 56px;
}
.nav-logo {
    display: flex; align-items: center; gap: 8px;
    font-size: 15px; font-weight: 600; color: #292524; letter-spacing: -0.2px;
}
.nav-logo-icon { width: 24px; height: 24px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
    font-size: 13px; font-weight: 450; color: #78716c;
    transition: color 0.15s;
}
.nav-links a:hover { color: #292524; }
.nav-mobile-toggle { display: none; width: 28px; height: 28px; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.nav-mobile-toggle span { display: block; width: 18px; height: 1.5px; background: #292524; }
.nav-mobile { display: none; flex-direction: column; padding: 12px 24px 16px; gap: 10px; border-top: 1px solid #e7e5e4; }
.nav-mobile a { font-size: 14px; font-weight: 450; color: #57534e; padding: 4px 0; }

@media (max-width: 768px) {
    .nav-links, .nav > .nav-inner > .btn-nav { display: none; }
    .nav-mobile-toggle { display: flex; }
    .nav-mobile.open { display: flex; }
}

/* --- Hero --- */
.hero {
    padding: 120px 24px 80px;
    max-width: 1120px; margin: 0 auto;
}
.hero-text { max-width: 600px; margin-bottom: 48px; }
.hero-label {
    font-size: 12px; font-weight: 600; color: #a0916b; text-transform: uppercase;
    letter-spacing: 1.2px; margin-bottom: 16px;
}
.hero h1 {
    font-size: clamp(30px, 4vw, 42px); font-weight: 700; line-height: 1.2;
    color: #1c1917; letter-spacing: -0.8px; margin-bottom: 16px;
}
.hero-desc {
    font-size: 16px; color: #57534e; line-height: 1.7; margin-bottom: 28px;
}
.hero-actions { display: flex; gap: 10px; }

/* Hero Dashboard UI */
.hero-ui-wrapper { position: relative; }
.hero-ui {
    border-radius: 10px; overflow: hidden;
    border: 1px solid #e7e5e4; box-shadow: 0 4px 32px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    background: #fff;
}
.ui-chrome {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 16px; background: #f5f5f4; border-bottom: 1px solid #e7e5e4;
}
.ui-chrome.sm { padding: 8px 14px; }
.chrome-dots { display: flex; gap: 5px; }
.chrome-dots span { width: 7px; height: 7px; border-radius: 50%; background: #d6d3d1; }
.chrome-url {
    font-size: 11px; color: #a8a29e; font-family: 'IBM Plex Mono', monospace;
    margin-left: 12px;
}

.hero-dash { display: flex; min-height: 360px; }
.hd-sidebar {
    width: 160px; background: #1c1917; padding: 14px 10px; flex-shrink: 0;
    display: flex; flex-direction: column; gap: 2px;
}
.hd-sidebar-logo {
    width: 22px; height: 22px; border-radius: 5px; background: #a0916b;
    margin-bottom: 14px; opacity: 0.7;
}
.hd-sidebar-item {
    display: flex; align-items: center; gap: 8px;
    padding: 7px 10px; border-radius: 5px; font-size: 12px;
    color: #a8a29e; font-weight: 450; transition: all 0.15s;
}
.hd-sidebar-item svg { width: 15px; height: 15px; flex-shrink: 0; }
.hd-sidebar-item.active { background: rgba(255,255,255,0.08); color: #fafaf9; }

.hd-main { flex: 1; padding: 16px 20px; background: #fafaf9; overflow: hidden; }
.hd-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.hd-greeting { font-size: 16px; font-weight: 600; color: #1c1917; }
.hd-avatar {
    width: 28px; height: 28px; border-radius: 50%; background: #e7e5e4;
    font-size: 10px; font-weight: 600; color: #57534e;
    display: flex; align-items: center; justify-content: center;
}

.hd-stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.hd-stat {
    background: #fff; border: 1px solid #e7e5e4; border-radius: 7px; padding: 10px 12px;
}
.hd-stat-num { display: block; font-size: 20px; font-weight: 700; color: #1c1917; line-height: 1.1; letter-spacing: -0.5px; }
.hd-stat-label { font-size: 10px; color: #a8a29e; font-weight: 500; }
.hd-stat-change { font-size: 10px; font-weight: 500; color: #a8a29e; }
.hd-stat-change.up { color: #57534e; }

.hd-body-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hd-chart-card, .hd-recent-card {
    background: #fff; border: 1px solid #e7e5e4; border-radius: 7px; padding: 12px;
}
.hd-card-title { font-size: 11px; font-weight: 600; color: #78716c; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }

.hd-bar-chart { display: flex; flex-direction: column; gap: 6px; }
.hd-bar-row { display: flex; align-items: center; gap: 8px; }
.hd-bar-label { font-size: 10px; color: #a8a29e; width: 28px; text-align: right; font-weight: 500; }
.hd-bar-track { flex: 1; height: 6px; background: #f5f5f4; border-radius: 3px; overflow: hidden; }
.hd-bar-fill { height: 100%; background: #78716c; border-radius: 3px; transition: width 1s ease; }
.hd-bar-val { font-size: 10px; color: #57534e; font-weight: 600; width: 16px; }

.hd-recent-list { display: flex; flex-direction: column; gap: 8px; }
.hd-recent-item { display: flex; align-items: center; gap: 8px; }
.hd-recent-avatar {
    width: 26px; height: 26px; border-radius: 50%; background: #f5f5f4;
    font-size: 9px; font-weight: 600; color: #78716c;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.hd-recent-info { flex: 1; min-width: 0; }
.hd-recent-name { display: block; font-size: 11px; font-weight: 600; color: #292524; }
.hd-recent-meta { font-size: 10px; color: #a8a29e; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.status-dot.active { background: #78716c; }
.status-dot.contract { background: #a0916b; }
.status-dot.complete { background: #d6d3d1; }

@media (max-width: 768px) {
    .hd-sidebar { display: none; }
    .hd-stats-row { grid-template-columns: repeat(2, 1fr); }
    .hd-body-grid { grid-template-columns: 1fr; }
}

/* --- Platform Intro --- */
.platform-intro { padding: 100px 0; border-top: 1px solid #e7e5e4; }
.platform-intro .container { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.platform-text h2 {
    font-size: 28px; font-weight: 700; color: #1c1917; line-height: 1.25;
    letter-spacing: -0.5px; margin-bottom: 14px;
}
.platform-text p { font-size: 15px; color: #57534e; line-height: 1.7; }

.platform-points { display: flex; flex-direction: column; gap: 24px; }
.pp { display: flex; gap: 16px; }
.pp-num {
    font-size: 12px; font-weight: 600; color: #a0916b;
    font-family: 'IBM Plex Mono', monospace;
    padding-top: 2px; flex-shrink: 0;
}
.pp-content h3 { font-size: 15px; font-weight: 600; color: #292524; margin-bottom: 4px; }
.pp-content p { font-size: 13px; color: #78716c; line-height: 1.6; }

@media (max-width: 768px) {
    .platform-intro .container { grid-template-columns: 1fr; gap: 36px; }
}

/* --- Feature Sections --- */
.feature-section { padding: 80px 0; }
.feature-section.alt { background: #f5f5f4; }
.feature-block { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start; }
.feature-block.reverse { grid-template-columns: 1.4fr 1fr; }
.feature-block.reverse .feature-info { order: 2; }
.feature-block.reverse .feature-ui { order: 1; }

.feature-tag {
    display: inline-block; font-size: 11px; font-weight: 600; color: #a0916b;
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px;
}
.feature-info h2 {
    font-size: 26px; font-weight: 700; color: #1c1917; line-height: 1.25;
    letter-spacing: -0.4px; margin-bottom: 12px;
}
.feature-info > p { font-size: 14px; color: #57534e; line-height: 1.7; margin-bottom: 20px; }

.feature-highlights { display: flex; flex-direction: column; gap: 8px; }
.fh { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #57534e; font-weight: 450; }
.fh-dot { width: 5px; height: 5px; border-radius: 50%; background: #a0916b; flex-shrink: 0; }

.feature-ui {
    border-radius: 10px; overflow: hidden;
    border: 1px solid #e7e5e4; box-shadow: 0 4px 24px rgba(0,0,0,0.04);
    background: #fff;
}

@media (max-width: 900px) {
    .feature-block, .feature-block.reverse { grid-template-columns: 1fr; }
    .feature-block.reverse .feature-info { order: 1; }
    .feature-block.reverse .feature-ui { order: 2; }
}

/* --- Feature: Analytics --- */
.feat-analytics { padding: 16px; }
.fa-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.fa-stat { background: #fafaf9; border: 1px solid #e7e5e4; border-radius: 7px; padding: 12px; }
.fa-stat-top { display: flex; align-items: baseline; gap: 6px; }
.fa-stat-num { font-size: 22px; font-weight: 700; color: #1c1917; letter-spacing: -0.5px; }
.fa-stat-badge {
    font-size: 10px; font-weight: 600; padding: 1px 6px; border-radius: 3px;
    background: #f5f5f4; color: #78716c;
}
.fa-stat-badge.up { color: #57534e; }
.fa-stat-label { font-size: 10px; color: #a8a29e; font-weight: 500; margin-top: 2px; display: block; }
.fa-sparkline { margin-top: 6px; }
.fa-sparkline svg { width: 100%; height: 20px; }

.fa-chart-section { background: #fafaf9; border: 1px solid #e7e5e4; border-radius: 7px; padding: 14px; margin-bottom: 12px; }
.fa-chart-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.fa-chart-title { font-size: 11px; font-weight: 600; color: #78716c; text-transform: uppercase; letter-spacing: 0.5px; }
.fa-chart-tabs { display: flex; gap: 0; }
.fa-chart-tabs span {
    font-size: 10px; font-weight: 500; padding: 3px 10px; color: #a8a29e;
    border: 1px solid #e7e5e4; cursor: pointer;
}
.fa-chart-tabs span:first-child { border-radius: 4px 0 0 4px; }
.fa-chart-tabs span:last-child { border-radius: 0 4px 4px 0; }
.fa-chart-tabs span.active { background: #292524; color: #fafaf9; border-color: #292524; }

.fa-bar-chart {
    display: flex; align-items: flex-end; gap: 10px; height: 100px;
    padding: 0 4px;
}
.fa-bar-group { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.fa-bar {
    width: 100%; background: #d6d3d1; border-radius: 3px 3px 0 0;
    display: flex; align-items: flex-start; justify-content: center;
    transition: height 1s ease, background 0.3s;
    position: relative; min-height: 8px;
}
.fa-bar span {
    font-size: 9px; font-weight: 600; color: #78716c;
    position: absolute; top: -14px;
}
.fa-bar-group.highlight .fa-bar { background: #78716c; }
.fa-bar-group.highlight .fa-bar span { color: #292524; }
.fa-bar-label { font-size: 9px; color: #a8a29e; font-weight: 500; }

.fa-source-section { background: #fafaf9; border: 1px solid #e7e5e4; border-radius: 7px; padding: 14px; }
.fa-source-list { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.fa-source-row { display: flex; align-items: center; gap: 8px; }
.fa-source-name { font-size: 11px; color: #78716c; font-weight: 500; width: 80px; flex-shrink: 0; }
.fa-source-bar { flex: 1; height: 5px; background: #f5f5f4; border-radius: 3px; overflow: hidden; }
.fa-source-bar div { height: 100%; background: #a8a29e; border-radius: 3px; transition: width 1s ease; }
.fa-source-val { font-size: 10px; color: #57534e; font-weight: 600; width: 20px; text-align: right; }

/* --- Feature: Map (Leaflet) --- */
.feat-map { padding: 0; }
.fm-toolbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 16px; border-bottom: 1px solid #e7e5e4;
}
.fm-title { font-size: 12px; font-weight: 600; color: #292524; }
.fm-filters { display: flex; gap: 0; }
.fm-filter {
    font-size: 10px; font-weight: 500; padding: 3px 10px;
    border: 1px solid #e7e5e4; color: #a8a29e; cursor: pointer; transition: all 0.15s;
}
.fm-filter:first-child { border-radius: 4px 0 0 4px; }
.fm-filter:last-child { border-radius: 0 4px 4px 0; }
.fm-filter.active { background: #292524; color: #fafaf9; border-color: #292524; }

.fm-map-area {
    height: 280px; background: #fafaf9;
}
/* Override leaflet popup styles */
.fm-map-area .leaflet-popup-content-wrapper {
    border-radius: 6px; box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #e7e5e4; padding: 0;
}
.fm-map-area .leaflet-popup-content { margin: 8px 12px; }
.fm-map-area .leaflet-popup-tip { border-top-color: #fff; }
.custom-marker { background: none; border: none; }

.fm-legend {
    display: flex; gap: 16px; padding: 10px 16px; border-top: 1px solid #e7e5e4;
}
.fm-legend-item { display: flex; align-items: center; gap: 5px; font-size: 10px; color: #78716c; font-weight: 500; }
.fm-leg-dot { width: 7px; height: 7px; border-radius: 50%; }
.fm-leg-dot.active-m { background: #57534e; }
.fm-leg-dot.contract-m { background: #a0916b; }
.fm-leg-dot.complete-m { background: #c4c0b8; }

/* --- Feature: Table --- */
.feat-table { padding: 0; }
.ft-toolbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 16px; border-bottom: 1px solid #e7e5e4; gap: 12px;
}
.ft-tabs { display: flex; gap: 0; }
.ft-tab {
    font-size: 10px; font-weight: 500; padding: 4px 10px;
    border: 1px solid #e7e5e4; color: #a8a29e; cursor: pointer;
    border-right: none;
}
.ft-tab:first-child { border-radius: 4px 0 0 4px; }
.ft-tab:last-child { border-radius: 0 4px 4px 0; border-right: 1px solid #e7e5e4; }
.ft-tab.active { background: #292524; color: #fafaf9; border-color: #292524; }
.ft-tab em { font-style: normal; opacity: 0.6; margin-left: 2px; }
.ft-search {
    display: flex; align-items: center; gap: 6px; padding: 5px 10px;
    border: 1px solid #e7e5e4; border-radius: 5px; font-size: 11px; color: #a8a29e;
}

.ft-table { font-size: 11px; }
.ft-header {
    display: grid; grid-template-columns: 32px 1.3fr 1fr 0.8fr 0.9fr 0.6fr 0.8fr;
    padding: 7px 16px; background: #f5f5f4; border-bottom: 1px solid #e7e5e4;
    font-size: 10px; font-weight: 600; color: #a8a29e; text-transform: uppercase; letter-spacing: 0.3px;
}
.ft-row {
    display: grid; grid-template-columns: 32px 1.3fr 1fr 0.8fr 0.9fr 0.6fr 0.8fr;
    padding: 9px 16px; border-bottom: 1px solid #f5f5f4; color: #57534e;
    transition: background 0.1s; cursor: pointer;
}
.ft-row:hover { background: #f5f5f4; }
.ft-row:last-child { border-bottom: none; }
.ft-checkbox {
    display: block; width: 13px; height: 13px; border: 1.5px solid #d6d3d1;
    border-radius: 3px;
}
.ft-name { display: flex; align-items: center; gap: 8px; font-weight: 500; color: #292524; }
.ft-name-avatar {
    width: 22px; height: 22px; border-radius: 50%; background: #f5f5f4;
    font-size: 8px; font-weight: 600; color: #78716c;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

.status-badge {
    display: inline-block; padding: 2px 8px; border-radius: 3px;
    font-size: 10px; font-weight: 600; font-style: normal;
}
.status-badge.active { background: #f5f5f4; color: #57534e; }
.status-badge.contract { background: #f5f0e8; color: #8a7a5a; }
.status-badge.complete { background: #f5f5f4; color: #a8a29e; }

@media (max-width: 768px) {
    .ft-header, .ft-row { grid-template-columns: 32px 1fr 0.8fr 0.7fr; }
    .ft-type, .ft-assigned, .ft-date { display: none; }
}

/* --- Feature: Profile --- */
.feat-profile { padding: 0; position: relative; }
.fp-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px; background: #1c1917; color: #fafaf9;
}
.fp-header-left { display: flex; align-items: center; gap: 10px; }
.fp-avatar {
    width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.1);
    font-size: 11px; font-weight: 600; display: flex; align-items: center; justify-content: center;
}
.fp-name { font-size: 14px; font-weight: 600; }
.fp-meta { font-size: 10px; color: rgba(255,255,255,0.45); font-family: 'IBM Plex Mono', monospace; }
.fp-status-badge {
    font-size: 10px; font-weight: 600; padding: 3px 10px; border-radius: 3px;
    background: rgba(255,255,255,0.1); color: #fafaf9;
    transition: all 0.4s ease;
}
.fp-status-badge.contract-state {
    background: rgba(160,145,107,0.25); color: #d4c9a8;
}

.fp-body { padding: 14px 16px; }
.fp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.fp-section { }
.fp-section-title {
    font-size: 10px; font-weight: 600; color: #a8a29e; text-transform: uppercase;
    letter-spacing: 0.5px; margin-bottom: 8px; padding-bottom: 4px;
    border-bottom: 1px solid #f5f5f4;
}
.fp-field { display: flex; justify-content: space-between; align-items: baseline; padding: 3px 0; }
.fp-label { font-size: 10px; color: #a8a29e; }
.fp-value { font-size: 11px; color: #292524; font-weight: 500; }
.fp-value.link { color: #78716c; text-decoration: underline; text-decoration-color: #d6d3d1; }
.fp-doc {
    display: flex; align-items: center; gap: 6px; padding: 5px 8px;
    background: #f5f5f4; border-radius: 4px; margin-bottom: 4px;
    font-size: 10px; color: #57534e; font-weight: 500;
}

.fp-management { border-top: 1px solid #e7e5e4; padding-top: 14px; }
.fp-mgmt-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.fp-mgmt-field { }
.fp-select {
    display: flex; align-items: center; justify-content: space-between;
    background: #f5f5f4; border: 1px solid #e7e5e4; border-radius: 5px;
    padding: 6px 10px; font-size: 11px; color: #292524; font-weight: 500;
    margin-top: 4px; transition: all 0.3s;
}
.fp-select.contract-state { background: #f5f0e8; border-color: #d4c9a8; }
.fp-notes { margin-bottom: 12px; }
.fp-notes-area {
    background: #f5f5f4; border: 1px solid #e7e5e4; border-radius: 5px;
    padding: 8px 10px; font-size: 11px; color: #57534e; line-height: 1.5;
    margin-top: 4px;
}
.fp-actions { display: flex; gap: 8px; }
.btn-fp {
    flex: 1; padding: 8px; border-radius: 5px; font-size: 11px; font-weight: 600;
    text-align: center; transition: all 0.2s; cursor: pointer; border: none;
}
.btn-fp-save { background: #f5f5f4; color: #57534e; border: 1px solid #e7e5e4; }
.btn-fp-advance {
    background: #292524; color: #fafaf9;
}
.btn-fp-advance:hover { background: #1c1917; }
.btn-fp-advance.clicked {
    background: #a0916b; transform: scale(0.97);
}

/* Animated cursor */
.demo-cursor {
    position: absolute; z-index: 20; pointer-events: none;
    width: 18px; height: 18px;
    opacity: 0;
    transition: opacity 0.3s;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15));
}
.demo-cursor.visible { opacity: 1; }
.demo-cursor svg { width: 18px; height: 18px; }

/* Cursor click ripple */
.cursor-ripple {
    position: absolute; z-index: 19; pointer-events: none;
    width: 24px; height: 24px; border-radius: 50%;
    background: rgba(160,145,107,0.25);
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
}
.cursor-ripple.animate {
    animation: ripplePop 0.4s ease forwards;
}
@keyframes ripplePop {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 0.6; }
    100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}

/* Status change overlay — contained to .feature-ui */
.feature-ui { position: relative; overflow: hidden; }

.status-change-overlay {
    position: absolute; inset: 0; z-index: 15;
    background: rgba(250,250,249,0.94); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity 0.4s ease;
}
.status-change-overlay.visible { opacity: 1; pointer-events: auto; }
.sco-content { text-align: center; }
.sco-icon {
    width: 40px; height: 40px; margin: 0 auto 10px;
    border-radius: 50%; background: #f5f5f4; border: 1px solid #e7e5e4;
    display: flex; align-items: center; justify-content: center;
}
.sco-icon.pop { animation: scaleIn 0.3s ease; }
@keyframes scaleIn { from { transform: scale(0.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.sco-icon svg { width: 20px; height: 20px; }
.sco-text { font-size: 13px; color: #57534e; font-weight: 500; }
.sco-text strong { color: #292524; }

@media (max-width: 640px) {
    .fp-grid { grid-template-columns: 1fr; }
    .fp-mgmt-row { grid-template-columns: 1fr; }
}

/* --- Feature: Intake Form --- */
.feat-intake { padding: 0; }
.fi-nav {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 16px; border-bottom: 1px solid #e7e5e4;
}
.fi-logo { width: 20px; height: 20px; border-radius: 4px; background: #292524; }
.fi-step-indicator { font-size: 11px; color: #a8a29e; font-weight: 500; }
.fi-step-indicator strong { color: #292524; }
.fi-progress { height: 2px; background: #e7e5e4; }
.fi-progress-fill { height: 100%; background: #78716c; width: 20%; transition: width 0.6s ease; }
.fi-content { padding: 20px 16px; min-height: 260px; }

.fi-step { display: none; }
.fi-step.active { display: block; animation: fadeUp 0.3s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.fi-step h4 { font-size: 15px; font-weight: 700; color: #1c1917; margin-bottom: 4px; }
.fi-sub { font-size: 12px; color: #a8a29e; margin-bottom: 16px; }
.fi-field { margin-bottom: 12px; }
.fi-field label { display: block; font-size: 10px; font-weight: 600; color: #57534e; margin-bottom: 4px; }
.fi-input {
    background: #f5f5f4; border: 1px solid #e7e5e4; border-radius: 5px;
    padding: 8px 12px; font-size: 12px; color: #a8a29e;
    display: flex; align-items: center; min-height: 34px;
}
.fi-input.filled { color: #292524; }
.fi-typing-text { color: #292524; }
.fi-cursor { color: #a0916b; animation: blink 1s infinite; margin-left: 1px; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

.fi-map-box { margin-top: 4px; }
.fi-map-surface {
    height: 110px; border-radius: 6px;
    overflow: hidden; border: 1px solid #e7e5e4;
}
.fi-map-surface .leaflet-popup-content-wrapper {
    border-radius: 6px; box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.intake-pin { background: none; border: none; }
.fi-map-badge {
    display: flex; align-items: center; gap: 5px; margin-top: 6px;
    font-size: 10px; font-weight: 600; color: #57534e;
    opacity: 0; transition: opacity 0.3s;
}
.fi-map-badge.visible { opacity: 1; }

.fi-options { display: flex; flex-direction: column; gap: 8px; }
.fi-option {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; border: 1px solid #e7e5e4; border-radius: 6px;
    font-size: 12px; color: #57534e; font-weight: 500;
    cursor: pointer; transition: all 0.15s;
}
.fi-option:hover { border-color: #d6d3d1; }
.fi-option.selected { border-color: #78716c; background: #f5f5f4; color: #292524; }
.fi-option-radio {
    width: 14px; height: 14px; border-radius: 50%;
    border: 2px solid #d6d3d1; flex-shrink: 0; position: relative;
}
.fi-option.selected .fi-option-radio {
    border-color: #57534e;
}
.fi-option.selected .fi-option-radio::after {
    content: ''; position: absolute; top: 2px; left: 2px;
    width: 6px; height: 6px; border-radius: 50%; background: #57534e;
}

.fi-fields-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.fi-footer {
    display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid #e7e5e4;
}
.fi-btn-back {
    padding: 8px 16px; border: 1px solid #e7e5e4; border-radius: 5px;
    font-size: 11px; font-weight: 600; color: #a8a29e; cursor: pointer;
    transition: all 0.15s;
}
.fi-btn-back:hover { border-color: #d6d3d1; color: #57534e; }
.fi-btn-next {
    flex: 1; padding: 8px 16px; border-radius: 5px;
    font-size: 11px; font-weight: 600; color: #fafaf9; background: #292524;
    text-align: center; cursor: pointer; transition: all 0.15s;
}
.fi-btn-next:hover { background: #1c1917; }

/* --- Section Header Shared --- */
.section-header {
    max-width: 540px; margin-bottom: 48px;
}
.section-label {
    font-size: 11px; font-weight: 600; color: #a0916b;
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; display: block;
}
.section-header h2 {
    font-size: 28px; font-weight: 700; color: #1c1917; line-height: 1.25;
    letter-spacing: -0.5px; margin-bottom: 12px;
}
.section-header p { font-size: 14px; color: #78716c; line-height: 1.7; }

/* --- Examples Carousel (centered, infinite) --- */
.examples-section { padding: 80px 0; background: #f5f5f4; overflow: hidden; }
.examples-section .section-header { padding: 0 24px; }

.carousel-outer {
    position: relative;
    max-width: 1200px; margin: 0 auto;
}

/* The stage holds all slides in a relative container, centered */
.carousel-stage {
    position: relative;
    height: 420px; /* enough for scaled-up active slide */
    overflow: visible;
}

.carousel-slide {
    position: absolute;
    width: 380px;
    top: 50%; left: 50%;
    /* default: centered but will be repositioned by JS */
    transition: transform 0.5s cubic-bezier(0.33, 0, 0.2, 1), opacity 0.5s ease, filter 0.5s ease;
    transform: translate(-50%, -50%) scale(0.7);
    opacity: 0.3;
    filter: blur(1.5px);
    cursor: pointer;
}
.carousel-slide[data-pos="0"] {
    transform: translate(-50%, -50%) scale(1.05);
    opacity: 1;
    filter: blur(0);
    z-index: 4;
}
.carousel-slide[data-pos="1"],
.carousel-slide[data-pos="-1"] {
    opacity: 0.6;
    filter: blur(0);
    z-index: 3;
}
.carousel-slide[data-pos="1"]  { transform: translate(calc(-50% + 400px), -50%) scale(0.78); }
.carousel-slide[data-pos="-1"] { transform: translate(calc(-50% - 400px), -50%) scale(0.78); }
.carousel-slide[data-pos="2"],
.carousel-slide[data-pos="-2"] {
    z-index: 2;
}
.carousel-slide[data-pos="2"]  { transform: translate(calc(-50% + 720px), -50%) scale(0.65); }
.carousel-slide[data-pos="-2"] { transform: translate(calc(-50% - 720px), -50%) scale(0.65); }

.carousel-card {
    display: block; text-decoration: none; color: inherit;
}
.carousel-slide[data-pos="0"] .carousel-card:hover { transform: translateY(-2px); transition: transform 0.2s; }

/* Controls below */
.carousel-nav {
    display: flex; align-items: center; justify-content: center;
    gap: 20px; margin-top: 16px;
}
.carousel-arrow {
    width: 40px; height: 40px; border-radius: 50%;
    background: #fff; border: 1px solid #e7e5e4;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    display: flex; align-items: center; justify-content: center;
    color: #78716c; cursor: pointer;
    transition: all 0.15s;
}
.carousel-arrow:hover { border-color: #a8a29e; color: #292524; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.carousel-arrow svg { width: 18px; height: 18px; }
.carousel-counter {
    font-size: 12px; color: #a8a29e; font-weight: 500;
    font-family: 'IBM Plex Mono', monospace;
    min-width: 40px; text-align: center;
}

@media (max-width: 900px) {
    .carousel-slide { width: 300px; }
    .carousel-slide[data-pos="1"]  { transform: translate(calc(-50% + 310px), -50%) scale(0.78); }
    .carousel-slide[data-pos="-1"] { transform: translate(calc(-50% - 310px), -50%) scale(0.78); }
    .carousel-slide[data-pos="2"]  { transform: translate(calc(-50% + 560px), -50%) scale(0.65); }
    .carousel-slide[data-pos="-2"] { transform: translate(calc(-50% - 560px), -50%) scale(0.65); }
    .carousel-stage { height: 380px; }
}
@media (max-width: 640px) {
    .carousel-slide { width: 260px; }
    .carousel-slide[data-pos="1"]  { transform: translate(calc(-50% + 260px), -50%) scale(0.75); }
    .carousel-slide[data-pos="-1"] { transform: translate(calc(-50% - 260px), -50%) scale(0.75); }
    .carousel-slide[data-pos="2"],
    .carousel-slide[data-pos="-2"] { opacity: 0; }
    .carousel-stage { height: 360px; }
}

/* Browser frame */
.cc-browser {
    border-radius: 10px; overflow: hidden;
    border: 1px solid #e7e5e4;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    background: #fff;
}
.cc-chrome {
    display: flex; align-items: center; gap: 5px;
    padding: 8px 12px; background: #f5f5f4; border-bottom: 1px solid #e7e5e4;
}
.cc-chrome span { width: 7px; height: 7px; border-radius: 50%; background: #d6d3d1; }
.cc-url {
    font-size: 10px; color: #a8a29e; font-family: 'IBM Plex Mono', monospace;
    margin-left: 10px;
}

/* Viewport — the miniature landing page */
.cc-viewport {
    position: relative; height: 340px; overflow: hidden;
    background-size: cover; background-position: center;
}

/* Background images */
.ideal-vp { background-image: url('https://images.unsplash.com/photo-1509391366360-2e959784a276?w=800&h=500&fit=crop&q=60'); }
.lunex-vp { background-image: url('https://img.c3controls.com/c3controls-Renewable-Energy-Infrastructure-5.jpg?&fit=fill'); }
.atlas-vp { background-image: url('https://img.freepik.com/free-photo/construction-site-sunset_23-2152006125.jpg?semt=ais_hybrid&w=740&q=80'); }
.northpoint-vp { background-image: url('https://www.manwinwin.com/wp-content/uploads/2024/06/HVAC-Maintenance-ManWinWin.jpg'); }

/* White nav bar inside viewport */
.cc-white-nav {
    display: flex; align-items: center; justify-content: space-between;
    padding: 6px 12px; background: #fff;
    border-bottom: 1px solid #e2e8f0;
}
.cc-real-logo { height: 22px; width: auto; }
.cc-nav-favicon { height: 16px; width: 16px; border-radius: 2px; }
.cc-favicon-name { display: flex; align-items: center; gap: 5px; }
.cc-brand-text { font-size: 9px; font-weight: 700; }
.cc-nav-tabs-mini { display: flex; gap: 6px; }
.cc-nav-tab { font-size: 8px; font-weight: 500; color: #475569; }

/* Hero card — frosted glass, tall with side margins */
.cc-hero-card {
    position: relative; z-index: 2;
    margin: 6px 10px 8px; padding: 14px 14px;
    background: linear-gradient(135deg, rgba(30,58,95,0.75), rgba(30,58,95,0.65));
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px; text-align: center;
}
.cc-title {
    font-size: 14px; font-weight: 700;
    color: #fff; line-height: 1.2; margin-bottom: 6px;
}
.cc-sub {
    font-size: 8px; color: rgba(255,255,255,0.5);
    line-height: 1.5; margin-bottom: 12px; max-width: 90%; margin-left: auto; margin-right: auto;
}
.cc-props {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 6px; margin-bottom: 12px; text-align: left;
}
.cc-prop {
    padding: 8px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 6px;
}
.cc-pnum { font-size: 7px; font-weight: 700; display: block; margin-bottom: 3px; }
.cc-prop strong { font-size: 8px; color: #fff; display: block; margin-bottom: 2px; }
.cc-prop p { font-size: 7px; color: rgba(255,255,255,0.4); line-height: 1.4; }

.cc-cta {
    display: inline-block; padding: 6px 18px;
    border-radius: 5px; font-size: 9px; font-weight: 700; color: #fff;
}
.cc-tagline { font-size: 7px; color: rgba(255,255,255,0.3); margin-top: 6px; }

/* --- Carousel layout variants --- */
.cc-left-align { text-align: left; }
.cc-sub.cc-left { margin-left: 0; margin-right: 0; max-width: none; }
.cc-left-cta { display: inline-block; text-align: center; }

/* Lunex */
.cc-serif { font-family: 'DM Serif Display', serif; font-size: 16px; font-weight: 400; }
.cc-mini-stats {
    display: flex; gap: 14px; margin: 10px 0;
    padding: 8px 0; border-top: 1px solid rgba(255,255,255,0.08); border-bottom: 1px solid rgba(255,255,255,0.08);
}
.cc-mini-stat-val { display: block; font-family: 'DM Serif Display', serif; font-size: 14px; line-height: 1; }
.cc-mini-stat-label { font-size: 6px; color: rgba(255,255,255,0.4); }

/* Atlas */
.cc-condensed {
    font-family: 'Barlow Condensed', sans-serif; font-size: 18px;
    text-transform: uppercase; letter-spacing: 1px; line-height: 1.0;
}
.cc-sub.cc-bordered { border-left: 2px solid rgba(212,212,212,0.35); padding-left: 8px; }
.cc-mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 8px 0; }
.cc-mini-grid-item {
    padding: 6px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
    border-radius: 4px;
}
.cc-mini-grid-item strong {
    font-family: 'Barlow Condensed', sans-serif; font-size: 7px;
    text-transform: uppercase; letter-spacing: 0.3px; color: #fff; display: block;
}
.cc-mini-grid-item p { font-size: 6px; color: rgba(255,255,255,0.4); line-height: 1.3; }
.cc-condensed-btn { font-family: 'Barlow Condensed', sans-serif; text-transform: uppercase; letter-spacing: 0.5px; }

/* NorthPoint */
.cc-jakarta { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 13px; }
.cc-np-layout { display: grid; grid-template-columns: 1fr 0.9fr; gap: 10px; align-items: start; }
.cc-np-left .cc-sub { font-size: 7px; }
.cc-np-right { display: flex; flex-direction: column; gap: 4px; }
.cc-np-card {
    padding: 6px 8px; background: rgba(255,255,255,0.05);
    border: 1px solid rgba(143,191,171,0.12); border-radius: 5px;
}
.cc-np-label {
    font-size: 6px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px;
    font-family: 'Plus Jakarta Sans', sans-serif; display: block; margin-bottom: 1px;
}
.cc-np-card strong { font-size: 7px; color: #fff; font-family: 'Plus Jakarta Sans', sans-serif; }

/* Card label */
.cc-label {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 4px 4px;
}
.cc-label-favicon { width: 24px; height: 24px; border-radius: 4px; }
.cc-label-name { font-size: 13px; font-weight: 600; color: #292524; }
.cc-label-type { font-size: 11px; color: #a8a29e; }

@media (max-width: 768px) {
    .carousel-slide { flex: 0 0 260px; }
}

/* --- Our Work --- */
.work-section { padding: 80px 0; border-top: 1px solid #e7e5e4; }
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.work-card {
    padding: 24px; border: 1px solid #e7e5e4; border-radius: 8px;
    background: #fff; transition: box-shadow 0.2s;
}
.work-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.04); }
.wc-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.wc-favicon {
    width: 32px; height: 32px; flex-shrink: 0;
}
.wc-favicon svg { width: 32px; height: 32px; }
.wc-header h3 { font-size: 15px; font-weight: 600; color: #292524; }
.wc-type { font-size: 11px; color: #a8a29e; font-weight: 500; display: block; }
.wc-desc { font-size: 13px; color: #78716c; line-height: 1.6; margin-bottom: 16px; }
.wc-results { display: flex; gap: 24px; margin-bottom: 12px; }
.wc-result-val { display: block; font-size: 20px; font-weight: 700; color: #292524; letter-spacing: -0.3px; }
.wc-result-label { font-size: 11px; color: #a8a29e; }
.wc-link {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 12px; font-weight: 500; color: #78716c;
    border-bottom: 1px solid #e7e5e4; padding-bottom: 1px;
    transition: color 0.15s, border-color 0.15s;
}
.wc-link:hover { color: #292524; border-color: #a8a29e; }

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

/* --- Scope / Pricing --- */
.scope-section { padding: 80px 0; background: #f5f5f4; }
.scope-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.scope-card {
    background: #fff; border: 1px solid #e7e5e4; border-radius: 8px;
    padding: 28px 24px; display: flex; flex-direction: column;
}
.scope-card.primary {
    border-color: #a0916b; box-shadow: 0 0 0 1px #a0916b;
}
.scope-tier { font-size: 16px; font-weight: 600; color: #292524; margin-bottom: 4px; }
.scope-desc { font-size: 12px; color: #78716c; margin-bottom: 16px; line-height: 1.5; }
.scope-price { margin-bottom: 2px; }
.scope-amount { font-size: 30px; font-weight: 700; color: #1c1917; letter-spacing: -0.8px; }
.scope-period { font-size: 12px; color: #a8a29e; font-weight: 450; margin-left: 2px; }
.scope-hosting { font-size: 11px; color: #a8a29e; margin-bottom: 16px; }
.scope-divider { height: 1px; background: #e7e5e4; margin-bottom: 16px; }
.scope-list { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.scope-list li {
    font-size: 13px; color: #57534e; padding-left: 16px; position: relative;
    line-height: 1.4;
}
.scope-list li::before {
    content: ''; position: absolute; left: 0; top: 7px;
    width: 4px; height: 4px; border-radius: 50%; background: #a8a29e;
}
.scope-card.primary .scope-list li::before { background: #a0916b; }

.scope-note {
    font-size: 13px; color: #78716c; line-height: 1.6;
    text-align: center; max-width: 540px; margin: 0 auto;
}

@media (max-width: 900px) {
    .scope-grid { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
}

/* --- Contact --- */
.contact-section { padding: 80px 0; }
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.contact-info h2 { font-size: 26px; font-weight: 700; color: #1c1917; margin-bottom: 12px; line-height: 1.25; }
.contact-info > p { font-size: 14px; color: #78716c; line-height: 1.7; margin-bottom: 24px; }
.contact-details { display: flex; flex-direction: column; gap: 10px; }
.cd-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #57534e; font-weight: 450; }

.contact-form {
    background: #fff; border: 1px solid #e7e5e4; border-radius: 8px;
    padding: 28px; display: flex; flex-direction: column; gap: 14px;
}
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cf-group { display: flex; flex-direction: column; }
.cf-group label { font-size: 12px; font-weight: 600; color: #292524; margin-bottom: 5px; }
.cf-group input, .cf-group select, .cf-group textarea {
    padding: 9px 12px; border: 1px solid #e7e5e4; border-radius: 6px;
    font-size: 13px; font-family: inherit; color: #292524;
    transition: border-color 0.2s; background: #fafaf9;
}
.cf-group input:focus, .cf-group select:focus, .cf-group textarea:focus {
    outline: none; border-color: #a8a29e;
}
.cf-group input::placeholder, .cf-group textarea::placeholder { color: #d6d3d1; }
.cf-group textarea { resize: vertical; }
.cf-group select {
    cursor: pointer; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23a8a29e' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px;
}
.cf-note { font-size: 11px; color: #a8a29e; text-align: center; margin-top: 2px; }

@media (max-width: 768px) {
    .contact-layout { grid-template-columns: 1fr; }
    .cf-row { grid-template-columns: 1fr; }
}

/* --- Footer --- */
.footer { padding: 40px 0 28px; border-top: 1px solid #e7e5e4; }
.footer-inner { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 24px; }
.footer-brand p { font-size: 12px; color: #a8a29e; margin-top: 10px; line-height: 1.5; max-width: 300px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 12px; color: #78716c; font-weight: 450; transition: color 0.15s; }
.footer-links a:hover { color: #292524; }
.footer-bottom { padding-top: 16px; border-top: 1px solid #f5f5f4; }
.footer-bottom span { font-size: 11px; color: #a8a29e; }

@media (max-width: 640px) {
    .footer-inner { flex-direction: column; gap: 20px; }
    .footer-links { flex-wrap: wrap; gap: 16px; }
}

/* --- Scroll Animations --- */
[data-animate] {
    opacity: 0; transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
[data-animate].visible { opacity: 1; transform: translateY(0); }

/* --- Misc --- */
::selection { background: rgba(160,145,107,0.15); color: #1c1917; }
