/* PairClip Official Website — Google Antigravity Layout & Visual Grammar
   Pure-white editorial canvas, radial multi-color directional particle burst,
   high-contrast pure-black rounded showcase & download islands, split-screen
   feature explorer, scenarios carousel, and 3-tier giant-wordmark footer.
   Zero external CDN dependencies. */

:root {
    --canvas: #ffffff;
    --surface-soft: #f4f6f9;
    --surface-pill: #eff2f6;
    --surface-card: #ffffff;
    --dark-island: #07090f;
    --dark-card: #0c101b;
    --dark-pill: rgba(255, 255, 255, 0.12);
    --border: rgba(17, 19, 24, 0.09);
    --border-strong: rgba(17, 19, 24, 0.16);
    --dark-border: rgba(255, 255, 255, 0.14);
    --ink: #111318;
    --ink-hover: #272b36;
    --ink-2: #4a4f5c;
    --ink-3: #687082;
    --ink-inv: #ffffff;
    --ink-inv-hover: #eef2f7;
    --ink-inv-2: #b8c2d6;
    --accent: #1a73e8;
    --rainbow: linear-gradient(180deg, #4285f4 0%, #9b72cb 35%, #d96570 68%, #fbbc04 100%);
    --halo-rainbow: linear-gradient(135deg, rgba(66, 133, 244, 0.35), rgba(155, 114, 203, 0.32), rgba(217, 101, 112, 0.25), rgba(251, 188, 4, 0.24));
    --halo-blue: linear-gradient(135deg, rgba(56, 189, 248, 0.40), rgba(99, 102, 241, 0.32), rgba(255, 255, 255, 0.08));
    --shadow-sm: 0 2px 12px rgba(17, 19, 24, 0.04);
    --shadow-md: 0 14px 40px rgba(17, 19, 24, 0.08);
    --shadow-lg: 0 28px 80px rgba(17, 19, 24, 0.12);
    --font: "Google Sans", "SF Pro Display", "Segoe UI Variable Display", "PingFang SC",
        "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
    --mono: "JetBrains Mono", "SF Mono", "Cascadia Mono", ui-monospace, Menlo, Consolas, monospace;
    --max: 1240px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 76px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color-scheme: light;
}

dialog:modal {
    overscroll-behavior: contain;
}

dialog::backdrop {
    overflow: hidden;
    overscroll-behavior: contain;
}

body {
    font-family: var(--font);
    background: var(--canvas);
    color: var(--ink);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: clip;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    color: inherit;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.skip {
    position: absolute;
    left: 16px;
    top: -56px;
    z-index: 200;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--ink-inv);
    font-size: 0.88rem;
    font-weight: 600;
}

.skip:focus {
    top: 16px;
}

.container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 28px;
}

/* Sticky Pure-White Header + Sub-Header Announcement Bar */

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    container-type: scroll-state;
    container-name: site-header;
}

.header-surface {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid transparent;
    transition: border-color 180ms ease;
}

.site-header.is-scrolled .header-surface {
    border-bottom-color: var(--border);
}

@container site-header scroll-state(stuck: top) {
    .header-surface {
        border-bottom-color: var(--border);
    }
}

.header-inner {
    max-width: 1360px;
    height: 60px;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    font-size: 1.04rem;
    font-weight: 500;
    letter-spacing: -0.015em;
}

/* Brand Mark Usage Contract:
   Uses tight-cropped 1:1 SVG (design/logos/logo-tight.svg).
   Never apply secondary CSS border-radius clipping over the vector squircle. */
.brand-mark {
    width: 26px;
    height: 26px;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
}

.nav-links a {
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ink-2);
    white-space: nowrap;
    transition: color 140ms ease, background-color 140ms ease;
}

.nav-links a:hover,
.nav-links a:where(.is-current, [aria-current="page"]) {
    color: var(--ink);
    background: var(--surface-pill);
}

.nav-links a:where(.is-current, [aria-current="page"]) {
    font-weight: 600;
}

.header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    padding: 0 18px;
    border-radius: 999px;
    background-color: var(--ink);
    color: var(--ink-inv);
    font-size: 0.88rem;
    font-weight: 500;
    white-space: nowrap;
    transition: background-color 150ms ease, color 150ms ease, transform 150ms var(--ease);
}

.header-cta:hover {
    background-color: var(--ink-hover);
    color: var(--ink-inv);
    transform: translateY(-1px);
}

