/* =========================================================
   SOLKAR DIGITAL
   GLOBAL DESIGN SYSTEM
   ========================================================= */


/* =========================================================
   01. DESIGN TOKENS
   ========================================================= */

:root {

    /* -----------------------------------------------------
       Brand Colours
       ----------------------------------------------------- */

    --navy-950: #071426;
    --navy-900: #0B1F36;

    --blue-600: #2563EB;
    --blue-400: #60A5FA;

    --emerald-500: #10B981;

    --white: #FFFFFF;
    --ice: #F8FAFC;

    --slate-700: #334155;
    --slate-500: #64748B;
    --slate-300: #CBD5E1;
    --slate-200: #E2E8F0;
    --slate-100: #F1F5F9;


    /* -----------------------------------------------------
       Semantic Colours
       ----------------------------------------------------- */

    --color-background: var(--white);
    --color-surface: var(--ice);

    --color-text: var(--slate-700);
    --color-text-muted: var(--slate-500);

    --color-heading: var(--navy-950);

    --color-primary: var(--blue-600);
    --color-primary-hover: #1D4ED8;

    --color-accent: var(--emerald-500);

    --color-dark: var(--navy-950);
    --color-dark-surface: var(--navy-900);

    --color-border: var(--slate-200);


    /* -----------------------------------------------------
       Typography
       ----------------------------------------------------- */

    --font-heading:
        "Manrope",
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    --font-body:
        "Inter",
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;


    /* -----------------------------------------------------
       Font Sizes
       ----------------------------------------------------- */

    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    --text-7xl: 4.5rem;


    /* -----------------------------------------------------
       Line Heights
       ----------------------------------------------------- */

    --leading-tight: 1.1;
    --leading-snug: 1.25;
    --leading-normal: 1.6;
    --leading-relaxed: 1.75;


    /* -----------------------------------------------------
       Layout
       ----------------------------------------------------- */

    --container-width: 1400px;
    --container-padding: 4%;


    /* -----------------------------------------------------
       Spacing
       ----------------------------------------------------- */

    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;


    /* -----------------------------------------------------
       Section Spacing
       ----------------------------------------------------- */

    --section-sm: clamp(4rem, 7vw, 6rem);
    --section-md: clamp(5rem, 8vw, 8rem);
    --section-lg: clamp(6rem, 10vw, 10rem);


    /* -----------------------------------------------------
       Border Radius
       ----------------------------------------------------- */

    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;

    --radius-pill: 999px;


    /* -----------------------------------------------------
       Shadows
       ----------------------------------------------------- */

    --shadow-sm:
        0 1px 2px rgba(7, 20, 38, 0.05);

    --shadow-md:
        0 10px 30px rgba(7, 20, 38, 0.08);

    --shadow-lg:
        0 20px 50px rgba(7, 20, 38, 0.12);


    /* -----------------------------------------------------
       Transitions
       ----------------------------------------------------- */

    --transition-fast:
        180ms ease;

    --transition-base:
        280ms ease;

    --transition-slow:
        450ms ease;


    /* -----------------------------------------------------
       Z-Index
       ----------------------------------------------------- */

    --z-base: 1;
    --z-dropdown: 100;
    --z-header: 500;
    --z-overlay: 900;
    --z-modal: 1000;
}


/* =========================================================
   02. RESET
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}


body {
    margin: 0;
    min-height: 100vh;

    background: var(--color-background);
    color: var(--color-text);

    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: var(--leading-normal);

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


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


img {
    height: auto;
}


button,
input,
textarea,
select {
    font: inherit;
}


button {
    border: 0;
    cursor: pointer;
}


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


ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}


p,
h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
}


p {
    margin-bottom: 1rem;
}


::selection {
    background: var(--blue-600);
    color: var(--white);
}


/* =========================================================
   03. ACCESSIBILITY
   ========================================================= */

:focus-visible {
    outline: 3px solid var(--blue-400);
    outline-offset: 4px;
}


.skip-link {
    position: fixed;
    top: 1rem;
    left: 1rem;

    z-index: var(--z-modal);

    padding: 0.75rem 1rem;

    background: var(--navy-950);
    color: var(--white);

    border-radius: var(--radius-sm);

    transform: translateY(-200%);
    transition: transform var(--transition-fast);
}


.skip-link:focus {
    transform: translateY(0);
}


/* =========================================================
   04. TYPOGRAPHY
   ========================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
    text-wrap: balance;
    margin-bottom: 1rem;

    color: var(--color-heading);

    font-family: var(--font-heading);
    font-weight: 700;
    line-height: var(--leading-tight);

    letter-spacing: -0.025em;
}


h1 {
    font-size: clamp(
        3rem,
        6vw,
        var(--text-7xl)
    );
}


h2 {
    font-size: clamp(
        2.25rem,
        4vw,
        var(--text-5xl)
    );
}


h3 {
    font-size: clamp(
        1.5rem,
        2.5vw,
        var(--text-3xl)
    );
}


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


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


strong {
    font-weight: 700;
}


.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;

    margin-bottom: 1.25rem;

    color: var(--blue-400);

    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 700;

    letter-spacing: 0.16em;
    line-height: 1.2;

    text-transform: uppercase;
}


.eyebrow::before {
    content: "";

    width: 28px;
    height: 2px;

    background: currentColor;

    border-radius: var(--radius-pill);
}


.eyebrow--dark {
    color: var(--blue-600);
}


.card-eyebrow {
    margin-bottom: 0.75rem;

    color: var(--blue-600);

    font-size: var(--text-xs);
    font-weight: 700;

    letter-spacing: 0.12em;
    text-transform: uppercase;
}


/* =========================================================
   05. LAYOUT
   ========================================================= */

