:root {
    --ps-bg: #f5f5f7;
    --ps-surface: #ffffff;
    --ps-surface-soft: #fbfbfd;
    --ps-ink: #1d1d1f;
    --ps-muted: #6e6e73;
    --ps-blue: #0071e3;
    --ps-blue-soft: #e7f1ff;
    --ps-line: rgba(29, 29, 31, 0.08);
    --ps-shadow: 0 24px 80px rgba(15, 23, 42, 0.12);
    --ps-radius-xl: 32px;
    --ps-radius-lg: 24px;
    --ps-ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ps-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ps-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
    scroll-behavior: smooth;
}

body.ps-homepage {
    background: linear-gradient(180deg, #fbfbfd 0%, #f5f5f7 35%, #ffffff 100%);
    color: var(--ps-ink);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.ps-homepage .ai-assistant-widget,
body.ps-homepage .ai-auto-tip,
body.ps-homepage .dot-greeting,
body.ps-homepage .ai-live-stats,
body.ps-homepage .ai-bubble-canvas {
    display: none !important;
}

/* ═══ Custom cursor ═══ */
.ps-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--ps-blue);
    border-radius: 50%;
    pointer-events: none;
    z-index: 100003;
    mix-blend-mode: difference;
    transition: width 300ms var(--ps-ease-out), height 300ms var(--ps-ease-out),
                border-color 200ms ease, opacity 200ms ease;
    transform: translate(-50%, -50%);
    opacity: 0;
}

.ps-cursor.ps-cursor-visible {
    opacity: 1;
}

.ps-cursor.ps-cursor-hover {
    width: 48px;
    height: 48px;
    border-color: rgba(0, 113, 227, 0.4);
}

.ps-cursor.ps-cursor-click {
    width: 12px;
    height: 12px;
}

/* ═══ Cursor spotlight on dark sections ═══ */
.ps-spotlight-dark,
.ps-compare-strip,
.ps-cta-band,
.ps-grid-card-glow {
    --spot-x: 50%;
    --spot-y: 50%;
}

.ps-has-spotlight {
    position: relative;
}

.ps-spotlight-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 400ms ease;
    background: radial-gradient(600px circle at var(--spot-x) var(--spot-y),
                rgba(0, 113, 227, 0.08), transparent 50%);
}

.ps-has-spotlight:hover .ps-spotlight-glow {
    opacity: 1;
}

.ps-word {
    display: inline-block;
    opacity: 1;
    transform: none;
}

/* Stagger delays set via inline style */

/* ═══ Scroll-linked section scaling ═══ */
.ps-scale-in {
    transform: scale(0.96);
    transition: transform 700ms var(--ps-ease-out), opacity 700ms var(--ps-ease-out);
}

.ps-scale-in.is-visible {
    transform: scale(1);
}

/* ─── Scroll progress bar ─── */
.ps-scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--ps-blue), #34c3ff);
    z-index: 100002;
    pointer-events: none;
    transition: opacity 300ms ease;
}

/* ─── Ambient gradient orbs behind hero ─── */
.ps-hero {
    position: relative;
}

q.ps-hero::before,
.ps-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.35;
    pointer-events: none;
    z-index: -1;
    animation: ps-orb-drift 12s ease-in-out infinite alternate;
}

.ps-hero::before {
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(0, 113, 227, 0.06), transparent 70%);
    top: -80px;
    right: 5%;
}

.ps-hero::after {
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(100, 80, 200, 0.04), transparent 70%);
    bottom: -40px;
    left: 10%;
    animation-delay: -6s;
}

@keyframes ps-orb-drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(20px, -16px) scale(1.08); }
}

/* ─── Subtle grain texture ─── */
.ps-homepage::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 99999;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px;
}

/* ─── Navbar scroll-aware ─── */
.ps-site-header .navbar {
    transition: background 400ms ease, box-shadow 400ms ease, padding 400ms var(--ps-ease);
}

.ps-site-header .navbar.ps-nav-scrolled {
    background: var(--nav-bg-scrolled);
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}

.ps-skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ps-blue);
    color: #fff;
    padding: 12px 20px;
    border-radius: 0 0 16px 16px;
    z-index: 100001;
}

.ps-skip-link:focus {
    top: 0;
}

.ps-site-header .navbar {
    background: var(--nav-bg);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--nav-border);
}

.ps-site-header .nav-container {
    max-width: 1240px;
    padding: 0 28px;
}

.ps-site-header .nav-links {
    gap: 18px;
}

.ps-nav-cta {
    margin-left: 18px;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--ps-blue);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
}

.ps-hero,
.ps-stat-bar,
.ps-product-grid,
.ps-compare-strip,
.ps-service-band,
.ps-showcase,
.ps-spotlight {
    width: min(1320px, calc(100% - 32px));
    margin: 0 auto 28px;
}

/* ─── Trust marquee strip ─── */
.ps-trust-marquee {
    width: 100%;
    overflow: hidden;
    padding: 32px 0;
    margin-bottom: 28px;
    position: relative;
}

.ps-trust-marquee::before,
.ps-trust-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}

.ps-trust-marquee::before {
    left: 0;
    background: linear-gradient(90deg, var(--ps-bg), transparent);
}

