@font-face {
    font-family: "GardunyMain";
    src: url("main.ttf") format("truetype");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --brand: #625bff;
    --brand2: #7a73ff;
    --purple: #9a6dff;
    --pink: #ff5ca8;
    --cyan: #5dc8ff;
    --success: #56e39f;
    --warning: #ffc15b;

    --bg: #f4f6fb;
    --bg2: #eef1f7;
    --surface: rgba(255,255,255,.62);
    --surface2: rgba(255,255,255,.42);
    --solid: #fff;
    --soft: #f1f3f9;
    --text: #111527;
    --muted: #6f7890;
    --line: rgba(23,28,52,.09);
    --line-brand: rgba(98,91,255,.26);
    --shadow: 0 24px 70px rgba(30,35,66,.12);
    --shadow-strong: 0 34px 100px rgba(28,32,66,.18);
    --glass-blur: 18px;
}

html.dark {
    --bg: #050710;
    --bg2: #080b15;
    --surface: rgba(12,17,34,.58);
    --surface2: rgba(16,21,41,.42);
    --solid: #0b1020;
    --soft: #10172a;
    --text: #f7f9ff;
    --muted: #9aa6c0;
    --line: rgba(255,255,255,.08);
    --line-brand: rgba(122,115,255,.32);
    --shadow: 0 28px 82px rgba(0,0,0,.35);
    --shadow-strong: 0 42px 120px rgba(0,0,0,.52);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--text);
    background:
        radial-gradient(circle at 50% -10%, rgba(98,91,255,.13), transparent 34%),
        linear-gradient(180deg, var(--bg), var(--bg2));
    font-family: "GardunyMain", system-ui, sans-serif;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    transition: background .25s ease, color .25s ease;
}

