/* ---------------------------------------------------------------------------
   AwesomeDock — landing page styles
   "Desktop" aesthetic: the page lives on a macOS dynamic wallpaper, content
   floats in frosted-glass squircle tiles, and a real Dock anchors the bottom
   with cursor-tracking magnification. Warm orange accent from the app icon.
   ------------------------------------------------------------------------- */

:root {
    /* Surfaces */
    --bg: #ffffff;
    --bg-soft: #f7f7f5;
    --bg-warm: #faf8f4;
    --bg-dark: #0f1115;
    --bg-dark-2: #161922;
    --surface: #ffffff;
    --surface-elevated: #ffffff;

    /* Glass — frosted macOS vibrancy used across panels and the Dock */
    --glass: rgba(255, 255, 255, 0.55);
    --glass-strong: rgba(255, 255, 255, 0.72);
    --glass-edge: rgba(255, 255, 255, 0.75);     /* inner top highlight */
    --glass-hair: rgba(17, 19, 24, 0.08);         /* outer hairline */
    --glass-blur: saturate(180%) blur(30px);
    --glass-shadow: 0 2px 8px -2px rgba(17, 19, 24, 0.10),
                    0 24px 56px -20px rgba(17, 19, 24, 0.30);

    /* Dock */
    --dock-bg: rgba(255, 255, 255, 0.42);
    --dock-tile: linear-gradient(180deg, #ffffff 0%, #f4f2ee 100%);
    --dock-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset,
                   0 18px 40px -12px rgba(17, 19, 24, 0.40),
                   0 4px 12px -4px rgba(17, 19, 24, 0.22);
    --run-dot: rgba(17, 19, 24, 0.55);

    /* Text */
    --text: #15171c;
    --text-soft: #4b525d;
    --text-mute: #767e8a;
    --text-inv: #f4f5f7;
    --text-inv-soft: #aab0bd;

    /* Lines */
    --line: #e9e8e2;
    --line-soft: #efeee8;
    --line-dark: #25293a;

    /* Brand — orange→amber pulled straight from the app icon tiles */
    --brand: #f0571f;
    --brand-soft: #fdece2;
    --brand-strong: #d83c0f;
    --brand-ink: #2a0d05;
    --brand-amber: #f7a52b;
    --brand-grad: linear-gradient(150deg, #f0571f 0%, #f7a52b 100%);

    /* Secondary accent — soft blue for hero highlights */
    --accent-blue: #5b8def;
    --accent-violet: #8b6df7;
    --accent-warm: #f5b86b;

    /* Effects */
    --shadow-sm: 0 1px 2px rgba(15, 17, 21, 0.04), 0 1px 1px rgba(15, 17, 21, 0.03);
    --shadow-md: 0 4px 16px -4px rgba(15, 17, 21, 0.08), 0 2px 4px -1px rgba(15, 17, 21, 0.04);
    --shadow-lg: 0 24px 48px -16px rgba(15, 17, 21, 0.16), 0 8px 16px -8px rgba(15, 17, 21, 0.08);
    --shadow-xl: 0 40px 80px -24px rgba(15, 17, 21, 0.24), 0 16px 32px -16px rgba(15, 17, 21, 0.12);
    --shadow-glow: 0 0 0 1px rgba(240, 74, 38, 0.18), 0 12px 32px -8px rgba(240, 74, 38, 0.28);

    /* Radius — generous, squircle-leaning to echo macOS app icons */
    --r-xs: 8px;
    --r-sm: 12px;
    --r-md: 18px;
    --r-lg: 24px;
    --r-xl: 30px;
    --r-2xl: 38px;
    --r-full: 999px;
    --r-squircle: 28%;   /* for icon-style tiles */

    /* Motion */
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --t-fast: 160ms var(--ease);
    --t: 240ms var(--ease);
    --t-slow: 400ms var(--ease);
}

/* ---------------------------------------------------------------------------
   Reset & base
   ------------------------------------------------------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    /* macOS dynamic-wallpaper: soft, blurred color fields fixed behind the glass */
    background-color: #f3f1ec;
    background-image:
        radial-gradient(48vw 48vw at 12% -6%, rgba(247, 165, 43, 0.30), transparent 60%),
        radial-gradient(42vw 42vw at 92% 4%, rgba(240, 87, 31, 0.24), transparent 58%),
        radial-gradient(52vw 52vw at 78% 96%, rgba(139, 109, 247, 0.20), transparent 60%),
        radial-gradient(46vw 46vw at 4% 88%, rgba(91, 141, 239, 0.20), transparent 60%);
    background-attachment: fixed;
    background-repeat: no-repeat;
    line-height: 1.55;
    font-size: 17px;
    font-weight: 400;
    letter-spacing: -0.006em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
}

/* Display typeface — Bricolage Grotesque — on every heading */
h1, h2, h3, h4,
.hero-title, .section-title, .spotlight-title, .pillar-title,
.download-title, .community-title, .modal-title, .logo-text {
    font-family: 'Bricolage Grotesque', 'Hanken Grotesk', -apple-system, sans-serif;
    font-optical-sizing: auto;
}

img,
video,
svg {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--brand);
    text-decoration: none;
    transition: color var(--t-fast);
}

