/* Autonomics Global Core Stylesheet */

/* --- CSS Variables & Design System --- */
:root {
    --bg-dark: #070913;
    --bg-card: rgba(13, 17, 34, 0.6);
    --bg-card-hover: rgba(22, 28, 54, 0.7);
    --border-color: rgba(255, 255, 255, 0.07);
    --border-hover: rgba(255, 255, 255, 0.15);
    
    --cyan-500: #06b6d4;
    --cyan-600: #0891b2;
    --cyan-glow: rgba(6, 182, 212, 0.35);
    
    --purple-500: #a855f7;
    --purple-600: #9333ea;
    --purple-glow: rgba(168, 85, 247, 0.3);
    
    --pink-500: #ec4899;
    --pink-glow: rgba(236, 72, 153, 0.3);
    
    --indigo-500: #6366f1;
    --indigo-glow: rgba(99, 102, 241, 0.3);

    --emerald-400: #34d399;
    --emerald-500: #10b981;
    --emerald-glow: rgba(16, 185, 129, 0.3);
    
    --red-500: #ef4444;
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #626f86;
    
    --font-outfit: 'Outfit', sans-serif;
    --font-inter: 'Inter', sans-serif;
    
    --glass-blur: blur(16px);
    --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-quick: all 0.15s ease;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-inter);
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    line-height: 1.6;
    position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--cyan-500);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-outfit);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

p {
    color: var(--text-secondary);
}

.font-outfit {
    font-family: var(--font-outfit);
}

.font-semibold {
    font-weight: 600;
}

/* --- Helpers & Background Ornaments --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.section-padding {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.text-cyan { color: var(--cyan-500); }
.text-purple { color: var(--purple-500); }
.text-pink { color: var(--pink-500); }
.text-green { color: var(--emerald-400); }

.icon-sm {
    width: 16px;
    height: 16px;
}

/* Background Glowing Blurs */
.bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.18;
    z-index: -1;
    pointer-events: none;
}
.bg-glow-1 {
    background: radial-gradient(circle, var(--cyan-500) 0%, transparent 70%);
    top: -100px;
    left: -100px;
}
.bg-glow-2 {
    background: radial-gradient(circle, var(--purple-500) 0%, transparent 70%);
    top: 40%;
    right: -200px;
}
.bg-glow-3 {
    background: radial-gradient(circle, var(--pink-500) 0%, transparent 70%);
    bottom: -100px;
    left: 20%;
}

/* --- UI Glassmorphic System --- */
.glass-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 16px;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
    transition: var(--transition-smooth);
}

.glass-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    transition: var(--transition-smooth);
}

/* Hover glow effects */
.hover-glow:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: 0 22px 45px -10px rgba(0, 0, 0, 0.6);
}

.service-card.hover-glow:hover {
    border-color: var(--card-hover-border-color, var(--cyan-500));
    box-shadow: 0 15px 35px -10px var(--card-hover-shadow-color, rgba(6, 182, 212, 0.15));
}

/* Set local card variables for specific borders */
.service-card:nth-child(1) {
    --card-hover-border-color: rgba(6, 182, 212, 0.4);
    --card-hover-shadow-color: rgba(6, 182, 212, 0.12);
}
.service-card:nth-child(2) {
    --card-hover-border-color: rgba(168, 85, 247, 0.4);
    --card-hover-shadow-color: rgba(168, 85, 247, 0.12);
}
.service-card:nth-child(3) {
    --card-hover-border-color: rgba(236, 72, 153, 0.4);
    --card-hover-shadow-color: rgba(236, 72, 153, 0.12);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-outfit);
    font-weight: 500;
    font-size: 15px;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-quick);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--cyan-500) 0%, var(--indigo-500) 100%);
    color: #fff;
    box-shadow: 0 4px 20px -2px rgba(6, 182, 212, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px 0px rgba(6, 182, 212, 0.5);
    background: linear-gradient(135deg, var(--cyan-600) 0%, var(--indigo-500) 100%);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-hover);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--cyan-500);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.05);
}
.btn-outline:hover {
    background: rgba(6, 182, 212, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.15);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
    border-radius: 10px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 6px;
}

.btn-full {
    width: 100%;
}

