/*
 * Meridian Theme — Main Stylesheet
 *
 * Table of Contents:
 *   1. Custom Properties (Design Tokens)
 *   2. CSS Reset
 *   3. Typography
 *   4. Layout Utilities
 *   5. Buttons & Links
 *   6. Navigation
 *   7. Footer
 *   8. Post Meta
 *   9. Breadcrumbs
 *   10. Forms (base)
 *   11. Dark / Light Theme
 *   12. Accessibility
 *   13. Media & Images
 *   14. Animations (CSS-only utilities)
 *   15. Reduced Motion overrides
 *
 * Component-specific styles (hero, cards, etc.) are injected here
 * as sections are built in later phases.
 */

/* ============================================================
   1. Custom Properties — Design Tokens
   ============================================================ */

:root {
    /* ── Brand palette ── */
    --c-neon: #00d47e;
    --c-neon-dim: rgba(0, 212, 126, 0.15);
    --c-neon-glow: rgba(0, 212, 126, 0.35);
    --c-neon-mist: rgba(175, 249, 199, 0.5);

    --c-bg: #050e12;
    /* raw bg colour, same as surface-0 */
    --c-teal-deep: #102830;
    --c-teal-mid: #024751;
    --c-teal-bright: #0a5f6f;

    --c-white: #ffffff;
    --c-off-white: #f7fbfe;
    --c-muted: #8ba3ab;
    --c-border: rgba(255, 255, 255, 0.08);
    --c-glass: rgba(255, 255, 255, 0.04);
    --c-glass-hover: rgba(255, 255, 255, 0.07);

    /* ── Surface scale (dark theme) ── */
    --surface-0: #060f12;
    --surface-1: #0b1a1f;
    --surface-2: #102830;
    --surface-3: #163544;
    --surface-4: #1c4456;

    /* ── Semantic ── */
    --bg: var(--surface-0);
    --bg-card: var(--surface-1);
    --bg-elevated: var(--surface-2);
    --text-primary: var(--c-off-white);
    --text-secondary: #b5ccd4;
    --text-muted: var(--c-muted);
    --text-inverse: var(--surface-0);
    --accent: var(--c-neon);
    --accent-dim: var(--c-neon-dim);
    --border: var(--c-border);

    /* ── Typography ── */
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --font-mono: 'DM Mono', 'Fira Code', monospace;
    /* mono unchanged */

    --text-xs: clamp(0.7rem, 1.5vw, 0.75rem);
    --text-sm: clamp(0.8rem, 1.8vw, 0.875rem);
    --text-base: clamp(0.9rem, 2vw, 1rem);
    --text-md: clamp(1rem, 2.2vw, 1.125rem);
    --text-lg: clamp(1.1rem, 2.5vw, 1.25rem);
    --text-xl: clamp(1.25rem, 3vw, 1.5rem);
    --text-2xl: clamp(1.5rem, 3.5vw, 2rem);
    --text-3xl: clamp(2rem, 4.5vw, 2.75rem);
    --text-4xl: clamp(2.5rem, 6vw, 3.75rem);
    --text-5xl: clamp(3rem, 7.5vw, 5.25rem);
    --text-6xl: clamp(3.5rem, 9vw, 7rem);

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

    --tracking-tight: -0.04em;
    --tracking-snug: -0.02em;
    --tracking-normal: 0;
    --tracking-wide: 0.05em;
    --tracking-wider: 0.12em;

    /* ── Spacing scale ── */
    --sp-1: 0.25rem;
    --sp-1-5: 0.375rem;
    --sp-2: 0.5rem;
    --sp-3: 0.75rem;
    --sp-4: 1rem;
    --sp-5: 1.25rem;
    --sp-6: 1.5rem;
    --sp-7: 1.75rem;
    --sp-8: 2rem;
    --sp-10: 2.5rem;
    --sp-12: 3rem;
    --sp-16: 4rem;
    --sp-20: 5rem;
    --sp-24: 6rem;
    --sp-28: 7rem;
    --sp-32: 8rem;
    --sp-40: 10rem;
    --sp-48: 12rem;

    /* ── Layout ── */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
    --container-2xl: 1536px;
    --container-full: 1920px;

    --gutter: clamp(1rem, 4vw, 2rem);
    --section-gap: clamp(3rem, 6vw, 7rem);

    /* ── Radii ── */
    --r-sm: 4px;
    --r-md: 8px;
    --r-lg: 16px;
    --r-xl: 24px;
    --r-2xl: 32px;
    --r-full: 9999px;

    /* ── Shadows & glows ── */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.7);
    --glow-neon: 0 0 20px var(--c-neon-glow), 0 0 60px rgba(0, 212, 126, 0.1);
    --glow-neon-sm: 0 0 8px var(--c-neon-glow);

    /* ── Transitions ── */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

    --dur-fast: 150ms;
    --dur-base: 250ms;
    --dur-slow: 400ms;
    --dur-slower: 600ms;

    /* ── Z-index layers ── */
    --z-behind: -1;
    --z-base: 0;
    --z-raised: 10;
    --z-overlay: 100;
    --z-modal: 200;
    --z-nav: 300;
    --z-toast: 400;
}