a:hover {
    color: var(--brand-strong);
}

em {
    font-family: 'Newsreader', Georgia, serif;
    font-style: italic;
    font-weight: 500;
    letter-spacing: -0.005em;
}

kbd {
    font-family: 'SF Mono', ui-monospace, 'JetBrains Mono', 'Cascadia Mono', monospace;
    font-size: 0.78em;
    font-weight: 600;
    padding: 0.28em 0.55em;
    background: linear-gradient(180deg, #ffffff, #f3f2ed);
    color: var(--text);
    border: 1px solid var(--line);
    border-bottom-width: 2px;
    border-radius: 6px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
    min-width: 1.8em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

code,
.brew-cmd {
    font-family: 'SF Mono', ui-monospace, 'JetBrains Mono', monospace;
    font-size: 0.93em;
}

::selection {
    background: var(--brand-soft);
    color: var(--brand-ink);
}

/* ---------------------------------------------------------------------------
   Layout primitives
   ------------------------------------------------------------------------- */

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 28px;
}

@media (max-width: 720px) {
    .container {
        padding: 0 20px;
    }
}

/* Section heading */
.section-heading {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 64px;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 20px;
}

.section-eyebrow-light {
    color: var(--accent-warm);
}

.section-title {
    font-size: clamp(2.1rem, 4.4vw, 3.4rem);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -0.028em;
    color: var(--text);
    margin-bottom: 18px;
}

.section-title em {
    color: var(--brand);
    font-weight: 500;
}

.section-title-light {
    color: var(--text-inv);
}

.section-title-light em {
    color: var(--accent-warm);
}

.section-subtitle {
    font-size: 18px;
    line-height: 1.55;
    color: var(--text-soft);
    max-width: 600px;
    margin: 0 auto;
}

.section-subtitle-light {
    color: var(--text-inv-soft);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 22px;
    border-radius: var(--r-full);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.005em;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform var(--t-fast), background var(--t), color var(--t),
        box-shadow var(--t), border-color var(--t);
    white-space: nowrap;
    line-height: 1;
}

.btn:active {
    transform: scale(0.98);
}

.btn-small {
    height: 36px;
    padding: 0 16px;
    font-size: 14px;
}

.btn-large {
    height: 52px;
    padding: 0 28px;
    font-size: 16px;
}

.btn-primary {
    background: var(--text);
    color: white;
    box-shadow: 0 6px 16px -6px rgba(15, 17, 21, 0.5), 0 1px 0 rgba(255, 255, 255, 0.08) inset;
}

.btn-primary:hover {
    background: #000;
    color: white;
    box-shadow: 0 10px 24px -8px rgba(15, 17, 21, 0.55), 0 1px 0 rgba(255, 255, 255, 0.08) inset;
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--line);
}

.btn-ghost:hover {
    background: var(--bg-soft);
    color: var(--text);
    border-color: #d6d4cb;
}

.btn-ghost code {
    color: var(--text-soft);
    font-size: 13px;
}

.btn svg {
    flex-shrink: 0;
}

/* ---------------------------------------------------------------------------
   Header
   ------------------------------------------------------------------------- */

#header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: saturate(1.8) blur(20px);
    -webkit-backdrop-filter: saturate(1.8) blur(20px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--t), background var(--t);
}

#header.scrolled {
    border-bottom-color: var(--line);
    background: rgba(255, 255, 255, 0.9);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

.logo img {
    width: 32px;
    height: 32px;
    border-radius: 7px;
}

.logo-text {
    font-size: 17px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 4px;
}

.nav-link {
    display: inline-block;
    padding: 8px 14px;
    color: var(--text-soft);
    font-size: 15px;
    font-weight: 500;
    border-radius: var(--r-sm);
    transition: color var(--t-fast), background var(--t-fast);
}

