/* ============================================================
   SOLUTION TECH CONSULTING — Dashboard Aesthetic
   Fonts: Space Grotesk (headings) + DM Sans (body) + JetBrains Mono (code/labels)
   Palette: Dark-mode dominant with purple/indigo accents

   Optimised Google Fonts URL (subset weights loaded via HTML <link>):
   https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;600&family=Space+Grotesk:wght@600;700&display=swap
   ============================================================ */

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --purple-500: #7C3AED;
    --purple-600: #6D28D9;
    --indigo-600: #4F46E5;
    --indigo-700: #4338CA;
    --lavender: #A78BFA;

    --bg-black: #09090B;
    --bg-elevated: #111114;
    --bg-surface: #18181B;
    --bg-card: #1E1E23;

    --text-primary: #E4E4E7;
    --text-muted: #A1A1AA;
    --text-dim: #8A8A94;

    --border-subtle: rgba(255,255,255,0.08);
    --border-light: rgba(255,255,255,0.12);

    --glass-bg: rgba(255,255,255,0.04);
    --glass-bg-hover: rgba(255,255,255,0.07);
    --glass-border: rgba(255,255,255,0.1);

    --glow-purple: rgba(124, 58, 237, 0.15);
    --glow-purple-strong: rgba(124, 58, 237, 0.3);

    --green-accent: #34D399;
    --green-dim: #065F46;

    --nav-height: 64px;
    --container-max: 1200px;
    --container-narrow: 800px;
    --container-text: 680px;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'DM Sans', system-ui, sans-serif;
    background: var(--bg-black);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ===== FOCUS INDICATORS ===== */
:focus-visible {
    outline: 2px solid var(--lavender);
    outline-offset: 2px;
}

/* ===== SKIP NAVIGATION ===== */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 10000;
    padding: 0.5rem 1rem;
    background: var(--purple-500);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0 0 8px 0;
    text-decoration: none;
}

.skip-link:focus {
    left: 0;
}

ul, ol {
    list-style: none;
}

/* ===== CONTAINER ===== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

.container--narrow {
    max-width: var(--container-narrow);
}

.container--text {
    max-width: var(--container-text);
}


/* ============================================================
   NAVIGATION
   ============================================================ */
.dash-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(9, 9, 11, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0 2rem;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dash-nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.dash-nav-logo-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--purple-500);
    box-shadow: 0 0 12px var(--purple-500), 0 0 24px rgba(124, 58, 237, 0.4);
    animation: dotPulse 2.5s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { box-shadow: 0 0 12px var(--purple-500), 0 0 24px rgba(124, 58, 237, 0.4); }
    50% { box-shadow: 0 0 18px var(--purple-500), 0 0 36px rgba(124, 58, 237, 0.6); }
}

.dash-nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.dash-nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
    letter-spacing: 0.01em;
}

.dash-nav-links a:hover,
.dash-nav-links a.active {
    color: var(--text-primary);
}

.dash-nav-cta {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    border: none;
    background: var(--purple-500);
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.01em;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.dash-nav-cta:hover {
    background: var(--purple-600);
    box-shadow: 0 0 20px var(--glow-purple);
}

.dash-nav-mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
}


/* ============================================================
   HERO — Compact with Dashboard Preview
   ============================================================ */
.dash-hero {
    padding: 7rem 2rem 3rem;
    min-height: 55vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.dash-hero::before {
    content: '';
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.dash-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 1rem;
    border-radius: 100px;
    border: 1px solid var(--border-light);
    background: var(--glass-bg);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--lavender);
    margin-bottom: 1.5rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.dash-hero-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green-accent);
    animation: dotPulse2 2s ease-in-out infinite;
}

@keyframes dotPulse2 {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.dash-hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.25rem;
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 700;
    text-align: center;
    line-height: 1.15;
    letter-spacing: -0.03em;
    max-width: 700px;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 40%, var(--lavender) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dash-hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    text-align: center;
    max-width: 520px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

/* Dashboard Preview */
.dash-preview {
    width: 100%;
    max-width: 900px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 0 60px var(--glow-purple), 0 20px 60px rgba(0,0,0,0.5);
    position: relative;
}

.dash-preview-titlebar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
}

.dash-preview-dots {
    display: flex;
    gap: 6px;
}

.dash-preview-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dash-preview-dots span:nth-child(1) { background: #EF4444; }
.dash-preview-dots span:nth-child(2) { background: #F59E0B; }
.dash-preview-dots span:nth-child(3) { background: #22C55E; }

.dash-preview-titlebar-text {
    flex: 1;
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-dim);
    font-family: 'JetBrains Mono', monospace;
}

.dash-preview-body {
    padding: 1.25rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.dash-metric-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 1rem;
    position: relative;
    overflow: hidden;
}

.dash-metric-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--purple-500), var(--lavender));
    opacity: 0.6;
}

