:root {
    --bg-primary: #0d1217;
    /* Истинный фоновый цвет RekordSync */
    --bg-secondary: #090b0e;
    --bg-card: rgba(20, 24, 30, 0.65);
    --bg-card-hover: rgba(28, 34, 42, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);

    --accent-primary: #2E7AFF;
    /* Active Brand Blue */
    --accent-blue: #00F2FC;
    /* Neon Aqua (Pioneer) */
    --accent-glow: rgba(46, 122, 255, 0.25);
    --accent-gradient: linear-gradient(135deg, #5ea6ff 0%, #2E7AFF 100%);
    /* Благородный сине-стальной градиент */

    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.65);
    --text-muted: rgba(255, 255, 255, 0.4);

    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", sans-serif;
    --font-mono: "SF Mono", "JetBrains Mono", Menlo, Monaco, monospace;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset & Smooth Scroll */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

html,
body {
    width: 100%;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Ambient Background Glows */
.glow-orb {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.12;
    mix-blend-mode: screen;
}

.glow-1 {
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
    top: -150px;
    right: -100px;
}

.glow-2 {
    background: radial-gradient(circle, var(--accent-blue) 0%, transparent 70%);
    top: 600px;
    left: -200px;
}

.hero-bg-screenshot {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    max-width: none;
    height: 950px;
    background-image: url('assstets/application.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center top;
    filter: blur(20px);
    /* Мягкое размытие, сохраняющее очертания и проблески окна */
    opacity: 0.65;
    /* Повышенная сочность и видимость на бэкграунде */
    pointer-events: none;
    z-index: 1;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0) 100%);
}

/* Header & Blur Navigation */
header {
    position: fixed;
    top: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 4rem);
    max-width: 1100px;
    z-index: 100;
    backdrop-filter: blur(20px) saturate(190%);
    -webkit-backdrop-filter: blur(20px) saturate(190%);
    background-color: rgba(10, 10, 12, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

header:hover {
    background-color: rgba(10, 10, 12, 0.6);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 16px 45px rgba(46, 122, 255, 0.1);
}

.nav-container {
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: inherit;
}

.nav-logo {
    width: 24px;
    height: 24px;
    border-radius: 6px;
}

.logo-text {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: #ffffff;
}

nav {
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.88rem;
    position: relative;
    padding: 0.25rem 0;
    transition: var(--transition);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 1.5px;
    background: linear-gradient(90deg, rgba(46, 122, 255, 0) 0%, var(--accent-primary) 50%, rgba(46, 122, 255, 0) 100%);
    transition: var(--transition);
    transform: translateX(-50%);
    border-radius: 2px;
}

nav a:hover {
    color: var(--text-primary);
}

nav a:hover::after {
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.back-to-pingvi {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.85rem;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.back-to-pingvi:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateX(-2px);
}

.back-arrow-icon {
    width: 12px;
    height: 12px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.back-to-pingvi:hover .back-arrow-icon {
    transform: translateX(-2px);
}

/* Button UI System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.8rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--accent-primary);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 14px var(--accent-glow);
}

.btn-primary:hover {
    background-color: #4b90ff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 122, 255, 0.35);
}

.btn-icon {
    width: 16px;
    height: 16px;
}

/* Interactive Download System */
.download-btn-interactive {
    position: relative;
    overflow: hidden;
    min-width: 260px;
    transition: var(--transition);
}

.btn-content {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
}

.svg-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 20px;
    height: 20px;
}

.download-arrow {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.download-btn-interactive:hover .download-arrow {
    transform: translateY(2px);
}

/* Layout Grid Container */
main {
    width: 100%;
    position: relative;
    z-index: 2;
    background-color: var(--bg-primary);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.95);
    padding: 0;
    max-width: none;
    margin: 0;
}

.hero-section,
.features-section,
.bypass-guide-section {
    max-width: 1100px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.hero-section {
    position: relative;
    overflow: hidden;
    min-height: calc(90vh - 60px);
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    align-items: center;
    gap: 4rem;
    padding: 10rem 2rem 6.5rem 2rem;
}

.hero-left {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 540px;
    text-align: left;
}

.hero-right {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.hero-showcase-container {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Staggered Load Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp3D {
    from {
        opacity: 0;
        transform: perspective(1200px) rotateY(-8deg) rotateX(3deg) translateY(24px);
    }

    to {
        opacity: 1;
        transform: perspective(1200px) rotateY(-8deg) rotateX(3deg) translateY(0);
    }
}

.hero-subtitle-mimp {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.15s;
}

.hero-section h1 {
    font-size: 3.8rem;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 1.25rem;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.2s;
}

.hero-title-text {
    background: linear-gradient(180deg, #ffffff 30%, #a5a5a7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.accent-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.12rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 480px;
    line-height: 1.65;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.3s;
}

.hero-actions-container {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.4s;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.hero-actions-bottom {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.hero-actions-bottom a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    display: inline-block;
    transition: color 0.4s cubic-bezier(0.16, 1, 0.3, 1), text-shadow 0.4s ease;
}

@supports (-webkit-background-clip: text) or (background-clip: text) {
    .hero-actions-bottom a {
        background-image: linear-gradient(to bottom, #ffffff 50%, var(--accent-primary) 50%);
        background-size: 100% 200%;
        background-position: 0 100%;
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        transition: background-position 0.4s cubic-bezier(0.16, 1, 0.3, 1), text-shadow 0.4s ease;
    }

    .hero-actions-bottom a:hover {
        background-position: 0 0;
        text-shadow: 0 0 12px rgba(46, 122, 255, 0.4);
    }
}

.hero-actions-bottom a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: linear-gradient(90deg, rgba(46, 122, 255, 0) 0%, var(--accent-primary) 50%, rgba(46, 122, 255, 0) 100%);
    opacity: 0;
    transform: scaleX(0.8);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    pointer-events: none;
}

.hero-actions-bottom a:hover::after {
    opacity: 1;
    transform: scaleX(1);
}

/* Homebrew Installation Box */
.brew-install-container {
    width: 100%;
    max-width: 800px;
    /* margin-top: 3rem; */
    text-align: left;
    grid-column: 1 / -1;
    justify-self: center;
}

.brew-title {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.brew-logo {
    color: #ff9f0a;
}

.brew-install-box {
    background-color: rgba(10, 10, 12, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.03);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.brew-install-box:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.brew-install-body {
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.brew-install-body code {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: #ffffff;
    white-space: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}

.brew-install-body code::-webkit-scrollbar {
    display: none;
}

.code-cmd {
    color: #ff9f0a;
    /* Теплый пивной оранжевый Homebrew */
    font-weight: 700;
}

.code-arg {
    color: #00F2FC;
    /* Неоново-бирюзовый Pioneer для install */
}

.code-flag {
    color: #bf5af2;
    /* Фиолетовый macOS для --cask */
}

.code-pkg {
    color: #ffffff;
    /* Кристально-белый для самого пакета */
}

/* Beautiful Interactive 3D Showcase (Hero Right) */
.hero-right {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.hero-image-container {
    position: relative;
    width: 100%;
    max-width: 780px;
    z-index: 2;
}

.hero-screenshot-wrapper {
    position: relative;
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    transform: perspective(1200px) rotateY(-8deg) rotateX(3deg);
    transition: var(--transition);
    z-index: 2;
    background: #000;
    animation: fadeInUp3D 1s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.35s;
}

.hero-screenshot-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    padding: 1.5px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.03) 50%, rgba(46, 122, 255, 0.25) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 3;
    transition: var(--transition);
}

.hero-screenshot-wrapper:hover {
    transform: perspective(1200px) rotateY(-2deg) rotateX(1deg) scale(1.04);
}

/* Screenshot Tabs System */
.screenshot-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    z-index: 5;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.3rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.3s;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 0.5rem 1.25rem;
    border-radius: 9px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: var(--transition);
}

.tab-btn:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.02);
}

.tab-btn.active {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--accent-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.screenshot-img {
    width: 100%;
    height: auto;
    /* Высота автоматическая для идеального сопряжения с пропорциями */
    display: none;
    border-radius: 14px;
    transition: var(--transition);
    opacity: 0;
}

.screenshot-img.active {
    display: block;
    animation: fadeInImg 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInImg {
    from {
        opacity: 0;
        transform: scale(0.97);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hud-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1rem;
}

.hud-dots {
    display: flex;
    gap: 6px;
}

.hud-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-red {
    background-color: #ff5f56;
}

.dot-yellow {
    background-color: #ffbd2e;
}

.dot-green {
    background-color: #27c93f;
}

.hud-title {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

.hud-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hud-avatar {
    width: 82px;
    height: 82px;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    background: rgba(46, 122, 255, 0.05);
    border: 1px solid rgba(46, 122, 255, 0.15);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.hud-appname {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
}

.hud-version {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--accent-primary);
    background: rgba(46, 122, 255, 0.1);
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    margin-left: 0.5rem;
    border: 1px solid rgba(46, 122, 255, 0.2);
}

.hud-appdesc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    max-width: 320px;
    margin-bottom: 2rem;
}

.hud-links {
    width: 100%;
    max-width: 440px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 0.5rem;
}

.hud-link-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.hud-link-item:last-child {
    border-bottom: none;
}

.hud-badge {
    font-size: 0.7rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.04);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
}

/* Pulsating Neon Glow Behind the Screen */
.hero-screenshot-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140%;
    height: 140%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(46, 122, 255, 0.2) 0%, rgba(0, 242, 252, 0.08) 30%, rgba(0, 0, 0, 0) 60%);
    filter: blur(100px);
    z-index: 0;
    pointer-events: none;
    animation: slowGlowPulse 8s infinite alternate ease-in-out;
}

@keyframes slowGlowPulse {
    0% {
        transform: translate(-50%, -50%) scale(0.92);
        opacity: 0.65;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.08);
        opacity: 0.95;
    }
}

.floating-badge {
    position: absolute;
    padding: 0.65rem 1.15rem;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45);
    z-index: 5;
    transition: transform 0.3s ease;
}

.floating-badge .badge-icon {
    width: 14px;
    height: 14px;
    color: var(--accent-primary);
}

.badge-top-left {
    top: 8%;
    left: -4%;
    transform: perspective(1200px) translateZ(30px) rotateY(-10deg);
    animation: badgeEntranceTopLeft 1.2s cubic-bezier(0.16, 1, 0.3, 1) both, floatTopLeft 6s infinite alternate ease-in-out 1.2s;
}

.badge-bottom-right {
    bottom: 10%;
    right: -4%;
    transform: perspective(1200px) translateZ(40px) rotateY(-10deg);
    animation: badgeEntranceBottomRight 1.2s cubic-bezier(0.16, 1, 0.3, 1) both, floatBottomRight 6s infinite alternate ease-in-out 1.2s;
}

@keyframes badgeEntranceTopLeft {
    from {
        opacity: 0;
        transform: perspective(1200px) translateZ(30px) rotateY(-10deg) translateY(30px);
    }

    to {
        opacity: 1;
        transform: perspective(1200px) translateZ(30px) rotateY(-10deg) translateY(0);
    }
}

@keyframes badgeEntranceBottomRight {
    from {
        opacity: 0;
        transform: perspective(1200px) translateZ(40px) rotateY(-10deg) translateY(30px);
    }

    to {
        opacity: 1;
        transform: perspective(1200px) translateZ(40px) rotateY(-10deg) translateY(0);
    }
}

@keyframes floatTopLeft {
    0% {
        transform: perspective(1200px) translateZ(30px) rotateY(-10deg) translateY(0);
    }

    100% {
        transform: perspective(1200px) translateZ(30px) rotateY(-10deg) translateY(-12px);
    }
}

@keyframes floatBottomRight {
    0% {
        transform: perspective(1200px) translateZ(40px) rotateY(-10deg) translateY(0);
    }

    100% {
        transform: perspective(1200px) translateZ(40px) rotateY(-10deg) translateY(12px);
    }
}

/* Features System */
.features-section {
    position: relative;
    padding: 6rem 0;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 2rem;
    right: 2rem;
    height: 1.5px;
    background: linear-gradient(to right, rgba(46, 122, 255, 0) 0%, var(--accent-primary) 50%, rgba(46, 122, 255, 0) 100%);
}

.section-header {
    max-width: 600px;
    margin-bottom: 3.5rem;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.8px;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 2.25rem 2rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover {
    background-color: var(--bg-card-hover);
    border-color: var(--border-hover);
}

.feature-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.box-blue {
    background: rgba(46, 122, 255, 0.1);
    color: #2e7aff;
}

.box-gold {
    background: rgba(255, 159, 10, 0.1);
    color: #ff9f0a;
}

.box-purple {
    background: rgba(191, 90, 242, 0.1);
    color: #bf5af2;
}

.box-green {
    background: rgba(48, 209, 88, 0.1);
    color: #30d158;
}

.box-red {
    background: rgba(255, 69, 58, 0.1);
    color: #ff453a;
}

.box-teal {
    background: rgba(0, 180, 216, 0.1);
    color: #00b4d8;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.feature-card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* macOS Gatekeeper Bypass Instruction */
.bypass-guide-section {
    position: relative;
    padding: 6rem 0 10rem 0;
}

.bypass-guide-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 2rem;
    right: 2rem;
    height: 1.5px;
    background: linear-gradient(to right, rgba(46, 122, 255, 0) 0%, var(--accent-primary) 50%, rgba(46, 122, 255, 0) 100%);
}

.bypass-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
}

.bypass-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(20px);
}

.highlight-border {
    border-color: rgba(46, 122, 255, 0.25);
    box-shadow: inset 0 0 20px rgba(46, 122, 255, 0.03);
}

.bypass-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.bypass-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--accent-primary);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.bypass-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
}

.bypass-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Terminal Terminal Box */
.terminal-box {
    background-color: #050506;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6);
}

.terminal-header {
    background-color: #0a0a0c;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.t-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
}

.t-red {
    background-color: #ff5f56;
}

.t-yellow {
    background-color: #ffbd2e;
}

.t-green {
    background-color: #27c93f;
}

.terminal-title {
    font-size: 0.75rem;
    color: var(--text-secondary);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-sans);
    font-weight: 500;
}

.terminal-body {
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.terminal-body code {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: #30d158;
}

.terminal-copy-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 0.4rem 0.75rem;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.terminal-copy-btn:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.08);
}