.nav-link:hover {
    color: var(--text);
    background: var(--bg-soft);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    width: 38px;
    height: 38px;
    cursor: pointer;
    padding: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.mobile-menu-btn span {
    width: 16px;
    height: 1.5px;
    background: var(--text);
    border-radius: 1px;
    transition: transform var(--t), opacity var(--t);
}

@media (max-width: 840px) {
    .nav-links {
        display: none;
    }
    .mobile-menu-btn {
        display: flex;
    }
}

/* Mobile menu open state (driven by JS) */
body.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    padding: 20px 24px 28px;
    gap: 4px;
    box-shadow: var(--shadow-lg);
    z-index: 49;
}

body.nav-open .nav-link {
    padding: 12px 14px;
    font-size: 16px;
}

/* ---------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------- */

.hero {
    position: relative;
    padding: 80px 0 0;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(180deg, #fffaf6 0%, #fff 80%);
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.hero-orb-1 {
    width: 520px;
    height: 520px;
    top: -160px;
    left: -120px;
    background: radial-gradient(circle, rgba(240, 74, 38, 0.42), transparent 70%);
}

.hero-orb-2 {
    width: 480px;
    height: 480px;
    top: -80px;
    right: -100px;
    background: radial-gradient(circle, rgba(245, 184, 107, 0.38), transparent 70%);
}

.hero-orb-3 {
    width: 600px;
    height: 360px;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(139, 109, 247, 0.18), transparent 70%);
}

.hero-container {
    position: relative;
    z-index: 1;
    max-width: 880px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--line);
    backdrop-filter: blur(8px);
    border-radius: var(--r-full);
    padding: 7px 16px 7px 12px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-soft);
    margin-bottom: 32px;
    box-shadow: var(--shadow-sm);
}

.eyebrow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 4px rgba(240, 74, 38, 0.18);
    animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(240, 74, 38, 0.18); }
    50% { box-shadow: 0 0 0 6px rgba(240, 74, 38, 0.08); }
}

.hero-title {
    font-size: clamp(2.6rem, 6.4vw, 4.6rem);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -0.038em;
    color: var(--text);
    margin-bottom: 28px;
}

.hero-title em {
    color: var(--brand);
    font-weight: 500;
}

.hero-subtitle {
    font-size: clamp(17px, 2vw, 20px);
    line-height: 1.55;
    color: var(--text-soft);
    max-width: 620px;
    margin: 0 auto 40px;
}

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

.hero-meta {
    font-size: 14px;
    color: var(--text-mute);
}

.hero-meta a {
    color: var(--text-soft);
    text-decoration: underline;
    text-decoration-color: var(--line);
    text-underline-offset: 3px;
}

.hero-meta a:hover {
    color: var(--brand);
    text-decoration-color: currentColor;
}

.hero-visual {
    position: relative;
    z-index: 1;
    margin-top: 64px;
    padding: 0 28px;
}

.hero-image-frame {
    max-width: 1100px;
    margin: 0 auto;
    border-radius: var(--r-xl);
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.2));
    padding: 8px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.5) inset,
        0 60px 120px -40px rgba(15, 17, 21, 0.25),
        0 30px 60px -30px rgba(15, 17, 21, 0.18),
        0 0 0 1px rgba(15, 17, 21, 0.05);
    transform: perspective(2400px) rotateX(2deg);
}

.hero-image {
    border-radius: calc(var(--r-xl) - 8px);
    width: 100%;
    display: block;
}

/* ---------------------------------------------------------------------------
   Trust strip
   ------------------------------------------------------------------------- */

.trust-strip {
    padding: 60px 0 0;
}

.trust-items {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    padding: 24px 32px;
    border-radius: var(--r-lg);
    background: var(--bg-soft);
    border: 1px solid var(--line);
}

.trust-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: center;
}

.trust-item strong {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.005em;
}

.trust-item span {
    font-size: 13px;
    color: var(--text-mute);
}

.trust-divider {
    width: 1px;
    height: 28px;
    background: var(--line);
}

@media (max-width: 720px) {
    .trust-divider {
        display: none;
    }
    .trust-items {
        gap: 18px;
        padding: 20px;
    }
}

/* ---------------------------------------------------------------------------
   Section: Three pillars
   ------------------------------------------------------------------------- */

.section-pillars {
    padding: 120px 0;
}

.pillar-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.pillar-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}

.pillar-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: #ddd9cf;
}

.pillar-card-wide {
    grid-column: 1 / -1;
    flex-direction: row;
}

