:root {
    --pw-bg: #030711;
    --pw-bg-soft: #07101f;
    --pw-panel: rgba(8, 16, 30, 0.76);
    --pw-panel-strong: rgba(9, 18, 34, 0.94);
    --pw-line: rgba(164, 196, 255, 0.13);
    --pw-line-strong: rgba(169, 205, 255, 0.25);
    --pw-text: #f7faff;
    --pw-muted: #8f9db3;
    --pw-blue: #3ea6ff;
    --pw-cyan: #65e7ff;
    --pw-violet: #8b72ff;
    --pw-radius-xl: 34px;
    --pw-radius-lg: 24px;
    --pw-radius-md: 18px;
    --pw-shadow: 0 32px 100px rgba(0, 0, 0, 0.42);
}

body.piiwii-homepage-active,
body.piiwii-homepage-active #page-container,
body.piiwii-homepage-active #main-content,
body.piiwii-homepage-active .et-main-area {
    background: var(--pw-bg) !important;
}

body.piiwii-homepage-active #main-content .container::before {
    display: none !important;
}

.piiwii-minimal,
.piiwii-portal,
.piiwii-minimal *,
.piiwii-portal * {
    box-sizing: border-box;
}

.piiwii-minimal svg,
.piiwii-portal svg {
    width: 1em;
    height: 1em;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.piiwii-minimal a,
.piiwii-portal a {
    text-decoration: none !important;
}

/* --------------------------------------------------------------------------
   Accueil minimal
   -------------------------------------------------------------------------- */

.piiwii-minimal {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: max(720px, calc(100svh - 70px));
    color: var(--pw-text);
    background:
        radial-gradient(circle at 50% 44%, rgba(21, 61, 115, 0.24), transparent 34%),
        linear-gradient(180deg, #050a14 0%, #030711 56%, #02050c 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.piiwii-minimal__ambient {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.piiwii-minimal__halo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(780px, 86vw);
    height: min(780px, 86vw);
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(69, 150, 255, 0.13) 0%, rgba(55, 104, 190, 0.05) 42%, transparent 69%);
    filter: blur(4px);
    transform: translate(-50%, -53%);
}

.piiwii-minimal__grid {
    position: absolute;
    inset: 0;
    opacity: 0.27;
    background-image:
        linear-gradient(rgba(118, 159, 218, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(118, 159, 218, 0.055) 1px, transparent 1px);
    background-size: 68px 68px;
    -webkit-mask-image: radial-gradient(circle at center, #000 0%, transparent 72%);
    mask-image: radial-gradient(circle at center, #000 0%, transparent 72%);
}

.piiwii-minimal__line {
    position: absolute;
    top: 0;
    left: 50%;
    width: min(720px, 74vw);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(61, 173, 255, 0.82), rgba(139, 114, 255, 0.75), transparent);
    box-shadow: 0 0 28px rgba(79, 175, 255, 0.5);
    transform: translateX(-50%);
}

.piiwii-minimal__stage {
    display: grid;
    place-items: center;
    min-height: inherit;
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
    padding: 76px 0 96px;
}

.piiwii-minimal__panel {
    position: relative;
    width: min(900px, 100%);
    padding: clamp(54px, 7vw, 88px) clamp(28px, 7vw, 82px) clamp(46px, 6vw, 72px);
    border: 1px solid var(--pw-line);
    border-radius: var(--pw-radius-xl);
    background:
        linear-gradient(145deg, rgba(12, 23, 43, 0.78), rgba(5, 11, 22, 0.74)),
        rgba(7, 13, 25, 0.84);
    box-shadow: var(--pw-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.035);
    text-align: center;
    backdrop-filter: blur(22px);
}

.piiwii-minimal__panel::before {
    content: "";
    position: absolute;
    inset: -1px;
    z-index: -1;
    border-radius: inherit;
    background: linear-gradient(115deg, rgba(84, 192, 255, 0.34), transparent 22%, transparent 76%, rgba(137, 112, 255, 0.22));
    opacity: 0.48;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    padding: 1px;
}

.piiwii-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 48px;
}

.piiwii-brand__logo {
    display: block;
    width: auto;
    max-width: min(220px, 56vw);
    max-height: 72px;
    object-fit: contain;
}

.piiwii-brand__mark {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(107, 208, 255, 0.34);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(71, 157, 255, 0.16), rgba(129, 103, 255, 0.12));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 32px rgba(49, 145, 255, 0.11);
    color: #eafbff;
    font-size: 21px;
    font-weight: 900;
}

.piiwii-brand__word {
    color: #f5f9ff;
    font-size: 25px;
    font-weight: 850;
    letter-spacing: -0.04em;
}

.piiwii-minimal__eyebrow,
.piiwii-portal__eyebrow,
.piiwii-portal__section-title > p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 30px 0 0;
    color: #8bbcf0;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.19em;
    text-transform: uppercase;
}

.piiwii-minimal__eyebrow span {
    width: 20px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--pw-cyan));
    box-shadow: 0 0 12px rgba(101, 231, 255, 0.5);
}

.piiwii-minimal h1 {
    max-width: 820px;
    margin: 24px auto 24px;
    color: #f8fbff;
    font-size: clamp(48px, 7.2vw, 84px);
    font-weight: 840;
    letter-spacing: -0.065em;
    line-height: 0.98;
}

.piiwii-minimal h1 em {
    font-style: normal;
    background: linear-gradient(90deg, #f4f9ff 0%, #90ccff 48%, #a99bff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.piiwii-minimal__lead {
    max-width: 650px;
    margin: 0 auto;
    color: var(--pw-muted);
    font-size: clamp(16px, 2vw, 19px);
    line-height: 1.72;
}

.piiwii-minimal__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 36px;
}

.piiwii-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 22px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 790;
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.piiwii-cta svg {
    font-size: 18px;
}

