/* =============================================================
   VYGMA V2 — Design System & Styles
   Premium dark B2B theme — Inter font — Glassmorphism
   ============================================================= */

/* ----- CSS Custom Properties ----- */
:root {
    /* Colors - Light Mode (Default) */
    --c-primary: #D4AF37;
    /* Gold */
    --c-primary-dark: #B4942A;
    --c-primary-light: #FDE68A;
    /* Light Gold */
    --c-secondary: #64748B;
    /* Slate 500 */
    --c-accent: #F59E0B;
    --c-accent-dark: #D97706;

    --c-bg: #ffffff;
    --c-bg-alt: #F8FAFC;
    /* Slate 50 */
    --c-surface: #E2E8F0;
    /* Slate 200 */
    --c-surface-light: #F1F5F9;
    /* Slate 100 */
    --c-border: #E2E8F0;

    --c-text: #0F172A;
    /* Slate 900 */
    --c-text-secondary: #475569;
    /* Slate 600 */
    --c-text-muted: #94A3B8;
    /* Slate 400 */

    --c-success: #10B981;
    --c-error: #EF4444;
    --c-warning: #F59E0B;

    /* Gradients (Light) */
    --g-hero: linear-gradient(135deg, #FDE68A 0%, #D4AF37 50%, #B4942A 100%);
    --g-card: linear-gradient(145deg, #ffffff 0%, #F8FAFC 100%);
    --g-accent: linear-gradient(135deg, #D4AF37 0%, #F59E0B 100%);

    /* Shadows (Light) */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(212, 175, 55, 0.2);
    --shadow-glow-accent: 0 0 20px rgba(245, 158, 11, 0.2);

    /* Typography */
    --ff-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --fs-xs: clamp(0.75rem, 1.5vw, 0.8125rem);
    --fs-sm: clamp(0.8125rem, 1.5vw, 0.875rem);
    --fs-base: clamp(0.9375rem, 2vw, 1rem);
    --fs-md: clamp(1rem, 2vw, 1.125rem);
    --fs-lg: clamp(1.125rem, 2.5vw, 1.25rem);
    --fs-xl: clamp(1.25rem, 3vw, 1.5rem);
    --fs-2xl: clamp(1.5rem, 3.5vw, 2rem);
    --fs-3xl: clamp(1.75rem, 4vw, 2.5rem);
    --fs-4xl: clamp(2rem, 5vw, 3rem);
    --fs-hero: clamp(2.25rem, 6vw, 3.75rem);

    /* Spacing */
    --sp-xs: 0.25rem;
    --sp-sm: 0.5rem;
    --sp-md: 1rem;
    --sp-lg: 1.5rem;
    --sp-xl: 2rem;
    --sp-2xl: 3rem;
    --sp-3xl: 4rem;
    --sp-4xl: 6rem;
    --sp-section: clamp(4rem, 8vw, 7rem);

    /* Borders */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 50%;

    /* Transitions */
    --tr-fast: 0.15s ease;
    --tr-base: 0.3s ease;
    --tr-slow: 0.5s ease;

    /* Header & UI Translucent Colors (Light) */
    --c-header-bg: rgba(255, 255, 255, 0.85);
    --c-header-bg-scrolled: rgba(255, 255, 255, 0.95);
    --c-header-border: rgba(226, 232, 240, 0.8);
    --c-dropdown-bg: rgba(255, 255, 255, 0.98);
    --c-border-subtle: rgba(226, 232, 240, 1);

    --opacity-method-line: 0.8;
    --opacity-hero-bg: 0.15;

    --opacity-method-line: 0.8;
    --opacity-hero-bg: 0.15;

    --c-link: #B4942A;
    --c-link-hover: #D4AF37;

    /* Layout */
    --max-w: 1200px;
    --max-w-narrow: 800px;
    --header-h: 72px;
}

/* Dark Mode Overrides */
@media (prefers-color-scheme: dark) {
    :root {
        --c-bg: #0F172A;
        --c-bg-alt: #1E293B;
        --c-surface: #334155;
        --c-surface-light: #475569;
        --c-border: #334155;

        --c-text: #F8FAFC;
        --c-text-secondary: #94A3B8;
        --c-text-muted: #64748B;
        --c-secondary: #94A3B8;

        /* Gradients (Dark) */
        --g-hero: linear-gradient(135deg, #FDE68A 0%, #D4AF37 50%, #B4942A 100%);
        --g-card: linear-gradient(145deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);

        /* Shadows (Dark) */
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
        --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
        --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.4);
        --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.5);
        --shadow-glow: 0 0 30px rgba(212, 175, 55, 0.3);
        --shadow-glow-accent: 0 0 30px rgba(245, 158, 11, 0.3);

        /* Translucent Overrides (Dark) */
        --c-header-bg: rgba(15, 23, 42, 0.85);
        --c-header-bg-scrolled: rgba(15, 23, 42, 0.95);
        --c-header-border: rgba(71, 85, 105, 0.3);
        --c-dropdown-bg: rgba(30, 41, 59, 0.98);
        --c-border-subtle: rgba(71, 85, 105, 0.3);
        --opacity-method-line: 0.3;
        --opacity-hero-bg: 0.08;

        --c-link: #FDE68A;
        --c-link-hover: #D4AF37;
    }
}

/* ----- Reset & Base ----- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
}

body {
    font-family: var(--ff-main);
    font-size: var(--fs-base);
    line-height: 1.7;
    color: var(--c-text);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--c-link);
    text-decoration: none;
    transition: color var(--tr-fast);
}

a:hover {
    color: var(--c-link-hover);
}

ul,
ol {
    list-style: none;
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
}

/* ----- Layout Utilities ----- */
.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--sp-lg);
}