.ps-trust-marquee::after {
    right: 0;
    background: linear-gradient(-90deg, var(--ps-bg), transparent);
}

.ps-trust-track {
    display: flex;
    gap: 56px;
    align-items: center;
    width: max-content;
    animation: ps-marquee 30s linear infinite;
}

.ps-trust-track span {
    flex-shrink: 0;
    color: var(--ps-muted);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    white-space: nowrap;
    opacity: 0.6;
    transition: opacity 300ms ease;
}

.ps-trust-track span:hover {
    opacity: 1;
}

@keyframes ps-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ps-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 160px 28px 0;
    background: linear-gradient(180deg, #fbfbfd 0%, #f5f5f7 100%);
    overflow: visible;
}

.ps-hero-copy {
    max-width: 780px;
}

.ps-eyebrow {
    margin-bottom: 14px;
    color: var(--ps-blue);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.ps-hero h1,
.ps-spotlight h2,
.ps-compare-strip h2,
.ps-service-band h2,
.ps-showcase h2 {
    letter-spacing: -0.05em;
    line-height: 0.95;
}

.ps-hero h1 {
    font-size: clamp(3.2rem, 8vw, 6.8rem);
    margin-bottom: 18px;
    text-wrap: balance;
}

.ps-hero h1 .ps-word {
    background: linear-gradient(180deg, #1d1d1f 0%, #3a3a3c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─── Text balance everywhere ─── */
.ps-spotlight h2,
.ps-compare-strip h2,
.ps-service-band h2,
.ps-showcase h2,
.ps-grid-card h3 {
    text-wrap: balance;
}

.ps-hero-subcopy {
    max-width: 480px;
    margin: 0 auto 36px;
    color: var(--ps-muted);
    font-size: clamp(1.05rem, 2.2vw, 1.25rem);
    line-height: 1.55;
}

.ps-hero-actions,
.ps-link-row,
.ps-footer-links,
.ps-footer-bottom div {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.ps-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    padding: 14px 24px;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 500;
    transition: transform 320ms var(--ps-ease-spring), box-shadow 320ms var(--ps-ease), background 200ms ease;
}

.ps-button:hover {
    transform: translateY(-2px) scale(1.02);
}

.ps-button:active {
    transform: translateY(0) scale(0.98);
    transition-duration: 80ms;
}

.ps-button-primary {
    background: var(--ps-blue);
    color: #fff;
    box-shadow: 0 12px 30px rgba(0, 113, 227, 0.24);
}

.ps-button-primary:hover {
    box-shadow: 0 16px 44px rgba(0, 113, 227, 0.36), 0 0 0 1px rgba(0, 113, 227, 0.12);
}

.ps-button-secondary {
    border: 1px solid var(--ps-line);
    color: var(--ps-blue);
    background: transparent;
}

.ps-button-secondary:hover {
    background: var(--ps-blue-soft);
    border-color: var(--ps-blue);
}



.ps-hero-visual {
    position: relative;
    width: 100%;
    max-width: 780px;
    margin-top: 34px;
    padding: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    border-radius: 0;
    background: none;
    border: none;
    box-shadow: none;
}

.ps-hero-product {
    width: 100%;
    max-width: 620px;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    filter: drop-shadow(0 24px 64px rgba(0, 0, 0, 0.12));
}

.ps-hero-actions {
    justify-content: center;
}

.ps-stat-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: var(--ps-radius-xl);
    overflow: hidden;
}

.ps-stat-item {
    padding: 26px 22px;
    background: rgba(255, 255, 255, 0.72);
    text-align: left;
    transition: background 300ms var(--ps-ease);
}

.ps-stat-item:hover {
    background: rgba(255, 255, 255, 0.96);
}

.ps-stat-item strong {
    display: block;
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
    transition: transform 320ms var(--ps-ease-spring);
}

.ps-stat-item:hover strong {
    transform: scale(1.08);
}

.ps-stat-item span {
    color: var(--ps-muted);
    font-size: 0.85rem;
    line-height: 1.45;
}

.ps-spotlight,
.ps-compare-strip,
.ps-service-band {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    border-radius: var(--ps-radius-xl);
    overflow: hidden;
}

.ps-spotlight-dark {
    background: #000000;
    color: #f5f5f7;
}

.ps-spotlight-copy,
.ps-compare-copy,
.ps-service-card {
    padding: 60px 56px;
}

.ps-spotlight-copy p,
.ps-compare-copy p,
.ps-service-card p,
.ps-grid-card p,
.ps-showcase-grid p {
    color: var(--ps-muted);
    font-size: 1.05rem;
    line-height: 1.55;
}

.ps-spotlight-dark .ps-spotlight-copy p {
    color: rgba(255, 255, 255, 0.72);
}

.ps-spotlight h2,
.ps-compare-strip h2,
.ps-service-band h2,
.ps-showcase h2 {
    font-size: clamp(2.6rem, 5vw, 4.4rem);
    margin-bottom: 16px;
}

.ps-link-row a,
.ps-inline-link {
    color: var(--ps-blue);
    font-weight: 500;
    position: relative;
    display: inline-block;
}

.ps-link-row a::after,
.ps-inline-link::after {
    content: " →";
    display: inline-block;
    transition: transform 260ms var(--ps-ease);
}

.ps-link-row a:hover::after,
.ps-inline-link:hover::after {
    transform: translateX(4px);
}

.ps-spotlight-visual,
.ps-service-visual {
    background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
    display: flex;
    align-items: stretch;
    justify-content: center;
    overflow: hidden;
}

.ps-spotlight-visual img,
.ps-service-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 700ms var(--ps-ease-out);
}

.ps-spotlight:hover .ps-spotlight-visual img,
.ps-service-band:hover .ps-service-visual img {
    transform: scale(1.03);
}

.ps-compare-strip {
    background: linear-gradient(180deg, #ffffff 0%, #f5f7fb 100%);
    color: var(--ps-ink);
    border: 1px solid var(--ps-line);
}

.ps-compare-copy p,
.ps-compare-copy .ps-eyebrow {
    color: var(--ps-muted);
}

.ps-compare-card {
    margin: 42px;
    padding: 28px;
    border-radius: var(--ps-radius-lg);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.06);
    align-self: center;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.ps-compare-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    color: var(--ps-muted);
    font-size: 0.95rem;
}

.ps-compare-row strong {
    color: var(--ps-ink);
}

.ps-compare-row:last-of-type {
    margin-bottom: 18px;
}

.ps-service-band {
    background: linear-gradient(180deg, #ffffff 0%, #f5f7fb 100%);
    border: 1px solid var(--ps-line);
}

.ps-showcase {
    padding: 74px 48px 82px;
    border-radius: var(--ps-radius-xl);
    background: linear-gradient(180deg, #fbfbfd 0%, #ffffff 100%);
    border: 1px solid var(--ps-line);
}

/* ─── Showcase icon/number accent ─── */
.ps-showcase-grid article {
    counter-increment: showcase;
    position: relative;
    padding-top: 58px;
}

.ps-showcase-grid article::before {
    content: '0' counter(showcase);
    position: absolute;
    top: 22px;
    left: 26px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--ps-blue);
    opacity: 0.5;
}

/* ─── Image clip-path reveal on scroll ─── */
.ps-clip-reveal img {
    clip-path: inset(0 0 100% 0);
    transition: clip-path 1s var(--ps-ease-out);
}

.ps-clip-reveal.is-visible img {
    clip-path: inset(0 0 0% 0);
}

/* ─── Apple-style product tile grid ─── */
.ps-product-grid-wrap {
    width: min(1320px, calc(100% - 32px));
    margin: 0 auto 28px;
    padding: 0 0 28px;
}

.ps-product-grid-heading {
    margin: 0 auto 40px;
    max-width: 720px;
    text-align: center;
}

.ps-product-grid-heading h2 {
    font-size: clamp(2.4rem, 5vw, 4rem);
    letter-spacing: -0.05em;
    line-height: 0.95;
}

.ps-product-grid-intro {
    max-width: 620px;
    margin: 14px auto 0;
    color: var(--ps-muted);
    font-size: 1.02rem;
    line-height: 1.55;
}

.ps-product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.ps-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 520px;
    padding: 48px 44px 0;
    border-radius: var(--ps-radius-xl);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 400ms var(--ps-ease-out), box-shadow 400ms var(--ps-ease);
}

.ps-tile:hover {
    transform: scale(1.01);
    box-shadow: 0 24px 56px rgba(15, 23, 42, 0.1);
}

.ps-tile-copy {
    position: relative;
    z-index: 2;
    text-align: center;
}

.ps-tile-copy .ps-eyebrow {
    margin-bottom: 8px;
}

.ps-tile-copy h3 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 10px;
}

