/* =========================================================
   SnowSig - Ultra Premium Professional Agency Theme
   ========================================================= */

/* Fonts are loaded non-blocking from the document <head>. */

:root {
    /* Brand Colors */
    --c-brand: #43bbe9;
    --c-brand-light: #7cd5f4;
    --c-brand-dark: #209ad1;

    /* Surface Colors (Light Theme) */
    --c-bg: #ffffff;
    --c-bg-subtle: #f8fafc;
    --c-bg-glass: rgba(255, 255, 255, 0.7);
    --c-surface: #ffffff;
    --c-border: #e2e8f0;

    /* Dark Surface Colors */
    --c-dark-bg: #0b1120;
    --c-dark-surface: #1e293b;
    --c-dark-border: rgba(255, 255, 255, 0.1);

    /* Text Colors */
    --c-text: #0f172a;
    --c-text-muted: #556170;
    --c-text-inverse: #ffffff;
    --c-text-inverse-muted: #94a3b8;

    /* Typography */
    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

    /* Fluid Typography */
    --fs-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --fs-sm: clamp(0.875rem, 0.8rem + 0.38vw, 1rem);
    --fs-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
    --fs-md: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
    --fs-lg: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
    --fs-xl: clamp(1.5rem, 1.3rem + 1vw, 2rem);
    --fs-2xl: clamp(2rem, 1.7rem + 1.5vw, 3rem);
    --fs-3xl: clamp(2.5rem, 2rem + 2.5vw, 4.5rem);
    --fs-4xl: clamp(3rem, 2.3rem + 3.5vw, 6rem);

    /* Spacing */
    --space-xs: clamp(0.5rem, 0.4rem + 0.5vw, 0.75rem);
    --space-sm: clamp(1rem, 0.8rem + 1vw, 1.5rem);
    --space-md: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);
    --space-lg: clamp(2.5rem, 2rem + 2.5vw, 4rem);
    --space-xl: clamp(4rem, 3.2rem + 4vw, 7rem);
    --space-2xl: clamp(6rem, 4.8rem + 6vw, 10rem);

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -1px rgba(15, 23, 42, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.05), 0 4px 6px -2px rgba(15, 23, 42, 0.025);
    --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.05), 0 10px 10px -5px rgba(15, 23, 42, 0.02);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
    --shadow-glow: 0 0 24px rgba(67, 187, 233, 0.35);

    /* Radii */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2.5rem;
    --radius-pill: 9999px;

    /* Layout */
    --max-w: 1280px;
    --nav-h: 80px;

    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out-quint: cubic-bezier(0.83, 0, 0.17, 1);
    --transition-fast: 200ms var(--ease-out-expo);
    --transition-base: 400ms var(--ease-out-expo);
    --transition-medium: 300ms var(--ease-out-expo);
    --transition-slow: 700ms var(--ease-in-out-quint);
}

/* Dark Mode Overrides */
[data-theme="dark"] {
    --c-bg: #090e1a;
    /* Deeper midnight color for background */
    --c-bg-subtle: #0f172a;
    --c-bg-glass: rgba(9, 14, 26, 0.7);
    --c-surface: #131c2e;
    /* Slightly lighter than body background for surfaces */
    --c-border: rgba(255, 255, 255, 0.08);

    --c-text: #f8fafc;
    --c-text-muted: #94a3b8;
    --c-text-inverse: #0f172a;
    --c-text-inverse-muted: #64748b;
}

/* Ensure form controls are readable and properly styled in dark mode */
[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
    color: var(--c-text);
    background-color: var(--c-surface);
    border-color: var(--c-border);
}

[data-theme="dark"] input:focus,
[data-theme="dark"] select:focus,
[data-theme="dark"] textarea:focus {
    border-color: var(--c-brand);
}

/* Alternate sections contrast in dark mode */
[data-theme="dark"] .section--navy {
    background-color: #050810;
}

/* Card Glow Hover effects in Dark Mode */
[data-theme="dark"] .card:hover,
[data-theme="dark"] .bento-card:hover {
    border-color: var(--c-brand);
    box-shadow: 0 0 20px rgba(67, 187, 233, 0.15);
}

/* Smooth transitions for theme switching */
body,
header,
section,
.card,
.bento-card,
.nav-link,
button,
a,
input,
textarea,
select {
    transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

/* Swap logos in dark mode */
[data-theme="dark"] .logo-light {
    display: none !important;
}

[data-theme="dark"] .logo-dark {
    display: block !important;
}

/* Swap theme toggle icon */
[data-theme="dark"] .sun-icon {
    display: block !important;
}

[data-theme="dark"] .moon-icon {
    display: none !important;
}

/* Adjust header border in dark mode */
[data-theme="dark"] .site-header {
    border-color: rgba(255, 255, 255, 0.08);
}

/* Theme Toggle Button Styling */
.theme-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--c-text);
    border-radius: var(--radius-pill);
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.theme-toggle-btn:hover {
    background-color: var(--c-bg-subtle);
    color: var(--c-brand);
}


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

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