.gradient-text {
    background: linear-gradient(135deg, var(--cyan-500) 0%, var(--purple-500) 50%, var(--pink-500) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Section Headers --- */
.section-header {
    margin-bottom: 60px;
}
.section-subtitle {
    display: inline-block;
    font-family: var(--font-outfit);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--cyan-500);
    margin-bottom: 12px;
    font-weight: 600;
}
.section-title {
    font-size: 40px;
    margin-bottom: 20px;
    color: var(--text-primary);
}
.section-description {
    max-width: 650px;
    font-size: 17px;
    color: var(--text-secondary);
}

/* --- Header & Navigation --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(7, 9, 19, 0.7);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    transition: var(--transition-smooth);
}
.main-header.scrolled {
    padding: 12px 0;
    background: rgba(7, 9, 19, 0.85);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.logo-icon {
    width: 32px;
    height: 32px;
}
.logo-text {
    font-family: var(--font-outfit);
    font-weight: 700;
    font-size: 22px;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}
.logo-text span {
    font-weight: 400;
    color: var(--text-secondary);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 32px;
}
.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition-quick);
}
.nav-link:hover {
    color: var(--text-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
}

/* --- Hero Section --- */
.hero-section {
    padding-top: 180px;
    padding-bottom: 100px;
    position: relative;
}

.badge-wrapper {
    margin-bottom: 24px;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 100px;
    padding: 6px 16px;
    font-size: 13px;
    font-family: var(--font-outfit);
    font-weight: 500;
    color: var(--cyan-500);
}
.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: var(--cyan-500);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.7);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(6, 182, 212, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(6, 182, 212, 0);
    }
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}
.hero-subtitle {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-features {
    display: flex;
    gap: 24px;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
}
.hero-feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.hero-visual {
    position: relative;
}

/* System Monitor Mockup */
.dashboard-preview-card {
    border-radius: 12px;
    overflow: hidden;
}
.card-header {
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.window-dots {
    display: flex;
    gap: 6px;
}
.window-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.window-dots .dot.red { background-color: var(--red-500); }
.window-dots .dot.yellow { background-color: #f59e0b; }
.window-dots .dot.green { background-color: var(--emerald-500); }

.card-header-title {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}
.card-status {
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
}
.status-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}
.status-indicator.online {
    background-color: var(--emerald-400);
    box-shadow: 0 0 8px var(--emerald-400);
}

.card-body {
    padding: 20px;
}
.db-grid-mini {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}
.db-stat-mini {
    padding: 14px;
}
.db-stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.db-stat-header .label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 600;
}
.db-stat-mini .value {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 4px;
}
.db-stat-mini .value .unit {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-secondary);
    margin-left: 2px;
}
.trend {
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}
.trend.positive { color: var(--emerald-400); }
.trend.negative { color: var(--red-500); }

.db-chart-mini {
    margin-bottom: 20px;
}
.db-chart-header {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-weight: 500;
}
.mini-chart-svg-container {
    height: 90px;
    position: relative;
}
.mini-chart-svg {
    width: 100%;
    height: 100%;
}
.pulse-point {
    animation: scale-glow 2s infinite ease-in-out;
}
@keyframes scale-glow {
    0% { r: 4; opacity: 1; }
    50% { r: 7; opacity: 0.5; }
    100% { r: 4; opacity: 1; }
}

.db-list-mini {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.db-list-mini .list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.01);
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}
.list-item .indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}
.list-item .indicator.cyan { background-color: var(--cyan-500); }
.list-item .indicator.purple { background-color: var(--purple-500); }
.list-item .name {
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: auto;
}
.list-item .time {
    color: var(--text-muted);
    font-size: 11px;
    flex-shrink: 0;
}

/* Animations on Hero Visual */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}
.hero-visual {
    animation: float 6s ease-in-out infinite;
}

/* --- Stats Section --- */
.stats-section {
    background: rgba(255, 255, 255, 0.01);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 60px 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}
.stat-box {
    padding: 10px;
}
.stat-number {
    font-size: 44px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--cyan-500) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}
.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- Services Section --- */
.service-card {
    padding: 40px;
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
}
.service-card:nth-child(1)::before { background: var(--cyan-500); }
.service-card:nth-child(2)::before { background: var(--purple-500); }
.service-card:nth-child(3)::before { background: var(--pink-500); }

.service-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}
.service-icon-wrapper.cyan {
    background: rgba(6, 182, 212, 0.1);
    color: var(--cyan-500);
}
.service-icon-wrapper.purple {
    background: rgba(168, 85, 247, 0.1);
    color: var(--purple-500);
}
.service-icon-wrapper.pink {
    background: rgba(236, 72, 153, 0.1);
    color: var(--pink-500);
}

.service-card .service-title {
    font-size: 22px;
    margin-bottom: 16px;
}
.service-card .service-text {
    font-size: 15px;
    margin-bottom: 24px;
    line-height: 1.6;
}
.service-features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 14px;
}
.service-features-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
}

/* --- Interactive BI Demo Section --- */
.demo-dashboard-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 580px;
    border-radius: 20px;
    overflow: hidden;
}

/* Sidebar Controls */
.demo-sidebar {
    background: rgba(7, 9, 19, 0.5);
    border-right: 1px solid var(--border-color);
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.sidebar-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-outfit);
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
}
.sidebar-title i {
    width: 18px;
    height: 18px;
    color: var(--cyan-500);
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.control-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    font-weight: 700;
}

.custom-select {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    padding: 10px 14px;
    font-family: var(--font-inter);
    font-size: 14px;
    outline: none;
    cursor: pointer;
    transition: var(--transition-quick);
}
.custom-select:focus {
    border-color: var(--cyan-500);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}

.radio-pill-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.pill-btn {
    width: 100%;
    text-align: left;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    padding: 10px 16px;
    font-size: 13px;
    font-family: var(--font-inter);
    cursor: pointer;
    transition: var(--transition-quick);
}
.pill-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}
.pill-btn.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(6, 182, 212, 0.2) 0%, rgba(99, 102, 241, 0.1) 100%);
    border-color: var(--cyan-500);
    box-shadow: inset 0 0 8px rgba(6, 182, 212, 0.1);
}