/* Premium smooth state transitions when copied */
.terminal-copy-btn.copied {
    color: #27c93f !important;
    background-color: rgba(39, 201, 63, 0.1) !important;
    border-color: rgba(39, 201, 63, 0.25) !important;
    box-shadow: 0 0 12px rgba(39, 201, 63, 0.08) !important;
}

.bypass-tip {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    border-left: 3px solid var(--accent-primary);
    padding-left: 1rem;
}

.bypass-list {
    list-style: none;
}

.bypass-list li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.list-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* Footer Section with Sliding Parallax Effect */
footer {
    border-top: none;
    background: linear-gradient(to bottom, var(--bg-primary) 0%, #0c1015 40px, var(--bg-secondary) 120px, var(--bg-secondary) 100%);
    padding: 4rem 0;
}

@media (min-width: 769px) {
    main {
        margin-bottom: 180px;
        /* Пространство для выплывающего футера */
        -webkit-mask-image: linear-gradient(to bottom, #000000 0%, #000000 calc(100% - 180px), transparent 100%);
        mask-image: linear-gradient(to bottom, #000000 0%, #000000 calc(100% - 180px), transparent 100%);
    }

    footer {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 180px;
        /* Фиксированная высота для компактного скролла */
        z-index: 1;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        padding: 0;
    }
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.4px;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 1.25rem;
}

.footer-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    max-width: 320px;
    line-height: 1.5;
}

.credits {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: right;
    line-height: 1.5;
}

.pingvi-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 700;
    position: relative;
    display: inline-block;
    transition: color 0.4s cubic-bezier(0.16, 1, 0.3, 1), text-shadow 0.4s ease;
}

@supports (-webkit-background-clip: text) or (background-clip: text) {
    .pingvi-link {
        background-image: linear-gradient(to bottom, #ffffff 50%, var(--accent-primary) 50%);
        background-size: 100% 200%;
        background-position: 0 100%;
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        transition: background-position 0.4s cubic-bezier(0.16, 1, 0.3, 1), text-shadow 0.4s ease;
    }

    .pingvi-link:hover {
        background-position: 0 0;
        text-shadow: 0 0 12px rgba(46, 122, 255, 0.4);
    }
}

.pingvi-link::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, rgba(46, 122, 255, 0) 0%, var(--accent-primary) 50%, rgba(46, 122, 255, 0) 100%);
    opacity: 0;
    transition: top 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
    pointer-events: none;
}