body {
    font-family: var(--font-sans);
    color: var(--c-text);
    background-color: var(--c-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--c-text);
    margin-bottom: 1rem;
}

h1 {
    font-size: var(--fs-4xl);
    font-weight: 800;
    letter-spacing: -0.04em;
}

h2 {
    font-size: var(--fs-3xl);
    letter-spacing: -0.03em;
}

h3 {
    font-size: var(--fs-2xl);
}

h4 {
    font-size: var(--fs-xl);
}

p {
    font-size: var(--fs-base);
    margin-bottom: 1.5em;
    color: var(--c-text-muted);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

img,
svg {
    max-width: 100%;
    display: block;
}

ul,
ol {
    list-style: none;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

.section {
    padding: var(--space-2xl) 0;
}

.section-sm {
    padding: var(--space-xl) 0;
}

.pt-0 {
    padding-top: 0;
}

.pb-0 {
    padding-bottom: 0;
}

.grid {
    display: grid;
    gap: var(--space-md);
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

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

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.gap-sm {
    gap: var(--space-sm);
}

.gap-md {
    gap: var(--space-md);
}

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

.text-brand {
    color: var(--c-brand);
}

.text-gradient {
    background: linear-gradient(135deg, var(--c-brand) 0%, var(--c-brand-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Backgrounds */
.bg-subtle {
    background-color: var(--c-bg-subtle);
}

.bg-dark {
    background-color: var(--c-dark-bg);
    color: var(--c-text-inverse-muted);
}

.bg-dark h1,
.bg-dark h2,
.bg-dark h3,
.bg-dark h4 {
    color: var(--c-text-inverse);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2.25rem;
    font-size: var(--fs-base);
    font-weight: 600;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition-base);
    text-align: center;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--c-brand);
    color: var(--c-bg) !important;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    background-color: var(--c-brand-dark);
    transform: translateY(-2px);
    box-shadow: 0 0 32px rgba(67, 187, 233, 0.5);
}

.btn-secondary {
    background-color: var(--c-dark-surface);
    color: var(--c-text-inverse) !important;
}

.btn-secondary:hover {
    background-color: var(--c-text);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--c-border);
    color: var(--c-text);
}

.btn-outline:hover {
    border-color: var(--c-brand);
    color: var(--c-brand);
}

.bg-dark .btn-outline {
    border-color: var(--c-dark-border);
    color: var(--c-text-inverse);
}

.bg-dark .btn-outline:hover {
    background-color: var(--c-text-inverse);
    color: var(--c-dark-bg) !important;
}

/* UI Elements */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 1rem;
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: var(--radius-pill);
    background-color: rgba(67, 187, 233, 0.1);
    color: var(--c-brand);
    margin-bottom: var(--space-sm);
    border: 1px solid rgba(67, 187, 233, 0.2);
}

/* Header & Nav */
.header-wrapper {
    position: fixed;
    top: var(--space-sm);
    left: 0;
    right: 0;
    z-index: 100;
    pointer-events: none;
}

.site-header {
    background: var(--c-bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-pill);
    padding: 0.5rem 0.5rem 0.5rem 1.5rem;
    box-shadow: var(--shadow-glass);
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: auto;
    transition: var(--transition-base);
}

.brand {
    height: 36px;
    display: flex;
    align-items: center;
}

.brand img {
    height: 100%;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.nav-link {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--c-text-muted);
    padding: 0.5rem;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--c-text);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--c-brand);
    transition: var(--transition-base);
    border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--c-text);
    margin: 5px 0;
    transition: var(--transition-base);
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: calc(var(--nav-h) + var(--space-xs));
    overflow: hidden;
}

/* Abstract Grid & Orb Background */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: linear-gradient(var(--c-border) 1px, transparent 1px),
        linear-gradient(90deg, var(--c-border) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center center;
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    opacity: 0.5;
}

.hero-orb {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(600px, 100vw);
    height: min(600px, 100vw);
    background: radial-gradient(circle, rgba(67, 187, 233, 0.15) 0%, rgba(67, 187, 233, 0) 70%);
    z-index: -1;
    border-radius: 50%;
    filter: blur(40px);
    animation: pulse 8s infinite alternate ease-in-out;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
}

/* Redesigned Hero Section Grid */
.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: var(--space-xl);
    align-items: center;
    min-height: calc(100vh - var(--nav-h) - var(--space-sm));
    padding: var(--space-md) 0 var(--space-md);
    width: 100%;
}