@media (max-width: 880px) {
    .pillar-grid {
        grid-template-columns: 1fr;
    }
    .pillar-card-wide {
        flex-direction: column;
    }
}

.pillar-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-warm);
    border-bottom: 1px solid var(--line);
}

.pillar-card-wide .pillar-media {
    flex: 1.4;
    aspect-ratio: auto;
    border-bottom: 0;
    border-right: 1px solid var(--line);
    min-height: 360px;
}

@media (max-width: 880px) {
    .pillar-card-wide .pillar-media {
        border-right: 0;
        border-bottom: 1px solid var(--line);
        min-height: 0;
        aspect-ratio: 16 / 10;
    }
}

.pillar-media video,
.pillar-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pillar-body {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.pillar-card-wide .pillar-body {
    flex: 1;
    justify-content: center;
    padding: 48px;
}

.pillar-label {
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand);
}

.pillar-title {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--text);
}

.pillar-description {
    font-size: 15.5px;
    color: var(--text-soft);
    line-height: 1.6;
}

.pillar-description kbd {
    margin: 0 1px;
}

/* ---------------------------------------------------------------------------
   Section: Custom Docks (dark)
   ------------------------------------------------------------------------- */

.section-feature {
    padding: 120px 0;
}

.section-feature-dark {
    background:
        radial-gradient(ellipse 80% 50% at 20% 0%, rgba(240, 74, 38, 0.18), transparent),
        radial-gradient(ellipse 60% 40% at 80% 100%, rgba(91, 141, 239, 0.16), transparent),
        var(--bg-dark);
    color: var(--text-inv);
}

.dock-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.dock-grid-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--r-lg);
    overflow: hidden;
    padding: 36px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    transition: transform var(--t), border-color var(--t), background var(--t);
}

.dock-grid-item:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
}

.dock-grid-item-large {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    padding: 48px;
    gap: 56px;
}

@media (max-width: 880px) {
    .dock-grid {
        grid-template-columns: 1fr;
    }
    .dock-grid-item-large {
        flex-direction: column;
        padding: 32px;
        gap: 28px;
    }
}

.dock-grid-content {
    flex: 1;
}

.dock-grid-content h3 {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.022em;
    line-height: 1.15;
    margin-bottom: 12px;
    color: var(--text-inv);
}

.dock-grid-item-large .dock-grid-content h3 {
    font-size: 2rem;
}

.dock-grid-content p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-inv-soft);
}

.dock-grid-media {
    flex: 1.2;
    border-radius: var(--r-md);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.3);
}

.dock-grid-media img {
    width: 100%;
    display: block;
}

.dock-grid-media-tight img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

/* ---------------------------------------------------------------------------
   Section: Spotlight (alternating text/visual)
   ------------------------------------------------------------------------- */

.section-spotlight {
    padding: 120px 0;
}

.section-spotlight-alt {
    background: var(--bg-warm);
}

.spotlight-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.spotlight-grid-reverse {
    grid-template-columns: 1.2fr 1fr;
}

@media (max-width: 900px) {
    .spotlight-grid,
    .spotlight-grid-reverse {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .spotlight-grid-reverse .spotlight-visual {
        order: -1;
    }
}

.spotlight-title {
    font-size: clamp(2rem, 3.6vw, 2.8rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.028em;
    margin: 14px 0 20px;
    color: var(--text);
}

.spotlight-description {
    font-size: 17px;
    line-height: 1.65;
    color: var(--text-soft);
    margin-bottom: 24px;
}

.spotlight-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.spotlight-bullets li {
    position: relative;
    padding-left: 28px;
    font-size: 15.5px;
    color: var(--text-soft);
    line-height: 1.5;
}

.spotlight-bullets li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--brand-soft);
}

.spotlight-bullets li::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 11px;
    width: 4px;
    height: 7px;
    border-right: 2px solid var(--brand);
    border-bottom: 2px solid var(--brand);
    transform: rotate(45deg);
}

.spotlight-visual {
    border-radius: var(--r-xl);
    overflow: hidden;
    box-shadow:
        0 30px 60px -20px rgba(15, 17, 21, 0.18),
        0 0 0 1px rgba(15, 17, 21, 0.04);
    background: var(--surface);
    aspect-ratio: 16 / 11;
}

.spotlight-visual img,
.spotlight-visual video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------------------------------------------------------------------------
   Section: Customize
   ------------------------------------------------------------------------- */

.section-customize {
    padding: 120px 0;
}