.piiwii-cta--primary {
    border: 1px solid rgba(120, 211, 255, 0.32);
    background: linear-gradient(135deg, #1478d6 0%, #3163d4 52%, #6654d4 100%);
    box-shadow: 0 14px 40px rgba(35, 108, 219, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.17);
    color: #fff !important;
}

.piiwii-cta--ghost {
    border: 1px solid rgba(153, 184, 226, 0.15);
    background: rgba(255, 255, 255, 0.025);
    color: #c5d0df !important;
}

.piiwii-cta:hover,
.piiwii-cta:focus-visible {
    transform: translateY(-2px);
}

.piiwii-cta--primary:hover,
.piiwii-cta--primary:focus-visible {
    border-color: rgba(145, 224, 255, 0.55);
    box-shadow: 0 18px 52px rgba(35, 108, 219, 0.33), 0 0 26px rgba(92, 189, 255, 0.08);
}

.piiwii-cta--ghost:hover,
.piiwii-cta--ghost:focus-visible {
    border-color: rgba(148, 197, 255, 0.29);
    background: rgba(255, 255, 255, 0.045);
    color: #fff !important;
}

.piiwii-minimal__signature {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    margin-top: 40px;
    color: #5f6f85;
    font-size: 10px;
    font-weight: 760;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.piiwii-minimal__signature i {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #4d6582;
}

/* --------------------------------------------------------------------------
   Portail séparé
   -------------------------------------------------------------------------- */

.piiwii-portal {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 100vh;
    padding: 44px 0 100px;
    color: var(--pw-text);
    background:
        radial-gradient(circle at 18% 4%, rgba(28, 89, 158, 0.17), transparent 28%),
        radial-gradient(circle at 86% 20%, rgba(93, 68, 173, 0.12), transparent 26%),
        linear-gradient(180deg, #050a14 0%, #030711 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.piiwii-portal__ambient {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.piiwii-portal__grid {
    position: absolute;
    inset: 0;
    opacity: 0.22;
    background-image:
        linear-gradient(rgba(103, 145, 204, 0.047) 1px, transparent 1px),
        linear-gradient(90deg, rgba(103, 145, 204, 0.047) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 74%);
    mask-image: linear-gradient(to bottom, #000 0%, transparent 74%);
}

.piiwii-portal__glow {
    position: absolute;
    display: block;
    border-radius: 50%;
    filter: blur(12px);
}

.piiwii-portal__glow--one {
    top: 160px;
    left: -280px;
    width: 580px;
    height: 580px;
    background: rgba(20, 110, 210, 0.08);
}

.piiwii-portal__glow--two {
    top: 760px;
    right: -240px;
    width: 480px;
    height: 480px;
    background: rgba(116, 79, 219, 0.06);
}

.piiwii-portal__shell {
    position: relative;
    width: min(1240px, calc(100% - 42px));
    margin-inline: auto;
}

.piiwii-portal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    margin-bottom: 54px;
}

.piiwii-portal__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #8393a9 !important;
    font-size: 13px;
    font-weight: 720;
    transition: color 0.2s ease, transform 0.2s ease;
}

.piiwii-portal__back svg {
    font-size: 17px;
}

.piiwii-portal__back:hover,
.piiwii-portal__back:focus-visible {
    color: #dbe9f8 !important;
    transform: translateX(-2px);
}

.piiwii-brand--small {
    min-height: 40px;
}

.piiwii-brand--small .piiwii-brand__logo {
    max-width: 130px;
    max-height: 42px;
}

.piiwii-brand--small .piiwii-brand__mark {
    width: 37px;
    height: 37px;
    border-radius: 11px;
    font-size: 17px;
}

.piiwii-brand--small .piiwii-brand__word {
    font-size: 20px;
}

.piiwii-portal__intro {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
    align-items: end;
    gap: 70px;
    padding: 64px clamp(28px, 5vw, 62px);
    border: 1px solid var(--pw-line);
    border-radius: var(--pw-radius-xl);
    background: linear-gradient(140deg, rgba(10, 20, 38, 0.89), rgba(5, 11, 22, 0.75));
    box-shadow: var(--pw-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.035);
    backdrop-filter: blur(18px);
}

.piiwii-portal__eyebrow {
    justify-content: flex-start;
    margin: 0 0 18px;
}

.piiwii-portal__intro h1 {
    margin: 0;
    color: #f6f9ff;
    font-size: clamp(45px, 6vw, 72px);
    font-weight: 840;
    letter-spacing: -0.062em;
    line-height: 1;
}

.piiwii-portal__intro h1 span {
    color: #91b5d9;
    font-weight: 740;
}

.piiwii-portal__intro > div > p:last-child {
    max-width: 640px;
    margin: 23px 0 0;
    color: var(--pw-muted);
    font-size: 17px;
    line-height: 1.7;
}

.piiwii-portal__search {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 58px;
    padding: 8px 11px 8px 17px;
    border: 1px solid rgba(151, 189, 237, 0.15);
    border-radius: 16px;
    background: rgba(2, 8, 17, 0.56);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.028);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.piiwii-portal__search:focus-within {
    border-color: rgba(93, 191, 255, 0.42);
    background: rgba(3, 10, 22, 0.8);
    box-shadow: 0 0 0 4px rgba(51, 155, 255, 0.07), 0 12px 32px rgba(0, 0, 0, 0.2);
}

.piiwii-portal__search > svg {
    flex: 0 0 auto;
    color: #6b7d94;
    font-size: 21px;
}

.piiwii-portal__search input {
    flex: 1;
    min-width: 0;
    height: 40px;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #edf5ff !important;
    font: inherit;
    font-size: 15px !important;
}

.piiwii-portal__search input::placeholder {
    color: #66768a;
}

.piiwii-portal__search kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 31px;
    padding: 0 10px;
    border: 1px solid rgba(155, 185, 226, 0.12);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.025);
    color: #65768b;
    font-family: inherit;
    font-size: 10px;
    font-weight: 800;
}