.container--narrow {
    max-width: var(--max-w-narrow);
}

.section {
    padding: var(--sp-section) 0;
}

.section--alt {
    background: var(--c-bg-alt);
}

.section__header {
    text-align: center;
    margin-bottom: var(--sp-3xl);
}

.section__title {
    font-size: var(--fs-3xl);
    font-weight: 700;
    margin-bottom: var(--sp-md);
    background: var(--g-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section__subtitle {
    font-size: var(--fs-md);
    color: var(--c-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.text-gradient {
    background: var(--g-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-xl);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-xl);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-xl);
}

@media (max-width: 768px) {

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ----- Header ----- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-h);
    background: var(--c-header-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--c-header-border);
    transition: background var(--tr-base), box-shadow var(--tr-base);
}

.header.scrolled {
    background: var(--c-header-bg-scrolled);
    box-shadow: var(--shadow-lg);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--sp-lg);
}

.header__logo {
    font-size: var(--fs-xl);
    font-weight: 800;
    color: var(--c-text);
    letter-spacing: -0.02em;
}

.header__logo span {
    color: var(--c-primary);
}

.header__nav {
    display: flex;
    align-items: center;
    gap: var(--sp-xl);
}

.header__nav a {
    color: var(--c-text-secondary);
    font-size: var(--fs-sm);
    font-weight: 500;
    transition: color var(--tr-fast);
    position: relative;
}

.header__nav a:hover,
.header__nav a.active {
    color: var(--c-text);
}

.header__nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--c-primary);
    transition: width var(--tr-base);
}

