/* ==========================================================================
   Iskrex Homepage — "Iskra" dark industrial theme
   Scoped to body.home-dark so other pages keep the default stylesheet.
   ========================================================================== */

body.home-dark {
    --bg-0: #06090f;
    --bg-1: #0a0f18;
    --bg-2: #0e1521;
    --bg-card: #0d1420;
    --line: rgba(148, 163, 184, 0.13);
    --line-strong: rgba(148, 163, 184, 0.25);
    --txt: #e8eef7;
    --txt-muted: #93a1b5;
    --cyan: #22d3ee;
    --cyan-dim: rgba(34, 211, 238, 0.14);
    --orange: #f97316;
    --orange-hot: #fb923c;
    --amber: #fbbf24;
    --font-display: 'Space Grotesk', 'Roboto', sans-serif;
    --font-body: 'Inter', 'Roboto', sans-serif;

    font-family: var(--font-body);
    background-color: var(--bg-0);
    color: var(--txt);
    /* mobile.css forces body to 100vw, which clips content behind the
       scrollbar on narrow desktop windows */
    width: 100% !important;
    max-width: 100% !important;
}

body.home-dark::selection,
body.home-dark *::selection {
    background: rgba(34, 211, 238, 0.35);
    color: #fff;
}

body.home-dark h1,
body.home-dark h2,
body.home-dark h3,
body.home-dark h4 {
    font-family: var(--font-display);
    color: var(--txt);
    letter-spacing: -0.02em;
}

body.home-dark a {
    color: var(--txt);
}

body.home-dark a:hover {
    color: var(--cyan);
}

/* --------------------------------------------------------------------------
   Header overrides (dark glass)
   -------------------------------------------------------------------------- */

body.home-dark header {
    background-color: rgba(6, 9, 15, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: none;
    border-bottom: 1px solid var(--line);
}

body.home-dark .logo,
body.home-dark a.logo {
    color: var(--txt);
    font-family: var(--font-display);
}

body.home-dark a.logo:hover {
    color: var(--cyan);
}

body.home-dark .logo::after {
    content: '_';
    color: var(--orange);
    animation: hx-caret 1.2s steps(1) infinite;
}

@keyframes hx-caret {
    50% { opacity: 0; }
}

body.home-dark .nav-links a {
    color: var(--txt-muted);
    transition: color 0.25s ease;
}

body.home-dark .nav-links a:hover,
body.home-dark .nav-links a.active {
    color: var(--txt);
}

body.home-dark .nav-links a:after {
    background: var(--cyan);
}

body.home-dark .hamburger .line {
    background: var(--txt);
}

@media (max-width: 768px) {
    body.home-dark .nav-links {
        background-color: rgba(6, 9, 15, 0.97);
    }
}

/* --------------------------------------------------------------------------
   Shared section scaffolding
   -------------------------------------------------------------------------- */

body.home-dark main {
    position: relative;
    overflow-x: clip;
}

.hx-section {
    position: relative;
    padding: clamp(4rem, 9vh, 6.5rem) 0;
}

.hx-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 1.1rem;
}

.hx-eyebrow::before {
    content: '';
    width: 1.6rem;
    height: 1px;
    background: var(--cyan);
    box-shadow: 0 0 8px var(--cyan);
}

.hx-section-title {
    font-size: clamp(1.7rem, 3.6vw, 2.6rem);
    font-weight: 700;
    line-height: 1.12;
    margin-bottom: 0.9rem;
}

.hx-section-sub {
    color: var(--txt-muted);
    font-size: clamp(0.95rem, 1.4vw, 1.05rem);
    max-width: 38rem;
    line-height: 1.65;
}

/* Section divider line that "machines" across when revealed */
.hx-cutline {
    position: relative;
    height: 1px;
    margin: 0 auto;
    width: 85%;
    max-width: 1440px;
    background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.hx-cutline.visible {
    transform: scaleX(1);
}

.hx-cutline::after {
    content: '';
    position: absolute;
    right: -2px;
    top: -2px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--orange);
    box-shadow: 0 0 10px 2px rgba(249, 115, 22, 0.8);
    opacity: 0;
}

.hx-cutline.visible::after {
    animation: hx-cutspark 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes hx-cutspark {
    0% { opacity: 1; }
    85% { opacity: 1; }
    100% { opacity: 0; }
}

/* Scroll reveal */
.hx-reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0s);
}

.hx-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .hx-reveal,
    .hx-cutline {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Blueprint grid backdrop */
.hx-grid-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, black 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, black 0%, transparent 75%);
    opacity: 0.5;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.hx-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    padding: 0.85rem 1.7rem;
    border-radius: 0.5rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.25s ease, background-color 0.25s ease,
                border-color 0.25s ease, color 0.25s ease;
    will-change: transform;
    white-space: nowrap;
}