.dash-metric-label {
    font-size: 0.65rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}

.dash-metric-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.dash-metric-value.accent-green { color: var(--green-accent); }
.dash-metric-value.accent-purple { color: var(--lavender); }

.dash-metric-change {
    font-size: 0.7rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--green-accent);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.dash-metric-change.neutral { color: var(--text-dim); }

.dash-sparkline {
    margin-top: 0.6rem;
    height: 28px;
    display: flex;
    align-items: flex-end;
    gap: 3px;
}

.dash-sparkline-bar {
    flex: 1;
    border-radius: 2px;
    background: var(--purple-500);
    opacity: 0.5;
    transition: opacity 0.2s;
}

.dash-metric-card:hover .dash-sparkline-bar {
    opacity: 0.8;
}


/* ============================================================
   PAGE HEADER (Sub-pages)
   ============================================================ */
.page-header {
    padding: calc(var(--nav-height) + 4rem) 2rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 400px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.page-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 1rem;
    border-radius: 100px;
    border: 1px solid var(--border-light);
    background: var(--glass-bg);
    font-size: 0.7rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--lavender);
    margin-bottom: 1.25rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.page-header-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.75rem;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    max-width: 650px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #fff 40%, var(--lavender) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header-desc {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}


/* ============================================================
   SECTIONS
   ============================================================ */
.dash-section {
    padding: 5rem 2rem;
    max-width: var(--container-max);
    margin: 0 auto;
}

.dash-section--full {
    max-width: none;
}

.dash-section-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--lavender);
    margin-bottom: 0.75rem;
}

.dash-section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.25rem;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.dash-section-desc {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 500px;
    margin-bottom: 3rem;
    line-height: 1.7;
}

.dash-section-desc--center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

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


/* ============================================================
   WIDGET CARDS — Services
   ============================================================ */
.widget-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.widget-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    position: relative;
}

.widget-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.05), transparent 60%);
    pointer-events: none;
}

.widget-card:hover {
    background: var(--glass-bg-hover);
    border-color: rgba(124, 58, 237, 0.25);
    box-shadow: 0 0 40px var(--glow-purple);
    transform: translateY(-4px);
}

.widget-card-header {
    padding: 1rem 1.25rem 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.widget-card-header-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.widget-card-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    background: rgba(124, 58, 237, 0.15);
    color: var(--lavender);
}

.widget-card-type {
    font-size: 0.65rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.widget-card-status {
    font-size: 0.6rem;
    font-family: 'JetBrains Mono', monospace;
    padding: 0.2rem 0.5rem;
    border-radius: 100px;
    background: rgba(52, 211, 153, 0.1);
    color: var(--green-accent);
    border: 1px solid rgba(52, 211, 153, 0.2);
}

.widget-card-body {
    padding: 0.5rem 1.25rem 1.25rem;
}

.widget-card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.widget-card-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Terminal widget */
.widget-terminal {
    background: var(--bg-black);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    line-height: 1.8;
    color: var(--text-dim);
    min-height: 110px;
    position: relative;
    overflow: hidden;
}

.widget-terminal-line { white-space: nowrap; overflow: hidden; }
.widget-terminal-prompt { color: var(--green-accent); }
.widget-terminal-output { color: var(--lavender); }

.widget-terminal-cursor {
    display: inline-block;
    width: 7px;
    height: 14px;
    background: var(--lavender);
    margin-left: 2px;
    vertical-align: middle;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* App builder widget */
.widget-builder {
    background: var(--bg-black);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 0.75rem;
    min-height: 110px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.widget-builder-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.widget-builder-element {
    border: 1px dashed rgba(124, 58, 237, 0.3);
    border-radius: 6px;
    padding: 0.35rem 0.6rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    color: var(--text-dim);
    background: rgba(124, 58, 237, 0.05);
    cursor: default;
    transition: all 0.2s;
}

.widget-card:hover .widget-builder-element {
    border-color: rgba(124, 58, 237, 0.5);
    background: rgba(124, 58, 237, 0.1);
}

.widget-builder-element.active {
    border-style: solid;
    border-color: var(--purple-500);
    background: rgba(124, 58, 237, 0.15);
    color: var(--lavender);
}

.widget-builder-connector {
    width: 20px;
    height: 1px;
    background: rgba(124, 58, 237, 0.3);
    position: relative;
}

.widget-builder-connector::after {
    content: '';
    position: absolute;
    right: -2px;
    top: -3px;
    width: 0;
    height: 0;
    border-left: 5px solid rgba(124, 58, 237, 0.4);
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
}

/* Progress widget */
.widget-progress {
    background: var(--bg-black);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 0.75rem;
    min-height: 110px;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.widget-progress-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.widget-progress-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    color: var(--text-dim);
    min-width: 70px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.widget-progress-track {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: rgba(255,255,255,0.06);
    overflow: hidden;
}

.widget-progress-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--purple-500), var(--lavender));
    transition: width 0.6s ease;
}

.widget-progress-pct {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    color: var(--text-muted);
    min-width: 28px;
    text-align: right;
}

.widget-badge-row {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}

.widget-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.55rem;
    padding: 0.2rem 0.45rem;
    border-radius: 4px;
    background: rgba(124, 58, 237, 0.12);
    color: var(--lavender);
    border: 1px solid rgba(124, 58, 237, 0.2);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.widget-badge.green {
    background: rgba(52, 211, 153, 0.1);
    color: var(--green-accent);
    border-color: rgba(52, 211, 153, 0.2);
}


/* ============================================================
   GLASS PANELS
   ============================================================ */
.glass-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 1.5rem;
}