.timeframe-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.time-btn {
    text-align: left;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    padding: 10px 16px;
    font-size: 13px;
    font-family: var(--font-inter);
    cursor: pointer;
    transition: var(--transition-quick);
}
.time-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}
.time-btn.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(168, 85, 247, 0.2) 0%, rgba(99, 102, 241, 0.1) 100%);
    border-color: var(--purple-500);
}

.sidebar-footer {
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}
.refresh-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--text-secondary);
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.icon-spin {
    animation: spin 3s linear infinite;
}

/* Dashboard Main View */
.demo-main {
    padding: 36px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.demo-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.demo-title-area h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}
.demo-subtitle-text {
    font-size: 13px;
    color: var(--text-secondary);
}

.demo-metrics-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.metric-card {
    padding: 18px;
}
.card-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}
.metric-card .card-value {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 6px;
}
.card-trend {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}
.card-trend.positive { color: var(--emerald-400); }
.card-trend.negative { color: var(--red-500); }
.card-trend.neutral { color: var(--text-muted); }

/* Main Chart Graphic */
.demo-chart-area {
    padding: 24px;
    position: relative;
    background: rgba(255, 255, 255, 0.015);
}
.chart-legend {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}
.legend-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}
.legend-dot.cyan { background-color: var(--cyan-500); }
.legend-dot.purple { background-color: var(--purple-500); }

.main-chart-svg-container {
    height: 200px;
    width: 100%;
}
.main-chart-svg-container svg {
    width: 100%;
    height: 100%;
}

.demo-data-insights {
    padding: 20px;
    background: rgba(6, 182, 212, 0.03);
    border-color: rgba(6, 182, 212, 0.15);
}
.insight-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.insight-text {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --- ROI Calculator Section --- */
.roi-inputs-pane {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.panel-title {
    font-size: 20px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 14px;
}

.slider-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.slider-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}
.slider-value {
    font-family: var(--font-outfit);
    font-weight: 700;
    font-size: 18px;
    color: var(--cyan-500);
}
.slider-desc {
    font-size: 12px;
    color: var(--text-muted);
}

/* Custom HTML5 Range Sliders */
.range-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    outline: none;
    transition: var(--transition-quick);
}
.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--cyan-500);
    box-shadow: 0 0 10px var(--cyan-glow);
    cursor: pointer;
    transition: var(--transition-quick);
}
.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    background: var(--text-primary);
}
.range-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--cyan-500);
    box-shadow: 0 0 10px var(--cyan-glow);
    cursor: pointer;
    transition: var(--transition-quick);
    border: none;
}
.range-slider::-moz-range-thumb:hover {
    transform: scale(1.15);
    background: var(--text-primary);
}

.roi-formula-card {
    display: flex;
    gap: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: 8px;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}
.roi-formula-card i {
    flex-shrink: 0;
    color: var(--cyan-500);
}

/* Results Pane */
.roi-results-pane {
    padding: 40px;
    background: linear-gradient(185deg, var(--bg-card) 0%, rgba(6, 182, 212, 0.04) 100%);
    border-color: rgba(6, 182, 212, 0.15);
    display: flex;
    flex-direction: column;
}
.savings-large {
    margin: 20px 0 10px 0;
    display: flex;
    align-items: baseline;
}
.savings-currency {
    font-size: 32px;
    color: var(--cyan-500);
    font-weight: 700;
    margin-right: 4px;
}
.savings-number {
    font-size: 64px;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, #fff 30%, var(--cyan-500) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.savings-subtext {
    font-size: 13.5px;
    color: var(--text-secondary);
}

.panel-divider {
    border: 0;
    height: 1px;
    background: var(--border-color);
    margin: 28px 0;
}

.results-breakdown {
    gap: 20px;
    margin-bottom: auto;
}
.breakdown-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.breakdown-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}
.breakdown-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.results-cta {
    margin-top: 32px;
}

/* --- Case Studies Section --- */
.cases-filter-bar {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
    flex-wrap: wrap;
}
.filter-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    color: var(--text-secondary);
    padding: 8px 20px;
    font-family: var(--font-outfit);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition-quick);
}
.filter-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.07);
}
.filter-btn.active {
    background: var(--cyan-500);
    color: #fff;
    border-color: var(--cyan-500);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.25);
}