.pingvi-link:hover::after {
    opacity: 1;
    top: calc(100% - 4px);
}

/* Custom Premium Buy Me A Coffee Button */
.bmc-custom-btn {
    display: inline-flex;
    align-items: center;
    background-color: rgba(46, 122, 255, 0.12);
    border: 1px solid rgba(46, 122, 255, 0.35);
    border-radius: 9px;
    padding: 0.55rem 0.9rem;
    gap: 0.75rem;
    color: #ffffff;
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.88rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.bmc-custom-btn:hover {
    transform: translateY(-2px);
    background-color: rgba(46, 122, 255, 0.35);
    border-color: rgba(46, 122, 255, 0.65);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.bmc-btn-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.coffee-icon {
    width: 16px;
    height: 16px;
    color: #4ea2ff;
}

.bmc-btn-text {
    letter-spacing: -0.2px;
}

.bmc-btn-divider {
    width: 1px;
    height: 18px;
    background-color: rgba(255, 255, 255, 0.15);
}

.bmc-btn-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    line-height: 1;
}

.heart-icon {
    width: 14px;
    height: 14px;
    color: #ff3b30;
    filter: drop-shadow(0 0 4px rgba(255, 59, 48, 0.4));
}

.heart-count {
    font-size: 0.62rem;
    font-family: var(--font-mono);
    color: rgba(255, 255, 255, 0.85);
    font-weight: 700;
}

/* Responsive Adaptive Queries */
@media (max-width: 992px) {
    .hero-section {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
        padding: 8rem 1.5rem 4rem 1.5rem;
    }

    .hero-left {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 0 auto;
        max-width: 100%;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

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

    .hero-screenshot-wrapper {
        margin: 0 auto;
        transform: none !important;
        height: 380px;
        /* Уменьшенная высота на планшетах */
    }

    .floating-badge {
        display: none !important;
        /* Убираем вылеты за экран */
    }

    .section-header {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 2.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .bypass-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .brew-install-container {
        margin: 1.5rem auto 0 auto;
    }
}

@media (max-width: 768px) {

    html,
    body {
        position: relative;
    }

    .glow-orb,
    .hero-bg-screenshot {
        display: none !important;
        /* Огромный прирост производительности на смартфонах */
    }

    main {
        margin-bottom: 0 !important;
    }

    header {
        width: calc(100% - 1.5rem);
        top: 0.75rem;
    }

    .nav-container {
        padding: 0.6rem 1.25rem;
        justify-content: space-between;
        width: 100%;
    }

    nav {
        display: none;
        /* Скрываем навигацию, оставляем логотип и кнопку назад */
    }

    .back-to-pingvi span {
        display: none;
    }

    .back-to-pingvi {
        padding: 0.4rem 0.6rem;
    }

    .hero-section {
        padding-top: 7rem;
        padding-bottom: 3rem;
        gap: 2rem;
    }

    .hero-section h1 {
        font-size: clamp(2.1rem, 7.5vw, 3rem);
        line-height: 1.1;
        letter-spacing: -1px;
    }

    .hero-description {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
        gap: 0.8rem;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-actions-bottom {
        margin-top: 0.5rem;
        margin-bottom: 1.5rem;
    }

    .brew-install-container {
        width: 100% !important;
        max-width: 380px !important;
        margin-left: auto;
        margin-right: auto;
    }

    .brew-install-body {
        flex-direction: column !important;
        gap: 0.85rem !important;
        align-items: stretch !important;
        padding: 1rem !important;
    }

    .brew-install-body code {
        font-size: 0.76rem !important;
        word-break: break-all !important;
        white-space: normal !important;
        line-height: 1.4 !important;
        width: 100% !important;
    }

    .terminal-copy-btn {
        width: 100% !important;
        justify-content: center !important;
        padding: 0.5rem !important;
    }

    .hero-screenshot-wrapper {
        height: 250px;
        /* Удобный размер для телефонов */
    }

    .feature-card {
        padding: 1.75rem 1.5rem;
    }

    .bypass-card {
        padding: 1.75rem;
    }

    .terminal-body {
        padding: 1rem;
        font-size: 0.8rem;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 1.25rem;
        padding: 0 1.5rem;
        align-items: center;
    }

    .footer-top {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.04);
        padding-top: 1rem;
        width: 100%;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-desc {
        margin: 0 auto;
        font-size: 0.82rem;
        opacity: 0.8;
        text-align: center;
    }

    .credits {
        text-align: center;
    }

    footer {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        width: 100% !important;
        height: auto !important;
        z-index: 10 !important;
        padding: 2.25rem 0 !important;
    }
}