.glass-panel {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

.glass-panel:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(124, 58, 237, 0.2);
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.1) 0%, transparent 70%);
    pointer-events: none;
    transition: opacity 0.35s;
    opacity: 0.5;
}

.glass-panel:hover::before {
    opacity: 1;
}

.glass-panel--large {
    grid-row: 1 / 3;
}

.glass-panel-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: var(--purple-500);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.glass-panel-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    background: rgba(124, 58, 237, 0.12);
    color: var(--lavender);
    margin-bottom: 1.25rem;
    border: 1px solid rgba(124, 58, 237, 0.15);
}

.glass-panel-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.glass-panel-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.glass-panel-stats {
    display: flex;
    gap: 2rem;
    margin-top: auto;
}

.glass-panel-stat-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--lavender);
}

.glass-panel-stat-label {
    font-size: 0.7rem;
    color: var(--text-dim);
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0.15rem;
}

.glass-panel-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.glass-panel-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.glass-panel-list-check {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    color: var(--lavender);
    flex-shrink: 0;
}


/* ============================================================
   METRICS TICKER
   ============================================================ */
.metrics-ticker {
    padding: 2rem 0;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    overflow: hidden;
    position: relative;
}

.metrics-ticker-track {
    display: flex;
    animation: tickerScroll 30s linear infinite;
    width: max-content;
}

@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.metrics-ticker-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 2.5rem;
    white-space: nowrap;
    border-right: 1px solid var(--border-subtle);
}

.metrics-ticker-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--green-accent);
}

.metrics-ticker-value.purple {
    color: var(--lavender);
}

.metrics-ticker-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.metrics-ticker:hover .metrics-ticker-track,
.metrics-ticker:focus-within .metrics-ticker-track {
    animation-play-state: paused;
}


/* ============================================================
   CASE STUDY / RESULT CARDS
   ============================================================ */
.result-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    display: grid;
    grid-template-columns: 280px 1fr;
    align-items: stretch;
}

.result-card:hover {
    background: var(--glass-bg-hover);
    border-color: rgba(124, 58, 237, 0.25);
    box-shadow: 0 0 40px var(--glow-purple);
    transform: translateY(-2px);
}

.result-card-image {
    height: 100%;
    min-height: 200px;
    overflow: hidden;
    position: relative;
}

.result-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.result-card:hover .result-card-image img {
    transform: scale(1.05);
}

.result-card-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2) 0%, rgba(79, 70, 229, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--lavender);
    opacity: 0.5;
}

.result-card-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.result-card-tag {
    display: inline-flex;
    font-size: 0.6rem;
    font-family: 'JetBrains Mono', monospace;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background: rgba(124, 58, 237, 0.12);
    color: var(--lavender);
    border: 1px solid rgba(124, 58, 237, 0.2);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    width: fit-content;
}

.result-card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.result-card-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 1rem;
}

.result-card-metrics {
    display: flex;
    gap: 1.5rem;
}

.result-card-metric-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--green-accent);
}

.result-card-metric-label {
    font-size: 0.6rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0.15rem;
}


/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.contact-info-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border-subtle);
}

.contact-info-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(124, 58, 237, 0.12);
    color: var(--lavender);
    flex-shrink: 0;
    font-size: 1rem;
}

