/*
Theme Name: HM Landing
Description: Publiczna, statyczna wizytówka Hurt Management.
Version: 1.1.0
Text Domain: hm-landing
*/

/* Self-hosted subsets: Inter v20 and Rajdhani v17 from Google Fonts.
   Copyright notices and SIL OFL 1.1: assets/fonts/OFL.txt. */
@font-face {
    font-family: "HM Inter";
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url("assets/fonts/inter-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "HM Inter";
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url("assets/fonts/inter-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "HM Rajdhani";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("assets/fonts/rajdhani-500-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "HM Rajdhani";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("assets/fonts/rajdhani-500-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "HM Rajdhani";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("assets/fonts/rajdhani-700-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "HM Rajdhani";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("assets/fonts/rajdhani-700-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --hm-landing-bg: #020305;
    --hm-landing-surface: rgba(255, 255, 255, .035);
    --hm-landing-line: rgba(255, 255, 255, .12);
    --hm-landing-text: #fff;
    --hm-landing-muted: rgba(232, 232, 241, .73);
    --hm-landing-accent: #6f42c1;
    --hm-landing-accent-soft: rgba(111, 66, 193, .24);
    --hm-landing-radius: 1.25rem;
}

* { box-sizing: border-box; }
html { background: var(--hm-landing-bg); scroll-behavior: smooth; }

body.hm-landing {
    min-width: 20rem;
    margin: 0;
    overflow-x: hidden;
    background: var(--hm-landing-bg);
    color: var(--hm-landing-text);
    font-family: "HM Inter", Arial, sans-serif;
}

body.hm-landing :focus-visible { outline: 2px solid #d2b7ff; outline-offset: 4px; }

.hm-landing__skip-link {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 20;
    transform: translateY(-180%);
    padding: .75rem 1rem;
    border-radius: 999px;
    background: #fff;
    color: var(--hm-landing-bg);
    font-weight: 700;
    text-decoration: none;
    transition: transform .2s ease;
}

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

.hm-landing__ambient,
.hm-landing__grain { position: fixed; pointer-events: none; inset: 0; }

.hm-landing__ambient {
    z-index: 0;
    background: radial-gradient(circle at 74% 17%, rgba(111, 66, 193, .19), transparent 25rem), radial-gradient(circle at 15% 56%, rgba(76, 44, 133, .1), transparent 23rem);
}

.hm-landing__grain {
    z-index: 1;
    opacity: .16;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.34'/%3E%3C/svg%3E");
}

.hm-landing__container {
    position: relative;
    z-index: 2;
    width: min(100% - 2.5rem, 72rem);
    margin: 0 auto;
}

.hm-landing__nav {
    position: absolute;
    z-index: 5;
    top: 1rem;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(100% - 2rem, 72rem);
    min-height: 3.75rem;
    padding: .55rem .7rem .55rem 1rem;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 1rem;
    background: rgba(2, 3, 5, .58);
    box-shadow: 0 .9rem 2.6rem rgba(0, 0, 0, .22);
    transform: translateX(-50%);
    backdrop-filter: blur(1rem);
}

.hm-landing__brand,
.hm-landing__nav-links,
.hm-landing__nav-links a { display: flex; align-items: center; }

.hm-landing__brand {
    gap: .65rem;
    color: #fff;
    font-family: "HM Rajdhani", Arial, sans-serif;
    font-size: 1.05rem;
    letter-spacing: .07em;
    text-decoration: none;
    text-transform: uppercase;
}

.hm-landing__brand > span {
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: .55rem;
    background: linear-gradient(145deg, var(--hm-landing-accent), #311568);
    font-weight: 700;
}

.hm-landing__nav-links { gap: .25rem; }

.hm-landing__nav-links a {
    min-height: 2.3rem;
    padding: 0 .75rem;
    border-radius: .55rem;
    color: rgba(255, 255, 255, .82);
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}

.hm-landing__nav-links a:hover { background: var(--hm-landing-accent-soft); color: #fff; }

.hm-landing__hero {
    position: relative;
    display: grid;
    min-height: max(43rem, 100svh);
    place-items: center;
    isolation: isolate;
    overflow: clip;
}

.hm-landing__hero-media,
.hm-landing__hero-media::after,
.hm-landing__hero-glow { position: absolute; inset: 0; }
.hm-landing__hero-media { z-index: -3; }

.hm-landing__hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: .8;
}

.hm-landing__hero-media::after {
    content: "";
    background: linear-gradient(90deg, #020305 0%, rgba(2, 3, 5, .96) 25%, rgba(2, 3, 5, .54) 61%, rgba(2, 3, 5, .22) 100%), linear-gradient(0deg, #020305 0%, transparent 34%);
}

.hm-landing__hero-glow {
    z-index: -2;
    background: radial-gradient(ellipse 42% 39% at 66% 38%, rgba(130, 79, 222, .25), transparent 72%);
    mix-blend-mode: screen;
}

.hm-landing__hero-content {
    position: relative;
    z-index: 2;
    width: min(100% - 2.5rem, 72rem);
    margin: 5.3rem auto 0;
}

.hm-landing__eyebrow {
    margin: 0 0 1rem;
    color: #d7c6ff;
    font-family: "HM Rajdhani", Arial, sans-serif;
    font-size: .88rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.hm-landing h1,
.hm-landing h2,
.hm-landing h3,
.hm-landing p { margin-top: 0; }
.hm-landing h1,
.hm-landing h2,
.hm-landing h3 { font-family: "HM Rajdhani", Arial, sans-serif; }

.hm-landing h1 {
    max-width: 44rem;
    margin-bottom: 1.35rem;
    font-size: clamp(3.25rem, 7.3vw, 6.55rem);
    font-weight: 700;
    letter-spacing: -.032em;
    line-height: .85;
    text-transform: uppercase;
}

.hm-landing h1 span { color: #a97cff; }

.hm-landing__lead {
    max-width: 38rem;
    margin-bottom: 1.9rem;
    color: rgba(255, 255, 255, .78);
    font-size: clamp(1rem, 1.6vw, 1.16rem);
    line-height: 1.7;
}

.hm-landing__button {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    min-height: 3.25rem;
    padding: .7rem 1.05rem;
    border: 1px solid rgba(209, 185, 255, .74);
    border-radius: .7rem;
    background: linear-gradient(135deg, var(--hm-landing-accent), #45208e);
    box-shadow: 0 .7rem 1.7rem rgba(51, 19, 106, .36);
    color: #fff;
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform .2s ease, background .2s ease;
}

.hm-landing__button:hover { background: #7d4cda; transform: translateY(-2px); }
.hm-landing__button span { font-size: 1.15rem; }

.hm-landing__section {
    position: relative;
    z-index: 2;
    padding: clamp(4.5rem, 9vw, 7.5rem) 0;
}

.hm-landing__section-intro { max-width: 52rem; margin-bottom: 2.25rem; }
.hm-landing__section-intro--center { margin-right: auto; margin-left: auto; text-align: center; }

.hm-landing h2 {
    margin-bottom: .9rem;
    font-size: clamp(2.4rem, 4.5vw, 4.1rem);
    font-weight: 700;
    letter-spacing: -.025em;
    line-height: .94;
    text-transform: uppercase;
}

.hm-landing__section-intro > p:not(.hm-landing__eyebrow),
.hm-landing__card p,
.hm-landing__footer > .hm-landing__container > p:not(.hm-landing__eyebrow):not(.hm-landing__copyright) { color: var(--hm-landing-muted); line-height: 1.7; }

.hm-landing__stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 1rem;
    border: 1px solid var(--hm-landing-line);
    border-radius: var(--hm-landing-radius);
    background: rgba(255, 255, 255, .025);
    overflow: hidden;
}

.hm-landing__stats > div { padding: 1.5rem; }
.hm-landing__stats > div + div { border-left: 1px solid var(--hm-landing-line); }
.hm-landing__stats strong,
.hm-landing__stats span { display: block; }

.hm-landing__stats strong {
    margin-bottom: .3rem;
    color: #fff;
    font-family: "HM Rajdhani", Arial, sans-serif;
    font-size: clamp(1.7rem, 3vw, 2.65rem);
    letter-spacing: .01em;
    line-height: 1;
}

.hm-landing__stats span { color: var(--hm-landing-muted); font-size: .78rem; line-height: 1.45; }
.hm-landing__cards { display: grid; gap: 1rem; }
.hm-landing__cards--model { grid-template-columns: 1.35fr 1fr 1fr; }
.hm-landing__cards--terms { grid-template-columns: repeat(3, 1fr); }

.hm-landing__card {
    min-height: 15.5rem;
    padding: 1.35rem;
    border: 1px solid var(--hm-landing-line);
    border-radius: var(--hm-landing-radius);
    background: linear-gradient(145deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .016));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .055);
}

.hm-landing__card--wide { background: linear-gradient(145deg, rgba(111, 66, 193, .31), rgba(255, 255, 255, .03)); }
.hm-landing__card-index { margin-bottom: 2rem; color: #bc9aff; font-family: "HM Rajdhani", Arial, sans-serif; font-size: 1.1rem; font-weight: 700; letter-spacing: .1em; }
.hm-landing__card h3 { margin-bottom: .6rem; font-size: 1.65rem; letter-spacing: .01em; line-height: 1; }
.hm-landing__card p:last-child { margin-bottom: 0; font-size: .92rem; }

.hm-landing__ecosystem { background: linear-gradient(180deg, transparent, rgba(111, 66, 193, .1), transparent); }

.hm-landing__orbit {
    position: relative;
    min-height: 35rem;
    border: 1px solid var(--hm-landing-line);
    border-radius: 1.75rem;
    background: radial-gradient(circle at center, rgba(111, 66, 193, .22), transparent 33%), rgba(255, 255, 255, .022);
    overflow: hidden;
}

.hm-landing__orbit-ring,
.hm-landing__orbit-core,
.hm-landing__orbit-node { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.hm-landing__orbit-ring { border-radius: 50%; pointer-events: none; }
.hm-landing__orbit-ring--inner { width: 21rem; height: 21rem; border: 1px dashed rgba(255, 255, 255, .3); }
.hm-landing__orbit-ring--outer { width: 32rem; height: 32rem; border: 1px dashed rgba(111, 66, 193, .66); }

.hm-landing__orbit-core {
    display: grid;
    width: 8.6rem;
    height: 8.6rem;
    place-content: center;
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: 1.5rem;
    background: linear-gradient(145deg, #8251dd, #3e1d81);
    box-shadow: 0 0 3.6rem rgba(111, 66, 193, .7);
    text-align: center;
}

.hm-landing__orbit-core strong { font-family: "HM Rajdhani", Arial, sans-serif; font-size: 2.55rem; line-height: .8; }
.hm-landing__orbit-core span { margin-top: .45rem; font-size: .66rem; font-weight: 700; letter-spacing: .12em; }

.hm-landing__orbit-node {
    padding: .45rem .7rem;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    background: rgba(2, 3, 5, .78);
    box-shadow: 0 .5rem 1.4rem rgba(0, 0, 0, .33);
    color: rgba(255, 255, 255, .91);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .055em;
}

.hm-landing__orbit-node--one { transform: translate(-50%, -50%) translateY(-10.5rem); }
.hm-landing__orbit-node--two { transform: translate(-50%, -50%) translate(8.2rem, -6rem); }
.hm-landing__orbit-node--three { transform: translate(-50%, -50%) translate(8.2rem, 6rem); }
.hm-landing__orbit-node--four { transform: translate(-50%, -50%) translateY(-16rem); border-color: rgba(183, 142, 255, .68); }
.hm-landing__orbit-node--five { transform: translate(-50%, -50%) translate(14.5rem, -7.5rem); border-color: rgba(183, 142, 255, .68); }
.hm-landing__orbit-node--six { transform: translate(-50%, -50%) translate(14.5rem, 7.5rem); border-color: rgba(183, 142, 255, .68); }
.hm-landing__orbit-node--seven { transform: translate(-50%, -50%) translateY(16rem); border-color: rgba(183, 142, 255, .68); }

.hm-landing__footer {
    position: relative;
    z-index: 2;
    padding: clamp(4.5rem, 9vw, 7rem) 0 2rem;
    background: radial-gradient(circle at 50% 100%, #26114f 0, var(--hm-landing-bg) 54%);
    text-align: center;
}

.hm-landing__footer h2 { max-width: 47rem; margin-right: auto; margin-left: auto; }
.hm-landing__footer > .hm-landing__container > p:not(.hm-landing__eyebrow) { max-width: 36rem; margin-right: auto; margin-left: auto; }
.hm-landing__button--quiet { margin-top: .8rem; background: rgba(255, 255, 255, .04); }
.hm-landing__footer .hm-landing__copyright { margin-top: 4rem; }
.hm-landing__copyright { color: rgba(255, 255, 255, .48); font-size: .78rem; }

@media (max-width: 54rem) {
    .hm-landing__stats,
    .hm-landing__cards--model,
    .hm-landing__cards--terms { grid-template-columns: repeat(2, 1fr); }
    .hm-landing__stats > div:nth-child(3) { border-left: 0; border-top: 1px solid var(--hm-landing-line); }
    .hm-landing__stats > div:nth-child(4) { border-top: 1px solid var(--hm-landing-line); }
    .hm-landing__card--wide { grid-column: span 2; }
}

@media (max-width: 42rem) {
    .hm-landing__nav { align-items: flex-start; padding: .65rem; }
    .hm-landing__brand strong { display: none; }
    .hm-landing__nav-links { gap: 0; max-width: calc(100vw - 5rem); overflow-x: auto; }
    .hm-landing__nav-links a { padding: 0 .5rem; font-size: .74rem; }
    .hm-landing__hero { min-height: 42rem; }
    .hm-landing__hero-media img { object-position: 62% center; }
    .hm-landing__hero-media::after { background: linear-gradient(90deg, rgba(2, 3, 5, .98), rgba(2, 3, 5, .67)), linear-gradient(0deg, #020305, transparent 42%); }
    .hm-landing h1 { font-size: clamp(3rem, 15vw, 4.7rem); }
    .hm-landing__orbit { min-height: 28rem; }
    .hm-landing__orbit-ring--inner { width: 15rem; height: 15rem; }
    .hm-landing__orbit-ring--outer { width: 23rem; height: 23rem; }
    .hm-landing__orbit-node--one { transform: translate(-50%, -50%) translateY(-7.5rem); }
    .hm-landing__orbit-node--two { transform: translate(-50%, -50%) translate(5.8rem, -4.2rem); }
    .hm-landing__orbit-node--three { transform: translate(-50%, -50%) translate(5.8rem, 4.2rem); }
    .hm-landing__orbit-node--four { transform: translate(-50%, -50%) translateY(-11.5rem); }
    .hm-landing__orbit-node--five { transform: translate(-50%, -50%) translate(9.4rem, -8rem); }
    .hm-landing__orbit-node--six { transform: translate(-50%, -50%) translate(9.4rem, 8rem); }
    .hm-landing__orbit-node--seven { transform: translate(-50%, -50%) translateY(11.5rem); }
}

@media (max-width: 31rem) {
    .hm-landing__container,
    .hm-landing__hero-content { width: min(100% - 1.5rem, 72rem); }
    .hm-landing__stats,
    .hm-landing__cards--model,
    .hm-landing__cards--terms { grid-template-columns: 1fr; }
    .hm-landing__stats > div + div { border-left: 0; border-top: 1px solid var(--hm-landing-line); }
    .hm-landing__card--wide { grid-column: auto; }
    .hm-landing__orbit { transform: scale(.82); transform-origin: center; width: 122%; margin-left: -11%; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hm-landing *, .hm-landing *::before, .hm-landing *::after { transition-duration: .01ms !important; }
}