button,
input,
a {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

img {
    display: block;
    max-width: 100%;
}

::selection {
    color: #fff;
    background: var(--brand);
}

.glass {
    border: 1px solid var(--line);
    background:
        linear-gradient(145deg, rgba(255,255,255,.035), transparent 50%),
        var(--surface);
    backdrop-filter: blur(var(--glass-blur)) saturate(145%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(145%);
}

.glass-soft {
    border: 1px solid var(--line);
    background: var(--surface2);
    backdrop-filter: blur(13px) saturate(135%);
    -webkit-backdrop-filter: blur(13px) saturate(135%);
}

.aurora {
    position: fixed;
    z-index: -3;
    pointer-events: none;
    width: 470px;
    height: 470px;
    border-radius: 999px;
    filter: blur(135px);
    opacity: .12;
    transform: translateZ(0);
}

.aurora-a {
    top: -170px;
    left: -120px;
    background: var(--brand);
}

.aurora-b {
    top: 27%;
    right: -210px;
    background: var(--pink);
    opacity: .09;
}

.aurora-c {
    left: 34%;
    bottom: -260px;
    background: var(--cyan);
    opacity: .055;
}

.grid-noise {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    opacity: .20;
    background-image:
        linear-gradient(rgba(122,115,255,.026) 1px, transparent 1px),
        linear-gradient(90deg, rgba(122,115,255,.026) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

.shell {
    width: min(1540px, calc(100% - 42px));
    margin-inline: auto;
}

.topbar {
    position: sticky;
    top: 10px;
    z-index: 50;
    min-height: 70px;
    margin-top: 10px;
    padding: 0 12px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 18px;
    border-radius: 20px;
    box-shadow: 0 10px 35px rgba(0,0,0,.05);
}

.brand {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--text);
    text-decoration: none;
}

.brand-mark {
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 14px;
    background: #050713;
    border: 1px solid rgba(122,115,255,.22);
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,.025),
        0 10px 30px rgba(98,91,255,.14);
}

.brand-mark img {
    width: 41px;
    height: 41px;
    object-fit: cover;
}

.brand-copy {
    display: flex;
    align-items: baseline;
    gap: 6px;
    letter-spacing: -.035em;
}

.brand-copy b {
    font-size: 19px;
    font-weight: 900;
}

.brand-copy span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
}

.server-online-pill {
    justify-self: center;
    min-height: 37px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 0 12px;
    border: 1px solid rgba(86,227,159,.14);
    border-radius: 999px;
    background: rgba(86,227,159,.045);
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.server-mini {
    display: grid;
    gap: 2px;
}

.server-mini i {
    display: block;
    width: 13px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, rgba(122,115,255,.8), rgba(255,92,168,.65));
}

.server-live-dot {
    position: relative;
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: var(--success);
    box-shadow: 0 0 0 4px rgba(86,227,159,.08), 0 0 15px rgba(86,227,159,.75);
}

.server-live-dot::after {
    content: "";
    position: absolute;
    inset: -4px;
    border: 1px solid rgba(86,227,159,.35);
    border-radius: inherit;
    animation: serverPulse 1.8s ease-out infinite;
}

@keyframes serverPulse {
    0% { transform: scale(.7); opacity: .7; }
    70%, 100% { transform: scale(1.9); opacity: 0; }
}

.top-actions {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-switch {
    display: flex;
    gap: 2px;
    padding: 3px;
    border-radius: 12px;
}

.lang-btn {
    min-width: 35px;
    height: 30px;
    padding: 0 8px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 10px;
    font-weight: 850;
    transition: .18s ease;
}

.lang-btn:hover {
    color: var(--text);
}

.lang-btn.active {
    color: #fff;
    background: linear-gradient(135deg, var(--brand), #8b5cf6);
    box-shadow: 0 7px 18px rgba(98,91,255,.24);
}

.icon-btn {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--text);
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease;
}

.icon-btn:hover {
    transform: translateY(-1px);
    border-color: var(--line-brand);
}

.icon-btn svg,
.search-box svg,
.card-arrow svg,
.demo-btn svg,
.slider-nav svg,
.modal-close svg,
.empty-state svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-btn svg {
    width: 17px;
    height: 17px;
}

html.dark .moon {
    display: none;
}

html:not(.dark) .sun {
    display: none;
}

.hero {
    position: relative;
    padding: 82px 0 42px;
    text-align: center;
}

.hero-orbit {
    position: absolute;
    left: 50%;
    top: 4px;
    width: 380px;
    height: 170px;
    transform: translateX(-50%);
    border: 1px solid rgba(122,115,255,.07);
    border-radius: 50%;
    mask-image: linear-gradient(to bottom, #000, transparent 68%);
    pointer-events: none;
}

.hero-badge {
    width: fit-content;
    min-height: 31px;
    margin: 0 auto 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 11px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 850;
}

.hero h1 {
    margin: 0;
    font-size: clamp(50px, 6.4vw, 88px);
    line-height: .94;
    letter-spacing: -.068em;
    font-weight: 950;
    background:
        linear-gradient(105deg, var(--text) 16%, var(--brand2) 58%, var(--purple) 73%, var(--pink) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero > p {
    max-width: 700px;
    margin: 18px auto 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.85;
}

.hero-tools {
    width: min(890px, 100%);
    margin: 28px auto 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.search-box {
    flex: 1;
    min-width: 0;
    height: 45px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 12px;
    border-radius: 14px;
    color: var(--muted);
    box-shadow: 0 10px 30px rgba(0,0,0,.035);
    transition: border-color .18s ease, box-shadow .18s ease;
}

.search-box:focus-within {
    border-color: var(--line-brand);
    box-shadow: 0 0 0 4px rgba(98,91,255,.07);
}

.search-box svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
}

.search-box input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
    font-size: 12px;
}

.search-box input::placeholder {
    color: var(--muted);
}

.search-box kbd {
    min-width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--soft);
    color: var(--muted);
    font-size: 9px;
}

.filter-pills {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    border-radius: 14px;
}

.filter-pill {
    height: 35px;
    padding: 0 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    white-space: nowrap;
    font-size: 10px;
    font-weight: 850;
    transition: .18s ease;
}

.filter-pill:hover {
    color: var(--text);
}

.filter-pill.active {
    color: #fff;
    background: linear-gradient(135deg, var(--brand), #8b5cf6 72%, var(--pink));
    box-shadow: 0 8px 22px rgba(98,91,255,.19);
}

.result-line {
    margin-top: 12px;
    display: flex;
    justify-content: center;
    gap: 5px;
    color: var(--muted);
    font-size: 10px;
}

.result-line b {
    color: var(--text);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    padding: 8px 0 62px;
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 23px;
    cursor: pointer;
    box-shadow: 0 1px 0 rgba(255,255,255,.02);
    transform: translateZ(0);
    content-visibility: auto;
    contain-intrinsic-size: 330px 420px;
    transition:
        transform .28s cubic-bezier(.2,.7,.2,1),
        border-color .24s ease,
        box-shadow .28s ease,
        background .24s ease;
}

.project-card:hover,
.project-card:focus-visible {
    transform: translateY(-6px);
    border-color: var(--line-brand);
    box-shadow: var(--shadow);
    outline: none;
}

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

.card-topline {
    position: absolute;
    z-index: 7;
    top: 0;
    left: 20%;
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--brand2), var(--pink), transparent);
    opacity: .65;
}

.card-visual {
    position: relative;
    aspect-ratio: 1.34 / 1;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(circle at 50% 42%, rgba(98,91,255,.15), transparent 45%),
        linear-gradient(145deg, rgba(255,255,255,.035), transparent 56%),
        rgba(6,9,19,.78);
}

.card-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.024) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.024) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(to bottom, #000, transparent 88%);
}