.case-card {
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.case-image-wrapper {
    position: relative;
    height: 180px;
    overflow: hidden;
}
.case-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    background: rgba(7, 9, 19, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}
.case-card-graphic {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.case-card-graphic i {
    width: 44px;
    height: 44px;
    color: #fff;
    opacity: 0.8;
}
.case-card-graphic.cyan-gradient {
    background: linear-gradient(135deg, #0f172a 0%, rgba(6, 182, 212, 0.3) 100%);
}
.case-card-graphic.purple-gradient {
    background: linear-gradient(135deg, #0f172a 0%, rgba(168, 85, 247, 0.3) 100%);
}
.case-card-graphic.pink-gradient {
    background: linear-gradient(135deg, #0f172a 0%, rgba(236, 72, 153, 0.3) 100%);
}

.case-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.case-stat {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--cyan-500);
    margin-bottom: 4px;
}
.case-card:nth-child(2) .case-stat { color: var(--purple-500); }
.case-card:nth-child(3) .case-stat { color: var(--pink-500); }

.case-stat-desc {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-bottom: 16px;
}
.case-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-primary);
}
.case-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 24px;
}
.case-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-family: var(--font-outfit);
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    margin-top: auto;
    transition: var(--transition-quick);
}
.case-link:hover {
    color: var(--cyan-500);
}
.case-link:hover i {
    transform: translateX(3px);
}
.case-link i {
    width: 14px;
    height: 14px;
    transition: var(--transition-quick);
}

/* --- FAQ & Resources Section --- */
.faq-intro {
    padding-right: 48px;
}
.faq-cta-box {
    margin-top: 36px;
    padding: 24px;
}
.faq-cta-box h4 {
    font-size: 16px;
    margin-bottom: 10px;
}
.faq-cta-box p {
    font-size: 13.5px;
    margin-bottom: 18px;
}
.text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-outfit);
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition-quick);
}
.text-link:hover i {
    transform: translateX(4px);
}
.text-link i {
    transition: var(--transition-quick);
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.faq-item {
    padding: 0;
    overflow: hidden;
}
.faq-trigger {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    outline: none;
}
.faq-question {
    font-weight: 500;
    font-size: 16px;
    color: var(--text-primary);
    padding-right: 20px;
}
.faq-chevron {
    color: var(--text-secondary);
    transition: var(--transition-quick);
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}
.faq-trigger[aria-expanded="true"] .faq-chevron {
    transform: rotate(180deg);
    color: var(--cyan-500);
}

.faq-content {
    padding: 0 24px 20px 24px;
    border-top: 1px solid transparent;
    transition: var(--transition-quick);
}
.faq-answer {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --- Contact Section --- */
.contact-info {
    padding-right: 48px;
}
.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-top: 40px;
}
.method-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.method-icon {
    width: 44px;
    height: 44px;
    background: rgba(6, 182, 212, 0.1);
    color: var(--cyan-500);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.method-icon i {
    width: 20px;
    height: 20px;
}
.method-label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-bottom: 4px;
}
.method-value {
    font-size: 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-family: var(--font-outfit);
    font-weight: 500;
}

/* Forms System */
.contact-form-container {
    padding: 40px;
    position: relative;
    overflow: hidden;
}
.form-row {
    margin-bottom: 20px;
    gap: 20px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    position: relative;
}
.form-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: var(--font-inter);
    font-size: 14.5px;
    outline: none;
    transition: var(--transition-quick);
}
.form-control:focus {
    border-color: var(--cyan-500);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.25);
    background: rgba(255, 255, 255, 0.05);
}
.form-control::placeholder {
    color: var(--text-muted);
}

.checkbox-pills-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.pill-check-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    color: var(--text-secondary);
    padding: 8px 18px;
    font-size: 13px;
    font-family: var(--font-inter);
    cursor: pointer;
    transition: var(--transition-quick);
}
.pill-check-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}
.pill-check-btn.active {
    color: #fff;
    background: rgba(6, 182, 212, 0.15);
    border-color: var(--cyan-500);
}

textarea.form-control {
    resize: vertical;
}

/* Form Errors */
.error-message {
    font-size: 11px;
    color: var(--red-500);
    display: none;
    margin-top: 4px;
}
.form-group.has-error .form-control {
    border-color: var(--red-500);
}
.form-group.has-error .error-message {
    display: block;
}

.form-submit-btn .btn-icon {
    width: 16px;
    height: 16px;
    transition: var(--transition-quick);
}
.form-submit-btn:hover .btn-icon {
    transform: translate(2px, -2px);
}

/* Form Success Overlay */
.form-success-state {
    padding: 30px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.success-icon-wrapper {
    width: 64px;
    height: 64px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--emerald-400);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.success-icon {
    width: 36px;
    height: 36px;
}
.form-success-state h3 {
    font-size: 24px;
}
.form-success-state p {
    font-size: 14.5px;
    max-width: 340px;
    line-height: 1.6;
    margin-bottom: 8px;
}

/* --- Footer --- */
.main-footer {
    background: #04050a;
    border-top: 1px solid var(--border-color);
    padding: 80px 0 40px 0;
    position: relative;
    z-index: 10;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 48px;
    margin-bottom: 60px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.footer-desc {
    font-size: 14px;
    line-height: 1.6;
    max-width: 280px;
}
.social-links {
    display: flex;
    gap: 16px;
}
.social-links a {
    color: var(--text-secondary);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition-quick);
}
.social-links a:hover {
    color: var(--cyan-500);
    border-color: var(--cyan-500);
    background: rgba(6, 182, 212, 0.05);
}
.social-links a i {
    width: 18px;
    height: 18px;
}

.footer-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition-quick);
}
.footer-links a:hover {
    color: var(--text-primary);
    padding-left: 2px;
}