.hx-btn-primary {
    background: linear-gradient(135deg, var(--orange) 0%, #ea580c 100%);
    color: #fff !important;
    box-shadow: 0 4px 24px rgba(249, 115, 22, 0.35);
}

.hx-btn-primary:hover {
    box-shadow: 0 8px 36px rgba(249, 115, 22, 0.55);
    color: #fff !important;
}

.hx-btn-ghost {
    background: transparent;
    color: var(--txt) !important;
    border-color: var(--line-strong);
}

.hx-btn-ghost:hover {
    border-color: var(--cyan);
    color: var(--cyan) !important;
    box-shadow: 0 0 24px rgba(34, 211, 238, 0.18);
}

.hx-btn .hx-btn-arrow {
    transition: transform 0.25s ease;
}

.hx-btn:hover .hx-btn-arrow {
    transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   HERO
   -------------------------------------------------------------------------- */

.home-hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: 7rem 0 4rem;
    background:
        radial-gradient(ellipse 70% 55% at 50% -5%, rgba(34, 211, 238, 0.10), transparent 65%),
        radial-gradient(ellipse 50% 40% at 80% 100%, rgba(249, 115, 22, 0.07), transparent 70%),
        var(--bg-0);
    overflow: hidden;
}

#spark-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
}

.home-hero .container {
    position: relative;
    z-index: 2;
}

.home-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 56rem;
    margin: 0 auto;
}

.home-hero h1 {
    font-size: clamp(2.4rem, 6.5vw, 4.6rem);
    font-weight: 700;
    line-height: 1.06;
    margin-bottom: 1.4rem;
    text-wrap: balance;
}

/* Word-split animation pieces (injected by JS) */
.home-hero h1 .hx-word {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    padding-bottom: 0.08em;
    margin-bottom: -0.08em;
}

.home-hero h1 .hx-word > span {
    display: inline-block;
    transform: translateY(110%);
    animation: hx-word-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: var(--word-delay, 0s);
}

@keyframes hx-word-rise {
    to { transform: translateY(0); }
}

.home-hero h1 .hx-accent {
    background: linear-gradient(100deg, var(--cyan) 0%, #67e8f9 50%, var(--orange-hot) 110%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.home-hero-sub {
    color: var(--txt-muted);
    font-size: clamp(1rem, 1.7vw, 1.18rem);
    line-height: 1.7;
    max-width: 40rem;
    margin-bottom: 2.2rem;
}

.home-hero-ctas {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hx-scroll-hint {
    position: absolute;
    left: 50%;
    bottom: 1.6rem;
    transform: translateX(-50%);
    z-index: 2;
    width: 1.4rem;
    height: 2.3rem;
    border: 1px solid var(--line-strong);
    border-radius: 1rem;
    opacity: 0.7;
}

.hx-scroll-hint::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 0.45rem;
    width: 3px;
    height: 6px;
    margin-left: -1.5px;
    border-radius: 2px;
    background: var(--cyan);
    animation: hx-scrollhint 1.8s ease-in-out infinite;
}

@keyframes hx-scrollhint {
    0% { transform: translateY(0); opacity: 1; }
    70% { transform: translateY(0.8rem); opacity: 0; }
    100% { transform: translateY(0); opacity: 0; }
}

/* G-code HUD (decorative, fixed, desktop only) */
.hx-hud {
    position: fixed;
    left: 1.1rem;
    bottom: 1.1rem;
    z-index: 50;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.62rem;
    line-height: 1.7;
    letter-spacing: 0.06em;
    color: rgba(147, 161, 181, 0.75);
    pointer-events: none;
    user-select: none;
    padding: 0.5rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: 0.4rem;
    background: rgba(6, 9, 15, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.hx-hud .hx-hud-g {
    color: var(--cyan);
}

.hx-hud .hx-hud-feed {
    color: var(--orange-hot);
}

@media (max-width: 900px) {
    .hx-hud { display: none; }
}

/* --------------------------------------------------------------------------
   PROOF BAR (animated counters)
   -------------------------------------------------------------------------- */

.hx-proof {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, var(--bg-1), var(--bg-0));
    padding: 2.6rem 0;
}

.hx-proof-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.hx-stat {
    text-align: center;
    position: relative;
}

.hx-stat + .hx-stat::before {
    content: '';
    position: absolute;
    left: -0.75rem;
    top: 15%;
    height: 70%;
    width: 1px;
    background: var(--line);
}

.hx-stat-value {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--txt);
    font-variant-numeric: tabular-nums;
}

.hx-stat-value .hx-stat-suffix {
    color: var(--cyan);
}

.hx-stat-label {
    margin-top: 0.35rem;
    color: var(--txt-muted);
    font-size: 0.82rem;
    line-height: 1.45;
}

@media (max-width: 820px) {
    .hx-proof-grid {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 2rem;
    }
    .hx-stat:nth-child(3)::before { display: none; }
}

/* --------------------------------------------------------------------------
   ISKREX BOOKS SPOTLIGHT
   -------------------------------------------------------------------------- */

.hx-books {
    background:
        radial-gradient(ellipse 60% 50% at 15% 20%, rgba(34, 211, 238, 0.06), transparent 70%),
        var(--bg-0);
}

.hx-books-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}