.logo-halo {
    position: absolute;
    z-index: 1;
    width: 46%;
    height: 46%;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand), var(--pink));
    filter: blur(52px);
    opacity: .14;
    transition: transform .32s ease, opacity .32s ease;
}

.project-card:hover .logo-halo {
    transform: scale(1.22);
    opacity: .22;
}

.logo-stage {
    position: relative;
    z-index: 2;
    width: 54%;
    height: 54%;
    display: grid;
    place-items: center;
    padding: 9px;
    transition: transform .32s cubic-bezier(.2,.7,.2,1);
}

.project-card:hover .logo-stage {
    transform: scale(1.055);
}

.logo-stage img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 16px 28px rgba(0,0,0,.32));
}

.card-server-status {
    position: absolute;
    z-index: 5;
    top: 11px;
    inset-inline-start: 11px;
    min-height: 35px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 9px 5px 7px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 12px;
    background: rgba(5,8,18,.58);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.server-rack-icon {
    width: 24px;
    height: 25px;
    display: grid;
    align-content: center;
    gap: 3px;
    padding: 4px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 7px;
    background: rgba(255,255,255,.035);
}

.rack-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 3px;
    border-radius: 3px;
    background: rgba(255,255,255,.16);
}

.rack-line i {
    width: 3px;
    height: 3px;
    border-radius: 99px;
    background: var(--success);
}

.rack-line em {
    width: 6px;
    height: 1px;
    background: rgba(255,255,255,.22);
}

.status-progress .rack-line i {
    background: var(--warning);
}

.status-live .rack-line:nth-child(2) i {
    animation: ledBlink 1.35s steps(1, end) infinite;
}

.status-live .rack-line:nth-child(3) i {
    animation: ledBlink 1.85s steps(1, end) .28s infinite;
}

.status-progress .rack-line:nth-child(2) i {
    animation: ledBlink 1.1s steps(1, end) infinite;
}

@keyframes ledBlink {
    0%, 72%, 100% { opacity: 1; box-shadow: 0 0 6px currentColor; }
    73%, 84% { opacity: .24; box-shadow: none; }
}

.status-copy {
    display: grid;
    gap: 1px;
    text-align: start;
}

.status-copy small {
    color: rgba(255,255,255,.47);
    font-size: 7px;
    font-weight: 750;
    line-height: 1;
}

.status-copy strong {
    color: #fff;
    font-size: 8px;
    font-weight: 850;
    line-height: 1.2;
}

.status-live .status-copy strong {
    color: #9df0c6;
}

.status-progress .status-copy strong {
    color: #ffd18a;
}

.card-number {
    position: absolute;
    z-index: 5;
    top: 11px;
    inset-inline-end: 11px;
    min-width: 31px;
    height: 25px;
    display: grid;
    place-items: center;
    padding: 0 7px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 999px;
    background: rgba(5,8,18,.55);
    color: rgba(255,255,255,.65);
    font-size: 8px;
    font-weight: 850;
    letter-spacing: .07em;
    backdrop-filter: blur(10px);
}

.card-body {
    padding: 16px;
}

.title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.title-row h2 {
    margin: 0;
    font-size: 16px;
    line-height: 1.2;
    letter-spacing: -.035em;
    font-weight: 900;
}

.title-row p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.55;
}

.card-arrow {
    flex: 0 0 auto;
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--soft);
    color: var(--text);
    transition: .2s ease;
}

.card-arrow svg {
    width: 16px;
    height: 16px;
}