.contact-info-item-label {
    font-size: 0.65rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.15rem;
}

.contact-info-item-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.contact-steps-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
}

.contact-step {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.contact-step strong {
    color: var(--text-primary);
}

.contact-form-wrap {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    overflow: hidden;
}

.contact-form-wrap iframe {
    width: 100%;
    border: none;
    display: block;
}


/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-list {
    max-width: var(--container-narrow);
    margin: 3rem auto 0;
}

.faq-item {
    border-bottom: 1px solid var(--border-subtle);
}

.faq-item__question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
}

.faq-item__question svg {
    width: 18px;
    height: 18px;
    color: var(--text-dim);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item.active .faq-item__question svg {
    transform: rotate(45deg);
}

.faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item__answer p {
    padding: 0 0 1.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.faq-item.active .faq-item__answer {
    max-height: 500px;
}


/* ============================================================
   ABOUT PAGE — Values, Methodology
   ============================================================ */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.value-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 2rem;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.value-card:hover {
    background: var(--glass-bg-hover);
    border-color: rgba(124, 58, 237, 0.2);
}

.value-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(124, 58, 237, 0.12);
    color: var(--lavender);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.value-card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.value-card-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.65;
}

.about-story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-story-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-story-visual {
    border-radius: 16px;
    overflow: hidden;
    height: 350px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2) 0%, rgba(79, 70, 229, 0.1) 50%, rgba(67, 56, 202, 0.15) 100%);
    border: 1px solid var(--glass-border);
}

/* Industries grid */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.industry-chip {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.industry-chip:hover {
    background: var(--glass-bg-hover);
    border-color: rgba(124, 58, 237, 0.2);
    color: var(--text-primary);
}

.industry-chip-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
}


/* ============================================================
   SOLUTIONS PAGE — Tabbed Services
   ============================================================ */
.solutions-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.solutions-tab {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.solutions-tab:hover {
    border-color: var(--border-light);
    color: var(--text-primary);
}

.solutions-tab.active {
    background: var(--purple-500);
    border-color: var(--purple-500);
    color: #fff;
}

.solutions-panel {
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.solutions-panel.active {
    opacity: 1;
    height: auto;
    overflow: visible;
    pointer-events: auto;
}

.solutions-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.solutions-detail-content h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.solutions-detail-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.solutions-feature-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    list-style: none;
}

.solutions-feature-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.solutions-feature-list li span.check {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(52, 211, 153, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    color: var(--green-accent);
    flex-shrink: 0;
}

.solutions-detail-visual {
    border-radius: 14px;
    overflow: hidden;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    min-height: 300px;
}


/* ============================================================
   CTA SECTION
   ============================================================ */
.dash-cta-section {
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
}

.dash-cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(124, 58, 237, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.dash-cta-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    position: relative;
}

.dash-cta-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 480px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.dash-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.9rem 2.25rem;
    border-radius: 12px;
    border: none;
    background: var(--purple-500);
    color: #fff;
    cursor: pointer;
    transition: background 0.3s, box-shadow 0.3s, transform 0.3s;
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.3), 0 0 60px rgba(124, 58, 237, 0.15);
    position: relative;
    text-decoration: none;
}

.dash-cta-btn:hover {
    background: var(--purple-600);
    box-shadow: 0 0 40px rgba(124, 58, 237, 0.5), 0 0 80px rgba(124, 58, 237, 0.25);
    transform: translateY(-2px);
}

.dash-cta-btn::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--purple-500), var(--indigo-600));
    z-index: -1;
    opacity: 0.3;
    filter: blur(8px);
    animation: ctaGlow 3s ease-in-out infinite;
}

@keyframes ctaGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.5; }
}


/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal-body {
    padding: 3rem 2rem 5rem;
    max-width: var(--container-narrow);
    margin: 0 auto;
}

.legal-body h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.legal-body h2:first-child {
    margin-top: 0;
}