.lang-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: var(--canvas);
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--ink-2);
    transition: background-color 140ms ease, color 140ms ease;
}

.lang-pill:hover {
    background: var(--surface-soft);
    color: var(--ink);
}

.mobile-menu-btn {
    display: none;
    appearance: none;
    border: 1px solid var(--border-strong);
    background: var(--canvas);
    width: 38px;
    height: 38px;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.mobile-menu-btn svg {
    width: 18px;
    height: 18px;
    stroke: var(--ink);
    stroke-width: 1.8;
    fill: none;
}

.mobile-drawer {
    position: fixed;
    inset: 0;
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.mobile-drawer::backdrop {
    background: rgba(17, 19, 24, 0.38);
}

.mobile-drawer-sheet {
    margin-left: auto;
    width: min(22rem, 86dvw);
    height: 100vh;
    height: 100svh;
    background: var(--canvas);
    padding: 18px 20px 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    overscroll-behavior: contain;
    box-shadow: var(--shadow-lg);
}

.mobile-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
    font-weight: 600;
}

.mobile-drawer-close {
    appearance: none;
    border: 1px solid var(--border-strong);
    background: var(--canvas);
    min-width: 38px;
    min-height: 38px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
}

.mobile-drawer-close:hover {
    background: var(--surface-soft);
}

.mobile-drawer-sheet a {
    padding: 14px 18px;
    border-radius: 14px;
    background: var(--surface-soft);
    font-size: 1rem;
    font-weight: 500;
}

.mobile-drawer-sheet a[aria-current="page"] {
    border: 1px solid var(--border-strong);
    font-weight: 600;
}

.mobile-drawer-sheet .mobile-drawer-cta {
    margin-top: 8px;
    background-color: var(--ink);
    color: var(--ink-inv);
    text-align: center;
    border-radius: 999px;
    transition: background-color 150ms ease;
}

.mobile-drawer-sheet .mobile-drawer-cta:hover {
    background-color: var(--ink-hover);
    color: var(--ink-inv);
}

/* Announcement Strip */

.announce-bar {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--canvas);
    padding: 9px 24px;
}

.announce-bar[hidden] {
    display: none;
}

.announce-inner {
    max-width: 1360px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    font-size: 0.86rem;
    color: var(--ink-2);
}

.announce-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--ink-inv);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.announce-link {
    color: var(--ink);
    font-weight: 500;
    white-space: nowrap;
}

.announce-link:hover {
    text-decoration: underline;
}

.announce-close {
    position: absolute;
    right: 0;
    appearance: none;
    border: 0;
    background: transparent;
    min-width: 32px;
    min-height: 32px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-3);
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
}

.announce-close:hover {
    background: var(--surface-pill);
    color: var(--ink);
}

/* 0. Antigravity Radial Particle Hero */

.hero {
    position: relative;
    min-height: min(82vh, 720px);
    min-height: min(82svh, 720px);
    padding: 64px 0 56px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--canvas);
}

#ag-hero-particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
    width: 100%;
    text-align: center;
}

.hero-lockup {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.18rem;
    font-weight: 500;
    letter-spacing: -0.015em;
    color: var(--ink);
}

.hero-lockup img {
    width: 28px;
    height: 28px;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}

.hero h1 {
    margin: 26px auto 0;
    max-width: 18ch;
    font-size: clamp(2.65rem, 6.2vw, 4.75rem);
    font-weight: 400;
    letter-spacing: -0.038em;
    line-height: 1.09;
    color: var(--ink);
    text-wrap: balance;
}

.hero h1 span {
    display: inline-block;
}

html[lang="zh-CN"] .hero h1 {
    max-width: 18ch;
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1.16;
}

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

.pill-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 26px;
    border-radius: 999px;
    background-color: var(--ink);
    color: var(--ink-inv);
    font-size: 0.96rem;
    font-weight: 500;
    transition: background-color 150ms ease, color 150ms ease, transform 150ms var(--ease);
}

.pill-dark:hover {
    background-color: var(--ink-hover);
    color: var(--ink-inv);
    transform: translateY(-1px);
}

.pill-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 26px;
    border-radius: 999px;
    background: var(--surface-pill);
    color: var(--ink);
    font-size: 0.96rem;
    font-weight: 500;
    transition: background-color 150ms ease, transform 150ms var(--ease);
}

.pill-light:hover {
    background: #e4e8ef;
    transform: translateY(-1px);
}

/* 1. Centered Pure-Black Showcase Island */