.project-card:hover .card-arrow {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--brand), #8b5cf6);
    transform: rotate(3deg);
}

.tag-row {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tag-row span,
.modal-tags span {
    padding: 5px 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
    color: var(--muted);
    font-size: 8px;
    font-weight: 800;
}

.empty-state {
    min-height: 120px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    margin-bottom: 56px;
    border-radius: 20px;
    color: var(--muted);
    font-size: 12px;
}

.empty-state svg {
    width: 21px;
    height: 21px;
}

.footer {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 10px;
}

.project-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 18px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .22s ease, visibility .22s ease;
}

.project-modal.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2,4,10,.80);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.modal-panel {
    position: relative;
    z-index: 2;
    width: min(1120px, 100%);
    max-height: calc(100vh - 36px);
    overflow: auto;
    border-radius: 28px;
    box-shadow: var(--shadow-strong);
    transform: translateY(14px) scale(.987);
    transition: transform .28s cubic-bezier(.2,.7,.2,1);
}

.project-modal.open .modal-panel {
    transform: none;
}

.modal-close {
    position: absolute;
    z-index: 8;
    top: 14px;
    inset-inline-end: 14px;
    color: #fff;
    border-color: rgba(255,255,255,.12);
    background: rgba(5,8,18,.62);
}

.modal-gallery {
    padding: 9px 9px 0;
}

.slider {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 8.3;
    min-height: 330px;
    border-radius: 20px;
    background: #070a14;
}

.slider-track {
    height: 100%;
    display: flex;
    will-change: transform;
    transition: transform .46s cubic-bezier(.2,.7,.2,1);
}

.slider-slide {
    flex: 0 0 100%;
    height: 100%;
}

.slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-nav {
    position: absolute;
    z-index: 4;
    top: 50%;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 13px;
    background: rgba(5,8,18,.59);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(12px);
    transition: .18s ease;
}

.slider-nav:hover {
    background: rgba(98,91,255,.78);
}

.slider-nav svg {
    width: 17px;
    height: 17px;
}

.slider-nav.prev { left: 14px; }
.slider-nav.next { right: 14px; }

.slider-meta {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 13px;
    min-height: 29px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 9px;
    border-radius: 999px;
    color: rgba(255,255,255,.60);
    font-size: 8px;
}

.slider-dots {
    display: flex;
    align-items: center;
    gap: 5px;
}

.slider-dot {
    width: 6px;
    height: 6px;
    padding: 0;
    border: 0;
    border-radius: 99px;
    background: rgba(255,255,255,.34);
    cursor: pointer;
    transition: .18s ease;
}

.slider-dot.active {
    width: 20px;
    background: #8d86ff;
}

.modal-content {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    padding: 25px 27px 28px;
}

.modal-copy {
    max-width: 760px;
}

.modal-kicker {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--brand2);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.modal-title-row {
    display: flex;
    align-items: center;
    gap: 13px;
}

.modal-logo {
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #080b15;
}

.modal-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.modal-title-row h2 {
    margin: 0;
    font-size: clamp(27px, 4vw, 42px);
    line-height: 1.05;
    letter-spacing: -.045em;
    font-weight: 950;
}

.modal-title-row p {
    margin: 5px 0 0;
    color: var(--brand2);
    font-size: 11px;
    font-weight: 800;
}

.modal-server-row {
    width: fit-content;
    margin-top: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 9px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--soft);
}

.modal-server-row .server-rack-icon {
    border-color: var(--line);
    background: var(--surface2);
}

.modal-server-row strong {
    font-size: 9px;
    font-weight: 850;
}

.modal-detail {
    max-width: 730px;
    margin: 15px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.82;
}