.header__nav a:hover::after,
.header__nav a.active::after {
    width: 100%;
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown__trigger {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-dropdown__trigger::after {
    content: '▾';
    font-size: 0.7em;
}

.nav-dropdown__menu {
    position: absolute;
    top: 100%;
    left: -12px;
    min-width: 240px;
    padding: var(--sp-sm) 0;
    background: var(--c-dropdown-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all var(--tr-base);
}

.nav-dropdown:hover .nav-dropdown__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown__menu a {
    display: block;
    padding: var(--sp-sm) var(--sp-lg);
    color: var(--c-text-secondary);
    font-size: var(--fs-sm);
}

.nav-dropdown__menu a:hover {
    background: rgba(37, 99, 235, 0.1);
    color: var(--c-text);
}

.nav-dropdown__menu a::after {
    display: none;
}

/* Mobile menu */
.header__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
}

.header__burger span {
    width: 24px;
    height: 2px;
    background: var(--c-text);
    transition: all var(--tr-base);
    border-radius: 2px;
}

.header__burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.header__burger.active span:nth-child(2) {
    opacity: 0;
}

.header__burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.header__cta-btn {
    display: inline-flex;
    align-items: center;
    padding: var(--sp-sm) var(--sp-lg);
    background: var(--c-primary);
    color: #fff !important;
    border-radius: var(--radius-md);
    font-size: var(--fs-sm);
    font-weight: 600;
    transition: all var(--tr-base);
}

.header__cta-btn:hover {
    background: var(--c-primary-dark);
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
}

@media (max-width: 960px) {
    .header__burger {
        display: flex;
    }

    .header__nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        bottom: 0;
        height: 100vh;
        /* Force full height */
        flex-direction: column;
        background: #0f172a !important;
        backdrop-filter: none;
        z-index: 9999;
        padding: var(--sp-2xl);
        padding-bottom: 150px;
        /* Space for scrolling */
        gap: var(--sp-lg);
        transform: translateX(100%);
        transition: transform var(--tr-base);
        overflow-y: auto;
        /* Enable scrolling if menu is long */
    }

    .header__nav.open {
        transform: translateX(0);
    }

    .header__nav a {
        font-size: var(--fs-lg);
        color: #fff !important;
        /* Force white text */
    }

    .nav-dropdown__menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(255, 255, 255, 0.05);
        /* Slight contrast */
        box-shadow: none;
        border: 1px solid rgba(255, 255, 255, 0.1);
        margin-top: var(--sp-sm);
        padding: var(--sp-sm);
        border-radius: var(--radius-md);
    }

    .nav-dropdown__item {
        color: #ddd !important;
        font-size: var(--fs-base) !important;
    }
}

/* ----- Hero ----- */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-h);
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background: var(--g-hero);
    opacity: var(--opacity-hero-bg);
}

.hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(212, 175, 55, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 175, 55, 0.1) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(60px, 60px);
    }
}

.hero__glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation: glow-pulse 4s ease-in-out infinite;
}

.hero__glow--secondary {
    background: radial-gradient(circle, rgba(148, 163, 184, 0.12) 0%, transparent 70%);
    top: auto;
    bottom: -200px;
    left: -200px;
    right: auto;
    animation-delay: 2s;
}

@keyframes glow-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-sm);
    padding: var(--sp-xs) var(--sp-md);
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--radius-full);
    font-size: var(--fs-sm);
    color: var(--c-primary);
    font-weight: 600;
    margin-bottom: var(--sp-lg);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: fadeInUp 0.6s ease both;
}

.hero__badge::before {
    content: '✦';
}

.hero__title {
    font-size: var(--fs-hero);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: var(--sp-lg);
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero__subtitle {
    font-size: var(--fs-lg);
    color: var(--c-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--sp-2xl);
    animation: fadeInUp 0.6s ease 0.4s both;
}

.hero__actions {
    display: flex;
    gap: var(--sp-md);
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.6s both;
}

.hero__stats {
    display: flex;
    gap: var(--sp-2xl);
    margin-top: var(--sp-3xl);
    animation: fadeInUp 0.6s ease 0.8s both;
}

.hero__stat-value {
    font-size: var(--fs-3xl);
    font-weight: 700;
    color: var(--c-primary-light);
}

.hero__stat-label {
    font-size: var(--fs-sm);
    color: var(--c-text-muted);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 80vh;
    }

    .hero__stats {
        gap: var(--sp-lg);
        flex-wrap: wrap;
    }
}