.showcase-section {
    padding: 12px 0 88px;
}

.black-island {
    position: relative;
    border-radius: 32px;
    background: var(--dark-island);
    color: var(--ink-inv);
    padding: 56px 48px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.black-island::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(60% 70% at 50% 0%, rgba(56, 189, 248, 0.22), transparent 68%),
        radial-gradient(45% 55% at 85% 95%, rgba(139, 92, 246, 0.16), transparent 70%);
    pointer-events: none;
}

.showcase-inner {
    position: relative;
    z-index: 1;
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
}

.showcase-label {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    color: #dbeafe;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.showcase-devices {
    display: grid;
    grid-template-columns: 1fr 120px 1fr;
    align-items: center;
    gap: 20px;
    margin: 8px 0 36px;
}

.device-frame {
    padding: 24px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-align: left;
}

.device-frame-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.device-frame-head strong {
    font-size: 1rem;
    font-weight: 600;
}

.device-status {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.16);
    color: #6ee7b7;
}

.device-folder {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.88rem;
    color: #e2e8f0;
    margin-top: 8px;
}

.device-folder span:last-child {
    font-size: 0.76rem;
    color: #93c5fd;
}

.orbit-bridge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.orbit-line {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.2), #38bdf8, rgba(168, 85, 247, 0.4));
    border-radius: 999px;
}

.orbit-bridge span {
    font-size: 0.78rem;
    color: #93c5fd;
    font-weight: 500;
}

.showcase-highlights {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    text-align: left;
}

.showcase-hl {
    padding: 16px 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.showcase-hl strong {
    display: block;
    font-size: 0.94rem;
    font-weight: 600;
    color: #ffffff;
}

.showcase-hl span {
    display: block;
    margin-top: 4px;
    font-size: 0.82rem;
    color: var(--ink-inv-2);
}

/* 2. Icon Wave + Editorial Statement */

.editorial-section {
    padding: 40px 0 96px;
    overflow: hidden;
}

.icon-wave {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    padding: 28px 0 64px;
    flex-wrap: wrap;
}

.wave-badge {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: var(--canvas);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
}

.wave-badge:nth-child(odd) {
    transform: translateY(-14px);
}

.wave-badge:nth-child(even) {
    transform: translateY(14px);
}

.wave-badge svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.editorial-statement {
    max-width: 920px;
    font-size: clamp(1.75rem, 3.6vw, 2.75rem);
    font-weight: 400;
    letter-spacing: -0.028em;
    line-height: 1.28;
    color: var(--ink);
}

.ag-cursor {
    display: inline-block;
    width: 3px;
    height: 0.95em;
    margin-left: 6px;
    vertical-align: -0.1em;
    border-radius: 999px;
    background: var(--rainbow);
    animation: cursor-blink 1.2s ease-in-out infinite;
}

@keyframes cursor-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.25; }
}

/* 3. Split-Screen Feature Explorer */

.explorer-section {
    padding: 28px 0 96px;
}

.explorer-row {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 56px;
    align-items: center;
    padding: 56px 0;
}

.explorer-row.is-flipped .explorer-copy {
    order: 2;
}

.explorer-copy h2 {
    font-size: clamp(1.75rem, 3.2vw, 2.45rem);
    font-weight: 500;
    letter-spacing: -0.028em;
    line-height: 1.2;
}

.explorer-copy p {
    margin-top: 16px;
    font-size: 1.04rem;
    color: var(--ink-2);
    line-height: 1.72;
    max-width: 34em;
}

.explorer-points {
    margin-top: 20px;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.explorer-points li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.94rem;
    color: var(--ink-2);
}

.explorer-points li::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

.explorer-frame-wrap {
    padding: 2px;
    border-radius: 30px;
    background: var(--border);
    box-shadow: var(--shadow-lg);
}

.explorer-frame-wrap.is-rainbow {
    background: var(--halo-rainbow);
}

.explorer-frame-wrap.is-blue {
    background: var(--halo-blue);
}

.explorer-frame {
    border-radius: 28px;
    background: var(--canvas);
    padding: 28px;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
}

.explorer-frame.is-dark {
    background: var(--dark-card);
    color: var(--ink-inv);
}

.frame-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--ink-3);
}

.explorer-frame.is-dark .frame-top {
    color: var(--ink-inv-2);
}

.frame-chip {
    padding: 4px 11px;
    border-radius: 999px;
    background: var(--surface-pill);
    color: var(--ink);
    font-size: 0.76rem;
    font-weight: 500;
}