.legal-body h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-body p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-body ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-body li {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.legal-body a {
    color: var(--lavender);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-body a:hover {
    color: var(--purple-500);
}

.legal-body strong {
    color: var(--text-primary);
}


/* ============================================================
   FOOTER — Minimal inline
   ============================================================ */
.dash-footer {
    padding: 2rem 2rem;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
}

.dash-footer-content {
    font-size: 0.8rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    line-height: 2;
}

.dash-footer-content a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.dash-footer-content a:hover {
    color: var(--text-primary);
}

.dash-footer-sep {
    margin: 0 0.75rem;
    color: var(--text-dim);
    opacity: 0.3;
}


/* ============================================================
   UTILITY — Dividers, backgrounds
   ============================================================ */
.bg-elevated {
    background: var(--bg-elevated);
}

.border-top-subtle {
    border-top: 1px solid var(--border-subtle);
}

.border-bottom-subtle {
    border-bottom: 1px solid var(--border-subtle);
}

.stack-gap { display: flex; flex-direction: column; gap: 1.5rem; }
.mb-3 { margin-bottom: 3rem; }


/* ===== MOBILE NAV CTA ===== */
.dash-nav-links .mobile-nav-cta {
    display: none;
}


/* ===== HERO CTA ACTIONS ===== */
.dash-hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.dash-hero-secondary-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.9rem 2.25rem;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    text-decoration: none;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.dash-hero-secondary-btn:hover {
    border-color: var(--purple-500);
    background: rgba(124, 58, 237, 0.1);
}


/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
/* JS adds .js to <html> — without JS, elements remain visible */
.js .animate-prepare {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .animate-prepare.animate-in {
    opacity: 1;
    transform: translateY(0);
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .dash-preview-body {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .glass-panel--large {
        grid-row: auto;
    }

    .result-card {
        grid-template-columns: 1fr;
    }

    .result-card-image {
        min-height: 180px;
    }

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

    .about-story-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .solutions-detail-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .dash-nav {
        padding: 0 1.25rem;
    }

    .dash-nav-cta {
        display: none;
    }

    .dash-nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(9, 9, 11, 0.96);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 1.5rem 2rem;
        gap: 1.25rem;
        border-bottom: 1px solid var(--border-subtle);
    }

    .dash-nav-links.open {
        display: flex;
    }

    .dash-nav-mobile-toggle {
        display: block;
    }

    .dash-hero {
        padding: 6rem 1.25rem 2.5rem;
        min-height: auto;
    }

    .dash-preview-body {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
        padding: 0.75rem;
    }

    .dash-metric-value {
        font-size: 1.25rem;
    }

    .dash-section {
        padding: 3.5rem 1.25rem;
    }

    .page-header {
        padding: calc(var(--nav-height) + 3rem) 1.25rem 2.5rem;
    }

    .glass-panel {
        padding: 1.75rem;
    }

    .glass-panel-stats {
        gap: 1.5rem;
    }

    .widget-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .values-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .dash-nav-mobile-toggle {
        padding: 0.625rem;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .dash-footer-content a {
        padding: 0.5rem 0;
    }

    .dash-nav-links .mobile-nav-cta {
        display: block;
        text-align: center;
        margin-top: 0.5rem;
    }

    .dash-nav-links .mobile-nav-cta a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        padding: 0.75rem 1.75rem;
        background: var(--purple-600);
        color: #fff;
        border-radius: 10px;
        font-size: 0.85rem;
        font-weight: 600;
        text-decoration: none;
        width: 100%;
        box-sizing: border-box;
    }

    .dash-cta-section {
        padding: 4rem 1.25rem;
    }
}

@media (max-width: 480px) {
    .dash-preview-body {
        grid-template-columns: 1fr;
    }

    .dash-hero-title {
        font-size: 1.75rem;
    }

    .page-header-title {
        font-size: 1.5rem;
    }

    .dash-footer-content {
        flex-direction: column;
        gap: 0.25rem;
    }

    .dash-footer-sep {
        display: none;
    }

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

    .result-card-metrics {
        flex-wrap: wrap;
    }

    .dash-hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .dash-hero-actions .dash-cta-btn,
    .dash-hero-secondary-btn {
        width: 100%;
        justify-content: center;
    }
}


/* ============================================================
   BACKDROP-FILTER FALLBACK
   ============================================================ */
@supports not (backdrop-filter: blur(1px)) {
    .glass-panel,
    .widget-card {
        background: rgba(30, 30, 35, 0.95);
    }

    .dash-nav {
        background: rgba(9, 9, 11, 0.98);
    }
}


/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .js .animate-prepare {
        opacity: 1;
        transform: none;
    }
}


/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
    body {
        background: #fff;
        color: #000;
    }

    .dash-nav,
    .dash-footer,
    .dash-cta-section,
    .metrics-ticker,
    .skip-link {
        display: none !important;
    }

    .legal-body,
    .dash-section,
    main {
        padding: 1rem 0;
    }

    .legal-body p,
    .legal-body li {
        color: #333;
    }

    .legal-body h2,
    .legal-body h3 {
        color: #000;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    .widget-card, .glass-panel, .result-card, .value-card {
        background: #fff;
        border: 1px solid #ddd;
        box-shadow: none;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 0.75rem;
        color: #666;
    }
}