/* ============================================================
   2. CSS Reset
   ============================================================ */

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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: auto;
    /* Lenis handles smooth scroll */
    tab-size: 4;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--text-primary);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

/* Remove list styles when used as UI lists */
ul[role="list"],
ol[role="list"] {
    list-style: none;
}

/* Default link reset — components handle their own styling */
a {
    color: inherit;
    text-decoration: none;
}

/* Consistent img/media behaviour */
img,
video,
svg,
canvas,
picture {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Remove built-in button styles */
button {
    cursor: pointer;
    border: none;
    background: transparent;
    font: inherit;
    color: inherit;
}

/* Remove built-in form element styles */
input,
textarea,
select {
    font: inherit;
    color: inherit;
}

/* HR reset */
hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: var(--sp-8) 0;
}

/* Table reset */
table {
    border-collapse: collapse;
    width: 100%;
}

/* Strong / b */
strong,
b {
    font-weight: 600;
}

/* Subscript / Superscript */
sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sup {
    top: -0.5em;
}

sub {
    bottom: -0.25em;
}

/* ============================================================
   3. Typography
   ============================================================ */

/* Display headings use Outfit */
h1,
h2,
h3,
.h1,
.h2,
.h3 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: var(--tracking-tight);
    line-height: var(--leading-tight);
    color: var(--text-primary);
}

h4,
h5,
h6,
.h4,
.h5,
.h6 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: var(--tracking-snug);
    line-height: var(--leading-snug);
    color: var(--text-primary);
}

h1,
.h1 {
    font-size: var(--text-5xl);
}

h2,
.h2 {
    font-size: var(--text-4xl);
}

h3,
.h3 {
    font-size: var(--text-3xl);
}

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

h5,
.h5 {
    font-size: var(--text-xl);
}

h6,
.h6 {
    font-size: var(--text-lg);
}

p {
    color: var(--text-secondary);
    max-width: 68ch;
    margin-bottom: var(--sp-4);
}

/* Eyebrow / label text */
.eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: var(--sp-3);
}

.eyebrow::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 1px;
    background: var(--accent);
    vertical-align: middle;
    margin-right: var(--sp-2);
}

/* Large pull quote */
blockquote {
    border-left: 2px solid var(--accent);
    padding: var(--sp-4) var(--sp-6);
    margin: var(--sp-8) 0;
    background: var(--c-neon-dim);
    border-radius: 0 var(--r-md) var(--r-md) 0;
}

blockquote p {
    font-size: var(--text-lg);
    font-style: italic;
    color: var(--text-primary);
    max-width: none;
}

blockquote cite {
    display: block;
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-top: var(--sp-3);
    font-style: normal;
}

/* Code */
code {
    font-family: var(--font-mono);
    font-size: 0.875em;
    background: var(--surface-3);
    color: var(--c-neon);
    padding: 0.1em 0.4em;
    border-radius: var(--r-sm);
}

pre {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--sp-6);
    overflow-x: auto;
    line-height: var(--leading-relaxed);
}

pre code {
    background: transparent;
    padding: 0;
    color: var(--text-primary);
}

/* ── Content / prose styles (blog posts, rich text) ── */
.prose {
    --prose-gap: var(--sp-6);
    color: var(--text-secondary);
    max-width: 72ch;
}

.prose>*+* {
    margin-top: var(--prose-gap);
}

.prose h2 {
    font-size: var(--text-3xl);
    margin-top: var(--sp-12);
}

.prose h3 {
    font-size: var(--text-2xl);
    margin-top: var(--sp-10);
}

.prose h4 {
    font-size: var(--text-xl);
    margin-top: var(--sp-8);
}

.prose p {
    max-width: none;
    color: var(--text-secondary);
}

.prose ul,
.prose ol {
    padding-left: var(--sp-6);
}

.prose ul {
    list-style: disc;
}

.prose ol {
    list-style: decimal;
}

.prose li {
    margin-bottom: var(--sp-2);
}

.prose a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: var(--c-neon-dim);
    transition: color var(--dur-base) var(--ease-out),
        text-decoration-color var(--dur-base) var(--ease-out);
}