.hero-content {
    text-align: left;
    max-width: 650px;
    z-index: 5;
}

.hero-title {
    font-size: clamp(2.75rem, 2.2rem + 3vw, 5rem);
    margin-bottom: var(--space-sm);
}

.hero-subtitle {
    margin-bottom: var(--space-md);
    font-size: var(--fs-base);
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

/* Collapse to single column on tablet/mobile */
@media (max-width: 991px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        text-align: center;
        padding-top: calc(var(--nav-h) + var(--space-xl));
    }

    .hero-content {
        text-align: center;
        margin: 0 auto;
    }

    .hero-actions {
        justify-content: center;
    }
}

/* Hero Visual & Perspective Layout */
.hero-visual {
    perspective: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
}

.dashboard-window {
    width: 100%;
    max-width: 440px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.08),
        0 0 32px rgba(67, 187, 233, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
    transform: rotateY(-12deg) rotateX(10deg) rotateZ(-1.5deg);
    transition: transform 600ms var(--ease-out-expo), border-color var(--transition-fast), box-shadow var(--transition-fast);
    z-index: 10;
}

[data-theme="dark"] .dashboard-window {
    background: rgba(9, 14, 26, 0.45);
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.35),
        0 0 40px rgba(67, 187, 233, 0.08);
}

.hero-visual:hover .dashboard-window {
    transform: rotateY(0deg) rotateX(0deg) rotateZ(0deg) translateY(-8px);
    border-color: rgba(67, 187, 233, 0.3);
    box-shadow: 0 40px 80px rgba(15, 23, 42, 0.15),
        0 0 40px rgba(67, 187, 233, 0.15);
}

/* Window Chrome Controls */
.window-header {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    position: relative;
}

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

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

.dot--red {
    background-color: #ff5f56;
}

.dot--yellow {
    background-color: #ffbd2e;
}

.dot--green {
    background-color: #27c93f;
}

.window-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    font-family: monospace;
    color: var(--c-text-muted);
    letter-spacing: 0.05em;
    font-weight: 500;
}

.window-body {
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Metrics Cards inside Dashboard */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.metric-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    padding: 0.75rem 0.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.metric-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--c-text-muted);
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.metric-val-wrapper {
    display: flex;
    align-items: baseline;
    justify-content: center;
}

.metric-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--c-text);
}

.metric-suffix {
    font-size: 10px;
    color: var(--c-text-muted);
    margin-left: 2px;
}

.metric-progress {
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.metric-progress-bar {
    height: 100%;
    background: var(--c-brand);
    border-radius: 2px;
}

.metric-status {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    margin: 0.5rem auto 0;
}

.status--good {
    background: rgba(39, 201, 63, 0.1);
    color: #27c93f;
}

/* Dashboard Chart Mockup */
.chart-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--c-text-muted);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.chart-legend {
    display: flex;
    align-items: center;
    gap: 4px;
}

.legend-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--c-brand);
    display: inline-block;
}

.chart-visual {
    height: 60px;
    display: flex;
    align-items: flex-end;
}

.chart-bar-group {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 5px;
}

.chart-bar {
    flex-grow: 1;
    height: var(--height);
    background: linear-gradient(to top, rgba(67, 187, 233, 0.1), var(--c-brand));
    border-radius: 2px 2px 0 0;
    transition: height 0.5s ease;
}

/* Console Code Snippet Block */
.console-box {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    font-family: monospace;
    font-size: 10px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.console-line {
    color: var(--c-text-muted);
    line-height: 1.4;
}

.console-prompt {
    color: var(--c-brand);
}

.console-success {
    color: #27c93f;
}

.console-success-tag {
    background: rgba(39, 201, 63, 0.15);
    padding: 1px 4px;
    border-radius: 2px;
    font-weight: bold;
}

.console-gradient {
    background: linear-gradient(90deg, var(--c-brand) 0%, var(--c-brand-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Bento Grid Services */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(280px, auto);
    gap: var(--space-sm);
}

.bento-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-xl);
    padding: var(--space-md);
    position: relative;
    overflow: hidden;
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
}

.bento-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(67, 187, 233, 0.3);
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(67, 187, 233, 0.05) 0%, transparent 60%);
    opacity: 0;
    transition: var(--transition-base);
}

.bento-card:hover::before {
    opacity: 1;
}

/* Grid specific sizing */
.bento-1 {
    grid-column: span 8;
}

.bento-2 {
    grid-column: span 4;
}

.bento-3 {
    grid-column: span 4;
}

.bento-4 {
    grid-column: span 4;
}

.bento-5 {
    grid-column: span 4;
}