.piiwii-portal__search-status {
    position: absolute;
    right: clamp(28px, 5vw, 62px);
    bottom: 34px;
    min-height: 18px;
    margin: 0;
    color: #6f8095;
    font-size: 11px;
}

.piiwii-portal__section {
    padding-top: 80px;
}

.piiwii-portal__section-title {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 25px;
}

.piiwii-portal__section-title > p {
    justify-content: flex-start;
    margin: 0 0 10px;
}

.piiwii-portal__section-title h2 {
    margin: 0;
    color: #f0f5fc;
    font-size: clamp(29px, 4vw, 42px);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.05;
}

.piiwii-access-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.piiwii-access-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 278px;
    padding: 25px;
    overflow: hidden;
    border: 1px solid var(--pw-line);
    border-radius: var(--pw-radius-lg);
    background: linear-gradient(155deg, rgba(11, 22, 41, 0.86), rgba(6, 13, 25, 0.72));
    color: #eef5ff !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease, box-shadow 0.24s ease;
}

.piiwii-access-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 25px;
    right: 25px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 207, 255, 0.65), rgba(137, 114, 255, 0.48), transparent);
    opacity: 0.7;
    transition: opacity 0.24s ease, left 0.24s ease, right 0.24s ease;
}

.piiwii-access-card:hover,
.piiwii-access-card:focus-visible {
    transform: translateY(-5px);
    border-color: rgba(133, 185, 246, 0.24);
    background: linear-gradient(155deg, rgba(14, 29, 53, 0.94), rgba(7, 15, 29, 0.84));
    box-shadow: 0 25px 54px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.piiwii-access-card:hover::before,
.piiwii-access-card:focus-visible::before {
    left: 16px;
    right: 16px;
    opacity: 1;
}

.piiwii-access-card__number {
    margin-left: auto;
    color: #52627a;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.piiwii-access-card__icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-top: 13px;
    border: 1px solid rgba(128, 181, 243, 0.16);
    border-radius: 15px;
    background: rgba(62, 135, 228, 0.07);
    color: #8ac8fa;
    font-size: 23px;
}

.piiwii-access-card strong {
    margin-top: 27px;
    color: #f2f7fd;
    font-size: 21px;
    font-weight: 790;
    letter-spacing: -0.025em;
}

.piiwii-access-card small {
    max-width: 240px;
    margin-top: 10px;
    color: #8290a3;
    font-size: 13px;
    line-height: 1.55;
}

.piiwii-access-card__arrow {
    position: absolute;
    right: 23px;
    bottom: 23px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(148, 189, 239, 0.12);
    border-radius: 11px;
    color: #71849b;
    font-size: 17px;
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.piiwii-access-card:hover .piiwii-access-card__arrow,
.piiwii-access-card:focus-visible .piiwii-access-card__arrow {
    border-color: rgba(122, 202, 255, 0.28);
    color: #a7dcff;
    transform: translateX(2px);
}

.piiwii-app-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.piiwii-app-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 220px;
    padding: 23px;
    border: 1px solid rgba(147, 180, 222, 0.11);
    border-radius: 21px;
    background: rgba(8, 17, 32, 0.67);
    color: #eef5ff !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.piiwii-app-card:hover,
.piiwii-app-card:focus-visible {
    transform: translateY(-4px);
    border-color: rgba(113, 183, 255, 0.23);
    background: rgba(10, 23, 43, 0.88);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.23), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.piiwii-app-card[hidden] {
    display: none !important;
}

.piiwii-app-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.piiwii-app-card__icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(116, 178, 241, 0.14);
    border-radius: 13px;
    background: rgba(50, 132, 221, 0.055);
    color: #83bff0;
    font-size: 20px;
}

.piiwii-app-card__tag {
    color: #5f7188;
    font-size: 9px;
    font-weight: 820;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.piiwii-app-card strong {
    margin-top: 25px;
    color: #f0f5fb;
    font-size: 20px;
    font-weight: 780;
    letter-spacing: -0.025em;
}

.piiwii-app-card small {
    max-width: 285px;
    margin-top: 9px;
    color: #7c8b9f;
    font-size: 13px;
    line-height: 1.58;
}

.piiwii-app-card__arrow {
    position: absolute;
    right: 22px;
    bottom: 21px;
    color: #52647b;
    font-size: 18px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.piiwii-app-card:hover .piiwii-app-card__arrow,
.piiwii-app-card:focus-visible .piiwii-app-card__arrow {
    color: #91cefa;
    transform: translateX(3px);
}

.piiwii-empty-search {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 50px 20px;
    border: 1px dashed rgba(145, 180, 225, 0.15);
    border-radius: 22px;
    color: #6e7f94;
    text-align: center;
}

.piiwii-empty-search[hidden] {
    display: none !important;
}

.piiwii-empty-search svg {
    margin-bottom: 8px;
    font-size: 28px;
}

.piiwii-empty-search strong {
    color: #a9b7c9;
    font-size: 16px;
}

.piiwii-empty-search span {
    font-size: 13px;
}

.piiwii-account-strip {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    margin-top: 80px;
    padding: 24px 26px;
    border: 1px solid var(--pw-line);
    border-radius: 22px;
    background: linear-gradient(120deg, rgba(10, 24, 44, 0.78), rgba(9, 16, 30, 0.62));
}

.piiwii-account-strip__icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(117, 190, 246, 0.18);
    border-radius: 14px;
    background: rgba(51, 139, 224, 0.07);
    color: #8bc9f7;
    font-size: 21px;
}

.piiwii-account-strip > div:nth-child(2) {
    display: grid;
    gap: 3px;
}

.piiwii-account-strip span {
    color: #667991;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.piiwii-account-strip strong {
    color: #e5edf7;
    font-size: 17px;
    font-weight: 760;
}

.piiwii-account-strip > a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #a7cff0 !important;
    font-size: 13px;
    font-weight: 760;
}

.piiwii-account-strip > a svg {
    font-size: 17px;
    transition: transform 0.2s ease;
}

.piiwii-account-strip > a:hover svg,
.piiwii-account-strip > a:focus-visible svg {
    transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   Apparition discrète
   -------------------------------------------------------------------------- */

.piiwii-reveal {
    opacity: 0;
    transform: translateY(13px);
    transition: opacity 0.65s ease var(--reveal-delay, 0ms), transform 0.65s ease var(--reveal-delay, 0ms);
}

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

@media (prefers-reduced-motion: reduce) {
    .piiwii-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .piiwii-cta,
    .piiwii-access-card,
    .piiwii-app-card,
    .piiwii-portal__back {
        transition: none;
    }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
    .piiwii-portal__intro {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 36px;
    }

    .piiwii-portal__search-status {
        position: static;
        margin: 8px 0 -18px;
    }

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

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

@media (max-width: 760px) {
    .piiwii-minimal {
        min-height: max(650px, calc(100svh - 58px));
    }

    .piiwii-minimal__stage {
        width: min(100% - 24px, 680px);
        padding: 44px 0 66px;
    }

    .piiwii-minimal__panel {
        padding: 50px 22px 42px;
        border-radius: 27px;
    }

    .piiwii-brand__logo {
        max-width: 175px;
        max-height: 58px;
    }

    .piiwii-minimal__eyebrow {
        margin-top: 26px;
        font-size: 9px;
        letter-spacing: 0.16em;
    }

    .piiwii-minimal h1 {
        margin: 21px auto 20px;
        font-size: clamp(42px, 13vw, 62px);
        letter-spacing: -0.06em;
    }

    .piiwii-minimal__lead {
        max-width: 500px;
        font-size: 15px;
        line-height: 1.65;
    }

    .piiwii-minimal__actions {
        flex-direction: column;
        margin-top: 30px;
    }

    .piiwii-cta {
        width: 100%;
        min-height: 52px;
    }

    .piiwii-minimal__signature {
        gap: 9px;
        margin-top: 31px;
        font-size: 8px;
        letter-spacing: 0.11em;
    }

    .piiwii-portal {
        padding: 28px 0 72px;
    }

    .piiwii-portal__shell {
        width: min(100% - 24px, 680px);
    }

    .piiwii-portal__header {
        margin-bottom: 30px;
    }

    .piiwii-brand--small .piiwii-brand__word {
        display: none;
    }

    .piiwii-portal__intro {
        gap: 29px;
        padding: 38px 21px 34px;
        border-radius: 27px;
    }

    .piiwii-portal__intro h1 {
        font-size: clamp(41px, 13vw, 58px);
    }

    .piiwii-portal__intro > div > p:last-child {
        margin-top: 18px;
        font-size: 15px;
        line-height: 1.62;
    }

    .piiwii-portal__search {
        min-height: 54px;
        padding-left: 14px;
    }

    .piiwii-portal__search kbd {
        display: none;
    }

    .piiwii-portal__section {
        padding-top: 58px;
    }

    .piiwii-portal__section-title {
        margin-bottom: 20px;
    }

    .piiwii-portal__section-title h2 {
        font-size: 31px;
    }

    .piiwii-access-grid,
    .piiwii-app-grid {
        grid-template-columns: 1fr;
    }

    .piiwii-access-card {
        min-height: 238px;
    }

    .piiwii-app-card {
        min-height: 198px;
    }

    .piiwii-account-strip {
        grid-template-columns: auto 1fr;
        padding: 21px;
    }

    .piiwii-account-strip > a {
        grid-column: 1 / -1;
        justify-content: center;
        min-height: 44px;
        margin-top: 4px;
        border: 1px solid rgba(135, 184, 238, 0.12);
        border-radius: 13px;
        background: rgba(255, 255, 255, 0.025);
    }
}

@media (max-width: 390px) {
    .piiwii-minimal__signature span:last-child,
    .piiwii-minimal__signature i:last-of-type {
        display: none;
    }

    .piiwii-portal__back {
        font-size: 0;
    }

    .piiwii-portal__back svg {
        font-size: 19px;
    }
}


/* --------------------------------------------------------------------------
   Accueil 2.2 — plus graphique, moins de texte
   -------------------------------------------------------------------------- */

.piiwii-future-home,
.piiwii-future-home * {
    box-sizing: border-box;
}

.piiwii-future-home {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: max(760px, calc(100svh - 70px));
    color: var(--pw-text);
    background:
        radial-gradient(circle at 15% 20%, rgba(43, 116, 219, 0.22), transparent 24%),
        radial-gradient(circle at 82% 15%, rgba(131, 94, 255, 0.18), transparent 22%),
        radial-gradient(circle at 50% 85%, rgba(10, 71, 145, 0.12), transparent 28%),
        linear-gradient(180deg, #040812 0%, #030711 58%, #02050b 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.piiwii-future-home svg {
    width: 1em;
    height: 1em;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.piiwii-future-home a {
    text-decoration: none !important;
}

.piiwii-future-home__ambient,
.piiwii-future-home__grid,
.piiwii-future-home__glow,
.piiwii-future-home__scan,
.piiwii-future-home__noise {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.piiwii-future-home__grid {
    opacity: 0.22;
    background-image:
        linear-gradient(rgba(111, 159, 222, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(111, 159, 222, 0.07) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(circle at center, #000 0%, #000 58%, transparent 100%);
}

.piiwii-future-home__glow {
    display: block;
    border-radius: 50%;
    filter: blur(24px);
}

.piiwii-future-home__glow--one {
    top: -180px;
    left: -160px;
    width: 560px;
    height: 560px;
    background: radial-gradient(circle, rgba(63, 142, 255, 0.34) 0%, rgba(63, 142, 255, 0) 68%);
    animation: piiwiiFloat 15s ease-in-out infinite;
}

.piiwii-future-home__glow--two {
    top: 20%;
    right: -180px;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(138, 114, 255, 0.28) 0%, rgba(138, 114, 255, 0) 72%);
    animation: piiwiiFloat 18s ease-in-out infinite reverse;
}

.piiwii-future-home__glow--three {
    bottom: -220px;
    left: 38%;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(101, 231, 255, 0.18) 0%, rgba(101, 231, 255, 0) 72%);
    animation: piiwiiFloat 21s ease-in-out infinite;
}

.piiwii-future-home__scan {
    background: linear-gradient(180deg, transparent 0%, rgba(116, 202, 255, 0.045) 48%, transparent 100%);
    background-size: 100% 180px;
    mix-blend-mode: screen;
    opacity: 0.85;
    animation: piiwiiScan 8s linear infinite;
}

.piiwii-future-home__noise {
    opacity: 0.045;
    background-image:
        radial-gradient(circle at 20% 20%, #fff 0 0.7px, transparent 0.8px),
        radial-gradient(circle at 80% 40%, #fff 0 0.7px, transparent 0.8px),
        radial-gradient(circle at 50% 70%, #fff 0 0.9px, transparent 1px),
        radial-gradient(circle at 15% 85%, #fff 0 0.8px, transparent 0.9px),
        radial-gradient(circle at 78% 88%, #fff 0 0.9px, transparent 1px);
    background-size: 230px 230px;
}

.piiwii-future-home__shell {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
    gap: clamp(30px, 4vw, 64px);
    align-items: center;
    width: min(1320px, calc(100% - 44px));
    min-height: inherit;
    margin: 0 auto;
    padding: clamp(50px, 7vw, 96px) 0;
}

.piiwii-future-home__copy {
    position: relative;
    z-index: 2;
}

.piiwii-future-home__kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    color: #94bee8;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.piiwii-future-home__kicker span {
    width: 24px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--pw-cyan));
    box-shadow: 0 0 16px rgba(101, 231, 255, 0.5);
}

.piiwii-future-home h1 {
    margin: 18px 0 14px;
    font-size: clamp(64px, 12vw, 136px);
    line-height: 0.9;
    letter-spacing: -0.08em;
    font-weight: 900;
    color: #f7fbff;
    text-shadow: 0 0 34px rgba(62, 166, 255, 0.12);
}

.piiwii-future-home__lead {
    max-width: 520px;
    margin: 0;
    color: #b2bed0;
    font-size: clamp(18px, 2.4vw, 22px);
    line-height: 1.5;
}

.piiwii-future-home__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.piiwii-future-home__chips span {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid rgba(137, 172, 221, 0.15);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    color: #d6e3f3;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.piiwii-future-home__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.piiwii-future-home__micro {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
    color: #60718b;
    font-size: 10px;
    font-weight: 760;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.piiwii-future-home__micro i {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #49627f;
}

.piiwii-future-home__visual {
    position: relative;
    z-index: 1;
}

.piiwii-future-home__frame {
    position: relative;
    min-height: 650px;
    border: 1px solid rgba(118, 162, 226, 0.16);
    border-radius: 34px;
    background:
        linear-gradient(145deg, rgba(12, 23, 44, 0.72), rgba(6, 12, 24, 0.78)),
        rgba(6, 12, 24, 0.88);
    box-shadow: 0 38px 110px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(16px);
    overflow: hidden;
    transform: translate3d(var(--pw-tilt-x, 0px), var(--pw-tilt-y, 0px), 0);
    transition: transform 180ms ease-out;
}

.piiwii-future-home__frame::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 50%, rgba(56, 125, 255, 0.08), transparent 26%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 24%, transparent 76%, rgba(255, 255, 255, 0.02));
    pointer-events: none;
}

.piiwii-future-home__frame::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.03);
    pointer-events: none;
}

.piiwii-future-home__frame-top {
    position: absolute;
    top: 18px;
    left: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 34px;
    padding: 0 14px;
    border: 1px solid rgba(133, 162, 209, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    color: #aec5df;
    font-size: 12px;
    backdrop-filter: blur(14px);
}

.piiwii-future-home__frame-top strong {
    margin-left: auto;
    color: #f6f9ff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.piiwii-future-home__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(151, 173, 201, 0.55);
}

.piiwii-future-home__core {
    position: absolute;
    inset: 50% auto auto 50%;
    width: min(390px, 62vw);
    height: min(390px, 62vw);
    transform: translate(-50%, -50%);
}

.piiwii-future-home__ring,
.piiwii-future-home__pulse,
.piiwii-future-home__center {
    position: absolute;
    inset: 0;
    border-radius: 50%;
}

.piiwii-future-home__ring {
    border: 1px solid rgba(138, 172, 232, 0.2);
}

.piiwii-future-home__ring--one {
    animation: piiwiiSpin 14s linear infinite;
}

.piiwii-future-home__ring--two {
    inset: 10%;
    border-color: rgba(107, 223, 255, 0.32);
    box-shadow: 0 0 38px rgba(69, 182, 255, 0.08);
    animation: piiwiiSpinReverse 11s linear infinite;
}

.piiwii-future-home__ring--three {
    inset: 23%;
    border-color: rgba(153, 133, 255, 0.34);
    animation: piiwiiSpin 9s linear infinite;
}

.piiwii-future-home__ring--one::before,
.piiwii-future-home__ring--two::before,
.piiwii-future-home__ring--three::before {
    content: "";
    position: absolute;
    top: -4px;
    left: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--pw-cyan);
    box-shadow: 0 0 16px rgba(101, 231, 255, 0.8);
    transform: translateX(-50%);
}

.piiwii-future-home__ring--three::before {
    background: #9f8dff;
    box-shadow: 0 0 16px rgba(159, 141, 255, 0.8);
}

.piiwii-future-home__pulse {
    inset: 18%;
    background: radial-gradient(circle, rgba(101, 231, 255, 0.16) 0%, rgba(59, 131, 246, 0.1) 28%, rgba(59, 131, 246, 0.02) 46%, transparent 72%);
    filter: blur(10px);
    animation: piiwiiPulse 3.8s ease-in-out infinite;
}

.piiwii-future-home__center {
    inset: 31%;
    display: grid;
    place-items: center;
    background: radial-gradient(circle, rgba(10, 23, 44, 0.98) 0%, rgba(7, 16, 30, 0.96) 65%, rgba(8, 16, 30, 0.2) 100%);
    border: 1px solid rgba(124, 166, 235, 0.24);
    box-shadow: 0 0 52px rgba(56, 125, 255, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.piiwii-future-home__center-logo {
    display: block;
    width: auto;
    max-width: 72%;
    max-height: 58%;
    object-fit: contain;
    filter: drop-shadow(0 0 18px rgba(101, 231, 255, 0.14));
}

.piiwii-future-home__center-mark {
    color: #f4f9ff;
    font-size: clamp(44px, 6vw, 68px);
    font-weight: 900;
    letter-spacing: -0.08em;
}

.piiwii-future-home__hud {
    position: absolute;
    min-width: 150px;
    padding: 14px 16px;
    border: 1px solid rgba(129, 166, 228, 0.14);
    border-radius: 18px;
    background: rgba(6, 13, 25, 0.68);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(16px);
    animation: piiwiiFloatCard 8s ease-in-out infinite;
}

.piiwii-future-home__hud small {
    display: block;
    color: #88a1bf;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.piiwii-future-home__hud strong {
    display: block;
    margin-top: 6px;
    color: #f8fbff;
    font-size: 16px;
    font-weight: 820;
}

.piiwii-future-home__hud--top-left {
    top: 112px;
    left: 30px;
}

.piiwii-future-home__hud--top-right {
    top: 130px;
    right: 26px;
    animation-delay: -2s;
}

.piiwii-future-home__hud--bottom-left {
    bottom: 116px;
    left: 28px;
    animation-delay: -3.2s;
}

.piiwii-future-home__hud--bottom-right {
    right: 30px;
    bottom: 96px;
    animation-delay: -1.2s;
}

.piiwii-future-home__dock {
    position: absolute;
    left: 50%;
    bottom: 22px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: min(88%, 460px);
    padding: 12px;
    border: 1px solid rgba(127, 166, 229, 0.16);
    border-radius: 22px;
    background: rgba(6, 13, 25, 0.7);
    backdrop-filter: blur(16px);
    transform: translateX(-50%);
}

.piiwii-future-home__dock span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: #d6e2f1;
    font-size: 12px;
    font-weight: 700;
}

@keyframes piiwiiSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes piiwiiSpinReverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

@keyframes piiwiiPulse {
    0%, 100% { transform: scale(0.94); opacity: 0.75; }
    50% { transform: scale(1.06); opacity: 1; }
}

@keyframes piiwiiFloat {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(24px, -18px, 0); }
}

@keyframes piiwiiFloatCard {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes piiwiiScan {
    from { transform: translateY(-180px); }
    to { transform: translateY(calc(100% + 180px)); }
}

@media (max-width: 1080px) {
    .piiwii-future-home__shell {
        grid-template-columns: 1fr;
        width: min(920px, calc(100% - 30px));
        gap: 28px;
        padding: 42px 0 64px;
    }

    .piiwii-future-home__copy {
        text-align: center;
    }

    .piiwii-future-home__chips,
    .piiwii-future-home__actions,
    .piiwii-future-home__micro {
        justify-content: center;
    }

    .piiwii-future-home__lead {
        margin-inline: auto;
    }

    .piiwii-future-home__frame {
        min-height: 580px;
    }
}

@media (max-width: 767px) {
    .piiwii-future-home {
        min-height: calc(100svh - 50px);
    }

    .piiwii-future-home__shell {
        width: min(100%, calc(100% - 22px));
        padding: 26px 0 40px;
    }

    .piiwii-future-home h1 {
        margin-top: 14px;
        font-size: clamp(58px, 22vw, 92px);
    }

    .piiwii-future-home__lead {
        font-size: 17px;
    }

    .piiwii-future-home__actions {
        flex-direction: column;
    }

    .piiwii-future-home__actions .piiwii-cta {
        width: 100%;
    }

    .piiwii-future-home__frame {
        min-height: 460px;
        border-radius: 28px;
    }

    .piiwii-future-home__frame-top {
        top: 14px;
        left: 14px;
        right: 14px;
        min-height: 30px;
        padding: 0 10px;
    }

    .piiwii-future-home__hud {
        min-width: 124px;
        padding: 12px 12px;
    }

    .piiwii-future-home__hud strong {
        font-size: 14px;
    }

    .piiwii-future-home__hud--top-left { top: 84px; left: 14px; }
    .piiwii-future-home__hud--top-right { top: 100px; right: 14px; }
    .piiwii-future-home__hud--bottom-left { bottom: 88px; left: 14px; }
    .piiwii-future-home__hud--bottom-right { right: 14px; bottom: 78px; }

    .piiwii-future-home__dock {
        width: calc(100% - 28px);
        bottom: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .piiwii-future-home__glow,
    .piiwii-future-home__scan,
    .piiwii-future-home__ring,
    .piiwii-future-home__pulse,
    .piiwii-future-home__hud {
        animation: none !important;
    }

    .piiwii-future-home__frame {
        transform: none !important;
    }
}


/* --------------------------------------------------------------------------
   Accueil 2.3 — sobre, animé, centré sur la connexion
   -------------------------------------------------------------------------- */

.piiwii-calm-home,
.piiwii-calm-home * {
    box-sizing: border-box;
}

.piiwii-calm-home {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: max(720px, calc(100svh - 70px));
    color: #f5f8ff;
    background:
        radial-gradient(circle at 16% 20%, rgba(38, 100, 190, 0.16), transparent 30%),
        radial-gradient(circle at 82% 76%, rgba(99, 72, 184, 0.11), transparent 27%),
        linear-gradient(135deg, #030711 0%, #06101e 52%, #030711 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.piiwii-calm-home svg {
    width: 1em;
    height: 1em;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.piiwii-calm-home a {
    text-decoration: none !important;
}

.piiwii-calm-home__ambient,
.piiwii-calm-home__mesh,
.piiwii-calm-home__beam,
.piiwii-calm-home__line,
.piiwii-calm-home__grain {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.piiwii-calm-home__mesh {
    opacity: 0.12;
    background-image:
        linear-gradient(rgba(112, 154, 211, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(112, 154, 211, 0.08) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.45) 48%, transparent 100%);
    animation: piiwiiMeshDrift 24s linear infinite;
}

.piiwii-calm-home__beam {
    display: block;
    width: 70vw;
    height: 180px;
    border-radius: 50%;
    filter: blur(42px);
    opacity: 0.22;
}

.piiwii-calm-home__beam--one {
    top: 10%;
    left: -26%;
    background: linear-gradient(90deg, transparent, rgba(45, 151, 255, 0.9), transparent);
    transform: rotate(-18deg);
    animation: piiwiiBeamOne 13s ease-in-out infinite;
}

.piiwii-calm-home__beam--two {
    top: 66%;
    left: 34%;
    background: linear-gradient(90deg, transparent, rgba(126, 91, 230, 0.72), transparent);
    transform: rotate(14deg);
    animation: piiwiiBeamTwo 16s ease-in-out infinite;
}

.piiwii-calm-home__line {
    width: 42%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(97, 218, 255, 0.62), transparent);
    box-shadow: 0 0 18px rgba(97, 218, 255, 0.24);
    opacity: 0.5;
}

.piiwii-calm-home__line--one {
    top: 28%;
    left: -42%;
    animation: piiwiiLineTravel 9s linear infinite;
}

.piiwii-calm-home__line--two {
    top: 72%;
    left: -55%;
    animation: piiwiiLineTravel 12s 2s linear infinite;
}

.piiwii-calm-home__grain {
    opacity: 0.035;
    background-image:
        radial-gradient(circle at 10% 20%, #fff 0 0.7px, transparent 0.8px),
        radial-gradient(circle at 70% 30%, #fff 0 0.7px, transparent 0.8px),
        radial-gradient(circle at 50% 80%, #fff 0 0.8px, transparent 0.9px),
        radial-gradient(circle at 90% 70%, #fff 0 0.7px, transparent 0.8px);
    background-size: 220px 220px;
}

.piiwii-calm-home__shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.72fr);
    gap: clamp(48px, 8vw, 120px);
    align-items: center;
    width: min(1180px, calc(100% - 42px));
    min-height: inherit;
    margin: 0 auto;
    padding: clamp(64px, 8vw, 110px) 0;
}

.piiwii-calm-home__intro {
    max-width: 710px;
}

.piiwii-calm-home__signal {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #9ab5d4;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.19em;
    text-transform: uppercase;
}

.piiwii-calm-home__signal i,
.piiwii-login-card__status i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #62ddff;
    box-shadow: 0 0 14px rgba(98, 221, 255, 0.72);
    animation: piiwiiStatusPulse 2.2s ease-in-out infinite;
}

.piiwii-calm-home h1 {
    margin: 22px 0 28px;
    color: #f7faff;
    font-size: clamp(58px, 7.8vw, 102px);
    font-weight: 880;
    letter-spacing: -0.068em;
    line-height: 0.96;
}

.piiwii-calm-home h1 em {
    font-style: normal;
    color: transparent;
    background: linear-gradient(90deg, #f7faff 0%, #9ad3ff 48%, #ad9eff 100%);
    background-clip: text;
    -webkit-background-clip: text;
}

.piiwii-calm-home__discover {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 18px;
    border: 1px solid rgba(139, 181, 235, 0.16);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
    color: #cbd9ea !important;
    font-size: 13px;
    font-weight: 760;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.piiwii-calm-home__discover:hover,
.piiwii-calm-home__discover:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(114, 213, 255, 0.32);
    background: rgba(255, 255, 255, 0.05);
    color: #fff !important;
}

.piiwii-login-card {
    position: relative;
    overflow: hidden;
    padding: clamp(28px, 4vw, 42px);
    border: 1px solid rgba(135, 171, 224, 0.16);
    border-radius: 28px;
    background:
        linear-gradient(145deg, rgba(10, 20, 37, 0.84), rgba(5, 11, 22, 0.82)),
        rgba(7, 14, 28, 0.9);
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
}

.piiwii-login-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    padding: 1px;
    border-radius: inherit;
    background: linear-gradient(130deg, rgba(85, 202, 255, 0.42), transparent 24%, transparent 72%, rgba(148, 114, 255, 0.3));
    opacity: 0.45;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.piiwii-login-card__glow {
    position: absolute;
    top: -140px;
    right: -120px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(61, 151, 255, 0.18), transparent 68%);
    filter: blur(10px);
    animation: piiwiiCardGlow 8s ease-in-out infinite;
}

.piiwii-login-card__head,
.piiwii-login-card__connected {
    position: relative;
    z-index: 1;
}

.piiwii-login-card__status {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    color: #8fa7c4;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.piiwii-login-card h2 {
    margin: 12px 0 26px;
    color: #f8fbff;
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 840;
    letter-spacing: -0.045em;
}

#piiwii-home-login {
    position: relative;
    z-index: 1;
    margin: 0;
}

#piiwii-home-login p {
    margin: 0 0 14px;
}

#piiwii-home-login label {
    display: block;
    margin: 0 0 7px;
    color: #98a9bf;
    font-size: 11px;
    font-weight: 760;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

#piiwii-home-login input[type="text"],
#piiwii-home-login input[type="password"] {
    width: 100%;
    min-height: 52px;
    padding: 0 15px;
    border: 1px solid rgba(140, 174, 221, 0.14);
    border-radius: 14px;
    outline: none;
    background: rgba(255, 255, 255, 0.035);
    color: #fff;
    font: inherit;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

#piiwii-home-login input[type="text"]:focus,
#piiwii-home-login input[type="password"]:focus {
    border-color: rgba(95, 204, 255, 0.42);
    background: rgba(255, 255, 255, 0.055);
    box-shadow: 0 0 0 4px rgba(51, 155, 255, 0.07);
}

#piiwii-home-login .login-remember {
    margin: 4px 0 18px;
}

#piiwii-home-login .login-remember label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    color: #8393a9;
    font-size: 12px;
    font-weight: 650;
    letter-spacing: 0;
    text-transform: none;
}

#piiwii-home-login input[type="checkbox"] {
    accent-color: #3ea6ff;
}

#piiwii-home-login .login-submit {
    margin-bottom: 0;
}

#piiwii-home-login input[type="submit"],
.piiwii-login-card__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 52px;
    padding: 0 18px;
    border: 1px solid rgba(122, 211, 255, 0.28);
    border-radius: 14px;
    background: linear-gradient(135deg, #1674d2 0%, #3b62d5 54%, #6552cb 100%);
    color: #fff !important;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 14px 34px rgba(41, 99, 206, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.16);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

#piiwii-home-login input[type="submit"]:hover,
#piiwii-home-login input[type="submit"]:focus-visible,
.piiwii-login-card__submit:hover,
.piiwii-login-card__submit:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(145, 225, 255, 0.48);
    box-shadow: 0 18px 44px rgba(41, 99, 206, 0.33);
}

.piiwii-login-card__links {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 18px;
}

.piiwii-login-card__links a,
.piiwii-login-card__alt {
    color: #8293aa !important;
    font-size: 12px;
    font-weight: 650;
    transition: color 0.2s ease;
}

.piiwii-login-card__links a:hover,
.piiwii-login-card__links a:focus-visible,
.piiwii-login-card__alt:hover,
.piiwii-login-card__alt:focus-visible {
    color: #c8e7ff !important;
}

.piiwii-login-card__alt {
    position: relative;
    z-index: 1;
    display: block;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(133, 164, 207, 0.1);
    text-align: center;
}

.piiwii-login-card__connected {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.piiwii-login-card__avatar,
.piiwii-login-card__avatar-fallback {
    display: grid;
    place-items: center;
    width: 94px;
    height: 94px;
    margin-bottom: 20px;
    border: 1px solid rgba(110, 202, 255, 0.28);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 36px rgba(63, 164, 255, 0.12);
    object-fit: cover;
}

.piiwii-login-card__avatar-fallback {
    color: #b9ddff;
    font-size: 34px;
}

.piiwii-login-card__connected h2 {
    margin-bottom: 28px;
}

@keyframes piiwiiMeshDrift {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(72px, 72px, 0); }
}

@keyframes piiwiiBeamOne {
    0%, 100% { transform: translate3d(-8%, 0, 0) rotate(-18deg); opacity: 0.16; }
    50% { transform: translate3d(22%, 20px, 0) rotate(-18deg); opacity: 0.28; }
}

@keyframes piiwiiBeamTwo {
    0%, 100% { transform: translate3d(8%, 0, 0) rotate(14deg); opacity: 0.13; }
    50% { transform: translate3d(-18%, -18px, 0) rotate(14deg); opacity: 0.23; }
}

@keyframes piiwiiLineTravel {
    from { transform: translateX(0); }
    to { transform: translateX(360%); }
}

@keyframes piiwiiStatusPulse {
    0%, 100% { opacity: 0.55; transform: scale(0.88); }
    50% { opacity: 1; transform: scale(1.08); }
}

@keyframes piiwiiCardGlow {
    0%, 100% { transform: translate3d(0, 0, 0); opacity: 0.7; }
    50% { transform: translate3d(-22px, 18px, 0); opacity: 1; }
}

@media (max-width: 900px) {
    .piiwii-calm-home__shell {
        grid-template-columns: 1fr;
        width: min(720px, calc(100% - 28px));
        gap: 40px;
        padding: 52px 0 66px;
    }

    .piiwii-calm-home__intro {
        text-align: center;
        margin-inline: auto;
    }

    .piiwii-login-card {
        width: min(460px, 100%);
        margin-inline: auto;
    }
}

@media (max-width: 600px) {
    .piiwii-calm-home {
        min-height: calc(100svh - 50px);
    }

    .piiwii-calm-home__shell {
        width: min(100%, calc(100% - 22px));
        gap: 30px;
        padding: 32px 0 46px;
    }

    .piiwii-calm-home h1 {
        margin: 17px 0 22px;
        font-size: clamp(52px, 16vw, 74px);
    }

    .piiwii-login-card {
        padding: 26px 22px;
        border-radius: 24px;
    }

    .piiwii-login-card__links {
        flex-direction: column;
        align-items: center;
        gap: 9px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .piiwii-calm-home__mesh,
    .piiwii-calm-home__beam,
    .piiwii-calm-home__line,
    .piiwii-calm-home__signal i,
    .piiwii-login-card__status i,
    .piiwii-login-card__glow {
        animation: none !important;
    }
}