.ps-tile-sub {
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 380px;
    margin: 0 auto 16px;
}

.ps-tile-link {
    display: inline-block;
    color: var(--ps-blue);
    font-size: 0.95rem;
    font-weight: 500;
}

.ps-tile img {
    display: block;
    width: 80%;
    max-height: 280px;
    margin: auto auto 0;
    object-fit: contain;
}

.ps-tile--os img {
    width: 90%;
    max-height: 250px;
}

/* Tile variants */
.ps-tile--light {
    background: linear-gradient(180deg, #f6f8fb 0%, #edf2f7 100%);
    color: var(--ps-ink);
}

.ps-tile--light .ps-tile-sub {
    color: var(--ps-muted);
}

.ps-tile--white {
    background: #fff;
    color: var(--ps-ink);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.ps-tile--white .ps-tile-sub {
    color: var(--ps-muted);
}

.ps-tile--navy {
    background: linear-gradient(180deg, #e3f0ff 0%, #d0e4fa 100%);
    color: var(--ps-ink);
}

.ps-tile--navy .ps-eyebrow {
    color: var(--ps-muted);
}

.ps-tile--navy .ps-tile-sub {
    color: var(--ps-muted);
}

.ps-tile--dark {
    background: #000;
    color: #f5f5f7;
}

.ps-tile--dark .ps-eyebrow {
    color: rgba(255, 255, 255, 0.5);
}

.ps-tile--dark .ps-tile-sub {
    color: rgba(255, 255, 255, 0.65);
}

.ps-tile--warm {
    background: linear-gradient(180deg, #f8f3ea 0%, #efe8dc 100%);
    color: var(--ps-ink);
}

.ps-tile--warm .ps-tile-sub {
    color: var(--ps-muted);
}

.ps-tile--blue {
    background: linear-gradient(180deg, #e8f1ff 0%, #d4e5ff 100%);
    color: var(--ps-ink);
}

.ps-tile--blue .ps-tile-sub {
    color: var(--ps-muted);
}

/* PixelOS dark tile with glowing mark */
.ps-tile--os {
    justify-content: center;
    align-items: center;
    text-align: center;
}

.ps-tile--violet {
    background: linear-gradient(180deg, #f0e8ff 0%, #e0d4f7 100%);
    color: var(--ps-ink);
}

.ps-tile--violet .ps-eyebrow {
    color: var(--ps-muted);
}

.ps-tile--violet .ps-tile-sub {
    color: var(--ps-muted);
}

/* Full-width tile (spans 2 columns) */
.ps-tile--full {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    min-height: 420px;
    padding: 48px 56px;
}

.ps-tile--full .ps-tile-copy {
    text-align: left;
    flex: 1;
}

.ps-tile--full .ps-tile-sub {
    margin-left: 0;
}

.ps-tile--full img {
    flex: 0 0 auto;
    width: 44%;
    max-height: 340px;
    margin: 0;
}

/* ─── Magnetic button wrapper ─── */
.ps-magnetic {
    display: inline-block;
    transition: transform 200ms var(--ps-ease-out);
}

/* ─── Section divider line ─── */
.ps-divider {
    width: min(1320px, calc(100% - 32px));
    margin: 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--ps-line) 20%, var(--ps-line) 80%, transparent 100%);
    border: none;
}

.ps-showcase-heading {
    max-width: 760px;
    margin-bottom: 34px;
}

.ps-showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.ps-showcase-grid article {
    padding: 26px;
    border-radius: var(--ps-radius-lg);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--ps-line);
    transition: transform 380ms var(--ps-ease-out), box-shadow 380ms var(--ps-ease), border-color 380ms ease;
}

.ps-showcase-grid article:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.08);
    border-color: rgba(0, 113, 227, 0.18);
}

.ps-showcase-grid h3 {
    margin-bottom: 10px;
    font-size: 1.35rem;
    letter-spacing: -0.03em;
}

/* ─── Full-width dark CTA band above footer ─── */
.ps-cta-band {
    width: min(1320px, calc(100% - 32px));
    margin: 48px auto 28px;
    padding: 72px 56px;
    border-radius: var(--ps-radius-xl);
    background: #000000;
    text-align: center;
    color: #f5f5f7;
    position: relative;
    overflow: hidden;
}

.ps-cta-band::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.04), transparent 70%);
    top: -120px;
    right: -60px;
    pointer-events: none;
}