.footer-newsletter {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.newsletter-text {
    font-size: 13.5px;
}
.newsletter-form-container {
    display: flex;
    gap: 8px;
    width: 100%;
}
.newsletter-form-container .form-control {
    padding: 10px 14px;
    font-size: 13.5px;
}
.newsletter-form-container .btn {
    padding: 10px 16px;
}
.newsletter-success {
    font-size: 12px;
    color: var(--emerald-400);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 13px;
    color: var(--text-muted);
}
.footer-legal {
    display: flex;
    align-items: center;
    gap: 12px;
}
.footer-legal a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-quick);
}
.footer-legal a:hover {
    color: var(--text-secondary);
}
.footer-legal .separator {
    color: rgba(255, 255, 255, 0.05);
}

/* --- Animations & Intersection Observer Triggers --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.fade-in-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive Media Queries --- */

/* Tablets & Small Desktops */
@media (max-width: 992px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .grid-3 {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
    
    .hero-section {
        padding-top: 140px;
        padding-bottom: 60px;
    }
    .hero-content {
        text-align: center;
    }
    .hero-title {
        font-size: 46px;
    }
    .hero-badge {
        justify-content: center;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-features {
        justify-content: center;
    }
    .hero-visual {
        max-width: 600px;
        margin: 0 auto;
        width: 100%;
    }

    .demo-dashboard-container {
        grid-template-columns: 1fr;
    }
    .demo-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        flex-direction: row;
        flex-wrap: wrap;
        gap: 24px;
    }
    .demo-sidebar > * {
        flex: 1 1 200px;
    }
    .radio-pill-group, .timeframe-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .pill-btn, .time-btn {
        flex: 1;
        text-align: center;
        padding: 8px 12px;
    }
    .sidebar-footer {
        flex: 1 1 100%;
        margin-top: 0;
        padding-top: 16px;
        border-top: 1px solid var(--border-color);
    }

    .faq-intro {
        padding-right: 0;
    }
    .contact-info {
        padding-right: 0;
        text-align: center;
    }
    .contact-methods {
        flex-direction: row;
        justify-content: space-around;
        flex-wrap: wrap;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    .footer-brand {
        grid-column: span 2;
    }
    .footer-newsletter {
        grid-column: span 2;
        max-width: 500px;
    }
}

/* Small Screens / Mobiles */
@media (max-width: 768px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
    .section-title {
        font-size: 30px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .mobile-toggle {
        display: block;
    }
    .nav-cta-secondary {
        display: none;
    }
    
    /* Navigation Dropdown Overlay */
    .nav-menu {
        position: fixed;
        top: 76px;
        left: 0;
        width: 100%;
        height: 0;
        background: var(--bg-dark);
        border-bottom: 1px solid transparent;
        overflow: hidden;
        transition: var(--transition-smooth);
        z-index: 99;
    }
    .nav-menu.active {
        height: 280px;
        border-color: var(--border-color);
        box-shadow: 0 15px 30px rgba(0,0,0,0.5);
    }
    .nav-list {
        flex-direction: column;
        align-items: center;
        padding: 24px 0;
        gap: 20px;
    }
    
    .demo-main {
        padding: 20px;
    }
    .demo-metrics-row {
        grid-template-columns: 1fr;
    }
    .demo-topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .demo-topbar .btn {
        width: 100%;
    }

    .roi-inputs-pane, .roi-results-pane, .contact-form-container {
        padding: 24px;
    }
    .savings-number {
        font-size: 48px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .footer-brand, .footer-newsletter {
        grid-column: span 1;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .footer-legal {
        justify-content: center;
    }
}

/* ============================================================
   --- Portfolio Section ---
   ============================================================ */

/* Filter Bar */
.portfolio-filter-bar {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.pf-filter-btn {
    padding: 9px 22px;
    border-radius: 100px;
    font-family: var(--font-outfit);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    transition: var(--transition-quick);
}
.pf-filter-btn:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}
.pf-filter-btn.active {
    background: linear-gradient(135deg, var(--cyan-500) 0%, var(--indigo-500) 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 18px -4px rgba(6, 182, 212, 0.45);
}

/* Featured Project */
.portfolio-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 48px;
    min-height: 420px;
}

.pf-featured-visual {
    background: linear-gradient(145deg, rgba(6, 182, 212, 0.05) 0%, rgba(168, 85, 247, 0.05) 100%);
    border-right: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.pf-mock-ui {
    width: 100%;
    max-width: 420px;
    background: rgba(7, 9, 19, 0.75);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 24px 60px -15px rgba(0, 0, 0, 0.8);
    font-size: 12px;
}
.pf-mock-topbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-color);
}
.pf-mock-url {
    flex: 1;
    color: var(--text-muted);
    font-size: 11px;
    font-family: var(--font-inter);
}
.pf-mock-badge {
    background: rgba(16, 185, 129, 0.15);
    color: var(--emerald-400);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.pf-mock-body {
    display: grid;
    grid-template-columns: 90px 1fr;
    min-height: 240px;
}
.pf-mock-sidebar {
    border-right: 1px solid var(--border-color);
    padding: 14px 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: rgba(0, 0, 0, 0.2);
}
.pf-sidebar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    color: var(--text-muted);
    font-size: 11px;
    cursor: pointer;
    transition: var(--transition-quick);
    border-left: 2px solid transparent;
}
.pf-sidebar-item i { width: 12px; height: 12px; }
.pf-sidebar-item.active {
    color: var(--cyan-500);
    border-left-color: var(--cyan-500);
    background: rgba(6, 182, 212, 0.07);
}

.pf-mock-content {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.pf-kpi-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.pf-kpi {
    border-radius: 6px;
    padding: 8px;
    border: 1px solid var(--border-color);
}
.pf-kpi.cyan { background: rgba(6, 182, 212, 0.05); }
.pf-kpi.purple { background: rgba(168, 85, 247, 0.05); }
.pf-kpi.pink { background: rgba(236, 72, 153, 0.05); }
.pf-kpi-label {
    display: block;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 4px;
    font-weight: 600;
}
.pf-kpi-value {
    font-family: var(--font-outfit);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 3px;
}
.pf-kpi-trend {
    font-size: 10px;
    color: var(--emerald-400);
    font-weight: 500;
}

.pf-chart-block {
    flex: 1;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 10px;
}
.pf-chart-title {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
    font-weight: 600;
}
.pf-bar-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 60px;
    gap: 6px;
}
.pf-bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
    height: 100%;
    justify-content: flex-end;
}
.pf-bar {
    width: 100%;
    border-radius: 3px 3px 0 0;
    min-height: 4px;
    opacity: 0.85;
    transition: opacity 0.25s;
}
.pf-bar-group:hover .pf-bar { opacity: 1; }
.pf-bar-group span {
    font-size: 8px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pf-featured-info {
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}
.pf-featured-tag {
    display: inline-block;
    font-family: var(--font-outfit);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--cyan-500);
}
.pf-featured-title {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
}
.pf-featured-desc {
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-secondary);
    margin: 0;
}

.pf-outcome-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.pf-outcome-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
    font-family: var(--font-outfit);
}
.pf-outcome-pill i { width: 12px; height: 12px; }
.pf-outcome-pill.cyan {
    background: rgba(6, 182, 212, 0.1);
    color: var(--cyan-500);
    border: 1px solid rgba(6, 182, 212, 0.2);
}
.pf-outcome-pill.purple {
    background: rgba(168, 85, 247, 0.1);
    color: var(--purple-500);
    border: 1px solid rgba(168, 85, 247, 0.2);
}
.pf-outcome-pill.pink {
    background: rgba(236, 72, 153, 0.1);
    color: var(--pink-500);
    border: 1px solid rgba(236, 72, 153, 0.2);
}

.pf-tech-stack {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.pf-tech-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.pf-tech-tag {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 12px;
    font-family: var(--font-inter);
    padding: 3px 10px;
    border-radius: 5px;
    font-weight: 500;
    transition: var(--transition-quick);
}
.pf-tech-tag:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.07);
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 48px;
}