.bento-icon {
    width: 64px;
    height: 64px;
    background: var(--c-bg-subtle);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-sm);
    color: var(--c-brand);
    border: 1px solid var(--c-border);
}

.bento-card h3 {
    margin-bottom: 0.5rem;
}

.bento-card p {
    margin-bottom: 0;
    flex-grow: 1;
}

.bento-link {
    margin-top: var(--space-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--c-brand);
    font-size: var(--fs-sm);
}

.bento-link svg {
    transition: var(--transition-fast);
}

.bento-card:hover .bento-link svg {
    transform: translateX(4px);
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--c-surface);
    border-radius: var(--radius-xl);
    border: 1px solid var(--c-border);
    box-shadow: var(--shadow-md);
}

.stat-item {
    text-align: center;
    padding: 0 var(--space-sm);
}

.stat-item:not(:last-child) {
    border-right: 1px solid var(--c-border);
}

.stat-number {
    display: block;
    font-size: var(--fs-3xl);
    font-weight: 800;
    color: var(--c-text);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--c-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Image Reveal Section */
.reveal-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.reveal-img {
    width: 100%;
    height: 600px;
    object-fit: cover;
}

.reveal-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--c-dark-bg) 0%, transparent 100%);
}

.reveal-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-xl);
    color: var(--c-text-inverse);
}

/* Marquee Testimonials */
.marquee-container {
    overflow: hidden;
    padding: var(--space-md) 0;
    mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
    display: flex;
    gap: var(--space-md);
    width: max-content;
    animation: scroll 40s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - (var(--space-md) / 2)));
    }
}

.testimonial-card {
    width: min(400px, 85vw);
    flex-shrink: 0;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
}

.rating {
    color: #f59e0b;
    margin-bottom: 1rem;
    display: flex;
    gap: 2px;
}

.rating svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.client-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: var(--space-md);
}

.client-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--c-bg-subtle);
    object-fit: cover;
}

.client-info h4 {
    font-size: var(--fs-base);
    margin-bottom: 0;
}

.client-info span {
    font-size: var(--fs-xs);
    color: var(--c-text-muted);
}

/* Footer */
.site-footer {
    padding-top: var(--space-2xl);
    border-top: 1px solid var(--c-border);
}

.footer-cta-card {
    background: linear-gradient(135deg, rgba(67, 187, 233, 0.08) 0%, rgba(32, 154, 209, 0.03) 100%);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl) var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
    text-align: left;
    flex-wrap: wrap;
}

.footer-cta-content {
    max-width: 600px;
}

.footer-cta-card h2 {
    font-size: var(--fs-2xl);
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--c-text);
}

.footer-cta-card p {
    margin-bottom: 0;
    color: var(--c-text-muted);
    font-size: var(--fs-base);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-lg);
    padding-bottom: var(--space-xl);
}

.footer-brand {
    margin-bottom: var(--space-sm);
    height: 40px;
    display: block;
}

.footer-brand img {
    height: 100%;
    width: auto;
}

.footer-heading {
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--c-text);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-sm);
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--c-text-muted);
    font-size: var(--fs-sm);
}

.footer-links a:hover {
    color: var(--c-brand);
    padding-left: 4px;
}

.footer-address-link {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
    color: var(--c-text-muted) !important;
    font-size: var(--fs-sm);
    transition: var(--transition-fast);
}

.footer-address-link:hover {
    color: var(--c-brand) !important;
    padding-left: 4px;
}

.footer-address-link svg {
    margin-top: 3px;
    flex-shrink: 0;
}

.footer-bottom {
    padding: var(--space-md) 0;
    border-top: 1px solid var(--c-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--c-text-muted);
    font-size: var(--fs-xs);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--c-bg-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--c-border);
    color: var(--c-text-muted);
    transition: var(--transition-fast);
}

.social-links a:hover {
    background: var(--c-brand);
    border-color: var(--c-brand);
    color: white;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .bento-1 {
        grid-column: span 12;
    }

    .bento-2,
    .bento-3 {
        grid-column: span 6;
    }

    .bento-4,
    .bento-5 {
        grid-column: span 6;
    }

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

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

    .stat-item:nth-child(2) {
        border-right: none;
    }

    .stat-item:nth-child(3) {
        border-top: 1px solid var(--c-border);
        padding-top: var(--space-md);
    }

    .stat-item:nth-child(4) {
        border-top: 1px solid var(--c-border);
        padding-top: var(--space-md);
    }
}

