@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500&display=swap');

:root {
    --bg-0: #030014;
    --bg-1: #0f172a;
    --bg-2: #1e1b4b;
    --glass: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text: #f8fafc;
    --muted: #94a3b8;
    --cyan: #06b6d4;
    --blue: #3b82f6;
    --violet: #818cf8;
    --green: #34d399;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
    --shell: min(1120px, 100%);
}

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

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

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: linear-gradient(145deg, var(--bg-0), var(--bg-1) 45%, var(--bg-2));
    background-attachment: fixed;
    overflow-x: hidden;
}

#goose-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 50;
    overflow: hidden;
}

#goose-layer .goose {
    pointer-events: auto;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

#site-view {
    position: relative;
    z-index: 3;
}

.page-blocks {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.page-block {
    opacity: 0;
    transform: translateY(36px) scale(0.985);
    filter: blur(10px);
    will-change: opacity, transform, filter;
}

.page-block.is-visible {
    opacity: 1;
    transform: none;
    filter: none;
}

.page-block.is-entering {
    animation: blockEnter 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: calc(var(--block-i, 0) * 80ms);
}

.page-block.is-leaving {
    animation: blockLeave 0.34s cubic-bezier(0.4, 0, 0.8, 0.2) forwards;
    animation-delay: calc(var(--block-i, 0) * 42ms);
}

@keyframes blockEnter {
    0% {
        opacity: 0;
        transform: translateY(36px) scale(0.985);
        filter: blur(10px);
    }
    60% {
        filter: blur(2px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes blockLeave {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-22px) scale(0.985);
        filter: blur(8px);
    }
}

.page-block--glass {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.page-block--head {
    padding: 34px 36px;
}

.page-block--section {
    padding: 28px 32px;
}

.page-block--footer {
    margin-top: 8px;
}

.block-kicker,
.legal-kicker {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 10px;
}

.block-title,
.legal-title {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    letter-spacing: -0.03em;
    font-weight: 800;
}

.block-section-title {
    margin: 0 0 14px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
}

.block-content p:first-child,
.legal-body p:first-child {
    margin-top: 0;
}

.page-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 200;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    background: linear-gradient(90deg, transparent, var(--cyan), var(--blue), transparent);
    transform: scaleX(0);
    transform-origin: left center;
}

.page-progress.is-active {
    opacity: 1;
    animation: progressSweep 0.9s ease-in-out infinite;
}

@keyframes progressSweep {
    0% { transform: scaleX(0.05); }
    50% { transform: scaleX(0.75); }
    100% { transform: scaleX(0.05); }
}

.bg-grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(circle at center, black 30%, transparent 90%);
}

.bg-glow {
    position: fixed;
    width: 40vw;
    height: 40vw;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
}

.bg-glow-a { top: -10%; left: -5%; background: rgba(79, 70, 229, 0.45); }
.bg-glow-b { bottom: -15%; right: -5%; background: rgba(14, 165, 233, 0.35); }

.site-shell {
    width: var(--shell);
    margin: 0 auto;
    padding-left: calc(20px + var(--safe-left));
    padding-right: calc(20px + var(--safe-right));
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    background: rgba(3, 0, 20, 0.72);
    border-bottom: 1px solid var(--glass-border);
    padding-top: var(--safe-top);
}

.site-header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 72px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.brand-logo {
    flex-shrink: 0;
    filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.45));
}

.brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.brand-product {
    font-weight: 800;
    letter-spacing: -0.03em;
    font-size: 1.1rem;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-org {
    font-size: 0.72rem;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-nav {
    display: flex;
    gap: 6px;
    margin-left: auto;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.site-nav-link {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: 0.2s ease;
}

.site-nav-link:hover,
.site-nav-link.is-active {
    color: var(--text);
    border-color: rgba(6, 182, 212, 0.25);
    background: rgba(6, 182, 212, 0.08);
}

.header-phone {
    flex-shrink: 0;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: #f8fafc;
    white-space: nowrap;
    margin-right: 8px;
    text-shadow:
        0 0 8px rgba(167, 243, 208, 0.75),
        0 0 16px rgba(56, 189, 248, 0.55),
        0 0 28px rgba(14, 165, 233, 0.35);
    animation: header-phone-glow 2.6s ease-in-out infinite;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.header-phone:hover {
    color: #fff;
    text-shadow:
        0 0 10px rgba(167, 243, 208, 0.95),
        0 0 22px rgba(56, 189, 248, 0.75),
        0 0 36px rgba(14, 165, 233, 0.5);
}

@keyframes header-phone-glow {
    0%, 100% {
        color: #ecfdf5;
        text-shadow:
            0 0 6px rgba(167, 243, 208, 0.65),
            0 0 14px rgba(56, 189, 248, 0.45),
            0 0 24px rgba(14, 165, 233, 0.28);
    }
    50% {
        color: #fff;
        text-shadow:
            0 0 12px rgba(167, 243, 208, 0.95),
            0 0 24px rgba(56, 189, 248, 0.75),
            0 0 40px rgba(14, 165, 233, 0.45),
            0 0 56px rgba(79, 70, 229, 0.18);
    }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.header-download-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    padding: 9px 14px 9px 12px;
    border-radius: 12px;
    border: 1px solid rgba(52, 211, 153, 0.45);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.95), rgba(6, 182, 212, 0.92));
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.28);
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.header-download-btn:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(16, 185, 129, 0.38);
    color: #fff;
}

.header-download-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.16);
}