.ps-cta-band h2 {
    font-size: clamp(2.4rem, 5vw, 4rem);
    letter-spacing: -0.05em;
    line-height: 0.95;
    margin-bottom: 14px;
    text-wrap: balance;
}

.ps-cta-band p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    max-width: 520px;
    margin: 0 auto 28px;
}

.ps-cta-band .ps-button-primary {
    background: #fff;
    color: #1d1d1f;
    box-shadow: 0 12px 40px rgba(255, 255, 255, 0.12);
}

.ps-cta-band .ps-button-primary:hover {
    box-shadow: 0 16px 52px rgba(255, 255, 255, 0.22);
}

.ps-footer {
    width: min(1320px, calc(100% - 32px));
    margin: 0 auto 28px;
    padding: 24px 6px 0;
    color: var(--ps-muted);
    position: relative;
    z-index: 1;
}

.ps-footer-top,
.ps-footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
}

.ps-footer-top {
    padding: 24px 0;
    border-top: 1px solid var(--ps-line);
}

.ps-footer-bottom {
    padding: 20px 0 28px;
    border-top: 1px solid var(--ps-line);
    font-size: 0.92rem;
}

.ps-footer-tagline {
    margin-top: 10px;
    font-size: 0.96rem;
}

.ps-footer-links a {
    color: var(--ps-muted);
}

.ps-footer-links a:hover {
    color: var(--ps-blue);
}

.ps-footer-bottom a {
    color: var(--ps-muted);
}

.ps-footer-bottom a:hover {
    color: var(--ps-blue);
}

.ps-reveal {
    opacity: 0;
    transform: translateY(42px);
    transition: opacity 800ms var(--ps-ease-out), transform 800ms var(--ps-ease-out);
}

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

/* Staggered children reveal */
.ps-product-grid .ps-tile,
.ps-showcase-grid article,
.ps-stat-bar .ps-stat-item {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 600ms var(--ps-ease-out), transform 600ms var(--ps-ease-out);
}

.ps-reveal.is-visible .ps-tile,
.ps-reveal.is-visible article,
.ps-reveal.is-visible .ps-stat-item {
    opacity: 1;
    transform: translateY(0);
}

.ps-reveal.is-visible :nth-child(1) { transition-delay: 0ms; }
.ps-reveal.is-visible :nth-child(2) { transition-delay: 100ms; }
.ps-reveal.is-visible :nth-child(3) { transition-delay: 200ms; }
.ps-reveal.is-visible :nth-child(4) { transition-delay: 300ms; }