.modal-tags {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.demo-btn {
    flex: 0 0 auto;
    min-height: 47px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    border-radius: 14px;
    color: #fff;
    text-decoration: none;
    font-size: 11px;
    font-weight: 850;
    background: linear-gradient(135deg, var(--brand), #8b5cf6 62%, var(--pink));
    box-shadow: 0 15px 34px rgba(98,91,255,.23);
    transition: transform .18s ease, box-shadow .18s ease;
}

.demo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 42px rgba(98,91,255,.30);
}

.demo-btn svg {
    width: 16px;
    height: 16px;
}

body.modal-open {
    overflow: hidden;
}

html[dir="rtl"] .card-arrow svg,
html[dir="rtl"] .demo-btn svg {
    transform: scaleX(-1);
}

@media (max-width: 1200px) {
    .project-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

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

    .server-online-pill {
        display: none;
    }

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

    .hero-tools {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-pills {
        overflow-x: auto;
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .shell {
        width: min(100% - 22px, 1540px);
    }

    .topbar {
        top: 7px;
        min-height: 64px;
        margin-top: 7px;
        padding: 0 9px;
        border-radius: 17px;
    }

    .brand-mark {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    .brand-mark img {
        width: 37px;
        height: 37px;
    }

    .brand-copy b {
        font-size: 17px;
    }

    .brand-copy span {
        display: none;
    }

    .lang-btn {
        min-width: 29px;
        height: 28px;
        padding: 0 6px;
        font-size: 8px;
    }

    .icon-btn {
        width: 36px;
        height: 36px;
    }

    .hero {
        padding: 58px 0 31px;
    }

    .hero h1 {
        font-size: clamp(46px, 15vw, 66px);
    }

    .hero > p {
        max-width: 94%;
        font-size: 11px;
    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding-bottom: 42px;
    }

    .project-card {
        border-radius: 20px;
    }

    .card-visual {
        aspect-ratio: 1.48 / 1;
    }

    .modal-panel {
        max-height: calc(100vh - 20px);
        border-radius: 22px;
    }

    .project-modal {
        padding: 10px;
    }

    .slider {
        min-height: 245px;
        aspect-ratio: 1.25 / 1;
        border-radius: 16px;
    }

    .modal-content {
        display: block;
        padding: 20px;
    }

    .demo-btn {
        width: 100%;
        margin-top: 21px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .001ms !important;
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
    }
}


/* =========================================================
   Garduny Cloud v4 — premium glass / stronger typography
   ========================================================= */

:root {
    --glass-white: rgba(255,255,255,.68);
    --glass-white-soft: rgba(255,255,255,.48);
    --glass-stroke: rgba(255,255,255,.60);
    --glass-shadow: 0 22px 60px rgba(40,45,80,.13);
    --text-strong: #0c1020;
}

html.dark {
    --glass-white: rgba(13,18,35,.66);
    --glass-white-soft: rgba(16,22,42,.48);
    --glass-stroke: rgba(255,255,255,.10);
    --glass-shadow: 0 26px 76px rgba(0,0,0,.44);
    --text-strong: #ffffff;
}

body {
    font-weight: 650;
    letter-spacing: -.006em;
}

.glass,
.project-card,
.topbar,
.search-box,
.filter-pills,
.modal-panel,
.empty-state {
    position: relative;
    background:
        linear-gradient(145deg, rgba(255,255,255,.22), rgba(255,255,255,.045) 42%, rgba(122,115,255,.035) 100%),
        var(--glass-white);
    border: 1px solid var(--glass-stroke);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.42),
        inset 0 -1px 0 rgba(255,255,255,.06),
        var(--glass-shadow);
    backdrop-filter: blur(24px) saturate(165%);
    -webkit-backdrop-filter: blur(24px) saturate(165%);
}

html.dark .glass,
html.dark .project-card,
html.dark .topbar,
html.dark .search-box,
html.dark .filter-pills,
html.dark .modal-panel,
html.dark .empty-state {
    background:
        linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.018) 44%, rgba(98,91,255,.055) 100%),
        var(--glass-white);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.08),
        inset 0 -1px 0 rgba(255,255,255,.025),
        0 28px 82px rgba(0,0,0,.42);
}

.glass::after,
.project-card::after,
.topbar::after,
.search-box::after,
.filter-pills::after,
.modal-panel::after {
    content: "";
    position: absolute;
    pointer-events: none;
    inset: 1px;
    border-radius: inherit;
    background:
        linear-gradient(115deg, rgba(255,255,255,.24), transparent 18%, transparent 78%, rgba(255,92,168,.045));
    opacity: .72;
    mask-image: linear-gradient(#000, transparent 58%);
}

html.dark .glass::after,
html.dark .project-card::after,
html.dark .topbar::after,
html.dark .search-box::after,
html.dark .filter-pills::after,
html.dark .modal-panel::after {
    opacity: .26;
}

/* Prevent decorative overlays from sitting above interactive content */
.topbar > *,
.project-card > *,
.search-box > *,
.filter-pills > *,
.modal-panel > * {
    position: relative;
    z-index: 1;
}

/* Stronger, clearer typography */
.brand-copy b {
    font-size: 21px;
    font-weight: 950;
    color: var(--text-strong);
    text-shadow: 0 1px 0 rgba(255,255,255,.12);
}

.brand-copy span {
    font-size: 12px;
    font-weight: 850;
}

.server-online-pill {
    font-size: 10.5px;
    font-weight: 900;
    color: color-mix(in srgb, var(--text) 72%, var(--muted));
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.10),
        0 8px 25px rgba(50,220,150,.07);
}