.prose a:hover {
    color: var(--c-neon-mist);
    text-decoration-color: var(--accent);
}

.prose img {
    border-radius: var(--r-lg);
    width: 100%;
    height: auto;
}

/* ============================================================
   4. Layout Utilities
   ============================================================ */

.container {
    width: 100%;
    max-width: var(--container-xl);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

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

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

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

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

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

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


.section--sm {
    padding-block: calc(var(--section-gap) * 0.5);
}

.section--lg {
    padding-block: calc(var(--section-gap) * 1.5);
}

/* Grid system */
.grid {
    display: grid;
    gap: var(--sp-8);
}

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

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

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

.grid--auto-sm {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.grid--auto-md {
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
}

.grid--auto-lg {
    grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
}

/* Flexbox utilities */
.flex {
    display: flex;
}

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

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

.items-start {
    align-items: flex-start;
}

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

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

.gap-4 {
    gap: var(--sp-4);
}

.gap-6 {
    gap: var(--sp-6);
}

.gap-8 {
    gap: var(--sp-8);
}

.gap-12 {
    gap: var(--sp-12);
}

/* Visually hidden (accessible) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Section intro */
.section-header {
    max-width: 600px;
    margin-bottom: var(--sp-16);
}

.section-header--center {
    text-align: center;
    margin-inline: auto;
}

.section-header h2 {
    margin-bottom: var(--sp-4);
}

.section-header p {
    font-size: var(--text-md);
    max-width: none;
}

/* ============================================================
   5. Buttons & Links
   ============================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    padding: 0.75em 1.75em;
    border-radius: var(--r-full);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    transition:
        background var(--dur-base) var(--ease-out),
        color var(--dur-base) var(--ease-out),
        box-shadow var(--dur-base) var(--ease-out),
        transform var(--dur-fast) var(--ease-spring);
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

/* Ripple effect via ::after */
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity var(--dur-base) var(--ease-out);
}

.btn:hover {
    transform: translateY(-1px);
}

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

/* Primary */
.btn--primary {
    background: var(--accent);
    color: var(--text-inverse);
}

.btn--primary:hover {
    box-shadow: var(--glow-neon);
}

.btn--primary::after {
    background: rgba(255, 255, 255, 0.15);
}

.btn--primary:hover::after {
    opacity: 1;
}

/* Outline */
.btn--outline {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}

.btn--outline:hover {
    background: var(--accent);
    color: var(--text-inverse);
    box-shadow: var(--glow-neon);
}

/* Ghost */
.btn--ghost {
    background: var(--c-glass);
    color: var(--text-primary);
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.btn--ghost:hover {
    background: var(--c-glass-hover);
    border-color: var(--accent);
    color: var(--accent);
}

/* Icon button */
.btn--icon {
    padding: 0.65em;
    border-radius: var(--r-full);
    aspect-ratio: 1;
    justify-content: center;
}

/* Large variant */
.btn--lg {
    font-size: var(--text-base);
    padding: 0.875em 2.25em;
}

/* Arrow link */
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    color: var(--accent);
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    transition: gap var(--dur-base) var(--ease-out),
        opacity var(--dur-base) var(--ease-out);
}

.link-arrow::after {
    content: '→';
    transition: transform var(--dur-base) var(--ease-out);
}

.link-arrow:hover {
    gap: var(--sp-3);
}

.link-arrow:hover::after {
    transform: translateX(4px);
}

/* ============================================================
   6. Navigation
   ============================================================ */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-nav);
    height: 72px;
    display: flex;
    align-items: center;
    transition:
        background var(--dur-slow) var(--ease-out),
        box-shadow var(--dur-slow) var(--ease-out),
        backdrop-filter var(--dur-slow) var(--ease-out);
}

/* Scrolled state — JS adds .is-scrolled */
.site-header.is-scrolled {
    background: rgba(6, 15, 18, 0.85);
    /* dark default */
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 1px 0 var(--border);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    flex-shrink: 0;
    text-decoration: none;
}

.site-logo__img {
    height: 36px;
    width: auto;
}

.site-logo__text {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 800;
    letter-spacing: var(--tracking-tight);
    color: var(--text-primary);
    line-height: 1;
}

.site-logo__text span {
    color: var(--accent);
}

/* Primary nav */
.primary-nav {
    display: flex;
    align-items: center;
    gap: var(--sp-1);
    list-style: none;
}

.primary-nav__item {
    position: relative;
}