/* Nav CTA glow pulse */
.ps-nav-cta {
    transition: box-shadow 300ms ease, transform 200ms var(--ps-ease-spring);
}

.ps-nav-cta:hover {
    transform: scale(1.06);
    box-shadow: 0 4px 16px rgba(0, 113, 227, 0.3);
}

/* Footer link hover */
.ps-footer a {
    transition: color 200ms ease;
}

.ps-footer a:hover {
    color: var(--ps-blue);
}

/* Compare card glassmorphism */
.ps-compare-card {
    transition: transform 400ms var(--ps-ease-out), box-shadow 400ms var(--ps-ease);
}

.ps-compare-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
}



/* ─── Parallax layers ─── */
[data-parallax] {
    will-change: transform;
}

/* ─── Spotlight dark animated gradient ─── */
.ps-spotlight-dark {
    background: linear-gradient(135deg, #000000 0%, #0a0a0a 50%, #000000 100%);
    background-size: 200% 200%;
    animation: ps-dark-shift 10s ease infinite;
}

@keyframes ps-dark-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ─── Mobile-only elements — hidden on desktop ─── */
.ps-m-bottom-cta,
.ps-m-drawer,
.ps-m-drawer-overlay,
.ps-m-overscroll-glow,
.ps-m-section-dots {
    display: none;
}

@media (max-width: 1060px) {
    .ps-hero,
    .ps-spotlight,
    .ps-compare-strip,
    .ps-service-band {
        grid-template-columns: 1fr;
    }

    .ps-showcase-grid,
    .ps-stat-bar {
        grid-template-columns: 1fr 1fr;
    }

    .ps-hero {
        padding-top: 96px;
    }

    .ps-hero-visual {
        min-height: auto;
    }
}

@media (max-width: 768px) {
    html,
    body,
    .ps-homepage,
    .ps-homepage main {
        max-width: 100%;
        overflow-x: hidden;
    }

    .ps-site-header .navbar {
        height: 52px;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: saturate(180%) blur(18px);
        -webkit-backdrop-filter: saturate(180%) blur(18px);
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .ps-site-header .nav-container {
        padding: 0 16px;
    }

    .ps-site-header .nav-links,
    .ps-nav-cta {
        display: none;
    }

    .ps-site-header .nav-toggle {
        display: flex;
        margin-left: auto;
        width: 34px;
        height: 34px;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        background: rgba(0, 0, 0, 0.04);
    }

    .ps-site-header .nav-toggle span {
        position: absolute;
        width: 14px;
        height: 1.8px;
        border-radius: 2px;
        background: rgba(0, 0, 0, 0.78);
        transition: transform 200ms ease, opacity 180ms ease;
    }

    .ps-site-header .nav-toggle span:first-child {
        transform: translateY(-3px);
    }

    .ps-site-header .nav-toggle span:last-child {
        transform: translateY(3px);
    }

    .ps-site-header .nav-toggle.is-open span:first-child {
        transform: translateY(0) rotate(45deg);
    }

    .ps-site-header .nav-toggle.is-open span:last-child {
        transform: translateY(0) rotate(-45deg);
    }

    .ps-site-header .logo-img {
        width: 22px;
        height: 22px;
    }

    .ps-hero,
    .ps-spotlight-copy,
    .ps-compare-copy,
    .ps-service-card,
    .ps-showcase {
        padding-left: 22px;
        padding-right: 22px;
    }

    /* ═══ MOBILE HERO ═══ */
    .ps-hero {
        width: 100%;
        min-height: auto;
        padding: 78px 20px 0;
        gap: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        justify-content: flex-start;
        border-radius: 0;
        margin-bottom: 0;
        overflow: hidden;
        box-sizing: border-box;
    }

    .ps-hero-copy {
        width: 100%;
        max-width: 340px;
    }

    .ps-hero h1 {
        font-size: clamp(2.8rem, 14vw, 4.8rem);
        line-height: 0.92;
        letter-spacing: -0.06em;
        margin-bottom: 14px;
    }

    .ps-hero-subcopy {
        font-size: 0.98rem;
        max-width: 316px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 24px;
    }

    .ps-eyebrow {
        font-size: 11px;
        letter-spacing: 0.14em;
    }

    .ps-hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }

    /* Hero visual */
    .ps-hero-visual {
        display: block;
        min-height: auto;
        width: 100%;
        margin-top: 8px;
        padding: 0;
        border-radius: 0;
    }

    .ps-hero-product {
        width: min(88vw, 360px);
        max-width: 360px;
        height: auto;
        margin: 0 auto 12px;
    }

    /* Ambient orbs — mobile size */
    .ps-hero::before {
        width: 260px;
        height: 260px;
        top: -40px;
        right: -20%;
    }

    .ps-hero::after {
        width: 200px;
        height: 200px;
        bottom: 10%;
        left: -10%;
    }

    .ps-m-bottom-cta {
        display: flex;
    }

    .ps-m-overscroll-glow,
    .ps-m-section-dots {
        display: none !important;
    }

    .ps-button {
        width: 100%;
    }

    .ps-spotlight,
    .ps-compare-strip,
    .ps-service-band,
    .ps-showcase,
    .ps-cta-band {
        width: calc(100% - 20px);
        margin-left: auto;
        margin-right: auto;
        border-radius: 24px;
    }

    .ps-cta-band {
        padding: 48px 24px;
    }

    .ps-trust-marquee {
        padding: 18px 0;
        margin-bottom: 20px;
    }

    .ps-trust-track span {
        font-size: 0.82rem;
        letter-spacing: 0.04em;
    }

    .ps-reveal {
        opacity: 0;
        transform: translateY(28px);
        transition: opacity 500ms var(--ps-ease-out), transform 500ms var(--ps-ease-out);
    }

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

    .ps-reveal.is-visible .ps-stat-item,
    .ps-reveal.is-visible .ps-tile,
    .ps-reveal.is-visible article {
        animation: none;
    }

    /* ═══ PRODUCT TILE GRID — MOBILE ═══ */
    .ps-product-grid-wrap {
        width: calc(100% - 20px);
        max-width: calc(100% - 20px);
        overflow: hidden;
    }

    .ps-product-grid-heading {
        margin-bottom: 24px;
        max-width: 420px;
    }

    .ps-product-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .ps-tile {
        min-height: 410px;
        padding: 30px 20px 0;
        border-radius: 24px;
        box-sizing: border-box;
    }

    .ps-tile-copy h3 {
        font-size: clamp(1.9rem, 8.6vw, 2.5rem);
        line-height: 1.02;
    }

    .ps-tile-sub {
        max-width: 300px;
        font-size: 0.96rem;
    }

    .ps-tile img {
        width: 84%;
        max-height: 210px;
    }

    .ps-tile--os img {
        width: 92%;
        max-height: 200px;
    }

    .ps-tile--full {
        flex-direction: column;
        padding: 32px 20px 0;
        min-height: 430px;
    }

    .ps-tile--full .ps-tile-copy {
        text-align: center;
    }

    .ps-tile--full .ps-tile-sub {
        margin-left: auto;
        margin-right: auto;
    }

    .ps-tile--full img {
        width: 80%;
        margin: auto auto 0;
    }

    .ps-spotlight-copy,
    .ps-compare-copy,
    .ps-service-card,
    .ps-showcase {
        padding-left: 20px;
        padding-right: 20px;
    }

    .ps-spotlight-copy,
    .ps-compare-copy,
    .ps-service-card {
        padding-top: 28px;
        padding-bottom: 8px;
    }

    .ps-spotlight h2,
    .ps-compare-strip h2,
    .ps-service-band h2,
    .ps-showcase h2,
    .ps-cta-band h2 {
        font-size: clamp(2.1rem, 10vw, 3rem);
        line-height: 0.98;
    }

    .ps-compare-card {
        margin: 0 16px 16px;
    }

    .ps-tile img {
        width: 85%;
    }

    .ps-cursor {
        display: none !important;
    }

    .ps-showcase-grid,
    .ps-stat-bar {
        grid-template-columns: 1fr;
    }

    /* ═══ STAT BAR — APP-STYLE 2×2 GRID ═══ */
    .ps-stat-bar {
        grid-template-columns: repeat(2, 1fr);
        border-radius: 20px;
        width: calc(100% - 20px);
        max-width: calc(100% - 20px);
        gap: 2px;
        background: rgba(0, 0, 0, 0.05);
        margin-top: 4px;
    }

    .ps-stat-item {
        padding: 18px 14px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .ps-stat-item strong {
        font-size: clamp(1rem, 4.6vw, 1.25rem);
        line-height: 1.08;
        letter-spacing: -0.03em;
        color: var(--ps-ink);
        background: none;
        -webkit-background-clip: border-box;
        -webkit-text-fill-color: currentColor;
        background-clip: border-box;
    }

    .ps-stat-item span {
        font-size: 0.8rem;
        font-weight: 500;
        letter-spacing: 0.01em;
        text-align: left;
    }

    .ps-compare-card {
        margin: 0 20px 20px;
        padding: 22px;
    }

    .ps-compare-row {
        font-size: 0.92rem;
        padding: 12px 0;
    }

    .ps-compare-row strong {
        font-weight: 700;
        color: #fff;
    }

    .ps-showcase-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .footer .container {
        padding: 0 18px;
    }

    .footer-directory {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 10px 0 8px;
    }

    .footer-col {
        margin-bottom: 0;
        min-width: 0;
        border-bottom: 1px solid #d2d2d7;
        padding: 0;
    }

    .footer-col h4 {
        font-size: 0.78rem;
        margin-bottom: 0;
    }

    .footer-col a {
        font-size: 0.82rem;
        line-height: 1.45;
        margin-bottom: 7px;
    }

    .footer-social {
        margin-top: 14px;
    }

    .footer-accordion-section {
        border-top: 1px solid #d2d2d7;
    }

    .footer-accordion-section:first-child {
        border-top: none;
    }

    .footer-accordion-trigger {
        width: 100%;
        border: none;
        background: transparent;
        color: #1d1d1f;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 15px 0;
        font-size: 0.92rem;
        font-weight: 500;
        letter-spacing: -0.01em;
        text-align: left;
        cursor: pointer;
    }

    .footer-accordion-trigger::after {
        content: "+";
        color: #6e6e73;
        font-size: 1.2rem;
        line-height: 1;
        flex: 0 0 auto;
    }

    .footer-accordion-section.is-open .footer-accordion-trigger::after {
        content: "−";
    }

    .footer-accordion-panel {
        display: none;
        padding: 0 0 14px;
    }

    .footer-accordion-section.is-open .footer-accordion-panel {
        display: block;
    }

    .footer-accordion-panel a {
        display: block;
        margin-bottom: 11px;
    }

    .footer-accordion-panel .footer-social {
        margin-top: 10px;
        padding-bottom: 2px;
    }

    .footer-shop-more {
        font-size: 0.78rem;
        line-height: 1.45;
    }

    .footer-bottom-bar,
    .footer-bottom-left,
    .footer-legal-links {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .footer-bottom-bar {
        padding: 16px 0 28px;
    }

    .footer-legal-links a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        padding: 10px 8px 10px 0;
    }

    .footer-region,
    .footer-copyright,
    .footer-shop-more {
        white-space: normal;
    }

    .footer-legal-links a {
        border-left: none;
        padding: 0;
        white-space: normal;
    }

    /* ═══ BOTTOM FLOATING CTA PILL ═══ */
    .ps-m-bottom-cta {
        position: fixed;
        bottom: 16px;
        left: 50%;
        transform: translateX(-50%) translateY(120px);
        z-index: 100001;
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 18px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.94);
        backdrop-filter: saturate(180%) blur(18px);
        -webkit-backdrop-filter: saturate(180%) blur(18px);
        color: var(--ps-ink);
        font-size: 0.9rem;
        font-weight: 500;
        white-space: nowrap;
        box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
        border: 1px solid rgba(0, 0, 0, 0.06);
        transition: transform 500ms var(--ps-ease-spring),
                    opacity 400ms ease;
        opacity: 0;
        text-decoration: none;
    }

    .ps-m-bottom-cta.ps-m-visible {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }

    .ps-m-bottom-cta::after {
        content: '→';
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background: var(--ps-blue);
        color: #fff;
        font-size: 0.82rem;
        transition: transform 260ms var(--ps-ease-spring);
    }

    .ps-m-bottom-cta:active::after {
        transform: scale(0.9);
    }

    .ps-m-bottom-cta::before {
        content: none;
    }

    /* ═══ MOBILE SPOTLIGHT SECTION GLOW ON ENTRY ═══ */
    .ps-spotlight-dark.is-visible,
    .ps-compare-strip.is-visible {
        animation: ps-m-section-glow 800ms ease-out;
    }

    @keyframes ps-m-section-glow {
        0% { box-shadow: 0 0 0 0 rgba(0, 113, 227, 0); }
        40% { box-shadow: 0 0 60px 8px rgba(0, 113, 227, 0.18); }
        100% { box-shadow: none; }
    }

    /* ═══ SMOOTH TEXT REVEAL ON MOBILE ═══ */
    .ps-word {
        transform: translateY(40px) rotateX(60deg) scale(0.85);
        transition: opacity 600ms var(--ps-ease-out),
                    transform 800ms var(--ps-ease-spring);
        filter: blur(4px);
    }

    body.ps-homepage:not(.ps-loading) .ps-word {
        filter: blur(0);
        transition: opacity 600ms var(--ps-ease-out),
                    transform 800ms var(--ps-ease-spring),
                    filter 600ms var(--ps-ease-out);
    }

    /* ═══ HEADINGS — APP-TIER TYPOGRAPHY ═══ */
    .ps-spotlight h2,
    .ps-compare-strip h2,
    .ps-service-band h2,
    .ps-cta-band h2 {
        font-size: clamp(2rem, 9vw, 3.2rem);
        line-height: 0.92;
        letter-spacing: -0.05em;
    }

    .ps-showcase h2 {
        font-size: clamp(1.8rem, 8vw, 2.8rem);
    }

    .ps-hscroll-card h3 {
        font-size: clamp(1.3rem, 5vw, 1.7rem);
        letter-spacing: -0.04em;
    }

    .ps-showcase-grid h3 {
        font-size: 1.15rem;
    }

    /* ═══ PARAGRAPHS — MOBILE READABLE ═══ */
    .ps-spotlight-copy p,
    .ps-compare-copy p,
    .ps-service-card p,
    .ps-cta-band p {
        font-size: 0.95rem;
        line-height: 1.55;
    }

    .ps-hscroll-card p {
        font-size: 0.88rem;
        line-height: 1.5;
    }

    /* ═══ EYEBROW — TIGHTER ═══ */
    .ps-eyebrow {
        font-size: 0.68rem;
        letter-spacing: 0.2em;
        margin-bottom: 10px;
    }

    /* ─── Elastic bounce on horizontal scroll ends ─── */
    .ps-hscroll-track {
        scroll-behavior: smooth;
    }

    .ps-hscroll-track.ps-m-bounce-left {
        animation: ps-m-hbounce-left 400ms var(--ps-ease-spring);
    }

    .ps-hscroll-track.ps-m-bounce-right {
        animation: ps-m-hbounce-right 400ms var(--ps-ease-spring);
    }

    @keyframes ps-m-hbounce-left {
        0% { transform: translateX(0); }
        40% { transform: translateX(18px); }
        100% { transform: translateX(0); }
    }

    @keyframes ps-m-hbounce-right {
        0% { transform: translateX(0); }
        40% { transform: translateX(-18px); }
        100% { transform: translateX(0); }
    }

    /* ─── Apple-style mobile menu panel ─── */
    .ps-m-drawer {
        display: block;
        position: fixed;
        top: 44px;
        left: 0;
        right: 0;
        z-index: 100002;
        background: rgba(245, 245, 247, 0.94);
        backdrop-filter: saturate(160%) blur(20px);
        -webkit-backdrop-filter: saturate(160%) blur(20px);
        border-radius: 0 0 22px 22px;
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
        transform: translateY(-18px);
        opacity: 0;
        pointer-events: none;
        transition: transform 280ms ease, opacity 220ms ease;
        padding: 10px 24px 18px;
        max-height: calc(100vh - 44px);
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .ps-m-drawer.ps-m-drawer-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .ps-m-drawer-handle {
        display: none;
    }

    .ps-m-drawer-grid {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .ps-m-drawer-item {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 9px 0;
        border-radius: 0;
        background: transparent;
        border: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        text-decoration: none;
        color: #1d1d1f;
        font-size: 2rem;
        line-height: 1.12;
        font-weight: 600;
        letter-spacing: -0.02em;
        transition: color 150ms ease, opacity 150ms ease;
    }

    .ps-m-drawer-item:last-child {
        border-bottom: 0;
    }

    .ps-m-drawer-item:active {
        opacity: 0.6;
        color: #1d1d1f;
    }

    .ps-m-drawer-icon {
        display: none;
    }

    /* Drawer overlay backdrop */
    .ps-m-drawer-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 100001;
        background: rgba(0, 0, 0, 0.2);
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 220ms ease;
    }

    .ps-m-drawer-overlay.ps-m-drawer-open {
        opacity: 1;
        pointer-events: auto;
    }

    /* ─── Dynamic theme bar coloring on dark sections ─── */
    /* Handled via JS — meta[theme-color] swap */

    /* ─── Stat counter elastic overshoot ─── */
    .ps-stat-item {
        transition: transform 400ms var(--ps-ease-spring),
                    background 300ms ease;
    }

    .ps-stat-item strong {
        transition: transform 300ms var(--ps-ease-spring);
    }

    .ps-stat-item.ps-m-counted {
        animation: ps-m-stat-slam 700ms var(--ps-ease-spring);
    }

    .ps-stat-item.ps-m-counted strong {
        animation: ps-m-counter-pop 600ms var(--ps-ease-spring);
    }

    @keyframes ps-m-stat-slam {
        0% { transform: scale(0.7) translateY(12px); opacity: 0.3; }
        50% { transform: scale(1.06) translateY(-4px); opacity: 1; }
        75% { transform: scale(0.98) translateY(1px); }
        100% { transform: scale(1) translateY(0); opacity: 1; }
    }

    @keyframes ps-m-counter-pop {
        0% { transform: scale(0.5); opacity: 0; filter: blur(4px); }
        50% { transform: scale(1.2); opacity: 1; filter: blur(0); }
        75% { transform: scale(0.95); }
        100% { transform: scale(1); opacity: 1; }
    }

    /* ─── Navbar morphing on scroll ─── */
    .ps-site-header .navbar.ps-m-nav-compact {
        height: 40px;
        background: rgba(255, 255, 255, 0.95);
    }

    .ps-site-header .navbar.ps-m-nav-compact .nav-logo .logo-img {
        transform: scale(0.85);
        transition: transform 300ms var(--ps-ease-out);
    }

    /* ─── Sections: edge-to-edge bleed on mobile ─── */
    .ps-spotlight,
    .ps-compare-strip,
    .ps-service-band {
        grid-template-columns: 1fr;
    }

    .ps-spotlight-visual,
    .ps-service-visual {
        max-height: 280px;
    }

    .ps-spotlight-visual {
        min-height: 240px;
        padding: 16px 12px 0;
        align-items: end;
    }

    .ps-spotlight-visual img {
        width: auto;
        max-width: 100%;
        height: auto;
        max-height: 264px;
        object-fit: contain;
        object-position: center bottom;
    }

    .ps-service-visual {
        min-height: 220px;
        padding: 18px 18px 0;
        align-items: end;
        justify-items: center;
    }

    .ps-service-visual img {
        width: auto;
        max-width: 100%;
        height: auto;
        max-height: 202px;
        object-fit: contain;
        object-position: center bottom;
    }

    /* ─── Scroll-linked card rotation in hscroll ─── */
    .ps-hscroll-card {
        perspective: 800px;
    }

    .ps-hscroll-card.ps-m-active {
        transform: scale(1.03) rotateY(0deg);
    }

    /* Cards not in view tilt slightly */
    .ps-hscroll-card:not(.ps-m-active) {
        transform: scale(0.95) rotateY(3deg);
        opacity: 0.7;
        transition: transform 400ms var(--ps-ease-out),
                    opacity 300ms ease,
                    box-shadow 300ms ease;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .ps-trust-track {
        animation: none;
    }

    [data-parallax] {
        will-change: auto;
    }

    .ps-word {
        opacity: 1 !important;
        transform: none !important;
    }

    .ps-scale-in {
        transform: none !important;
    }

    .ps-clip-reveal img {
        clip-path: none !important;
    }
}