.hero {
    padding-top: 88px;
}

.hero-badge {
    min-height: 34px;
    padding-inline: 13px;
    font-size: 10.5px;
    font-weight: 900;
    color: color-mix(in srgb, var(--text) 66%, var(--muted));
}

.hero h1 {
    font-size: clamp(54px, 6.8vw, 94px);
    font-weight: 950;
    letter-spacing: -.072em;
    filter: drop-shadow(0 12px 30px rgba(98,91,255,.08));
}

.hero > p {
    max-width: 760px;
    margin-top: 20px;
    color: color-mix(in srgb, var(--text) 64%, var(--muted));
    font-size: 14px;
    line-height: 1.9;
    font-weight: 760;
}

.search-box {
    height: 49px;
    border-radius: 16px;
}

.search-box input {
    font-size: 13px;
    font-weight: 760;
}

.search-box input::placeholder {
    font-weight: 700;
}

.filter-pill {
    height: 39px;
    font-size: 10.5px;
    font-weight: 900;
}

.filter-pill.active {
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.26),
        0 11px 26px rgba(98,91,255,.27),
        0 0 24px rgba(255,92,168,.08);
}

.result-line {
    margin-top: 14px;
    font-size: 10.5px;
    font-weight: 800;
}

.result-line b {
    font-weight: 950;
}

/* Project cards */
.project-grid {
    gap: 16px;
}

.project-card {
    border-color: color-mix(in srgb, var(--glass-stroke) 78%, var(--brand2));
    border-radius: 25px;
    overflow: hidden;
}

.project-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(
        135deg,
        rgba(122,115,255,.42),
        rgba(255,255,255,.10) 33%,
        rgba(255,92,168,.28) 72%,
        rgba(93,200,255,.18)
    );
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: .48;
    z-index: 2;
}

.project-card:hover,
.project-card:focus-visible {
    transform: translateY(-8px) scale(1.006);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.12),
        0 34px 85px rgba(26,28,60,.18),
        0 0 0 1px rgba(122,115,255,.10);
}

html.dark .project-card:hover,
html.dark .project-card:focus-visible {
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.08),
        0 38px 96px rgba(0,0,0,.54),
        0 0 34px rgba(98,91,255,.06);
}

.card-visual {
    background:
        radial-gradient(circle at 50% 43%, rgba(98,91,255,.22), transparent 38%),
        radial-gradient(circle at 25% 15%, rgba(93,200,255,.07), transparent 33%),
        radial-gradient(circle at 86% 82%, rgba(255,92,168,.09), transparent 32%),
        linear-gradient(145deg, rgba(255,255,255,.055), rgba(5,8,18,.72));
}

html:not(.dark) .card-visual {
    background:
        radial-gradient(circle at 50% 43%, rgba(98,91,255,.18), transparent 38%),
        radial-gradient(circle at 18% 14%, rgba(93,200,255,.08), transparent 34%),
        radial-gradient(circle at 88% 84%, rgba(255,92,168,.08), transparent 34%),
        linear-gradient(145deg, rgba(30,35,58,.90), rgba(48,50,66,.82));
}

.logo-stage {
    width: 57%;
    height: 57%;
}

.logo-stage img {
    filter:
        drop-shadow(0 18px 34px rgba(0,0,0,.36))
        drop-shadow(0 0 20px rgba(98,91,255,.06));
}

.card-server-status {
    min-height: 38px;
    padding: 6px 10px 6px 8px;
    border-radius: 13px;
    background: rgba(8,11,21,.72);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.07),
        0 8px 20px rgba(0,0,0,.18);
}

.status-copy small {
    font-size: 7.5px;
    font-weight: 850;
}

.status-copy strong {
    font-size: 8.5px;
    font-weight: 950;
}

