/* ShinyCommander's website. The palette is the app's own (accent, window, panel, text) with the icon's indigo night
   and its pink / purple / green orbs for the hero. Light and dark follow the system. */

:root {
    --accent: #2F6FDE;
    --accent-soft: #D7E3F8;
    --purple: #8B5CF6;
    --pink: #EC4899;
    --green: #4ADE80;
    --night: #160F35;
    --night-2: #0D0A22;

    --bg: #F6F7FB;
    --surface: #FFFFFF;
    --tint: #EEF1F6;
    --text: #1D1F23;
    --subtle: #5F6672;
    --border: #DDE1E8;
    --shadow: 0 30px 80px -30px rgba(22, 15, 53, .45), 0 10px 30px -15px rgba(22, 15, 53, .25);

    --rw: #30A46C;
    --ro: #8B8D98;

    --radius: 18px;
    --wrap: 1180px;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --accent: #6B9BF2;
        --accent-soft: #2E3A4C;
        --bg: #0F1013;
        --surface: #1C1E22;
        --tint: #15171A;
        --text: #E4E6EA;
        --subtle: #9AA1AD;
        --border: #2C3037;
        --shadow: 0 30px 80px -30px rgba(0, 0, 0, .8), 0 10px 30px -15px rgba(0, 0, 0, .6);
        color-scheme: dark;
    }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.6 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code, kbd { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }
code { font-size: .88em; background: var(--tint); padding: .1em .4em; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }

/* ---------------------------------------------------------------- hero */

.hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(120% 80% at 50% 0%, #2A1D66 0%, var(--night) 45%, var(--night-2) 100%);
    color: #F4F2FF;
    padding-bottom: 72px;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .55;
    pointer-events: none;
}
.glow-pink { width: 520px; height: 520px; background: var(--pink); top: -160px; left: -140px; opacity: .35; }
.glow-purple { width: 640px; height: 640px; background: var(--purple); top: 120px; right: -220px; opacity: .4; }
.glow-green { width: 360px; height: 360px; background: var(--green); top: 520px; left: 30%; opacity: .16; }

.nav {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 22px;
    gap: 16px;
}

.brand { display: flex; align-items: center; gap: 10px; color: inherit; font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 9px; }