.pf-card {
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}
.pf-card.hidden-by-filter {
    display: none;
}

.pf-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    color: white;
    min-height: 64px;
}
.pf-card-header i { width: 22px; height: 22px; opacity: 0.9; }
.pf-card-tag {
    font-family: var(--font-outfit);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.85;
}

.pf-card-header.cyan-gradient {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.5) 0%, rgba(99, 102, 241, 0.4) 100%);
    border-bottom: 1px solid rgba(6, 182, 212, 0.25);
}
.pf-card-header.purple-gradient {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.5) 0%, rgba(236, 72, 153, 0.35) 100%);
    border-bottom: 1px solid rgba(168, 85, 247, 0.25);
}
.pf-card-header.pink-gradient {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.5) 0%, rgba(168, 85, 247, 0.35) 100%);
    border-bottom: 1px solid rgba(236, 72, 153, 0.25);
}
.pf-card-header.indigo-gradient {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.55) 0%, rgba(6, 182, 212, 0.35) 100%);
    border-bottom: 1px solid rgba(99, 102, 241, 0.25);
}

.pf-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
}
.pf-card-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}
.pf-card-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    flex: 1;
}

.pf-card-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    border-top: 1px solid var(--border-color);
    padding-top: 14px;
}
.pf-metric {
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: center;
}
.pf-metric-val {
    font-family: var(--font-outfit);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}
.pf-metric-lbl {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 600;
}

.pf-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* CTA Row */
.portfolio-cta-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding-top: 8px;
}
.portfolio-cta-text {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0;
}

/* Responsive Portfolio */
@media (max-width: 1024px) {
    .portfolio-featured {
        grid-template-columns: 1fr;
    }
    .pf-featured-visual {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 28px;
    }
    .pf-featured-info {
        padding: 32px;
    }
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 640px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    .pf-mock-ui {
        max-width: 100%;
    }
    .pf-kpi-row {
        grid-template-columns: 1fr 1fr;
    }
    .pf-kpi:last-child {
        grid-column: span 2;
    }
    .portfolio-cta-row {
        flex-direction: column;
        gap: 12px;
    }
    .portfolio-filter-bar {
        gap: 8px;
    }
}