.customize-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-bottom: 100px;
}

@media (max-width: 880px) {
    .customize-grid {
        grid-template-columns: 1fr;
    }
}

.customize-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: transform var(--t), box-shadow var(--t);
}

.customize-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.customize-card-header {
    padding: 28px 32px 20px;
}

.customize-card-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.022em;
    line-height: 1.2;
    color: var(--text);
    margin-bottom: 8px;
}

.customize-card-header p {
    font-size: 15px;
    color: var(--text-soft);
    line-height: 1.55;
}

.customization-slideshow {
    position: relative;
    background: var(--bg-warm);
    border-top: 1px solid var(--line);
}

.slideshow-track {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.slideshow-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 500ms var(--ease);
}

.slideshow-slide.active {
    opacity: 1;
}

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

.slideshow-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 16px;
    border-top: 1px solid var(--line);
    background: var(--surface);
}

.slideshow-control {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text-soft);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--t-fast);
}

.slideshow-control:hover {
    border-color: var(--text);
    color: var(--text);
}

.slideshow-indicators {
    display: flex;
    gap: 8px;
}

.slideshow-indicator {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--line);
    transition: background var(--t-fast), width var(--t-fast);
    cursor: pointer;
}

.slideshow-indicator.active {
    background: var(--brand);
    width: 22px;
    border-radius: var(--r-full);
}

/* Settings strip */

.settings-strip {
    text-align: center;
}

.settings-strip-title {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.15;
    margin-bottom: 8px;
    color: var(--text);
}

.settings-strip-sub {
    font-size: 16px;
    color: var(--text-soft);
    margin-bottom: 40px;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

@media (max-width: 1000px) {
    .settings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }
}

.settings-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
    text-align: left;
    transition: transform var(--t-fast), box-shadow var(--t-fast);
}

.settings-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.settings-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-bottom: 1px solid var(--line);
    background: var(--bg-warm);
}

.settings-card figcaption {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.settings-card figcaption strong {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text);
}

.settings-card figcaption span {
    font-size: 13px;
    color: var(--text-mute);
}

/* ---------------------------------------------------------------------------
   Section: Controls (split)
   ------------------------------------------------------------------------- */

.section-controls {
    padding: 120px 0;
    background: var(--bg-soft);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.controls-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: stretch;
}

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

.controls-half {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.controls-title {
    font-size: clamp(1.6rem, 2.6vw, 2rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin: 14px 0 16px;
    color: var(--text);
}

.controls-description {
    font-size: 15.5px;
    color: var(--text-soft);
    line-height: 1.6;
    margin-bottom: 28px;
}

.controls-mouse-image {
    margin-top: auto;
    border-radius: var(--r-md);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--bg-warm);
}

.controls-mouse-image img {
    width: 100%;
    display: block;
}

.keyboard-shortcuts {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: auto;
}

.shortcut-row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 18px;
    border-radius: var(--r-md);
    background: var(--bg-warm);
    border: 1px solid var(--line);
}

.shortcut-keys {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.shortcut-plus {
    color: var(--text-mute);
    font-size: 13px;
    font-weight: 500;
}

.shortcut-row p {
    font-size: 14.5px;
    color: var(--text-soft);
    line-height: 1.4;
}

.kbd-action {
    color: white !important;
    background: linear-gradient(180deg, #22c55e, #16a34a) !important;
    border-color: #15803d !important;
}

.kbd-danger {
    color: white !important;
    background: linear-gradient(180deg, #ef4444, #dc2626) !important;
    border-color: #b91c1c !important;
}

/* ---------------------------------------------------------------------------
   Section: Power grid
   ------------------------------------------------------------------------- */

.section-power {
    padding: 120px 0;
}

.power-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

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

@media (max-width: 600px) {
    .power-grid {
        grid-template-columns: 1fr;
    }
}

.power-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: transform var(--t), box-shadow var(--t), border-color var(--t);
    display: flex;
    flex-direction: column;
}

.power-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: #d6d4cb;
}

.power-media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-warm);
    border-bottom: 1px solid var(--line);
}

.power-media video,
.power-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.power-media-static {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fef6f1, #fbe8d9);
}

.power-icon {
    width: 72px;
    height: 72px;
    border-radius: var(--r-lg);
    background: white;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand);
}

.power-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.018em;
    color: var(--text);
    padding: 22px 24px 6px;
}

.power-card p {
    font-size: 14.5px;
    color: var(--text-soft);
    line-height: 1.55;
    padding: 0 24px 24px;
}