.header-download-label {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.header-download-btn.is-attention {
    animation: header-download-attention 1.35s ease-in-out infinite;
}

.header-download-btn.is-attention::before,
.header-download-btn.is-attention::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 15px;
    pointer-events: none;
}

.header-download-btn.is-attention::before {
    border: 2px solid rgba(52, 211, 153, 0.85);
    animation: header-download-ring 1.35s ease-out infinite;
}

.header-download-btn.is-attention::after {
    inset: -8px;
    border: 1px solid rgba(110, 231, 183, 0.35);
    animation: header-download-ring 1.35s ease-out 0.35s infinite;
}

@keyframes header-download-attention {
    0%, 100% {
        box-shadow:
            0 8px 24px rgba(16, 185, 129, 0.28),
            0 0 0 0 rgba(52, 211, 153, 0.45);
    }
    50% {
        box-shadow:
            0 14px 34px rgba(16, 185, 129, 0.45),
            0 0 0 6px rgba(52, 211, 153, 0.12);
    }
}

@keyframes header-download-ring {
    0% {
        opacity: 0.95;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1.12);
    }
}

.site-main {
    position: relative;
    z-index: 1;
    padding: 32px 0 48px;
}

.hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 28px;
    align-items: stretch;
    margin-bottom: 28px;
}

.hero-panel,
.download-panel,
.feature-card,
.legal-card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero-panel { padding: 36px; }

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 16px;
}

.hero-kicker::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 12px var(--green);
}

.hero-title {
    margin: 0 0 16px;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
    font-weight: 800;
}

.hero-title span {
    background: linear-gradient(90deg, var(--cyan), var(--blue), var(--violet));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-lead {
    margin: 0 0 24px;
    color: var(--muted);
    line-height: 1.75;
    font-size: 1rem;
    max-width: 54ch;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.22);
    font-size: 0.78rem;
    font-weight: 600;
    color: #dbeafe;
}

.tech-badge svg { opacity: 0.85; }

.hero-side {
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
}

.stat-block {
    padding: 18px;
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.24);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 8px;
}

.stat-value {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.stat-note {
    margin-top: 6px;
    font-size: 0.82rem;
    color: var(--muted);
}

.about-strip {
    padding: 22px 24px;
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.22);
    border-left: 4px solid var(--cyan);
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 28px;
}

.about-strip b { color: var(--text); }

.download-panel { padding: 28px; }

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

.section-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.section-sub {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.file-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: 12px;
    transition: 0.25s ease;
}

.file-item:hover {
    transform: translateY(-2px);
    border-color: rgba(6, 182, 212, 0.35);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.file-name {
    font-weight: 700;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    word-break: break-word;
}

.badge-actual {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--green);
    border: 1px solid rgba(52, 211, 153, 0.35);
    background: rgba(16, 185, 129, 0.12);
    padding: 3px 8px;
    border-radius: 999px;
}

.file-meta {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 0.82rem;
}

.download-count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 8px;
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.28);
    background: rgba(59, 130, 246, 0.12);
    font-weight: 600;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 22px;
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 10px 24px rgba(59, 130, 246, 0.35);
    white-space: nowrap;
    flex-shrink: 0;
}

.download-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }

.file-changelog {
    margin: 0;
    padding: 0;
    border: 0;
}

.file-changelog[open] {
    flex: 1 0 100%;
    margin-top: 4px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.file-changelog-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #93c5fd;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.changelog-panel .file-changelog-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    font-size: 0.84rem;
    letter-spacing: 0.02em;
    text-transform: none;
    color: var(--text);
}