.primary-nav__link {
    display: flex;
    align-items: center;
    gap: var(--sp-1);
    padding: 8px;
    font-size: var(--text-md);
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--r-md);
    transition:
        color var(--dur-base) var(--ease-out),
        background var(--dur-base) var(--ease-out);
    white-space: nowrap;
}

.primary-nav__link:hover,
.primary-nav__link[aria-current="page"],
.primary-nav__item.current-menu-item>.primary-nav__link,
.primary-nav__item.current-page-ancestor>.primary-nav__link {
    color: var(--text-primary);
    background: var(--c-glass);
}

/* Dropdown */
.primary-nav__dropdown {
    position: absolute;
    top: calc(100% + var(--sp-2));
    left: 50%;
    transform: translateX(-50%);
    min-width: 220px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--sp-2);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-8px);
    transition:
        opacity var(--dur-base) var(--ease-out),
        transform var(--dur-base) var(--ease-out),
        visibility var(--dur-base);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
    z-index: var(--z-overlay);
}

.primary-nav__item:hover .primary-nav__dropdown,
.primary-nav__item:focus-within .primary-nav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.primary-nav__dropdown a {
    display: block;
    padding: var(--sp-2) var(--sp-4);
    border-radius: var(--r-md);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    transition:
        color var(--dur-base) var(--ease-out),
        background var(--dur-base) var(--ease-out);
}

.primary-nav__dropdown a:hover {
    color: var(--accent);
    background: var(--accent-dim);
}

/* Header actions */
.site-header__actions {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    flex-shrink: 0;
}

/* Theme toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--r-full);
    background: var(--c-glass);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    transition:
        color var(--dur-base) var(--ease-out),
        background var(--dur-base) var(--ease-out),
        border-color var(--dur-base) var(--ease-out);
}

.theme-toggle:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-dim);
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    gap: 5px;
    cursor: pointer;
    border-radius: var(--r-md);
    transition: background var(--dur-base) var(--ease-out);
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--text-primary);
    border-radius: 2px;
    transition:
        transform var(--dur-base) var(--ease-out),
        opacity var(--dur-base) var(--ease-out),
        width var(--dur-base) var(--ease-out);
    transform-origin: center;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    width: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile nav drawer */
.nav-drawer {
    position: fixed;
    top: 72px;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--surface-0);
    z-index: calc(var(--z-nav) - 1);
    padding: var(--sp-8) var(--gutter);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0.35s;
    visibility: hidden;
    /* Prevent any sub-pixel rendering issues */
    will-change: transform;
}

.nav-drawer.is-open,
.nav-drawer[aria-hidden="false"] {
    transform: translateX(0);
    visibility: visible;
}

.nav-drawer__menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--sp-1);
    margin-bottom: var(--sp-8);
}

.nav-drawer__menu a {
    display: block;
    padding: var(--sp-3) var(--sp-4);
    font-size: var(--text-lg);
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--text-primary);
    border-radius: var(--r-md);
    transition: color var(--dur-base) var(--ease-out),
        background var(--dur-base) var(--ease-out);
}

.nav-drawer__menu a:hover {
    color: var(--accent);
    background: var(--accent-dim);
}

/* ============================================================
   7. Footer
   ============================================================ */

.site-footer {
    background: var(--surface-1);
    border-top: 1px solid var(--border);
    padding-top: var(--sp-24);
    padding-bottom: var(--sp-10);
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            var(--accent),
            transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--sp-12);
    margin-bottom: var(--sp-16);
}

.footer-brand p {
    margin-top: var(--sp-5);
    font-size: var(--text-sm);
    color: var(--text-muted);
    max-width: 32ch;
}

.footer-nav h4 {
    font-size: var(--text-xs);
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: var(--sp-5);
    font-weight: 500;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}

.footer-nav a {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    transition: color var(--dur-base) var(--ease-out);
}

.footer-nav a:hover {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--sp-6);
    border-top: 1px solid var(--border);
    gap: var(--sp-4);
    flex-wrap: wrap;
}

.footer-bottom p {
    font-size: var(--text-xs);
    color: var(--text-muted);
    max-width: none;
    margin: 0;
}

.footer-social {
    display: flex;
    gap: var(--sp-3);
    list-style: none;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--r-full);
    background: var(--c-glass);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: var(--text-sm);
    transition:
        color var(--dur-base) var(--ease-out),
        background var(--dur-base) var(--ease-out),
        border-color var(--dur-base) var(--ease-out);
}

.footer-social a:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-dim);
}

/* ============================================================
   8. Post Meta
   ============================================================ */