@media (max-width: 768px) {
    .header-wrapper {
        top: 0;
        padding: var(--space-sm);
    }

    .site-header {
        border-radius: var(--radius-md);
        padding: 0.75rem 1rem;
    }

    .nav-links {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .header-cta {
        display: none;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .bento-1,
    .bento-2,
    .bento-3,
    .bento-4,
    .bento-5 {
        grid-column: span 1;
    }

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

    .stat-item:not(:last-child) {
        border-right: none;
        border-bottom: 1px solid var(--c-border);
        padding-bottom: var(--space-md);
    }

    .footer-cta-card {
        flex-direction: column;
        text-align: center;
        padding: var(--space-lg) var(--space-md);
    }

    .footer-cta-card .btn {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }

    .hero-actions {
        flex-wrap: wrap;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-visual {
        perspective: none;
    }

    .dashboard-window {
        transform: none;
        max-width: 100%;
    }

    .hero-visual:hover .dashboard-window {
        transform: none;
    }

    .reveal-content {
        padding: var(--space-md);
    }

    .reveal-img {
        height: 400px;
    }

    .page-hero {
        padding-top: calc(var(--nav-h) + var(--space-lg));
    }

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

    .btn--lg {
        padding: 1rem 2rem;
        font-size: var(--fs-base);
    }

    .comparison-table {
        font-size: var(--fs-xs);
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .comparison-table th,
    .comparison-table td {
        padding: var(--space-xs);
        white-space: nowrap;
    }

    .map-wrap iframe {
        height: 300px;
    }

    .contact-form {
        padding: var(--space-md);
    }

    .success-card {
        padding: var(--space-lg) var(--space-md);
    }

    h1 {
        word-break: break-word;
        overflow-wrap: break-word;
    }

    h2 {
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .hero {
        align-items: flex-start;
        padding-top: calc(var(--nav-h) + 5rem);
        min-height: auto;
    }
}

/* =========================================================
   Subpages & Legacy Support Styles
   ========================================================= */

/* Section Navy */
.section--navy {
    background-color: var(--c-dark-bg);
    color: #94a3b8;
}

.section--navy h1,
.section--navy h2,
.section--navy h3,
.section--navy h4 {
    color: #ffffff;
}

/* Page Hero */
.page-hero {
    padding: calc(var(--nav-h) + var(--space-md)) 0 var(--space-md);
    background: radial-gradient(circle at 80% 20%, rgba(67, 187, 233, 0.08) 0%, transparent 50%), var(--c-bg-subtle);
    border-bottom: 1px solid var(--c-border);
    text-align: center;
}

.page-hero h1 {
    margin: 0.5rem 0 1rem;
    font-size: var(--fs-3xl);
}

.page-hero p {
    max-width: 600px;
    margin: 0 auto;
    font-size: var(--fs-base);
}

/* Breadcrumb */
.breadcrumb {
    font-size: var(--fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--c-text-muted);
    margin-bottom: 0.5rem;
}

.breadcrumb a {
    color: var(--c-brand);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Section Soft */
.section--soft {
    background-color: var(--c-bg-subtle);
}

/* Eyebrow */
.eyebrow {
    display: inline-block;
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--c-brand);
    margin-bottom: 0.75rem;
}

/* Grid Override support for subpages */
.grid--3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: var(--space-md);
}

.grid--4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: var(--space-md);
}

/* Cards used in subpages */
.card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    transition: var(--transition-base);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(67, 187, 233, 0.2);
}

.card__icon {
    width: 52px;
    height: 52px;
    background: rgba(67, 187, 233, 0.1);
    color: var(--c-brand);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-sm);
}

.card__icon svg {
    width: 24px;
    height: 24px;
}

.card h3 {
    font-size: var(--fs-lg);
    margin-bottom: 0.75rem;
}

/* Check list */
.check-list {
    margin: 1.5rem 0;
}

.check-list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--c-text-muted);
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--c-brand);
    font-weight: bold;
}

/* Split Section & Mockup */
.split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
    gap: var(--space-lg);
    align-items: center;
}

.mockup {
    background: var(--c-dark-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--c-dark-border);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.mockup__top {
    background: #1e293b;
    padding: 0.5rem 1rem;
    display: flex;
    gap: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mockup__top i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.mockup__body {
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mockup__body div {
    height: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.mockup__body div:nth-child(1) {
    width: 40%;
    height: 20px;
    background: var(--c-brand);
}

.mockup__body div:nth-child(2) {
    width: 80%;
}

.mockup__body div:nth-child(3) {
    width: 90%;
}

.mockup__body div:nth-child(4) {
    width: 60%;
}

.mockup__body div:nth-child(5) {
    width: 70%;
}

/* Section Head */
.section-head {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-xl);
}

/* Price Cards */
.price-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    text-align: center;
    transition: var(--transition-base);
    position: relative;
    display: flex;
    flex-direction: column;
}

.price-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.price-card.featured {
    border-color: var(--c-brand);
    box-shadow: var(--shadow-glow);
}

.price-card.featured::before {
    content: "Popular";
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: var(--fs-xs);
    font-weight: 700;
    color: var(--c-brand);
    background: rgba(67, 187, 233, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-pill);
}

.price-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.35rem;
    line-height: 1.2;
}

.price-card .price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--c-text);
    margin: 0.75rem 0;
}