/* ==========================================
   Language Switcher Styles
   ========================================== */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-outfit);
    font-size: 14px;
    font-weight: 600;
    margin-right: 12px;
}
.lang-btn {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}
.lang-btn:hover, .lang-btn.active {
    color: var(--cyan-400);
    text-shadow: 0 0 10px rgba(34,211,238,0.3);
}
.lang-separator {
    color: var(--slate-600);
    font-weight: 300;
}


/* --- Portfolio Blank / Coming Soon Cards --- */
.pf-card-blank {
    min-height: 260px;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.015);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.pf-card-blank::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(6, 182, 212, 0.03) 0%,
        rgba(168, 85, 247, 0.03) 50%,
        rgba(236, 72, 153, 0.03) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

.pf-card-blank:hover {
    border-color: rgba(6, 182, 212, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px -12px rgba(6, 182, 212, 0.12);
}

.pf-card-blank:hover::before {
    opacity: 1;
}

.pf-card-blank-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    z-index: 1;
    text-align: center;
    padding: 32px;
}

.pf-blank-icon-ring {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1.5px dashed rgba(6, 182, 212, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(6, 182, 212, 0.4);
    animation: blank-ring-spin 12s linear infinite;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.pf-blank-icon-ring i {
    width: 20px;
    height: 20px;
}

.pf-card-blank:hover .pf-blank-icon-ring {
    border-color: rgba(6, 182, 212, 0.7);
    color: var(--cyan-500);
    animation-play-state: paused;
}

@keyframes blank-ring-spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.pf-blank-label {
    font-family: var(--font-outfit);
    font-weight: 600;
    font-size: 15px;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
}

.pf-card-blank:hover .pf-blank-label {
    color: var(--text-primary);
}

.pf-blank-sub {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.01em;
}

.pf-blank-btn {
    margin-top: 4px;
    padding: 9px 20px;
    font-size: 13px;
    border-radius: 8px;
    border: 1px solid rgba(6, 182, 212, 0.25);
    color: rgba(6, 182, 212, 0.6);
    background: rgba(6, 182, 212, 0.04);
    gap: 7px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.pf-blank-btn i {
    width: 14px;
    height: 14px;
}

.pf-card-blank:hover .pf-blank-btn {
    opacity: 1;
    transform: translateY(0);
}

.pf-blank-btn:hover {
    background: rgba(6, 182, 212, 0.12);
    border-color: rgba(6, 182, 212, 0.6);
    color: var(--cyan-500);
    transform: translateY(-2px) !important;
}

/* =========================================
   Portfolio Links Hub Card
   ========================================= */
.pf-links-hub {
    grid-column: 1 / -1;
    padding: 36px 40px;
    position: relative;
    overflow: hidden;
}

.pf-links-hub::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(6, 182, 212, 0.04) 0%,
        rgba(168, 85, 247, 0.04) 50%,
        rgba(236, 72, 153, 0.04) 100%);
    pointer-events: none;
}

.pf-links-hub-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.pf-links-hub-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(168, 85, 247, 0.15));
    border: 1px solid rgba(6, 182, 212, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyan-500);
    flex-shrink: 0;
}

.pf-links-hub-icon i {
    width: 22px;
    height: 22px;
}

.pf-links-hub-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.pf-links-hub-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.pf-links-hub-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.pf-hub-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    text-decoration: none;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.pf-hub-link:hover {
    transform: translateY(-3px);
    border-color: var(--border-hover);
    box-shadow: 0 12px 28px -8px rgba(0,0,0,0.5);
}

.pf-hub-link-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition-quick);
}

.pf-hub-link-icon i {
    width: 18px;
    height: 18px;
}

.pf-hub-link-icon.cyan    { background: rgba(6, 182, 212, 0.12);  color: var(--cyan-500); }
.pf-hub-link-icon.purple  { background: rgba(168, 85, 247, 0.12); color: var(--purple-500); }
.pf-hub-link-icon.pink    { background: rgba(236, 72, 153, 0.12); color: var(--pink-500); }
.pf-hub-link-icon.indigo  { background: rgba(99, 102, 241, 0.12); color: var(--indigo-500); }
.pf-hub-link-icon.emerald { background: rgba(16, 185, 129, 0.12); color: var(--emerald-400); }
.pf-hub-link-icon.orange  { background: rgba(249, 115, 22, 0.12); color: #f97316; }

.pf-hub-link:hover .pf-hub-link-icon.cyan    { background: rgba(6, 182, 212, 0.22); }
.pf-hub-link:hover .pf-hub-link-icon.purple  { background: rgba(168, 85, 247, 0.22); }
.pf-hub-link:hover .pf-hub-link-icon.pink    { background: rgba(236, 72, 153, 0.22); }
.pf-hub-link:hover .pf-hub-link-icon.indigo  { background: rgba(99, 102, 241, 0.22); }
.pf-hub-link:hover .pf-hub-link-icon.emerald { background: rgba(16, 185, 129, 0.22); }
.pf-hub-link:hover .pf-hub-link-icon.orange  { background: rgba(249, 115, 22, 0.22); }

.pf-hub-link-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
}