.changelog-panel .file-changelog-title::before {
    display: none;
}

.changelog-panel .changelog-version {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-weight: 800;
}

.changelog-panel .changelog-version::before {
    content: '';
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 5px solid currentColor;
    transition: transform 0.15s ease;
    flex-shrink: 0;
}

.changelog-panel .file-changelog[open] > .file-changelog-title .changelog-version::before {
    transform: rotate(90deg);
}

.changelog-panel .changelog-meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    margin-left: auto;
}

.changelog-panel .changelog-date {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0;
}

.changelog-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.changelog-item {
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.18);
    padding: 14px 16px;
}

.changelog-item .file-changelog[open] {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.file-changelog-title::-webkit-details-marker {
    display: none;
}

.file-changelog-title::before {
    content: '';
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 5px solid currentColor;
    transition: transform 0.15s ease;
    flex-shrink: 0;
}

.file-changelog[open] > .file-changelog-title {
    margin-bottom: 8px;
}

.file-changelog[open] > .file-changelog-title::before {
    transform: rotate(90deg);
}

.file-notes {
    margin: 0;
    padding-left: 1.1rem;
    color: #cbd5e1;
    font-size: 0.82rem;
    line-height: 1.45;
}

.file-notes li + li {
    margin-top: 4px;
}

.error-box,
.empty-state {
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid rgba(239, 68, 68, 0.28);
    background: rgba(239, 68, 68, 0.1);
    color: #fecaca;
}

.empty-state {
    border-style: dashed;
    border-color: var(--glass-border);
    background: rgba(255, 255, 255, 0.02);
    color: var(--muted);
    text-align: center;
}

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

.feature-card { padding: 22px; }

.feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    background: rgba(14, 165, 233, 0.12);
    border: 1px solid rgba(14, 165, 233, 0.22);
    color: #67e8f9;
}

.feature-card h3 {
    margin: 0 0 8px;
    font-size: 1rem;
}

.feature-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
    font-size: 0.92rem;
}

.legal-card { padding: 36px; max-width: 860px; }

.legal-kicker {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 10px;
}

.legal-title {
    margin: 0 0 24px;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    letter-spacing: -0.03em;
}

.legal-body h2 {
    margin: 28px 0 10px;
    font-size: 1.05rem;
}

.legal-body p,
.legal-body li {
    color: #cbd5e1;
    line-height: 1.75;
}

.legal-body ul { padding-left: 1.2rem; }

.legal-body a,
.block-content a,
.section-sub a,
.stat-note a,
.about-strip a {
    color: #67e8f9;
    text-decoration: underline;
    text-decoration-color: rgba(103, 232, 249, 0.5);
    text-underline-offset: 3px;
    font-weight: 600;
}

.legal-body a:hover,
.block-content a:hover,
.section-sub a:hover,
.stat-note a:hover,
.about-strip a:hover {
    color: #cffafe;
    text-decoration-color: #cffafe;
}

.legal-body a:visited,
.block-content a:visited {
    color: #7dd3fc;
}

.site-footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--glass-border);
    background: rgba(3, 0, 20, 0.82);
    padding: 36px 0 calc(24px + var(--safe-bottom));
}

.site-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 28px;
    margin-bottom: 24px;
}

.footer-title {
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.footer-text {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
    font-size: 0.92rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li { margin-bottom: 8px; }

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.92rem;
}

.footer-links a:hover { color: #fff; text-decoration: underline; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 18px;
    border-top: 1px solid var(--glass-border);
    color: var(--muted);
    font-size: 0.82rem;
}

.goose {
    position: fixed;
    font-size: 2rem;
    z-index: 1;
    user-select: none;
    opacity: 0.28;
    left: -50px;
    transform: scaleX(-1);
    animation: fly linear infinite;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.25));
    will-change: left, transform;
    transition: opacity 0.25s ease, filter 0.25s ease, transform 0.25s ease;
}

.goose::before {
    content: '';
    position: absolute;
    inset: -18px;
}

@media (max-width: 640px) {
    .goose {
        opacity: 0.38;
    }

    .goose::before {
        inset: -28px;
    }
}

.goose:hover {
    opacity: 0.45;
    filter: drop-shadow(0 0 16px rgba(6, 182, 212, 0.45));
    cursor: pointer;
}

.goose.goose-caught {
    animation: none !important;
    opacity: 1;
    filter: drop-shadow(0 0 24px rgba(129, 140, 248, 0.9));
    transform: scaleX(-1) scale(1.6) rotate(12deg);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), filter 0.3s ease;
}