.price-card .price span {
    font-size: var(--fs-xs);
    font-weight: 500;
    color: var(--c-text-muted);
    white-space: nowrap;
}

.price-card ul {
    margin: 1.5rem 0;
    text-align: left;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.price-card ul li {
    color: var(--c-text-muted);
    font-size: var(--fs-sm);
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}

.price-card ul li svg {
    color: var(--c-brand);
    flex-shrink: 0;
    margin-top: 2px;
}

/* FAQ */
.faq {
    max-width: 800px;
    margin: 0 auto;
}

.faq details {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq summary {
    padding: 1.25rem;
    font-weight: 600;
    font-size: var(--fs-base);
    cursor: pointer;
    background: var(--c-surface);
    color: var(--c-text);
    list-style: none;
    position: relative;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "+";
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--c-brand);
}

.faq details[open] summary::after {
    content: "-";
}

.faq details p {
    padding: 0 1.25rem 1.25rem;
    margin-bottom: 0;
    font-size: var(--fs-sm);
    color: var(--c-text-muted);
}

/* Team Quote Avatar */
.quote__avatar {
    background: var(--c-brand);
    color: var(--c-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Stats Counter subpage styles */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.stat {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    padding: var(--space-lg) var(--space-md);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition-base);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(67, 187, 233, 0.08) 0%, transparent 60%);
    opacity: 0;
    transition: var(--transition-base);
    z-index: 1;
}

.stat:hover {
    transform: translateY(-6px);
    border-color: rgba(67, 187, 233, 0.35);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3), 0 0 24px rgba(67, 187, 233, 0.15);
}

.stat:hover::before {
    opacity: 1;
}

.stat__icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-pill);
    background: rgba(67, 187, 233, 0.08);
    color: var(--c-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-sm);
    transition: var(--transition-fast);
    z-index: 2;
    border: 1px solid rgba(67, 187, 233, 0.12);
}

.stat:hover .stat__icon {
    background: var(--c-brand);
    color: var(--c-bg);
    transform: scale(1.05) rotate(4deg);
    box-shadow: var(--shadow-glow);
}

.stat__icon svg {
    width: 24px;
    height: 24px;
}

.stat strong {
    display: block;
    font-size: var(--fs-2xl);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    z-index: 2;
}

.stat span {
    font-size: var(--fs-sm);
    color: #94a3b8;
    font-weight: 500;
    z-index: 2;
    transition: var(--transition-fast);
}

.stat:hover span {
    color: #ffffff;
}

/* Work / Portfolio item styling */
.work {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition-base);
}

.work:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.work__thumb {
    height: 220px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: var(--c-text-inverse);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-md);
    font-size: clamp(1.125rem, 1rem + 0.5vw, 1.35rem);
    font-weight: 800;
    line-height: 1.3;
}