.pf-hub-link-title {
    font-family: var(--font-outfit);
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.pf-hub-link-desc {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pf-hub-link-arrow {
    width: 15px;
    height: 15px;
    color: var(--text-muted);
    flex-shrink: 0;
    transform: translateX(-4px);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease, color 0.25s ease;
}

.pf-hub-link:hover .pf-hub-link-arrow {
    transform: translateX(0);
    opacity: 1;
    color: var(--text-secondary);
}

@media (max-width: 900px) {
    .pf-links-hub-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 580px) {
    .pf-links-hub {
        padding: 24px 20px;
    }
    .pf-links-hub-grid {
        grid-template-columns: 1fr;
    }
    .pf-links-hub-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =========================================
   How We Work Section
   ========================================= */
.how-we-work-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin-top: 48px;
}

.hww-step {
    padding: 36px 32px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hww-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
}

.hww-step:nth-child(1)::before { background: var(--cyan-500); }
.hww-step:nth-child(2)::before { background: var(--purple-500); }
.hww-step:nth-child(3)::before { background: var(--pink-500); }
.hww-step:nth-child(4)::before { background: var(--indigo-500); }

.hww-step-number {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 32px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.03);
    line-height: 1;
    transition: var(--transition-smooth);
}

.hww-step:hover .hww-step-number {
    color: rgba(255, 255, 255, 0.08);
    transform: scale(1.1);
}

.hww-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    flex-shrink: 0;
}

.hww-icon-wrapper.cyan {
    background: rgba(6, 182, 212, 0.1);
    color: var(--cyan-500);
}

.hww-icon-wrapper.purple {
    background: rgba(168, 85, 247, 0.1);
    color: var(--purple-500);
}

.hww-icon-wrapper.pink {
    background: rgba(236, 72, 153, 0.1);
    color: var(--pink-500);
}

.hww-icon-wrapper.indigo {
    background: rgba(99, 102, 241, 0.1);
    color: var(--indigo-500);
}

.hww-step .hww-title {
    font-size: 18px;
    margin-bottom: 14px;
    color: var(--text-primary);
}

.hww-step .hww-text {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Trust Bar */
.hww-trust-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 24px 40px;
    margin-top: 48px;
}

.hww-trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-secondary);
}

.hww-trust-item i {
    width: 18px;
    height: 18px;
}

.hww-trust-divider {
    width: 1px;
    height: 20px;
    background-color: var(--border-color);
}

@media (max-width: 992px) {
    .how-we-work-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    .hww-trust-divider {
        display: none;
    }
    .hww-trust-bar {
        justify-content: center;
        gap: 24px;
    }
}

@media (max-width: 600px) {
    .how-we-work-grid {
        grid-template-columns: 1fr;
    }
    .hww-trust-bar {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }
}

/* =========================================
   Chatbot Floating Action Button (FAB)
   ========================================= */

.fab-wrapper {
    position: fixed;
    bottom: 36px;
    right: 36px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transform: translateY(20px);
    animation: fab-enter 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 1.2s forwards;
}

@keyframes fab-enter {
    to { opacity: 1; transform: translateY(0); }
}

.fab-tooltip {
    background: rgba(13, 17, 34, 0.92);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text-primary);
    font-family: var(--font-outfit);
    font-size: 13px;
    font-weight: 500;
    padding: 7px 14px;
    border-radius: 8px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translateX(8px);
    transition: opacity 0.22s ease, transform 0.22s ease;
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

.fab-wrapper:hover .fab-tooltip {
    opacity: 1;
    transform: translateX(0);
}

.fab-btn {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, var(--cyan-500) 0%, var(--indigo-500) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 24px rgba(6, 182, 212, 0.45), 0 2px 8px rgba(0,0,0,0.4);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
    flex-shrink: 0;
}

.fab-btn:hover {
    transform: scale(1.12) translateY(-3px);
    box-shadow: 0 12px 32px rgba(6, 182, 212, 0.6), 0 4px 12px rgba(0,0,0,0.5);
}

.fab-btn:active {
    transform: scale(0.96);
}

.fab-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(6, 182, 212, 0.55);
    animation: fab-ring-pulse 2.4s ease-out infinite;
    pointer-events: none;
}

@keyframes fab-ring-pulse {
    0%   { opacity: 0.8; transform: scale(1); }
    70%  { opacity: 0;   transform: scale(1.45); }
    100% { opacity: 0;   transform: scale(1.45); }
}

.fab-btn:hover .fab-ring {
    animation-play-state: paused;
    opacity: 0;
}

.fab-icon {
    width: 26px;
    height: 26px;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.fab-btn:hover .fab-icon {
    transform: scale(1.08);
}

@media (max-width: 580px) {
    .fab-wrapper {
        bottom: 24px;
        right: 20px;
    }
    .fab-btn {
        width: 52px;
        height: 52px;
    }
    .fab-icon {
        width: 22px;
        height: 22px;
    }
}