.card-number {
    font-size: 8.5px;
    font-weight: 950;
    background: rgba(8,11,21,.72);
}

.glass-body {
    position: relative;
    background:
        linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.025)),
        rgba(255,255,255,.18);
    border-top: 1px solid rgba(255,255,255,.16);
}

html.dark .glass-body {
    background:
        linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012)),
        rgba(10,14,28,.34);
    border-top-color: rgba(255,255,255,.055);
}

.card-body {
    padding: 18px 18px 17px;
}

.title-row h2 {
    font-size: 18px;
    font-weight: 950;
    line-height: 1.18;
    color: var(--text-strong);
}

.title-row p {
    margin-top: 7px;
    color: color-mix(in srgb, var(--text) 55%, var(--muted));
    font-size: 11px;
    line-height: 1.55;
    font-weight: 760;
}

.card-arrow {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background:
        linear-gradient(145deg, rgba(255,255,255,.10), rgba(255,255,255,.02)),
        var(--soft);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.14);
}

.tag-row {
    margin-top: 14px;
    gap: 6px;
}

.tag-row span,
.modal-tags span {
    padding: 6px 9px;
    border-radius: 9px;
    font-size: 9px;
    font-weight: 850;
    color: color-mix(in srgb, var(--text) 58%, var(--muted));
    background:
        linear-gradient(145deg, rgba(255,255,255,.09), transparent),
        var(--soft);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
}

/* Modal */
.modal-backdrop {
    background:
        radial-gradient(circle at 50% 22%, rgba(98,91,255,.12), transparent 32%),
        rgba(2,4,10,.78);
    backdrop-filter: blur(20px) saturate(120%);
    -webkit-backdrop-filter: blur(20px) saturate(120%);
}

.modal-panel {
    border-radius: 30px;
    border-color: rgba(122,115,255,.22);
    background:
        linear-gradient(145deg, rgba(255,255,255,.13), rgba(255,255,255,.035)),
        var(--glass-white);
}

.modal-gallery {
    padding: 11px 11px 0;
}

.slider {
    border-radius: 21px;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.06),
        0 18px 50px rgba(0,0,0,.16);
}

.glass-modal-content {
    margin: 10px 11px 11px;
    padding: 24px 25px 25px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background:
        linear-gradient(145deg, rgba(255,255,255,.10), rgba(255,255,255,.025)),
        var(--surface2);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
}

.modal-kicker {
    font-size: 9.5px;
    font-weight: 950;
}

.modal-title-row h2 {
    font-weight: 950;
    color: var(--text-strong);
}

.modal-title-row p {
    font-size: 11.5px;
    font-weight: 850;
}

.modal-server-row strong {
    font-size: 9.5px;
    font-weight: 950;
}

.modal-detail {
    font-size: 12.5px;
    line-height: 1.9;
    font-weight: 720;
    color: color-mix(in srgb, var(--text) 58%, var(--muted));
}

.demo-btn {
    min-height: 50px;
    padding-inline: 18px;
    border: 1px solid rgba(255,255,255,.18);
    font-size: 11.5px;
    font-weight: 950;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.30),
        0 18px 38px rgba(98,91,255,.30);
}

/* Footer / empty state */
.empty-state[hidden] {
    display: none !important;
}

.empty-state {
    font-weight: 800;
}

.footer {
    font-size: 10.5px;
    font-weight: 760;
}

/* Better light mode contrast */
html:not(.dark) .topbar,
html:not(.dark) .search-box,
html:not(.dark) .filter-pills,
html:not(.dark) .project-card {
    border-color: rgba(56,63,92,.11);
}

html:not(.dark) .title-row p,
html:not(.dark) .hero > p,
html:not(.dark) .footer,
html:not(.dark) .result-line {
    color: #6d7590;
}

/* Mobile keeps the stronger appearance without becoming heavy */
@media (max-width: 640px) {
    .hero {
        padding-top: 62px;
    }

    .hero h1 {
        font-size: clamp(49px, 15.5vw, 68px);
    }

    .hero > p {
        font-size: 12px;
        font-weight: 720;
    }

    .project-card {
        border-radius: 22px;
    }

    .title-row h2 {
        font-size: 17px;
    }

    .card-body {
        padding: 17px;
    }

    .glass-modal-content {
        margin: 8px;
        padding: 20px;
    }
}