.work__thumb.alt2 {
    background: linear-gradient(135deg, #0b2239 0%, #163656 100%);
}

.work__thumb.alt3 {
    background: linear-gradient(135deg, #1f2d3d 0%, #111b24 100%);
}

.work__thumb.alt4 {
    background: linear-gradient(135deg, #16242f 0%, #0a1118 100%);
}

.work__body {
    padding: var(--space-md);
}

.work__body span {
    font-size: var(--fs-xs);
    color: var(--c-brand);
    font-weight: 700;
    text-transform: uppercase;
}

.work__body h3 {
    margin: 0.25rem 0 0.5rem;
    font-size: var(--fs-lg);
}

/* Contact Grid & Form */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-lg);
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.info-item .ic {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(67, 187, 233, 0.1);
    color: var(--c-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-item .ic svg {
    width: 20px;
    height: 20px;
}

.info-item strong {
    display: block;
    font-size: var(--fs-sm);
    color: var(--c-text);
}

.info-item a,
.info-item span {
    font-size: var(--fs-base);
    color: var(--c-text-muted);
}

.info-item a:hover {
    color: var(--c-brand);
}

.contact-form {
    background: var(--c-bg-subtle);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
    margin-bottom: 1.25rem;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.field {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.25rem;
}

.field label {
    font-size: var(--fs-sm);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.field input,
.field select,
.field textarea {
    padding: 0.875rem 1.25rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--c-border);
    font-family: var(--font-sans);
    font-size: var(--fs-sm);
    background: var(--c-surface);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--c-brand);
    outline: none;
}

.field textarea {
    height: 150px;
    resize: vertical;
}

.field-error {
    color: #ef4444;
    font-size: var(--fs-xs);
    margin-top: 0.25rem;
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-size: var(--fs-sm);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert--ok {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.alert--err {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.map-wrap {
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--c-border);
    box-shadow: var(--shadow-md);
}

.map-wrap iframe {
    width: 100%;
    height: 450px;
    border: none;
}

/* Legacy button classes mapping */
.btn--primary {
    background-color: var(--c-brand);
    color: var(--c-bg) !important;
    box-shadow: var(--shadow-glow);
}

.btn--primary:hover {
    background-color: var(--c-brand-dark);
    transform: translateY(-2px);
    box-shadow: 0 0 32px rgba(67, 187, 233, 0.5);
}

.btn--ghost,
.btn--outline {
    background-color: transparent;
    border: 1px solid var(--c-border);
    color: var(--c-text);
}

.btn--ghost:hover,
.btn--outline:hover {
    border-color: var(--c-brand);
    color: var(--c-brand);
}

.btn--light {
    background-color: var(--c-bg);
    color: var(--c-text) !important;
}

.btn--light:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn--lg {
    padding: 1.25rem 3rem;
    font-size: var(--fs-lg);
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal.in {
    opacity: 1;
    transform: translateY(0);
}

/* Process Steps */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: var(--space-md);
}

.process-step {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    position: relative;
    transition: var(--transition-base);
}

.process-step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.step-number {
    font-size: var(--fs-2xl);
    font-weight: 800;
    color: rgba(67, 187, 233, 0.2);
    line-height: 1;
    margin-bottom: 0.5rem;
    transition: var(--transition-fast);
}

.process-step:hover .step-number {
    color: var(--c-brand);
}

.process-step h3 {
    font-size: var(--fs-lg);
    margin-bottom: 0.5rem;
}

.process-step p {
    font-size: var(--fs-sm);
    margin-bottom: 0;
}

/* Tech Stack Grid */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: var(--space-sm);
}

.tech-card {
    background: var(--c-bg-subtle);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    text-align: center;
    transition: var(--transition-base);
}

.tech-card:hover {
    background: var(--c-surface);
    border-color: var(--c-brand);
    box-shadow: var(--shadow-md);
}

.tech-card strong {
    display: block;
    font-size: var(--fs-base);
    color: var(--c-text);
    margin-bottom: 0.25rem;
}

.tech-card span {
    font-size: var(--fs-xs);
    color: var(--c-text-muted);
}

.tech-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--c-brand);
    margin-bottom: 0.75rem;
    transition: var(--transition-fast);
}

.tech-card:hover .tech-card__icon {
    transform: scale(1.1);
    color: var(--c-brand-dark);
}

/* Fix alignment issue where badge default bottom margin breaks flex centering inside cards */
.card .badge {
    margin-bottom: 0;
}

/* Process Timeline Section */
.process-steps {
    gap: var(--space-md);
}

.process-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    position: relative;
    transition: var(--transition-medium);
}

.process-card:hover {
    transform: translateY(-5px);
    border-color: var(--c-brand);
    box-shadow: var(--shadow-md);
}

.process-number {
    font-size: var(--fs-4xl);
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--c-brand) 0%, rgba(67, 187, 233, 0.4) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: var(--space-sm);
}

.process-card h3 {
    font-size: var(--fs-md);
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--c-text);
}

.process-card p {
    font-size: var(--fs-xs);
    color: var(--c-text-muted);
    margin-bottom: 0;
    line-height: 1.5;
}

/* Pricing Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: var(--space-md);
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    font-size: var(--fs-sm);
    text-align: left;
}

.comparison-table th,
.comparison-table td {
    padding: var(--space-sm) var(--space-md);
    border-bottom: 1px solid var(--c-border);
}

.comparison-table th {
    background: var(--c-bg-subtle);
    font-weight: 700;
    color: var(--c-text);
}

.comparison-table td {
    color: var(--c-text-muted);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:hover td {
    background: rgba(67, 187, 233, 0.03);
}

.comparison-table svg {
    vertical-align: middle;
}

.comparison-table svg.x-icon {
    opacity: 0.4;
}

@media (max-width: 1024px) {
    .grid-5 {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* =========================================================
   Header Overlap Styles
   ========================================================= */

/* Header Theme Override: Force Dark Mode styling on the header */
.site-header.header-override-dark {
    background: rgba(9, 14, 26, 0.8) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3) !important;
}

.site-header.header-override-dark .logo-light {
    display: none !important;
}