.container {
    width: min(
        calc(100% - (var(--container-padding) * 2)),
        var(--container-width)
    );

    min-width: 0;

    margin-inline: auto;
}


.section {
    position: relative;

    padding-block: var(--section-md);

    overflow: hidden;
}


.section--small {
    padding-block: var(--section-sm);
}


.section--large {
    padding-block: var(--section-lg);
}


/* =========================================================
   06. BUTTONS
   ========================================================= */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;

    min-height: 48px;

    padding: 0.85rem 1.25rem;

    border: 1px solid transparent;
    border-radius: var(--radius-pill);

    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 700;

    line-height: 1;
    letter-spacing: -0.01em;

    transition:
        transform var(--transition-fast),
        background-color var(--transition-fast),
        border-color var(--transition-fast),
        color var(--transition-fast),
        box-shadow var(--transition-fast);
}


.button:hover {
    transform: translateY(-2px);
}


.button:active {
    transform: translateY(0);
}


.button--primary {
    background: var(--color-primary);
    color: var(--white);

    box-shadow:
        0 8px 24px rgba(37, 99, 235, 0.22);
}


.button--primary:hover {
    background: var(--color-primary-hover);

    box-shadow:
        0 12px 30px rgba(37, 99, 235, 0.28);
}


.button--secondary {
    background: var(--navy-950);
    color: var(--white);
}


.button--secondary:hover {
    background: var(--navy-900);
}


.button--light {
    background: var(--white);
    color: var(--navy-950);

    box-shadow:
        0 8px 24px rgba(7, 20, 38, 0.12);
}


.button--light:hover {
    background: var(--ice);
}


.button--ghost {
    background: transparent;
    color: var(--navy-950);

    border-color: var(--slate-200);
}


.button--ghost:hover {
    background: var(--ice);
    border-color: var(--slate-300);
}


.button--outline-light {
    background: transparent;
    color: var(--white);

    border-color: rgba(255, 255, 255, 0.35);
}


.button--outline-light:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.7);
}


/* =========================================================
   07. SECTION HEADINGS
   ========================================================= */

.section-heading {
    max-width: 760px;

    margin-bottom: clamp(
        3rem,
        5vw,
        4rem
    );
}


.section-heading h2 {
    margin-bottom: 1.5rem;
}


.section-heading h2 span {
    color: var(--blue-600);
}


.section-heading > p:last-child {
    max-width: 650px;

    margin-bottom: 0;

    color: var(--color-text-muted);

    font-size: var(--text-lg);
}


.section-heading--light h2,
.section-heading--light > p:last-child {
    color: var(--white);
}


.section-heading--light h2 span {
    color: var(--blue-400);
}


.section-heading--light > p:last-child {
    color: rgba(255, 255, 255, 0.7);
}


/* =========================================================
   08. GENERAL CARD FOUNDATION
   ========================================================= */

.card {
    position: relative;

    padding: var(--space-8);

    background: var(--white);

    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);

    box-shadow: var(--shadow-sm);

    transition:
        transform var(--transition-base),
        box-shadow var(--transition-base),
        border-color var(--transition-base);
}


.card:hover {
    transform: translateY(-4px);

    border-color: rgba(37, 99, 235, 0.2);

    box-shadow: var(--shadow-md);
}


/* =========================================================
   09. DARK SURFACES
   ========================================================= */

.surface-dark {
    background:
        radial-gradient(
            circle at top right,
            rgba(37, 99, 235, 0.12),
            transparent 35%
        ),
        var(--navy-950);

    color: var(--white);
}


.surface-dark h1,
.surface-dark h2,
.surface-dark h3,
.surface-dark h4 {
    color: var(--white);
}


/* =========================================================
   10. GRADIENT UTILITIES
   ========================================================= */

.gradient-text {
    background:
        linear-gradient(
            90deg,
            var(--blue-400),
            var(--blue-600),
            var(--emerald-500)
        );

    -webkit-background-clip: text;
    background-clip: text;

    -webkit-text-fill-color: transparent;
    color: transparent;
}


.gradient-border {
    position: relative;
}


.gradient-border::before {
    content: "";

    position: absolute;
    inset: 0;

    padding: 1px;

    border-radius: inherit;

    background:
        linear-gradient(
            135deg,
            rgba(96, 165, 250, 0.5),
            rgba(16, 185, 129, 0.35)
        );

    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);

    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);

    -webkit-mask-composite: xor;
    mask-composite: exclude;

    pointer-events: none;
}


/* =========================================================
   11. LINKS
   ========================================================= */

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;

    color: var(--blue-600);

    font-weight: 600;

    transition:
        color var(--transition-fast),
        gap var(--transition-fast);
}


.text-link:hover {
    color: var(--color-primary-hover);
    gap: 0.75rem;
}


/* =========================================================
   12. RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {

    :root {
        --container-padding: 3%;
    }

}


@media (max-width: 768px) {

    :root {

        --container-padding: 5%;

        --section-sm: 4rem;
        --section-md: 5rem;
        --section-lg: 6rem;

    }


    h1 {
        font-size: clamp(
            2.5rem,
            10vw,
            4rem
        );
    }


    h2 {
        font-size: clamp(
            2rem,
            8vw,
            3rem
        );
    }


    .section-heading {
        margin-bottom: var(--space-12);
    }


    .button {
        width: 100%;
    }

}


@media (max-width: 480px) {

    :root {
        --container-padding: 6%;
    }


    .section {
        padding-block: 4rem;
    }


    .eyebrow {
        font-size: 0.7rem;
    }

}


/* =========================================================
   13. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }


    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

}