.post-meta {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    flex-wrap: wrap;
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.post-meta__sep {
    opacity: 0.4;
}

.post-meta__author,
.post-meta__category {
    color: var(--accent);
    transition: opacity var(--dur-base) var(--ease-out);
}

.post-meta__author:hover,
.post-meta__category:hover {
    opacity: 0.7;
}

/* ============================================================
   9. Breadcrumbs
   ============================================================ */

.breadcrumbs {
    margin-bottom: var(--sp-6);
}

.breadcrumbs__list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--sp-2);
    list-style: none;
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.breadcrumbs__link {
    color: var(--text-muted);
    transition: color var(--dur-base) var(--ease-out);
}

.breadcrumbs__link:hover {
    color: var(--accent);
}

.breadcrumbs__sep {
    opacity: 0.4;
}

.breadcrumbs__current {
    color: var(--text-secondary);
}

/* ============================================================
   10. Forms (base — CF7 extended in cf7.css)
   ============================================================ */

.form-field {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
}

.form-field label {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: var(--tracking-wide);
}

.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    padding: var(--sp-3) var(--sp-4);
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    color: var(--text-primary);
    font-size: var(--text-base);
    transition:
        border-color var(--dur-base) var(--ease-out),
        box-shadow var(--dur-base) var(--ease-out),
        background var(--dur-base) var(--ease-out);
    -webkit-appearance: none;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--c-neon-dim);
    background: var(--surface-3);
}

.form-field textarea {
    resize: vertical;
    min-height: 140px;
}

/* ============================================================
   11. Dark / Light Theme
   ============================================================ */

/* Light theme overrides — toggled via .theme-light on <html> */
.theme-light {
    --bg: #f7fbfe;
    --bg-card: #ffffff;
    --bg-elevated: #eaf4f8;
    --surface-0: #f0f8fc;
    --surface-1: #ffffff;
    --surface-2: #e2eef4;
    --surface-3: #cde0e9;
    --text-primary: #0a1a20;
    --text-secondary: #2d4a56;
    --text-muted: #5f7f8a;
    --text-inverse: #f7fbfe;
    --c-glass: rgba(0, 0, 0, 0.04);
    --c-glass-hover: rgba(0, 0, 0, 0.07);
    --border: rgba(0, 0, 0, 0.08);
    --glow-neon: 0 0 20px rgba(0, 212, 126, 0.25), 0 0 40px rgba(0, 212, 126, 0.08);
}

/* ── Light mode component fixes ─────────────────────── */
.theme-light .site-header.is-scrolled {
    background: rgba(240, 248, 252, 0.92);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.theme-light .nav-link {
    color: var(--text-primary);
}

.theme-light .nav-link:hover {
    color: var(--accent);
}

.theme-light .site-logo__text {
    color: var(--text-primary);
}

.theme-light .hero-stat__value,
.theme-light .hero-stat__label {
    color: var(--text-primary);
}

.theme-light .hero-stat {
    border-color: var(--border);
}

.theme-light .hero__overlay {
    background: #ffffff;
}




/* ============================================================
   12. Accessibility
   ============================================================ */

/* Visible focus ring for keyboard navigation */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: var(--r-sm);
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -100%;
    left: var(--gutter);
    z-index: calc(var(--z-nav) + 1);
    padding: var(--sp-3) var(--sp-6);
    background: var(--accent);
    color: var(--text-inverse);
    font-weight: 600;
    border-radius: var(--r-full);
    transition: top var(--dur-fast) var(--ease-out);
}

.skip-link:focus {
    top: var(--sp-4);
}

/* ============================================================
   13. Media & Images
   ============================================================ */

/* Lazy-load blur-in effect */
img[loading="lazy"] {
    transition: filter var(--dur-slow) var(--ease-out);
}