.goose-easter {
    display: inline-block;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0 2px;
    font: inherit;
    line-height: inherit;
    vertical-align: baseline;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transform: scaleX(-1);
    transition: transform 0.2s ease, filter 0.2s ease;
}

.goose-easter:hover,
.goose-easter:focus-visible {
    transform: scaleX(-1) scale(1.2);
    filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.55));
    outline: none;
}

@keyframes fly {
    from { left: -50px; transform: scaleX(-1) translateY(0); }
    50% { transform: scaleX(-1) translateY(-12px); }
    to { left: 100vw; transform: scaleX(-1) translateY(0); }
}

@media (max-width: 960px) {
    .hero { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: 1fr; }
    .site-footer-grid { grid-template-columns: 1fr; }

    .site-header-inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "brand actions"
            "nav nav";
        align-items: center;
        gap: 12px 10px;
        min-height: auto;
        padding: 12px 0;
    }

    .brand {
        grid-area: brand;
        min-width: 0;
    }

    .brand-logo {
        width: 36px;
        height: 36px;
    }

    .brand-product {
        font-size: 1rem;
    }

    .brand-org {
        font-size: 0.68rem;
    }

    .site-nav {
        grid-area: nav;
        width: 100%;
        margin-left: 0;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 4px;
        padding-bottom: 2px;
    }

    .site-nav::-webkit-scrollbar {
        display: none;
    }

    .site-nav-link {
        flex-shrink: 0;
    }

    .header-actions {
        grid-area: actions;
        width: auto;
        flex-wrap: nowrap;
        justify-content: flex-end;
        gap: 10px;
    }

    .header-phone {
        margin-right: 0;
        font-size: 0.82rem;
    }

    .header-download-btn {
        flex: 0 0 auto;
        padding: 8px 11px 8px 9px;
        min-height: 40px;
    }

    .hero-panel { padding: 24px; }
    .hero-side { padding: 20px; }
    .download-panel { padding: 20px; }
    .site-main { padding: 22px 0 36px; }
}

@media (max-width: 640px) {
    .site-shell {
        padding-left: calc(14px + var(--safe-left));
        padding-right: calc(14px + var(--safe-right));
    }

    .site-header-inner {
        gap: 10px 8px;
        padding: 10px 0;
    }

    .brand {
        gap: 10px;
    }

    .brand-logo {
        width: 32px;
        height: 32px;
    }

    .brand-product {
        font-size: 0.95rem;
    }

    .brand-org {
        max-width: 46vw;
    }

    .site-nav-link {
        font-size: 0.74rem;
        padding: 7px 10px;
    }

    .header-actions {
        gap: 8px;
    }

    .header-phone {
        font-size: 0.74rem;
        letter-spacing: 0;
        text-shadow:
            0 0 5px rgba(167, 243, 208, 0.55),
            0 0 10px rgba(56, 189, 248, 0.35);
    }

    .header-download-btn {
        padding: 8px 10px;
        min-height: 38px;
        gap: 6px;
    }

    .header-download-icon {
        width: 24px;
        height: 24px;
    }

    .header-download-label {
        font-size: 0.72rem;
    }

    .header-download-btn.is-attention::after {
        inset: -6px;
    }

    .file-item { flex-direction: column; align-items: stretch; }
    .download-btn { width: 100%; }
    .hero-title { font-size: clamp(1.55rem, 8vw, 2rem); }
    .hero-lead { font-size: 0.92rem; }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 380px) {
    .brand-org {
        display: none;
    }

    .header-actions {
        flex-direction: column;
        align-items: flex-end;
        gap: 4px;
    }

    .header-phone {
        max-width: none;
        font-size: 0.68rem;
        overflow: visible;
        text-overflow: clip;
    }

    .header-download-label {
        display: none;
    }

    .header-download-btn {
        padding: 8px;
        min-width: 38px;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .goose { display: none !important; }
    .file-item, .download-btn, .site-nav-link { transition: none; }
    .header-download-btn.is-attention {
        animation: none;
    }
    .header-download-btn.is-attention::before,
    .header-download-btn.is-attention::after {
        animation: none;
        display: none;
    }
    .header-phone {
        animation: none;
        text-shadow:
            0 0 8px rgba(167, 243, 208, 0.7),
            0 0 16px rgba(56, 189, 248, 0.5);
    }
    .page-block,
    .page-block.is-entering,
    .page-block.is-leaving,
    .page-progress.is-active {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
}