.explorer-frame.is-dark .frame-chip {
    background: var(--dark-pill);
    color: #ffffff;
}

.ui-mock-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ui-mock-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    font-size: 0.92rem;
}

.explorer-frame.is-dark .ui-mock-item {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--dark-border);
}

.ui-mock-item span:last-child {
    font-size: 0.8rem;
    color: var(--ink-3);
}

.explorer-frame.is-dark .ui-mock-item span:last-child {
    color: #93c5fd;
}

.terminal-preview {
    border-radius: 16px;
    background: #03050a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 20px;
    font-family: var(--mono);
    font-size: 0.82rem;
    line-height: 1.75;
    color: #e2e8f0;
}

.terminal-preview .t-blue { color: #60a5fa; }
.terminal-preview .t-ok { color: #34d399; }

/* 4. Scenarios Carousel */

.scenarios-section {
    padding: 64px 0 96px;
    border-top: 1px solid var(--border);
}

.scenarios-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: end;
    margin-bottom: 40px;
}

.scenarios-head h2 {
    font-size: clamp(1.9rem, 3.6vw, 2.75rem);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.scenarios-head p {
    font-size: 1.02rem;
    color: var(--ink-2);
}

.carousel-stage {
    border-radius: 28px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    padding: 48px;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
}

.carousel-slide[hidden] {
    display: none;
}

.slide-kicker {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 12px;
}

.carousel-slide h3 {
    font-size: clamp(1.5rem, 2.8vw, 2.1rem);
    font-weight: 500;
    letter-spacing: -0.025em;
    max-width: 24em;
}

.carousel-slide p {
    margin-top: 14px;
    font-size: 1.02rem;
    color: var(--ink-2);
    max-width: 44em;
    line-height: 1.7;
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.carousel-dots {
    display: flex;
    gap: 4px;
}

.carousel-dot {
    appearance: none;
    min-width: 28px;
    min-height: 28px;
    padding: 0;
    border-radius: 999px;
    border: 0;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.carousel-dot::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(17, 19, 24, 0.2);
    transition: width 200ms var(--ease), background-color 200ms ease;
}

.carousel-dot.is-active::before {
    width: 24px;
    background: var(--ink);
}

.carousel-btns {
    display: flex;
    gap: 10px;
}

.circle-btn {
    appearance: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    background: var(--canvas);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.05rem;
    transition: background-color 140ms ease, transform 140ms ease;
}

.circle-btn:hover {
    background: var(--surface-pill);
    transform: translateY(-1px);
}

/* 5. Dual Audience Unboxed Split Band */

.audience-section {
    position: relative;
    padding: 88px 0 96px;
    background-image: radial-gradient(rgba(17, 19, 24, 0.11) 1px, transparent 1px);
    background-size: 32px 32px;
    border-top: 1px solid var(--border);
}

.audience-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    text-align: center;
}

.audience-col {
    padding: 20px 24px;
}

.audience-tag {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 999px;
    background: var(--surface-pill);
    color: var(--ink-2);
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 18px;
}

.audience-col h2 {
    font-size: clamp(1.75rem, 3.2vw, 2.35rem);
    font-weight: 500;
    letter-spacing: -0.025em;
}

.audience-col p {
    margin: 12px auto 26px;
    max-width: 28em;
    font-size: 0.98rem;
    color: var(--ink-2);
}

.entity-inline {
    margin-top: 18px;
    font-size: 0.85rem;
    color: var(--ink-3);
}

.entity-inline a {
    color: var(--ink);
    font-weight: 500;
}

.entity-inline a:hover {
    text-decoration: underline;
}

/* 6. Giant Closing Pure-Black Download Island */

.closing-section {
    padding: 16px 0 88px;
}

.closing-island {
    position: relative;
    border-radius: 36px;
    background: var(--dark-island);
    color: var(--ink-inv);
    padding: 72px 56px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

#ag-space-particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.closing-inner {
    position: relative;
    z-index: 1;
}

.closing-inner h2 {
    font-size: clamp(2rem, 4.2vw, 3.25rem);
    font-weight: 400;
    letter-spacing: -0.032em;
    line-height: 1.15;
    max-width: 18ch;
}

.closing-sub {
    margin-top: 14px;
    font-size: 1rem;
    color: var(--ink-inv-2);
    max-width: 42em;
}

.platform-tabs {
    margin-top: 32px;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: inline proximity;
    gap: 8px;
    padding-bottom: 4px;
}

.platform-tabs::-webkit-scrollbar {
    display: none;
}

.platform-tab {
    flex: none;
    scroll-snap-align: start;
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.05);
    min-height: 40px;
    padding: 9px 16px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink-inv-2);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 150ms ease;
}