.hx-flag-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--orange-hot);
    border: 1px solid rgba(249, 115, 22, 0.4);
    background: rgba(249, 115, 22, 0.08);
    border-radius: 2rem;
    padding: 0.32rem 0.9rem;
    margin-bottom: 1.2rem;
}

.hx-flag-badge::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--orange);
    box-shadow: 0 0 8px var(--orange);
    animation: hx-pulse-dot 1.6s ease-in-out infinite;
}

@keyframes hx-pulse-dot {
    50% { opacity: 0.35; }
}

.hx-books-title {
    font-size: clamp(2rem, 4.4vw, 3.2rem);
    margin-bottom: 0.5rem;
}

.hx-books-tagline {
    font-family: var(--font-display);
    color: var(--cyan);
    font-size: clamp(1.05rem, 1.8vw, 1.3rem);
    font-weight: 500;
    margin-bottom: 1.1rem;
}

.hx-books-desc {
    color: var(--txt-muted);
    line-height: 1.7;
    font-size: 0.98rem;
    margin-bottom: 1.6rem;
}

.hx-books-bullets {
    list-style: none;
    margin: 0 0 2rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
}

.hx-books-bullets li {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}

.hx-bullet-icon {
    flex: 0 0 auto;
    width: 2.1rem;
    height: 2.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.55rem;
    border: 1px solid var(--line-strong);
    background: var(--bg-2);
    color: var(--cyan);
    font-size: 0.85rem;
}

.hx-books-bullets h4 {
    font-size: 0.95rem;
    margin: 0 0 0.15rem;
}

.hx-books-bullets p {
    color: var(--txt-muted);
    font-size: 0.85rem;
    line-height: 1.55;
    margin: 0;
}

/* ---- Animated autopilot demo card ---- */

.hx-demo {
    position: relative;
    border: 1px solid var(--line-strong);
    border-radius: 1rem;
    background: linear-gradient(165deg, var(--bg-2) 0%, var(--bg-1) 100%);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(34, 211, 238, 0.04);
    overflow: hidden;
}

.hx-demo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(34, 211, 238, 0.08), transparent 60%);
    pointer-events: none;
}

.hx-demo-titlebar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.1rem;
    border-bottom: 1px solid var(--line);
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.68rem;
    color: var(--txt-muted);
    letter-spacing: 0.05em;
}

.hx-demo-titlebar .hx-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--line-strong);
}

.hx-demo-titlebar .hx-dot:nth-child(1) { background: #f87171; }
.hx-demo-titlebar .hx-dot:nth-child(2) { background: var(--amber); }
.hx-demo-titlebar .hx-dot:nth-child(3) { background: #34d399; }

.hx-demo-titlebar span:last-child {
    margin-left: 0.5rem;
}

/* Pipeline nodes */
.hx-pipeline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.6rem 1.4rem 1.2rem;
    gap: 0.4rem;
}

.hx-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 4.2rem;
}

.hx-node-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.8rem;
    border: 1px solid var(--line-strong);
    background: var(--bg-card);
    color: var(--txt-muted);
    font-size: 1.1rem;
    transition: border-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
    position: relative;
}

.hx-node-label {
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--txt-muted);
    font-family: var(--font-display);
}

.hx-node.active .hx-node-icon {
    border-color: var(--cyan);
    color: var(--cyan);
    box-shadow: 0 0 22px rgba(34, 211, 238, 0.35);
    transform: translateY(-3px);
}

.hx-node.done .hx-node-icon {
    border-color: rgba(52, 211, 153, 0.6);
    color: #34d399;
}

/* Connector with travelling pulse */
.hx-conn {
    position: relative;
    flex: 1;
    height: 2px;
    background: var(--line);
    border-radius: 2px;
    overflow: visible;
    margin-bottom: 1.45rem;
}