.nav-links { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.nav-links a { color: rgba(244, 242, 255, .78); }
.nav-links a:hover { color: #fff; text-decoration: none; }
.nav-links .nav-cta {
    color: #fff;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    padding: 7px 16px;
    border-radius: 999px;
}

.hero-copy { position: relative; text-align: center; padding-top: 56px; }

.eyebrow {
    display: inline-block;
    margin: 0 0 22px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    font-size: 13px;
    font-weight: 500;
    color: rgba(244, 242, 255, .85);
}

h1 {
    margin: 0 auto;
    max-width: 900px;
    font-size: clamp(40px, 6.4vw, 76px);
    line-height: 1.04;
    letter-spacing: -.035em;
    font-weight: 800;
}

.gradient-text {
    background: linear-gradient(95deg, #FF8AC8 0%, #C084FC 45%, #8BE9A6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lede {
    max-width: 660px;
    margin: 24px auto 0;
    font-size: clamp(17px, 2vw, 20px);
    color: rgba(244, 242, 255, .78);
}

.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 22px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.button:hover { text-decoration: none; transform: translateY(-1px); }
.button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.button.primary { background: linear-gradient(135deg, #8B5CF6, #EC4899); color: #fff; box-shadow: 0 10px 30px -10px rgba(236, 72, 153, .7); }
.button.primary:hover { box-shadow: 0 14px 34px -10px rgba(236, 72, 153, .9); }
.button.ghost { color: #fff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2); }
.button.ghost:hover { background: rgba(255, 255, 255, .14); }

.hero-shot { position: relative; margin-top: 64px; }

.window {
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 50px 120px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08);
    transform: perspective(2000px) rotateX(4deg);
    transform-origin: top center;
}
.window-bar { display: none; }

/* ---------------------------------------------------------------- sections */

.section { position: relative; padding: 110px 0; }
.section.tinted { background: var(--tint); }

.section-eyebrow {
    margin: 0 0 10px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: linear-gradient(90deg, var(--purple), var(--pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

h2 {
    margin: 0;
    text-align: center;
    font-size: clamp(30px, 4.2vw, 46px);
    line-height: 1.12;
    letter-spacing: -.025em;
    font-weight: 800;
}

.section-lede { max-width: 640px; margin: 16px auto 0; text-align: center; color: var(--subtle); font-size: 18px; }

/* a feature with its screenshot, alternating sides */
.showcase {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 56px;
    align-items: center;
    margin-top: 96px;
}
/* pictures on the left keep the wider column */
.showcase.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.showcase.flip .showcase-copy { order: 2; }
.showcase h3 { margin: 12px 0 10px; font-size: 30px; line-height: 1.15; letter-spacing: -.02em; }
.showcase p { margin: 0 0 14px; color: var(--subtle); font-size: 17px; }

.chip {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(90deg, var(--purple), var(--pink));
}

.ticks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232F6FDE' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.shot {
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    cursor: zoom-in;
    transition: transform .25s ease;
}
.shot:hover { transform: translateY(-3px); }
/* a feature's picture, zoomed to the half of the window it's about (--x / --y: where that half starts, as a share of
   the screenshot); the lightbox still opens the whole thing */
.shot.focus { aspect-ratio: 16 / 10; }
.shot.focus img {
    width: var(--zoom, 200%);
    max-width: none;
    transform: translate(calc(var(--x) * -1), calc(var(--y) * -1));
}

.shot figcaption { padding: 12px 16px; font-size: 14px; font-weight: 600; border-top: 1px solid var(--border); }

.formats { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; }
.format {
    font: 500 13px "JetBrains Mono", ui-monospace, monospace;
    padding: 5px 11px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface);
}
.format.rw { border-color: color-mix(in srgb, var(--rw) 45%, transparent); color: var(--rw); }
.format.ro { color: var(--ro); }
.note { font-size: 14px !important; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-left: 6px; }
.dot:first-child { margin-left: 0; }
.dot.rw { background: var(--rw); }
.dot.ro { background: var(--ro); }

/* feature cards */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 56px; }
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card svg {
    width: 42px;
    height: 42px;
    padding: 9px;
    border-radius: 12px;
    background: var(--accent-soft);
    fill: none;
    stroke: var(--accent);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.card h4 { margin: 16px 0 6px; font-size: 18px; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--subtle); font-size: 15px; }

/* keycaps */
.keys { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 52px; }
.key {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
}
.key span { margin-left: auto; color: var(--subtle); font-size: 15px; }
kbd {
    display: inline-block;
    min-width: 34px;
    padding: 5px 9px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    background: linear-gradient(var(--surface), var(--tint));
    border: 1px solid var(--border);
    border-bottom-width: 3px;
    border-radius: 8px;
}
.section-lede kbd, .showcase-copy p kbd { min-width: 0; font-size: 13px; padding: 2px 7px; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 52px; }

/* download */
.download {
    overflow: hidden;
    background: radial-gradient(100% 120% at 50% 100%, #2A1D66 0%, var(--night) 55%, var(--night-2) 100%);
    color: #F4F2FF;
    text-align: center;
}
.download .glow-purple { top: auto; bottom: -320px; right: 20%; }
.download .section-lede { color: rgba(244, 242, 255, .75); }
.download-icon { margin: 0 auto 18px; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .45)); }
.platforms { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 44px; }
.platform {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 30px 22px;
    border-radius: var(--radius);
    color: #fff;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .14);
    transition: background .2s ease, transform .2s ease;
}
.platform:hover { text-decoration: none; background: rgba(255, 255, 255, .11); transform: translateY(-3px); }
.platform svg { width: 38px; height: 38px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; margin-bottom: 6px; }
.platform strong { font-size: 20px; }
.platform span { font-size: 14px; color: rgba(244, 242, 255, .7); }
.small { position: relative; margin-top: 28px; font-size: 14px; color: rgba(244, 242, 255, .65); }
.small a { color: #C4B5FD; }

/* footer */
.footer { padding: 32px 0; border-top: 1px solid var(--border); color: var(--subtle); font-size: 14px; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer p { margin: 0; }
.small-brand { font-size: 15px; color: var(--text); }
.small-brand img { border-radius: 6px; }

/* lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 10;
    display: grid;
    place-items: center;
    padding: 32px;
    background: rgba(8, 6, 20, .86);
    backdrop-filter: blur(6px);
    cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 100%; border-radius: 10px; box-shadow: 0 30px 90px rgba(0, 0, 0, .6); }
.lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    border: 0;
    background: none;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
}

/* ---------------------------------------------------------------- smaller screens */

@media (max-width: 960px) {
    .showcase, .showcase.flip { grid-template-columns: 1fr; gap: 28px; margin-top: 72px; }
    .showcase.flip .showcase-copy { order: 0; }
    .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .keys { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .window { transform: none; }
}

@media (max-width: 640px) {
    .nav-links a:not(.nav-cta) { display: none; }
    .section { padding: 80px 0; }
    .grid, .keys, .platforms { grid-template-columns: 1fr; }
    .hero-copy { padding-top: 32px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .button, .card, .shot, .platform { transition: none; }
    .window { transform: none; }
}