/* ----- Buttons ----- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-sm);
    padding: 0.875rem 1.75rem;
    font-size: var(--fs-base);
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--tr-base);
    text-decoration: none;
    line-height: 1;
}

.btn--primary {
    background: var(--c-primary);
    color: #fff;
}

.btn--primary:hover {
    background: var(--c-primary-dark);
    color: #fff;
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.btn--accent {
    background: var(--c-accent);
    color: #fff;
}

.btn--accent:hover {
    background: var(--c-accent-dark);
    color: #fff;
    box-shadow: var(--shadow-glow-accent);
    transform: translateY(-2px);
}

.btn--outline {
    background: transparent;
    color: var(--c-text);
    border: 1px solid var(--c-border);
}

.btn--outline:hover {
    border-color: var(--c-primary);
    color: var(--c-primary-light);
    background: rgba(37, 99, 235, 0.1);
}

.btn--lg {
    padding: 1rem 2rem;
    font-size: var(--fs-md);
}

.btn--sm {
    padding: 0.5rem 1rem;
    font-size: var(--fs-sm);
}

.btn--full {
    width: 100%;
}

/* ----- Cards ----- */
.card {
    background: var(--g-card);
    border: 1px solid var(--c-border-subtle);
    border-radius: var(--radius-xl);
    padding: var(--sp-2xl);
    transition: all var(--tr-base);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--g-hero);
    transform: scaleX(0);
    transition: transform var(--tr-base);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(212, 175, 55, 0.4);
}

.card:hover::before {
    transform: scaleX(1);
}

.card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: rgba(37, 99, 235, 0.15);
    border-radius: var(--radius-lg);
    margin-bottom: var(--sp-lg);
    font-size: 1.5rem;
}

.card__title {
    font-size: var(--fs-xl);
    font-weight: 700;
    margin-bottom: var(--sp-sm);
    color: var(--c-text);
}

.card__text {
    color: var(--c-text-secondary);
    font-size: var(--fs-base);
    line-height: 1.7;
    margin-bottom: var(--sp-lg);
}

.card__link {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-xs);
    color: var(--c-primary-light);
    font-weight: 600;
    font-size: var(--fs-sm);
}

.card__link:hover {
    gap: var(--sp-sm);
}

.card__link::after {
    content: '→';
    transition: transform var(--tr-fast);
}

.card__link:hover::after {
    transform: translateX(4px);
}

/* Card with image */
.card--img {
    padding: 0;
}

.card--img .card__image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.card--img .card__body {
    padding: var(--sp-xl);
}

.card__meta {
    display: flex;
    align-items: center;
    gap: var(--sp-md);
    font-size: var(--fs-xs);
    color: var(--c-text-muted);
    margin-bottom: var(--sp-sm);
}

/* ----- Proof / Stats Section ----- */
.proof {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-xl);
    text-align: center;
}

.proof__item {
    padding: var(--sp-xl);
    border: 1px solid var(--c-border-subtle);
    border-radius: var(--radius-lg);
    transition: all var(--tr-base);
}

.proof__item:hover {
    background: rgba(37, 99, 235, 0.05);
    border-color: rgba(37, 99, 235, 0.2);
}

.proof__number {
    font-size: var(--fs-4xl);
    font-weight: 800;
    background: var(--g-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--sp-xs);
}

.proof__label {
    font-size: var(--fs-sm);
    color: var(--c-text-secondary);
}

@media (max-width: 768px) {
    .proof {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ----- Method / Timeline ----- */
.method {
    position: relative;
}

.method__timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-xl);
    position: relative;
}

.method__timeline::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: var(--g-hero);
    opacity: var(--opacity-method-line);
}

.method__step {
    text-align: center;
    position: relative;
}

.method__step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--c-primary);
    color: #fff;
    border-radius: var(--radius-full);
    font-weight: 700;
    margin: 0 auto var(--sp-md);
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-glow);
}

.method__step-title {
    font-size: var(--fs-lg);
    font-weight: 700;
    margin-bottom: var(--sp-sm);
}

.method__step-text {
    font-size: var(--fs-sm);
    color: var(--c-text-secondary);
}

@media (max-width: 768px) {
    .method__timeline {
        grid-template-columns: 1fr;
        gap: var(--sp-2xl);
    }

    .method__timeline::before {
        top: 0;
        bottom: 0;
        left: 24px;
        right: auto;
        width: 2px;
        height: auto;
    }

    .method__step {
        text-align: left;
        padding-left: 72px;
    }

    .method__step-number {
        position: absolute;
        left: 0;
        margin: 0;
    }
}