/* Aspect ratio helpers */
.ratio-16-9 {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.ratio-4-3 {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.ratio-1-1 {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.ratio-3-4 {
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

/* ============================================================
   14. Animation Utilities
   ============================================================ */

/*
 * CSS keyframe animation system.
 * Elements are FULLY VISIBLE by default — no opacity:0 defaults anywhere.
 * JS adds .animate-in class via IntersectionObserver.
 * Animations play AFTER the class is added — not before.
 * Without JS or .animate-in, everything stays visible permanently.
 */

/*
 * Scroll-reveal system.
 * JS adds .will-animate (prep) then .animate-in (reveal).
 * Without JS everything stays fully visible — no flash.
 */

/* Nothing hidden by default — JS opts elements in via .will-animate */

.will-animate {
    opacity: 0;
    transition: opacity .55s cubic-bezier(.16, 1, .3, 1),
        transform .55s cubic-bezier(.16, 1, .3, 1);
}

.will-animate[data-animate="fade-up"] {
    transform: translateY(18px);
}

.will-animate[data-animate="fade-in"] {
    transform: none;
}

.will-animate[data-animate="slide-left"] {
    transform: translateX(-24px);
}

.will-animate[data-animate="slide-right"] {
    transform: translateX(24px);
}

.will-animate[data-stagger] {
    opacity: 1;
    transform: none;
}

.will-animate[data-stagger]>* {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .45s cubic-bezier(.16, 1, .3, 1),
        transform .45s cubic-bezier(.16, 1, .3, 1);
}

.hero__stat.will-animate {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .45s cubic-bezier(.16, 1, .3, 1),
        transform .45s cubic-bezier(.16, 1, .3, 1);
}

/* Revealed */
.animate-in {
    opacity: 1 !important;
    transform: none !important;
}

.animate-in[data-stagger]>* {
    opacity: 1;
    transform: none;
}

/* Stagger delays */
.animate-in[data-stagger]>*:nth-child(1) {
    transition-delay: 0s;
}

.animate-in[data-stagger]>*:nth-child(2) {
    transition-delay: .06s;
}

.animate-in[data-stagger]>*:nth-child(3) {
    transition-delay: .12s;
}

.animate-in[data-stagger]>*:nth-child(4) {
    transition-delay: .18s;
}

.animate-in[data-stagger]>*:nth-child(5) {
    transition-delay: .24s;
}

.animate-in[data-stagger]>*:nth-child(6) {
    transition-delay: .30s;
}

.animate-in[data-stagger]>*:nth-child(7) {
    transition-delay: .36s;
}

.animate-in[data-stagger]>*:nth-child(8) {
    transition-delay: .42s;
}

.animate-in[data-stagger]>*:nth-child(n+9) {
    transition-delay: .42s;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

    .will-animate,
    .will-animate[data-stagger]>*,
    .hero__stat.will-animate {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ── Other keyframes used elsewhere ──────────────────── */

@keyframes neon-pulse {

    0%,
    100% {
        box-shadow: var(--glow-neon-sm);
    }

    50% {
        box-shadow: var(--glow-neon);
    }
}

@keyframes gradient-sweep {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes bounce-y {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(8px);
    }
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ============================================================
   15. Reduced Motion
   ============================================================ */

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

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

    [data-animate],
    [data-stagger]>*,
    .hero__stat {
        animation: none !important;
    }
}

/* ============================================================
   16. Responsive Breakpoints
   ============================================================ */

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

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

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

@media (max-width: 900px) {

    .primary-nav,
    .site-header__cta {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .grid--2,
    .grid--3,
    .grid--4 {
        grid-template-columns: 1fr;
    }

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    :root {
        --section-gap: clamp(3rem, 8vw, 5rem);
    }
}

/* ============================================================
   17. Hero — Updated layout (screenshot 2025)
   ============================================================ */

/* ── Hero wrapper ──────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    color: var(--text-primary);
}

/* Full-bleed background */
.hero__bg,
.hero__bg-image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__bg-image {
    background-size: cover;
    background-position: center 35%;
    background-repeat: no-repeat;
}

/* Gradient overlay — dark left, transparent right like screenshot */
.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(100deg,
            rgba(6, 15, 18, .92) 0%,
            rgba(6, 15, 18, .75) 45%,
            rgba(6, 15, 18, .30) 75%,
            rgba(6, 15, 18, .10) 100%),
        linear-gradient(to bottom, rgba(6, 15, 18, .15) 0%, rgba(6, 15, 18, .55) 100%);
}

/* Grid overlay removed */
.hero__grid {
    display: none;
}

/* Video */
.hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* ── Container ─────────────────────────────────────────────── */
.hero__container {
    position: relative;
    z-index: 3;
    padding-top: 48px;
    padding-bottom: 32px;
    display: flex;
    flex-direction: column;
}




/* ── Eyebrow ───────────────────────────────────────────────── */
.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-4);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
    color: rgba(255, 255, 255, .55);
    margin-bottom: var(--sp-6);
}

.hero__eyebrow-line {
    display: inline-block;
    width: 28px;
    height: 1.5px;
    background: var(--accent);
    flex-shrink: 0;
}

/* ── Heading ───────────────────────────────────────────────── */
.hero__heading {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 6.5vw, 5rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: var(--tracking-tight);
    color: var(--text-primary);
    margin: 0 0 var(--sp-6);
}

.hero__accent {
    font-style: normal;
    color: var(--accent);
}

/* ── Subheading ────────────────────────────────────────────── */
.hero__subheading {
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    line-height: var(--leading-normal);
    color: rgba(255, 255, 255, .72);
    margin: 0 0 var(--sp-5);
    max-width: 560px;
}

/* ── OKDL formula line ─────────────────────────────────────── */
.hero__okdl {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, .45);
    margin: 0 0 var(--sp-8);
    line-height: 1.5;
}

.hero__okdl-key {
    color: var(--accent);
    font-weight: 700;
    font-size: var(--text-sm);
    letter-spacing: .04em;
}

/* ── Actions ───────────────────────────────────────────────── */
.hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sp-4);
    margin-bottom: 12px;
}

/* Primary CTA — two-part pill with divider */
.hero__cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 0;
    overflow: hidden;
    font-weight: 600;
}