/* ---------------------------------------------------------------------------
   Section: Privacy
   ------------------------------------------------------------------------- */

.section-privacy {
    padding: 120px 0;
    background: var(--bg-warm);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.privacy-shell {
    max-width: 980px;
    margin: 0 auto;
}

.privacy-header {
    text-align: center;
    margin-bottom: 64px;
}

.privacy-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

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

.privacy-pillar {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 32px 28px;
    text-align: center;
}

.privacy-pillar-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--r-md);
    background: linear-gradient(135deg, var(--brand-soft), #fef6f1);
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.privacy-pillar-icon img {
    width: 32px;
    height: 32px;
}

.privacy-pillar h3 {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 8px;
}

.privacy-pillar p {
    font-size: 15px;
    color: var(--text-soft);
    line-height: 1.6;
}

/* ---------------------------------------------------------------------------
   Section: Download
   ------------------------------------------------------------------------- */

.section-download {
    padding: 120px 0;
}

.download-card {
    background:
        radial-gradient(ellipse 70% 60% at 90% 50%, rgba(245, 184, 107, 0.32), transparent),
        radial-gradient(ellipse 60% 60% at 20% 100%, rgba(240, 74, 38, 0.18), transparent),
        var(--bg-dark);
    border-radius: var(--r-2xl);
    padding: 72px 64px;
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    align-items: center;
    gap: 48px;
    box-shadow: var(--shadow-xl);
}

@media (max-width: 820px) {
    .download-card {
        grid-template-columns: 1fr;
        padding: 48px 32px;
        text-align: center;
    }
    .download-art {
        order: -1;
    }
}

.download-card-inner {
    color: white;
    position: relative;
    z-index: 1;
}

.download-card-inner .section-eyebrow {
    color: var(--accent-warm);
}

.download-title {
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.028em;
    line-height: 1.05;
    color: white;
    margin-bottom: 14px;
}

.download-sub {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.55;
    margin-bottom: 32px;
    max-width: 480px;
}

@media (max-width: 820px) {
    .download-sub { margin-inline: auto; }
}

.download-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

@media (max-width: 820px) {
    .download-actions { justify-content: center; }
}

.download-card .btn-primary {
    background: white;
    color: var(--bg-dark);
}

.download-card .btn-primary:hover {
    background: rgba(255, 255, 255, 0.92);
    color: var(--bg-dark);
}

.download-card .btn-ghost {
    color: white;
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
}

.download-card .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.32);
    color: white;
}

.download-card .btn-ghost code {
    color: rgba(255, 255, 255, 0.85);
}

.download-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 820px) {
    .download-meta { justify-content: center; }
}

.download-meta a {
    color: rgba(255, 255, 255, 0.85);
}

.download-meta .dot {
    color: rgba(255, 255, 255, 0.3);
}

.download-art {
    text-align: center;
    position: relative;
    z-index: 1;
}

.download-art img {
    width: 220px;
    height: 220px;
    margin: 0 auto;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.4));
    animation: float 6s ease-in-out infinite;
}

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

/* ---------------------------------------------------------------------------
   Section: FAQ
   ------------------------------------------------------------------------- */

.section-faq {
    padding: 120px 0;
    background: var(--bg-soft);
    border-top: 1px solid var(--line);
}

.faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.faq-item[open] {
    border-color: #d6d4cb;
    box-shadow: var(--shadow-sm);
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 22px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    transition: background var(--t-fast);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary:hover {
    background: var(--bg-warm);
}

.faq-chevron {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-warm);
    color: var(--text-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 400;
    transition: transform var(--t-fast), background var(--t-fast), color var(--t-fast);
}

.faq-item[open] .faq-chevron {
    transform: rotate(45deg);
    background: var(--brand);
    color: white;
}

.faq-answer {
    padding: 0 28px 26px;
    color: var(--text-soft);
    font-size: 15.5px;
    line-height: 1.65;
}

.faq-answer p + p {
    margin-top: 10px;
}

.faq-aside {
    margin-top: 14px !important;
    padding: 12px 16px;
    background: var(--bg-warm);
    border-left: 3px solid var(--brand);
    border-radius: var(--r-xs);
    font-size: 14.5px;
    color: var(--text-soft);
}

.faq-steps {
    padding-left: 22px;
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.faq-steps li {
    line-height: 1.5;
}

.faq-answer em {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 600;
    color: var(--text);
}

/* ---------------------------------------------------------------------------
   Section: Community
   ------------------------------------------------------------------------- */

.section-community {
    padding: 120px 0;
}

.community-shell {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.community-title {
    font-size: clamp(2rem, 3.4vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.028em;
    line-height: 1.1;
    margin-bottom: 14px;
}

.community-sub {
    font-size: 17px;
    color: var(--text-soft);
    line-height: 1.55;
    margin-bottom: 40px;
}

.contributors-link {
    display: inline-block;
    margin-bottom: 32px;
}

.contributors-link img {
    border-radius: var(--r-md);
}

.community-cta {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

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

.site-footer {
    background: var(--bg-dark);
    color: var(--text-inv-soft);
    padding-top: 72px;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.4fr 2fr;
    gap: 64px;
    padding-bottom: 56px;
}

@media (max-width: 820px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.footer-brand {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.footer-logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
}

.footer-name {
    font-size: 17px;
    font-weight: 700;
    color: white;
    letter-spacing: -0.015em;
    margin-bottom: 4px;
}

.footer-tagline {
    font-size: 14px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.5);
    max-width: 280px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

@media (max-width: 520px) {
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

.footer-col h4 {
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    font-size: 14.5px;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 10px;
    transition: color var(--t-fast);
}

.footer-col a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 0 32px;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

/* ---------------------------------------------------------------------------
   Toast
   ------------------------------------------------------------------------- */

.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: var(--bg-dark);
    color: white;
    padding: 14px 20px;
    border-radius: var(--r-md);
    font-size: 14.5px;
    box-shadow: var(--shadow-lg);
    pointer-events: auto;
    animation: toastIn var(--t) var(--ease) forwards;
    max-width: 360px;
}

@keyframes toastIn {
    from { transform: translateY(10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ---------------------------------------------------------------------------
   Responsive — reduce top/bottom padding on small screens
   ------------------------------------------------------------------------- */

@media (max-width: 720px) {
    .hero { padding-top: 48px; }
    .section-pillars,
    .section-feature,
    .section-spotlight,
    .section-customize,
    .section-controls,
    .section-power,
    .section-privacy,
    .section-download,
    .section-faq,
    .section-community {
        padding: 72px 0;
    }
    .hero-visual { margin-top: 40px; padding: 0 16px; }
    .hero-image-frame { padding: 5px; transform: none; }
    .section-heading { margin-bottom: 40px; }
    .controls-half { padding: 28px; }
    .pillar-body { padding: 24px; }
    .pillar-card-wide .pillar-body { padding: 28px; }
    .dock-grid-item { padding: 24px; }
    .download-card { padding: 36px 22px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .hero-image-frame { transform: none; }
}

/* ===========================================================================
   macOS "desktop" theme — frosted glass, squircle tiles, and the Dock.
   This layer sits on top of the base styles and pushes the whole page toward
   the look and feel of macOS itself.
   ======================================================================== */

/* --- Menu-bar style header ---------------------------------------------- */
#header {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 1px 0 var(--glass-hair);
}
#header.scrolled {
    background: rgba(255, 255, 255, 0.72);
    border-bottom-color: var(--glass-hair);
}
.header-container { height: 60px; }
.logo img {
    border-radius: 24%;
    box-shadow: 0 1px 3px rgba(17, 19, 24, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.nav-link:hover { background: rgba(17, 19, 24, 0.06); }

/* --- Glossy brand buttons ----------------------------------------------- */
.btn-primary {
    background: var(--brand-grad);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45),
                0 8px 20px -8px rgba(240, 87, 31, 0.6),
                0 2px 6px -2px rgba(240, 87, 31, 0.4);
}
.btn-primary:hover {
    background: var(--brand-grad);
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5),
                0 14px 30px -10px rgba(240, 87, 31, 0.7),
                0 4px 10px -3px rgba(240, 87, 31, 0.45);
}
.btn-ghost {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 1px 2px var(--glass-hair), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.72); border-color: rgba(255, 255, 255, 0.9); }

/* --- Frost the few opaque sections so the wallpaper carries through ------ */
.section-spotlight-alt,
.section-privacy,
.section-faq {
    background: rgba(255, 255, 255, 0.34);
    backdrop-filter: saturate(150%) blur(14px);
    -webkit-backdrop-filter: saturate(150%) blur(14px);
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

/* The dark Custom Docks section becomes a floating dark-glass slab */
.section-feature-dark {
    margin: 0 auto;
    max-width: 1240px;
    border-radius: var(--r-2xl);
    box-shadow: var(--glass-shadow);
    overflow: hidden;
}

/* --- Glass squircle tiles ----------------------------------------------- */
.pillar-card,
.dock-grid-item,
.customize-card,
.settings-card,
.faq-item,
.privacy-pillar,
.download-card,
.community-shell,
.hero-image-frame,
.spotlight-visual img,
.spotlight-visual video {
    background: var(--glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-hair);
    box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-edge);
    border-radius: var(--r-xl);
}

.pillar-card,
.dock-grid-item,
.customize-card,
.settings-card,
.privacy-pillar {
    transition: transform var(--t), box-shadow var(--t);
    will-change: transform;
}

/* Magnify + lift on hover, like an icon rising out of the Dock */
.pillar-card:hover,
.dock-grid-item:hover,
.customize-card:hover,
.settings-card:hover,
.privacy-pillar:hover {
    transform: translateY(-6px) scale(1.018);
    box-shadow: 0 4px 12px -4px rgba(17, 19, 24, 0.14),
                0 36px 70px -24px rgba(17, 19, 24, 0.4),
                inset 0 1px 0 var(--glass-edge);
}

/* Squircle media + a moving sheen on the power-feature icon tiles */
.pillar-media,
.dock-grid-media,
.power-media,
.spotlight-visual img,
.spotlight-visual video,
.hero-image-frame { border-radius: var(--r-lg); }

.power-icon {
    background: var(--brand-grad);
    color: #fff;
    border-radius: 26%;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4),
                0 8px 18px -6px rgba(240, 87, 31, 0.5);
}

/* Settings tiles read like little app icons */
.settings-card { padding: 6px; border-radius: var(--r-lg); }
.settings-card img { border-radius: calc(var(--r-lg) - 6px); }

/* =========================================================================
   The Dock
   ====================================================================== */
body { padding-bottom: clamp(108px, 13vh, 150px); }

.dock {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    z-index: 60;
    max-width: calc(100vw - 24px);
}

.dock-rail {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    margin: 0;
    padding: 9px 12px;
    list-style: none;
    background: var(--dock-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-hair);
    border-radius: 26px;
    box-shadow: var(--dock-shadow);
    position: relative;
}
.dock-rail::before {
    content: "";
    position: absolute;
    inset: 1px 1px auto 1px;
    height: 50%;
    border-radius: 25px 25px 0 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.dock-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    list-style: none;
}
.dock-link { display: block; line-height: 0; }

.dock-tile {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 26%;
    background: var(--tile, var(--dock-tile));
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45),
                inset 0 -2px 6px rgba(0, 0, 0, 0.12),
                0 5px 12px -4px rgba(17, 19, 24, 0.45);
    transform-origin: center bottom;
    transition: transform 150ms var(--ease);
    will-change: transform;
}
.dock-tile svg { width: 56%; height: 56%; }
.dock-tile-logo { background: #fff; padding: 0; overflow: hidden; }
.dock-tile-logo img { width: 100%; height: 100%; border-radius: inherit; }

/* CSS-only magnify fallback when the JS pointer-tracker isn't running */
.dock:not(.mag) .dock-link:hover .dock-tile {
    transform: scale(1.45) translateY(-10px);
}

.dock-sep {
    align-self: center;
    width: 1px;
    height: 38px;
    margin: 0 4px;
    background: linear-gradient(180deg, transparent, rgba(17, 19, 24, 0.18), transparent);
}

.dock-dot {
    width: 4px;
    height: 4px;
    margin-top: 5px;
    border-radius: 50%;
    background: transparent;
    transition: background var(--t-fast);
}
.dock-item.active .dock-dot { background: var(--run-dot); }

.dock-tip {
    position: absolute;
    bottom: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(6px) scale(0.96);
    padding: 5px 11px;
    background: rgba(28, 30, 36, 0.92);
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    border-radius: 9px;
    box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--t-fast), transform var(--t-fast);
}
.dock-tip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(28, 30, 36, 0.92);
}
.dock-link:hover .dock-tip,
.dock-link:focus-visible .dock-tip {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
}

@media (max-width: 600px) {
    .dock-rail { gap: 5px; padding: 7px 9px; }
    .dock-tile { width: 40px; height: 40px; }
    .dock-sep { height: 30px; margin: 0 2px; }
    .dock-tip { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .dock-tile,
    .pillar-card, .dock-grid-item, .customize-card, .settings-card, .privacy-pillar {
        transition: none !important;
    }
    .dock:not(.mag) .dock-link:hover .dock-tile { transform: none; }
}