/* ----- FAQ Accordion ----- */
.faq__list {
    max-width: 800px;
    margin: 0 auto;
}

.faq__item {
    border-bottom: 1px solid rgba(71, 85, 105, 0.3);
}

.faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: var(--sp-lg) 0;
    background: none;
    border: none;
    color: var(--c-text);
    font-size: var(--fs-md);
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: color var(--tr-fast);
}

.faq__question:hover {
    color: var(--c-primary-light);
}

.faq__icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: transform var(--tr-base);
    color: var(--c-primary-light);
}

.faq__item.active .faq__icon {
    transform: rotate(45deg);
}

.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--tr-base), padding var(--tr-base);
}

.faq__item.active .faq__answer {
    max-height: 500px;
}

.faq__answer p {
    padding-bottom: var(--sp-lg);
    color: var(--c-text-secondary);
    line-height: 1.7;
}

/* ----- CTA Section ----- */
.cta-section {
    position: relative;
    padding: var(--sp-4xl) 0;
    text-align: center;
    overflow: hidden;
}

.cta-section__bg {
    position: absolute;
    inset: 0;
    background: var(--g-hero);
    opacity: 0.08;
    border-radius: var(--radius-2xl);
}

.cta-section__inner {
    position: relative;
    z-index: 2;
    padding: var(--sp-4xl) var(--sp-2xl);
    background: var(--g-card);
    border: 1px solid var(--c-border-subtle);
    border-radius: var(--radius-2xl);
    max-width: 800px;
    margin: 0 auto;
}

.cta-section__title {
    font-size: var(--fs-3xl);
    font-weight: 700;
    margin-bottom: var(--sp-md);
}

.cta-section__text {
    font-size: var(--fs-md);
    color: var(--c-text-secondary);
    margin-bottom: var(--sp-2xl);
}

.cta-section__actions {
    display: flex;
    justify-content: center;
    gap: var(--sp-md);
    flex-wrap: wrap;
}

/* ----- Forms ----- */
.form {
    max-width: 700px;
    margin: 0 auto;
}

.form__group {
    margin-bottom: var(--sp-lg);
}

.form__label {
    display: block;
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--c-text-secondary);
    margin-bottom: var(--sp-sm);
}

.form__label--required::after {
    content: ' *';
    color: var(--c-error);
}

.form__input,
.form__select,
.form__textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    color: var(--c-text);
    font-size: var(--fs-base);
    transition: border-color var(--tr-fast), box-shadow var(--tr-fast);
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
    outline: none;
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.form__input::placeholder,
.form__textarea::placeholder {
    color: var(--c-text-muted);
}

.form__textarea {
    min-height: 120px;
    resize: vertical;
}

.form__select {
    appearance: none;
    cursor: pointer;
}

.form__error {
    font-size: var(--fs-xs);
    color: var(--c-error);
    margin-top: var(--sp-xs);
}

.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-md);
}

@media (max-width: 640px) {
    .form__row {
        grid-template-columns: 1fr;
    }
}

/* Alerts */
.alert {
    padding: var(--sp-md) var(--sp-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--sp-xl);
    font-size: var(--fs-sm);
}

.alert--success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--c-success);
}

.alert--error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--c-error);
}

/* ----- Breadcrumb ----- */
.breadcrumb {
    padding: var(--sp-lg) 0;
    margin-top: var(--header-h);
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-sm);
    font-size: var(--fs-sm);
}

.breadcrumb__item {
    display: flex;
    align-items: center;
    gap: var(--sp-sm);
}

.breadcrumb__item+.breadcrumb__item::before {
    content: '/';
    color: var(--c-text-muted);
}

.breadcrumb__item a {
    color: var(--c-text-secondary);
}

.breadcrumb__item a:hover {
    color: var(--c-primary-light);
}

.breadcrumb__item--active span {
    color: var(--c-text-muted);
}