.hero__cta-part1 {
    padding: 0.875em 1.25em 0.875em 1.75em;
}

.hero__cta-sep {
    padding: 0 0.6em;
    opacity: 0.6;
    font-size: 1.1em;
    line-height: 1;
    flex-shrink: 0;
}

.hero__cta-part2 {
    padding: 0.875em 1.75em 0.875em 1em;
    position: relative;
}

/* Soft divider before part2 */
.hero__cta-part2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background: rgba(0, 0, 0, .2);
}

/* ── Microcopy ─────────────────────────────────────────────── */
.hero__microcopy {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, .35);
    margin: 0;
    letter-spacing: .01em;
}

/* ── Scroll indicator ──────────────────────────────────────── */
.hero__scroll-indicator {
    position: absolute;
    bottom: var(--sp-8);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-2);
    z-index: 3;
    opacity: 0.4;
}

.hero__scroll-line {
    display: block;
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 0.4;
        transform: scaleY(1);
    }

    50% {
        opacity: 0.8;
        transform: scaleY(1.1);
    }
}

.hero__scroll-text {
    font-size: 9px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ============================================================
   18. Clients — static row (replaces marquee)
   ============================================================ */

.clients-section {
    padding-block: var(--sp-10) var(--sp-12);
    background: var(--surface-0);
    border-top: 1px solid var(--border);
}

.clients-section__inner {
    display: flex;
    flex-direction: column;
    gap: var(--sp-6);
}

.clients-label {
    font-size: var(--text-sm);
    color: var(--text-muted);
    letter-spacing: var(--tracking-wide);
    text-align: center;
    margin: 0;
}

/* Static row of client names / logos */
.clients-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--sp-8) var(--sp-12);
}

.clients-row__item {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Text name style (when no logo) */
.clients-row__name {
    font-family: var(--font-display);
    font-size: clamp(1rem, 2.2vw, 1.35rem);
    font-weight: 700;
    letter-spacing: var(--tracking-snug);
    color: rgba(255, 255, 255, .35);
    transition: color .2s;
    white-space: nowrap;
}

.clients-row__item:hover .clients-row__name {
    color: rgba(255, 255, 255, .65);
}

/* Logo image style */
.clients-row__logo {
    height: 32px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: .90;
    transition: opacity .2s;
}

.clients-row__item:hover .clients-row__logo {
    opacity: .55;
}

/* ── Responsive ────────────────────────────────────────────── */

@media (max-width: 900px) {
    .hero__content {
        max-width: 100%;
    }

    .hero__heading {
        font-size: clamp(2.2rem, 9vw, 3.2rem);
    }

    .hero__actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero__cta-primary,
    .hero__actions .btn--ghost {
        width: 100%;
        justify-content: center;
    }

    .clients-row {
        gap: var(--sp-6) var(--sp-8);
    }

    .clients-row__name {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero__container {
        padding-top: 64px;
        padding-bottom: var(--sp-16);
    }

    .hero__heading {
        font-size: clamp(2rem, 10vw, 2.8rem);
    }

    .hero__content {
        text-align: center;
    }
}

/* ── Hero clients row (inside hero section) ──────────────────── */

.hero__clients {
    width: 100%;
    text-align: center;
    overflow: hidden;
    padding-bottom: var(--sp-8);
}

.hero__clients-label {
    font-size: var(--text-xs);
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
    color: rgba(255, 255, 255, .38);
    margin: 0 0 var(--sp-5);
    text-align: center;
}

/* Marquee — infinite scroll */
.hero__marquee {
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.hero__marquee-track {
    display: flex;
    align-items: center;
    gap: var(--sp-12);
    width: max-content;
    animation: hero-marquee 25s linear infinite;
}

@keyframes hero-marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

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

.hero__clients-item {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* Text name when no logo */
.hero__clients-name {
    font-family: var(--font-display);
    font-size: clamp(0.85rem, 1.8vw, 1.05rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .45);
    white-space: nowrap;
    transition: color .2s;
}

.hero__clients-item:hover .hero__clients-name {
    color: rgba(255, 255, 255, .78);
}

/* Logo image */
.hero__clients-logo {
    height: 30px;
    width: auto;
    max-width: 130px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: .55;
    transition: opacity .2s;
}

.hero__clients-item:hover .hero__clients-logo {
    opacity: .9;
}

/* ================================================================
   HOMEPAGE — O→K→D→L Section
   ================================================================ */

.hp-okdl-section {
    background: var(--surface-0);
}

.hp-okdl-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-5);
    margin-top: var(--sp-12);
    margin-bottom: var(--sp-12);
}

.hp-okdl-card {
    position: relative;
    background: var(--surface-2);
    border: 1.5px solid var(--border);
    border-radius: 18px;
    padding: var(--sp-7) var(--sp-6) var(--sp-6);
    overflow: hidden;
    transition: border-color .22s, transform .22s, box-shadow .22s;
}

.hp-okdl-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .3), 0 0 0 1px rgba(0, 212, 126, .1);
}