.site-header.header-override-dark .logo-dark {
    display: block !important;
}

.site-header.header-override-dark .nav-link {
    color: #94a3b8 !important;
}

.site-header.header-override-dark .nav-link:hover,
.site-header.header-override-dark .nav-link.active {
    color: #ffffff !important;
}

.site-header.header-override-dark .theme-toggle-btn {
    color: #ffffff !important;
}

.site-header.header-override-dark .theme-toggle-btn:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: var(--c-brand) !important;
}

.site-header.header-override-dark .mobile-toggle span {
    background-color: #ffffff !important;
}


/* Header Theme Override: Force Light Mode styling on the header */
.site-header.header-override-light {
    background: rgba(255, 255, 255, 0.8) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05) !important;
}

.site-header.header-override-light .logo-light {
    display: block !important;
}

.site-header.header-override-light .logo-dark {
    display: none !important;
}

.site-header.header-override-light .nav-link {
    color: var(--c-text-muted) !important;
}

.site-header.header-override-light .nav-link:hover,
.site-header.header-override-light .nav-link.active {
    color: var(--c-text) !important;
}

.site-header.header-override-light .theme-toggle-btn {
    color: var(--c-text) !important;
}

.site-header.header-override-light .theme-toggle-btn:hover {
    background-color: var(--c-bg-subtle) !important;
    color: var(--c-brand) !important;
}

.site-header.header-override-light .mobile-toggle span {
    background-color: var(--c-text) !important;
}

/* =========================================================
   Pro Upgrade — a11y, nav, PWA helpers
   ========================================================= */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 200;
    background: var(--c-brand);
    color: #fff;
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
    outline: 3px solid var(--c-brand);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Base 5-column grid (used on the services process section) */
.grid-5 { grid-template-columns: repeat(5, 1fr); }

/* Back-to-top button */
.to-top {
    position: fixed;
    bottom: 5.5rem;
    right: 1.75rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--c-brand);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    border: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: var(--transition-base);
    z-index: 90;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--c-brand-dark); }

/* Floating Contact Button */
.floating-contact {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366; /* Official WhatsApp green color */
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    z-index: 90;
    transition: var(--transition-base);
    animation: contact-pulse 2s infinite;
}

.floating-contact:hover {
    background: #128c7e; /* Darker WhatsApp green */
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.55);
    animation: none;
}

@keyframes contact-pulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 24px rgba(37, 211, 102, 0.7); }
}

/* Testimonial initials avatar (replaces external avatar service) */
.client-avatar--initials {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(67, 187, 233, 0.12);
    color: var(--c-brand);
    font-weight: 700;
    font-size: var(--fs-sm);
}

/* Mobile navigation (class-driven, matches main.js) */
@media (max-width: 768px) {
    .nav-links.open {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
        position: absolute;
        top: calc(100% + 0.5rem);
        left: 0;
        right: 0;
        background: var(--c-surface);
        padding: 1rem;
        border: 1px solid var(--c-border);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-lg);
        z-index: 200;
    }
    .nav-links.open .nav-link { width: 100%; padding: 0.65rem 0.5rem; }
    .mobile-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .mobile-toggle.open span:nth-child(2) { opacity: 0; }
    .mobile-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1 !important; transform: none !important; }
    .marquee-track { animation: none !important; }
}

/* =========================================================
   Success Card & Alert Fixes
   ========================================================= */
.success-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl) var(--space-lg);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    box-shadow: var(--shadow-lg);
}

.success-card .success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(22, 163, 74, 0.1);
    color: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-sm);
}

.success-card .success-icon svg {
    width: 32px;
    height: 32px;
}

.success-card h2 {
    font-size: var(--fs-xl);
    font-weight: 800;
    color: var(--c-text);
    margin: 0;
}

.success-card p {
    font-size: var(--fs-base);
    color: var(--c-text-muted);
    max-width: 400px;
    margin: 0 0 var(--space-sm) 0;
    line-height: 1.6;
}

.alert svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* =========================================================
   Extra-small Mobile (≤ 480px)
   ========================================================= */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .section {
        padding: var(--space-xl) 0;
    }

    .hero {
        min-height: auto;
    }

    .hero-title {
        font-size: clamp(2rem, 1.6rem + 2.5vw, 3rem);
    }

    .testimonial-card {
        width: 80vw;
    }

    .stats-grid {
        padding: var(--space-md);
    }

    .price-card {
        padding: var(--space-md);
    }

    .btn {
        padding: 0.875rem 1.5rem;
        font-size: var(--fs-sm);
    }

    .footer-cta-card {
        padding: var(--space-md);
    }

    .reveal-img {
        height: 280px;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .window-body {
        padding: var(--space-sm);
    }
}