.platform-tab:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.35);
}

.platform-tab.is-active {
    background: #ffffff;
    color: var(--ink);
    border-color: #ffffff;
    font-weight: 600;
}

.platform-tab svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.platform-you {
    font-style: normal;
    font-size: 0.72rem;
    opacity: 0.75;
}

.platform-panel:not([hidden]) {
    margin-top: 24px;
}

.platform-panel[hidden] {
    margin: 0;
}

.platform-status {
    font-size: 0.96rem;
    color: var(--ink-inv-2);
    margin-bottom: 20px;
}

.platform-status strong {
    color: #ffffff;
    margin-right: 8px;
}

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

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 26px;
    border-radius: 999px;
    background-color: #ffffff;
    color: var(--ink);
    font-size: 0.94rem;
    font-weight: 600;
    transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, transform 150ms var(--ease);
}

.download-btn:hover {
    background-color: var(--ink-inv-hover);
    color: var(--ink);
    transform: translateY(-1px);
}

.download-actions .download-btn:not(.is-preferred):not(:only-child) {
    background-color: var(--dark-pill);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.download-actions .download-btn:not(.is-preferred):not(:only-child):hover {
    background-color: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.34);
}

.download-soon {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 999px;
    background: var(--dark-pill);
    color: var(--ink-inv-2);
    font-size: 0.86rem;
}

.download-meta {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    font-size: 0.85rem;
    color: var(--ink-inv-2);
}

.download-meta a {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Subpages (About, Support, Privacy, Terms, Changelog) */

.subpage-hero {
    padding: 64px 0 40px;
    border-bottom: 1px solid var(--border);
    background: var(--surface-soft);
}

.subpage-hero .container {
    max-width: 900px;
}

.subpage-kicker {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 10px;
}

.subpage-hero h1 {
    font-size: clamp(2rem, 4vw, 2.85rem);
    font-weight: 500;
    letter-spacing: -0.03em;
}

.subpage-lead {
    margin-top: 12px;
    font-size: 1.02rem;
    color: var(--ink-2);
    max-width: 48em;
}

.subpage-lead a {
    color: var(--accent);
    font-weight: 500;
}

.subpage-lead a:hover {
    text-decoration: underline;
}

.subpage-main {
    max-width: 900px;
    margin: 0 auto;
    padding: 48px 28px 96px;
}

.doc-card {
    padding: 32px;
    border-radius: 24px;
    background: var(--canvas);
    border: 1px solid var(--border);
    margin-bottom: 20px;
}

.doc-card h2 {
    font-size: 1.26rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}

.doc-card h3 {
    font-size: 1.02rem;
    font-weight: 600;
    margin: 18px 0 8px;
}

.doc-card p {
    font-size: 0.95rem;
    color: var(--ink-2);
    margin-bottom: 12px;
}

.doc-card p:last-child {
    margin-bottom: 0;
}

.doc-card ul {
    padding-left: 1.25em;
    color: var(--ink-2);
    font-size: 0.94rem;
}

.doc-card li {
    margin-bottom: 8px;
}

.doc-card a {
    color: var(--accent);
    font-weight: 500;
}

.doc-card a:hover {
    text-decoration: underline;
}

.doc-card code {
    font-family: var(--mono);
    font-size: 0.86em;
    background: var(--surface-soft);
    padding: 2px 6px;
    border-radius: 6px;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
    font-size: 0.92rem;
}

.info-table th,
.info-table td {
    text-align: left;
    padding: 13px 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.info-table th {
    width: 32%;
    font-weight: 600;
    color: var(--ink);
}

.info-table td {
    color: var(--ink-2);
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 22px;
}

.support-tile {
    padding: 22px;
    border-radius: 20px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
}

.support-tile span {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ink-3);
}

.support-tile strong,
.support-tile a {
    display: block;
    margin-top: 8px;
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--accent);
    word-break: break-word;
}

.support-tile p {
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--ink-2);
}

/* Support Static Feedback Form */

.feedback-form {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feedback-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.feedback-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.feedback-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.feedback-field label {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--ink);
}