/* ----- Footer ----- */
.footer {
    background: var(--c-bg);
    border-top: 1px solid rgba(71, 85, 105, 0.2);
    padding: var(--sp-4xl) 0 var(--sp-xl);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--sp-3xl);
    margin-bottom: var(--sp-3xl);
}

.footer__brand p {
    color: var(--c-text-secondary);
    font-size: var(--fs-sm);
    margin-top: var(--sp-md);
    max-width: 300px;
    line-height: 1.7;
}

.footer__heading {
    font-size: var(--fs-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--c-text);
    margin-bottom: var(--sp-lg);
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: var(--sp-sm);
}

.footer__links a {
    color: var(--c-text-secondary);
    font-size: var(--fs-sm);
    transition: color var(--tr-fast);
}

.footer__links a:hover {
    color: var(--c-primary-light);
}

.footer__bottom {
    border-top: 1px solid rgba(71, 85, 105, 0.2);
    padding-top: var(--sp-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--fs-xs);
    color: var(--c-text-muted);
}

.footer__legal {
    display: flex;
    gap: var(--sp-lg);
}

.footer__legal a {
    color: var(--c-text-muted);
}

.footer__legal a:hover {
    color: var(--c-text-secondary);
}

@media (max-width: 768px) {
    .footer__grid {
        grid-template-columns: 1fr;
        gap: var(--sp-2xl);
    }

    .footer__bottom {
        flex-direction: column;
        gap: var(--sp-md);
        text-align: center;
    }
}

/* ----- Page Hero (sub-pages) ----- */
.page-hero {
    padding: calc(var(--header-h) + var(--sp-4xl)) 0 var(--sp-3xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero__bg {
    position: absolute;
    inset: 0;
    background: var(--g-hero);
    opacity: 0.05;
}

.page-hero h1 {
    font-size: var(--fs-4xl);
    font-weight: 800;
    margin-bottom: var(--sp-md);
}

.page-hero p {
    font-size: var(--fs-lg);
    color: var(--c-text-secondary);
    max-width: 600px;
    margin: 0 auto var(--sp-xl);
}

/* ----- Blog List ----- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-xl);
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ----- Article Content ----- */
.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--sp-3xl) 0;
}

.article-content h1 {
    font-size: var(--fs-4xl);
    font-weight: 800;
    margin-bottom: var(--sp-lg);
}

.article-content h2 {
    font-size: var(--fs-2xl);
    font-weight: 700;
    margin: var(--sp-2xl) 0 var(--sp-md);
    color: var(--c-primary-light);
}

.article-content h3 {
    font-size: var(--fs-xl);
    font-weight: 600;
    margin: var(--sp-xl) 0 var(--sp-md);
}

.article-content p {
    margin-bottom: var(--sp-md);
    color: var(--c-text-secondary);
}

.article-content ul,
.article-content ol {
    margin-bottom: var(--sp-md);
    padding-left: var(--sp-xl);
}

.article-content li {
    color: var(--c-text-secondary);
    margin-bottom: var(--sp-sm);
    list-style: disc;
}

.article-content ol li {
    list-style: decimal;
}

.article-content blockquote {
    border-left: 3px solid var(--c-primary);
    padding-left: var(--sp-lg);
    margin: var(--sp-xl) 0;
    font-style: italic;
    color: var(--c-text-secondary);
}

.article-content code {
    background: var(--c-surface);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-size: 0.9em;
}

.article-content pre {
    background: var(--c-surface);
    padding: var(--sp-lg);
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin-bottom: var(--sp-md);
}

.article__featured-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    margin-bottom: var(--sp-2xl);
}

/* ----- Case Study Detail ----- */
.cs-detail__header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-3xl);
    align-items: center;
    margin-bottom: var(--sp-3xl);
}

.cs-detail__info-row {
    display: flex;
    gap: var(--sp-md);
    flex-wrap: wrap;
    margin-bottom: var(--sp-lg);
}