/* Ghost letter watermark */
.hp-okdl-card__letter {
    position: absolute;
    top: -8px;
    right: 12px;
    font-family: var(--font-display);
    font-size: 7rem;
    font-weight: 900;
    line-height: 1;
    color: var(--accent);
    opacity: .1;
    pointer-events: none;
    user-select: none;
    transition: opacity .22s;
}

.hp-okdl-card:hover .hp-okdl-card__letter {
    opacity: 0.56;
}

.hp-okdl-card__body {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}

.hp-okdl-card__title {
    font-family: var(--font-display);
    font-size: var(--text-md);
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: var(--tracking-snug);
    margin: 0;
}

.hp-okdl-card__desc {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: var(--leading-normal);
    margin: 0;
}

/* ================================================================
   HOMEPAGE — Jak pracujeme (4 kroky)
   ================================================================ */

.hp-process-section {
    background: var(--surface-1);
}

.hp-process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-5);
    margin-top: var(--sp-12);
    position: relative;
}

/* Connecting line across all 4 number badges */
.hp-process-steps::before {
    content: '';
    position: absolute;
    top: 24px;
    /* center of 48px circle */
    left: calc(12.5% + 0px);
    right: calc(12.5% + 0px);
    height: 1px;
    background: linear-gradient(to right,
            transparent 0%,
            rgba(0, 212, 126, .25) 15%,
            rgba(0, 212, 126, .25) 85%,
            transparent 100%);
    z-index: 0;
}

.hp-process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-5);
    position: relative;
    z-index: 1;
}

/* Number circle */
.hp-process-step__num-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hp-process-step__num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--surface-2);
    border: 1.5px solid rgba(0, 212, 126, .35);
    color: var(--accent);
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: .04em;
    box-shadow: 0 0 20px rgba(0, 212, 126, .1);
    transition: background .22s, box-shadow .22s, border-color .22s;
    position: relative;
    z-index: 1;
}

.hp-process-step:hover .hp-process-step__num {
    background: rgba(0, 212, 126, .1);
    border-color: var(--accent);
    box-shadow: 0 0 28px rgba(0, 212, 126, .25);
}

/* Card */
.hp-process-step__card {
    background: var(--surface-2);
    border: 1.5px solid var(--border);
    border-radius: 16px;
    padding: var(--sp-6) var(--sp-5);
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
    transition: border-color .22s, transform .22s, box-shadow .22s;
}

.hp-process-step:hover .hp-process-step__card {
    border-color: rgba(0, 212, 126, .25);
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(0, 0, 0, .25);
}

.hp-process-step__icon {
    font-size: 1.75rem;
    line-height: 1;
}

.hp-process-step__body {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
    flex: 1;
}

.hp-process-step__title {
    font-family: var(--font-display);
    font-size: var(--text-md);
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: var(--tracking-snug);
    margin: 0;
}

.hp-process-step__desc {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: var(--leading-normal);
    margin: 0;
}

/* Green tag badge */
.hp-process-step__tag {
    display: inline-flex;
    align-self: flex-start;
    padding: 3px 10px;
    border-radius: var(--r-full);
    background: rgba(0, 212, 126, .1);
    border: 1px solid rgba(0, 212, 126, .2);
    color: var(--accent);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    white-space: nowrap;
}

/* ── Responsive ─────────────────────────────────────────────── */

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

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

    .hp-process-steps::before {
        display: none;
    }
}

@media (max-width: 640px) {
    .hp-okdl-grid {
        grid-template-columns: 1fr;
    }

    .hp-okdl-card__letter {
        font-size: 5rem;
    }

    .hp-process-steps {
        grid-template-columns: 1fr;
    }
}