.feedback-field input[type="text"],
.feedback-field input[type="email"],
.feedback-field select,
.feedback-field textarea {
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--border-strong);
    background-color: var(--canvas);
    color: var(--ink);
    font-family: inherit;
    font-size: max(1rem, 1em);
    line-height: 1.5;
}

.feedback-field select {
    appearance: none;
    padding-inline-end: 2.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.875rem center;
    background-size: 1rem 1rem;
    text-overflow: ellipsis;
    cursor: pointer;
}

.feedback-field textarea {
    resize: vertical;
}

.feedback-field :is(input, select, textarea):focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-color: var(--accent);
}

.feedback-field :is(input, select, textarea):is([aria-invalid="true"], :user-invalid) {
    border-color: #b91c1c;
}

.feedback-hint {
    margin: 2px 0 0;
    font-size: 0.82rem;
    color: var(--ink-3);
}

.feedback-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.feedback-submit {
    appearance: none;
    border: 0;
    border-radius: 999px;
    padding: 11px 24px;
    background-color: var(--ink);
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.feedback-submit:hover:not(:disabled) {
    background-color: var(--ink-hover);
    color: #ffffff;
    transform: translateY(-1px);
}

.feedback-submit:disabled {
    opacity: 0.55;
    cursor: wait;
}

.feedback-fallback {
    font-size: 0.86rem;
    color: var(--ink-2);
}

.feedback-status {
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--surface-soft);
    font-size: 0.9rem;
}

.feedback-status.is-success {
    border-color: #15803d;
    background: #f0fdf4;
    color: #14532d;
}

.feedback-status.is-error {
    border-color: #b91c1c;
    background: #fef2f2;
    color: #7f1d1d;
}

.feedback-receipt-row {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feedback-copy-btn {
    appearance: none;
    border: 1px solid currentColor;
    border-radius: 999px;
    background: transparent;
    color: inherit;
    padding: 4px 12px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}

@media (max-width: 720px) {
    .feedback-row {
        grid-template-columns: 1fr;
    }
}

/* Signature 3-Tier Antigravity Footer */

.site-footer {
    border-top: 1px solid var(--border);
    background: var(--canvas);
    padding: 64px 0 36px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 36px;
}

.footer-tagline {
    font-size: 1.45rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.footer-entity {
    margin-top: 14px;
    font-size: 0.84rem;
    color: var(--ink-3);
    line-height: 1.75;
}

.footer-entity a:hover {
    color: var(--ink);
    text-decoration: underline;
}

.footer-col h3 {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 14px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a {
    font-size: 0.88rem;
    color: var(--ink-2);
}

.footer-col a:hover {
    color: var(--ink);
    text-decoration: underline;
}

.footer-wordmark {
    margin: 48px 0 28px;
    font-size: clamp(3.4rem, 13vw, 11.5rem);
    font-weight: 500;
    letter-spacing: -0.045em;
    line-height: 0.92;
    color: var(--ink);
    user-select: none;
    overflow: hidden;
    text-overflow: clip;
    white-space: nowrap;
}

.footer-bottom {
    padding-top: 22px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    font-size: 0.82rem;
    color: var(--ink-3);
}

.footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
}

.footer-bottom a:hover {
    color: var(--ink);
    text-decoration: underline;
}

/* Progressive Reveal */

.js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 520ms var(--ease), transform 520ms var(--ease);
}

.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

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

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

    .js .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Responsive */

@media (max-width: 980px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: inline-flex;
    }

    .showcase-devices,
    .explorer-row,
    .scenarios-head,
    .audience-grid,
    .footer-top,
    .support-grid {
        grid-template-columns: 1fr;
    }

    .explorer-row.is-flipped .explorer-copy {
        order: 0;
    }

    .showcase-highlights {
        grid-template-columns: 1fr 1fr;
    }

    .announce-inner {
        justify-content: flex-start;
        padding-right: 34px;
    }
}

@media (max-width: 720px) {
    .header-cta {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 52px 0 44px;
    }

    .black-island,
    .closing-island {
        padding: 36px 22px;
        border-radius: 26px;
    }

    .showcase-highlights {
        grid-template-columns: 1fr;
    }

    .carousel-stage {
        padding: 28px 22px;
    }

    .wave-badge:nth-child(odd),
    .wave-badge:nth-child(even) {
        transform: none;
    }

    .doc-card {
        padding: 22px 18px;
    }

    .info-table th,
    .info-table td {
        padding: 10px 8px;
        word-break: break-word;
    }

    .info-table th {
        width: 36%;
    }
}