.cs-detail__badge {
    display: inline-flex;
    padding: var(--sp-xs) var(--sp-md);
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: var(--radius-full);
    font-size: var(--fs-xs);
    color: var(--c-primary-light);
}

.cs-detail__section {
    margin-bottom: var(--sp-2xl);
}

.cs-detail__section h2 {
    font-size: var(--fs-xl);
    font-weight: 700;
    margin-bottom: var(--sp-md);
    color: var(--c-primary-light);
}

.cs-detail__section p {
    color: var(--c-text-secondary);
    line-height: 1.8;
}

@media (max-width: 768px) {
    .cs-detail__header {
        grid-template-columns: 1fr;
    }
}

/* ----- Services page features ----- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-xl);
    margin: var(--sp-3xl) 0;
}

.feature-item {
    display: flex;
    gap: var(--sp-lg);
    padding: var(--sp-xl);
    border-radius: var(--radius-lg);
    transition: background var(--tr-base);
}

.feature-item:hover {
    background: rgba(37, 99, 235, 0.05);
}

.feature-item__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.15);
    border-radius: var(--radius-md);
    font-size: 1.25rem;
}

.feature-item__title {
    font-size: var(--fs-md);
    font-weight: 600;
    margin-bottom: var(--sp-xs);
}

.feature-item__text {
    font-size: var(--fs-sm);
    color: var(--c-text-secondary);
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* ----- Pagination ----- */
.pagination {
    display: flex;
    justify-content: center;
    gap: var(--sp-sm);
    margin-top: var(--sp-3xl);
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 var(--sp-sm);
    border-radius: var(--radius-md);
    font-size: var(--fs-sm);
    font-weight: 600;
    transition: all var(--tr-fast);
}

.pagination a {
    background: var(--c-surface);
    color: var(--c-text);
}

.pagination a:hover {
    background: var(--c-primary);
    color: #fff;
}

.pagination span.active {
    background: var(--c-primary);
    color: #fff;
}

/* ----- Scroll animations ----- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ----- 404 ----- */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--sp-2xl);
}

.error-page__code {
    font-size: clamp(6rem, 15vw, 12rem);
    font-weight: 800;
    background: var(--g-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.error-page__title {
    font-size: var(--fs-2xl);
    margin: var(--sp-md) 0;
}

.error-page__text {
    color: var(--c-text-secondary);
    margin-bottom: var(--sp-2xl);
}

/* ----- Lazy loading placeholder ----- */
img[loading="lazy"] {
    background: var(--c-surface);
}

/* ----- Skip to content (accessibility) ----- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    padding: var(--sp-md) var(--sp-lg);
    background: var(--c-primary);
    color: #fff;
    z-index: 9999;
    transition: top var(--tr-fast);
}

.skip-link:focus {
    top: 0;
}

/* Hero Visual Update */
.hero__layout {
    align-items: center;
}

/* ----- Service Page Fixes ----- */
.page-hero {
    position: relative;
    padding: var(--sp-3xl) 0 var(--sp-2xl);
    overflow: hidden;
    background: var(--c-bg);
}

.page-hero__bg {
    position: absolute;
    inset: 0;
    background: var(--g-hero);
    opacity: 0.05;
    z-index: 1;
}

.page-hero .container {
    position: relative;
    z-index: 10;
    /* Ensure content is above background */
}

.cta-section__inner {
    position: relative;
    z-index: 10;
    background: var(--g-hero);
    border-radius: var(--radius-xl);
    padding: var(--sp-3xl);
    text-align: center;
    color: var(--c-bg);
    /* ensure text is readable on gold bg */
    overflow: hidden;
}

.cta-section__inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    /* Subtle texture or overlay */
    z-index: -1;
}

/* Ensure buttons in CTA section are clickable */
.cta-section__actions {
    position: relative;
    z-index: 11;
    display: flex;
    gap: var(--sp-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--sp-xl);
}

.hero__visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 5;
}

.hero__logo-large {
    max-width: 80%;
    height: auto;
    max-height: 500px;
    filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.4));
    animation: floatLogo 6s ease-in-out infinite;
}

@keyframes floatLogo {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}