.hx-conn .hx-pulse {
    position: absolute;
    top: 50%;
    left: 0;
    width: 9px;
    height: 9px;
    margin: -4.5px 0 0 -4.5px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 12px 3px rgba(34, 211, 238, 0.6);
    opacity: 0;
}

.hx-conn.firing .hx-pulse {
    animation: hx-pulse-travel 0.9s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes hx-pulse-travel {
    0% { left: 0; opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

/* Event feed */
.hx-feed {
    padding: 0.4rem 1.1rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-height: 11.5rem;
}

.hx-feed-row {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.55rem 0.8rem;
    border-radius: 0.5rem;
    border: 1px solid transparent;
    font-size: 0.8rem;
    color: var(--txt-muted);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.5s ease, background-color 0.5s ease, color 0.5s ease;
}

.hx-feed-row.shown {
    opacity: 1;
    transform: translateY(0);
}

.hx-feed-row.current {
    border-color: var(--line-strong);
    background: rgba(34, 211, 238, 0.05);
    color: var(--txt);
}

.hx-feed-icon {
    flex: 0 0 auto;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.4rem;
    background: var(--bg-card);
    border: 1px solid var(--line);
    font-size: 0.68rem;
    color: var(--cyan);
}

.hx-feed-row[data-tone="orange"] .hx-feed-icon { color: var(--orange-hot); }
.hx-feed-row[data-tone="green"] .hx-feed-icon { color: #34d399; }

.hx-feed-time {
    margin-left: auto;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.62rem;
    color: var(--txt-muted);
    opacity: 0.7;
    white-space: nowrap;
}

/* Telegram toast */
.hx-toast {
    position: absolute;
    right: 1rem;
    top: 3.4rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 0.85rem;
    border-radius: 0.6rem;
    background: rgba(13, 20, 32, 0.95);
    border: 1px solid rgba(52, 211, 153, 0.5);
    color: #34d399;
    font-size: 0.74rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(-6px) scale(0.96);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    z-index: 3;
}

.hx-toast.shown {
    opacity: 1;
    transform: translateY(0) scale(1);
}

@media (max-width: 980px) {
    .hx-books-grid {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   ECOSYSTEM (product cards with cursor spotlight + tilt)
   -------------------------------------------------------------------------- */

.hx-eco {
    background: var(--bg-1);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.hx-eco-head {
    margin-bottom: 2.6rem;
}

.hx-eco-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
}

.hx-card {
    --mx: 50%;
    --my: 50%;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.7rem 1.6rem 1.5rem;
    border-radius: 0.9rem;
    border: 1px solid var(--line);
    background: var(--bg-card);
    text-decoration: none;
    overflow: hidden;
    transition: border-color 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.35s ease;
    will-change: transform;
}

.hx-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(420px circle at var(--mx) var(--my),
        rgba(34, 211, 238, 0.10), transparent 65%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

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

.hx-card:hover {
    border-color: rgba(34, 211, 238, 0.45);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.hx-card-top {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1rem;
}

.hx-card-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-2);
    border: 1px solid var(--line-strong);
    overflow: hidden;
    flex: 0 0 auto;
}

.hx-card-icon img,
.hx-card-icon svg {
    width: 1.9rem;
    height: 1.9rem;
    object-fit: contain;
}

.hx-card-icon i {
    color: var(--cyan);
    font-size: 1.2rem;
}

.hx-card h3 {
    font-size: 1.15rem;
    margin: 0;
}

.hx-card-badge {
    margin-left: auto;
    font-family: var(--font-display);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.25rem 0.65rem;
    border-radius: 2rem;
    flex: 0 0 auto;
}

.hx-card-badge.free {
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.45);
    background: rgba(52, 211, 153, 0.08);
}

.hx-card-badge.hot {
    color: var(--orange-hot);
    border: 1px solid rgba(249, 115, 22, 0.45);
    background: rgba(249, 115, 22, 0.08);
}

.hx-card p {
    color: var(--txt-muted);
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 0 0 1.3rem;
    flex: 1;
}

.hx-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--cyan);
    transition: gap 0.25s ease;
}

.hx-card:hover .hx-card-link {
    gap: 0.8rem;
}

@media (max-width: 760px) {
    .hx-eco-grid {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   STORY — From the shop floor
   -------------------------------------------------------------------------- */

.hx-story-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}

.hx-story-text p {
    color: var(--txt-muted);
    line-height: 1.75;
    font-size: 1rem;
    margin-bottom: 1.4rem;
}

.hx-story-text p strong {
    color: var(--txt);
    font-weight: 600;
}

.hx-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.hx-timeline::before {
    content: '';
    position: absolute;
    left: 1.05rem;
    top: 0.8rem;
    bottom: 0.8rem;
    width: 1px;
    background: linear-gradient(180deg, var(--cyan), var(--orange));
    opacity: 0.45;
}

.hx-timeline li {
    position: relative;
    padding: 0 0 1.8rem 3.1rem;
}

.hx-timeline li:last-child {
    padding-bottom: 0;
}

.hx-tl-marker {
    position: absolute;
    left: 0;
    top: 0.1rem;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-2);
    border: 1px solid var(--line-strong);
    color: var(--cyan);
    font-size: 0.8rem;
    z-index: 1;
}

.hx-timeline h4 {
    font-size: 1rem;
    margin: 0 0 0.25rem;
}

.hx-timeline p {
    color: var(--txt-muted);
    font-size: 0.86rem;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 900px) {
    .hx-story-grid {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   PILLARS — consolidated services
   -------------------------------------------------------------------------- */

.hx-pillars {
    background: var(--bg-1);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.hx-pillars-head {
    margin-bottom: 2.6rem;
}

.hx-pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
}

.hx-pillar {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.6rem 1.5rem;
    border-radius: 0.9rem;
    border: 1px solid var(--line);
    background: var(--bg-card);
    text-decoration: none;
    overflow: hidden;
    transition: border-color 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.35s ease;
    --mx: 50%;
    --my: 50%;
}

.hx-pillar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(380px circle at var(--mx) var(--my),
        rgba(249, 115, 22, 0.08), transparent 65%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.hx-pillar:hover::before { opacity: 1; }

.hx-pillar:hover {
    border-color: rgba(249, 115, 22, 0.4);
    transform: translateY(-4px);
}

.hx-pillar-icon {
    width: 2.7rem;
    height: 2.7rem;
    border-radius: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-2);
    border: 1px solid var(--line-strong);
    color: var(--orange-hot);
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.hx-pillar h3 {
    font-size: 1.05rem;
    margin: 0 0 0.45rem;
}

.hx-pillar p {
    color: var(--txt-muted);
    font-size: 0.84rem;
    line-height: 1.55;
    margin: 0 0 1rem;
    flex: 1;
}

.hx-pillar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.hx-tag {
    font-family: var(--font-display);
    font-size: 0.64rem;
    letter-spacing: 0.06em;
    color: var(--txt-muted);
    border: 1px solid var(--line);
    border-radius: 2rem;
    padding: 0.22rem 0.6rem;
    white-space: nowrap;
}

@media (max-width: 980px) {
    .hx-pillars-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

/* --------------------------------------------------------------------------
   FINAL CTA
   -------------------------------------------------------------------------- */

.hx-final {
    position: relative;
    text-align: center;
    padding: clamp(5rem, 12vh, 8rem) 0;
    background:
        radial-gradient(ellipse 60% 70% at 50% 110%, rgba(249, 115, 22, 0.12), transparent 70%),
        radial-gradient(ellipse 55% 55% at 50% -10%, rgba(34, 211, 238, 0.07), transparent 65%),
        var(--bg-0);
    overflow: hidden;
}

.hx-final h2 {
    font-size: clamp(1.9rem, 4.5vw, 3.2rem);
    line-height: 1.12;
    max-width: 46rem;
    margin: 0 auto 0.8rem;
    text-wrap: balance;
}

.hx-final .hx-final-sub {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2.4vw, 1.7rem);
    color: var(--orange-hot);
    font-weight: 600;
    margin-bottom: 2.2rem;
}

/* --------------------------------------------------------------------------
   Footer overrides
   -------------------------------------------------------------------------- */

body.home-dark footer {
    background-color: var(--bg-1);
    border-top: 1px solid var(--line);
    color: var(--txt-muted);
}

body.home-dark .footer-logo {
    color: var(--txt);
    font-family: var(--font-display);
}

body.home-dark .footer-links a {
    color: var(--txt-muted);
}

body.home-dark .footer-links a:hover {
    color: var(--cyan);
}

body.home-dark .social-links a {
    background-color: var(--bg-2);
    border: 1px solid var(--line);
}

body.home-dark .social-links a img {
    filter: invert(70%) sepia(8%) saturate(580%) hue-rotate(178deg) brightness(95%);
    transition: filter 0.25s ease;
}

body.home-dark .social-links a:hover {
    background-color: var(--cyan-dim);
    border-color: var(--cyan);
    transform: translateY(-3px);
}

body.home-dark .copyright {
    color: var(--txt-muted);
}
