/* ================================
   ERGOTICK — STYLES
   ================================ */
:root {
    --primary: #1de2c0;
    --primary-hover: #35f0d0;
    --blue-accent: #3b82f6;
    --amber-accent: #f59e0b;
    --violet-accent: #a855f7;
    --magenta-accent: #b51d5b;
    --bg-body: #060b16;
    --bg-surface: #0a1120;
    --bg-navbar: rgba(6, 11, 22, 0.84);
    --text-main: #ffffff;
    --text-muted: #cbd5e1;
    --text-dim: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.08);
    --navbar-height: 78px;
    --radius: 20px;
    --transition: all 0.25s ease;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --videos-chrome: 300px;
    /* Player badge — video red, white glyph */
    --play-red-hi: #ff3d5c;
    --play-red: #f5002c;
    --play-red-deep: #cc0021;
    --play-glyph: #ffffff;
    /* Scrollbar */
    --scroll-thumb: rgba(29, 226, 192, 0.32);
    --scroll-thumb-hover: rgba(29, 226, 192, 0.58);
    --scroll-track: rgba(255, 255, 255, 0.025);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* ================================
   GLOBAL SCROLLBAR — all pages
   ================================ */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--scroll-thumb) var(--scroll-track);
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--scroll-track);
}

::-webkit-scrollbar-thumb {
    background-color: var(--scroll-thumb);
    background-clip: padding-box;
    border: 2px solid transparent;
    border-radius: 999px;
    transition: background-color 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--scroll-thumb-hover);
}

::-webkit-scrollbar-thumb:active {
    background-color: rgba(29, 226, 192, 0.75);
}

::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}

::-webkit-scrollbar-corner {
    background: transparent;
}

body {
    background-color: var(--bg-body);
    background-image:
        radial-gradient(ellipse 80% 50% at 75% 0%, rgba(37, 99, 235, 0.12) 0%, transparent 70%),
        radial-gradient(ellipse 60% 45% at 15% 15%, rgba(37, 99, 235, 0.12) 0%, transparent 65%);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    padding-top: var(--navbar-height);
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 2rem;
}

a {
    text-decoration: none;
    color: inherit;
}

section[id] {
    scroll-margin-top: calc(var(--navbar-height) + 20px);
}

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--navbar-height);
    background: var(--bg-navbar);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-svg {
    height: 46px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.25rem;
    align-items: center;
}

.nav-links a:not(.btn) {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
}

.nav-links a:not(.btn):hover {
    color: var(--primary);
}

.nav-links a.active {
    color: var(--primary);
}

/* --- DROPDOWN (DESKTOP) --- */
.nav-item-dropdown {
    position: relative;
}

.nav-item-dropdown > a,
.nav-item-dropdown > .dropdown-trigger {
    display: flex !important;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
}

.nav-item-dropdown > .dropdown-trigger {
    cursor: default;
}

.nav-item-dropdown > a:hover,
.nav-item-dropdown > .dropdown-trigger:hover {
    color: var(--primary);
}

.nav-item-dropdown > a::after,
.nav-item-dropdown > .dropdown-trigger::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    transition: transform 0.25s ease;
    margin-top: 2px;
}

.nav-item-dropdown:hover > a::after,
.nav-item-dropdown:hover > .dropdown-trigger::after,
.nav-item-dropdown:focus-within > a::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(10, 16, 30, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.5rem;
    min-width: 210px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
    list-style: none;
    z-index: 100;
}

.nav-item-dropdown:hover .dropdown-menu,
.nav-item-dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 0.65rem 0.9rem;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.92rem !important;
    transition: background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary) !important;
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.6rem;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
    white-space: nowrap;
    border: none;
    font-family: inherit;
}

.btn-nav {
    padding: 0.65rem 1.4rem;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #25edd0 0%, #16cfa9 100%);
    color: #05161b;
    box-shadow: 0 4px 20px rgba(29, 226, 192, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #3bf5d9 0%, #1de2c0 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(29, 226, 192, 0.42);
}

.btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.03);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

/* --- MOBILE NAV --- */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-controls { display: none; align-items: center; }

.mobile-menu {
    display: none;
    position: absolute;
    top: var(--navbar-height);
    left: 0;
    width: 100%;
    background: rgba(6, 11, 22, 0.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 0.75rem 1.5rem 1.75rem;
    gap: 0;
}

.mobile-menu.active { display: flex; }

.mobile-menu a:not(.btn) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 1.05rem;
    padding: 0.95rem 0.25rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    transition: color 0.2s ease;
}

.mobile-menu a:not(.btn):hover {
    color: var(--primary);
}

.mobile-menu a:not(.btn)::after {
    content: '';
    flex-shrink: 0;
    width: 9px;
    height: 9px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
    opacity: 0.45;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-menu a:not(.btn):hover::after {
    opacity: 1;
    transform: rotate(45deg) translate(3px, -3px);
}

.mobile-menu span.mobile-parent {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 1.05rem;
    padding: 0.95rem 0.25rem 0.45rem;
    color: var(--text-muted);
    cursor: default;
}

.mobile-menu span.mobile-parent::after {
    content: '';
    flex-shrink: 0;
    width: 9px;
    height: 9px;
    border-top: 2px solid var(--primary);
    border-right: 2px solid var(--primary);
    transform: rotate(135deg);
    opacity: 0.8;
}

.mobile-sub-link {
    padding-left: 1.9rem !important;
    padding-top: 0.45rem !important;
    font-size: 0.95rem !important;
    color: var(--text-dim) !important;
    position: relative;
}

.mobile-sub-link::before {
    content: '↳';
    position: absolute;
    left: 0.55rem;
    color: var(--primary);
    font-size: 0.85rem;
    opacity: 0.7;
}

.mobile-sub-link:hover {
    color: var(--primary) !important;
}

.mobile-btn {
    width: 100%;
    margin-top: 1.35rem;
}

/* --- BREADCRUMB (product page) --- */
.breadcrumb { padding: 1.25rem 0 0; }

.breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-dim);
}

.breadcrumb li + li::before {
    content: '›';
    margin-right: 0.5rem;
    color: var(--text-dim);
}

.breadcrumb a { color: var(--text-dim); transition: color 0.2s ease; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb li span { color: var(--text-dim); }
.breadcrumb [aria-current="page"] { color: var(--text-muted); }

/* --- PRODUCT H1 ACCENT --- */
.h1-accent { display: inline; color: var(--primary); }

/* --- HERO --- */
.hero {
    padding: 4.75rem 0 5.5rem;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.18fr 0.82fr;
    gap: 3rem;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(2rem, 3.05vw, 2.75rem);
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: -0.025em;
    margin-bottom: 2rem;
}

.h1-main {
    display: block;
    color: #ffffff;
}

.gradient-text {
    display: block;
    margin-top: 0.2rem;
    background: linear-gradient(95deg, #2ff0d0 0%, #1de2c0 32%, #3b82f6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-lead {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 590px;
    margin-bottom: 1.5rem;
}

.hero-highlights {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.35rem;
    max-width: 560px;
    margin-bottom: 2.35rem;
    color: var(--text-main);
    font-size: 0.98rem;
    font-weight: 500;
}

.hero-highlights li::before {
    content: "•";
    color: var(--primary);
    margin-right: 0.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.35rem;
}

.hero-meta {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-visual::before {
    content: '';
    position: absolute;
    width: 540px;
    height: 540px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(
        circle at 55% 45%,
        rgba(29, 226, 192, 0.16) 0%,
        rgba(37, 99, 235, 0.18) 38%,
        rgba(6, 11, 22, 0) 72%
    );
    filter: blur(55px);
    z-index: -1;
    pointer-events: none;
}

.hero-visual img {
    width: 100%;
    max-width: 445px;
    height: auto;
    display: block;
    filter: drop-shadow(0 26px 55px rgba(0, 0, 0, 0.6));
}

/* --- BUNDLE SECTION (WHAT YOU GET) --- */
.bundle-section {
    padding: 2rem 0 4rem;
}

.bundle-section .section-heading {
    text-align: center;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    margin-bottom: 0.9rem;
    letter-spacing: -0.02em;
}

.bundle-sub {
    text-align: center;
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 auto 2.75rem;
    font-size: 1rem;
    line-height: 1.6;
}

.bundle-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.35rem;
}

.bundle-card {
    position: relative;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    padding: 1.75rem 1.6rem 2rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.bundle-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 14%;
    right: 14%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--card-accent, #1de2c0), transparent);
    opacity: 0.75;
}

.bundle-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.45);
}

.bundle-teal {
    --card-accent: #1de2c0;
    background: linear-gradient(180deg, rgba(0, 140, 140, 0.26) 0%, rgba(12, 24, 42, 0.7) 48%, #090f1d 100%);
}

.bundle-blue {
    --card-accent: #3b82f6;
    background: linear-gradient(180deg, rgba(44, 98, 181, 0.28) 0%, rgba(12, 24, 42, 0.7) 48%, #090f1d 100%);
}

.bundle-amber {
    --card-accent: #f59e0b;
    background: linear-gradient(180deg, rgba(214, 128, 15, 0.26) 0%, rgba(28, 22, 18, 0.65) 48%, #090f1d 100%);
}

.bundle-violet {
    --card-accent: #a855f7;
    background: linear-gradient(180deg, rgba(168, 85, 247, 0.24) 0%, rgba(22, 18, 40, 0.68) 48%, #090f1d 100%);
}

.bundle-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.35rem;
}

.bundle-icon-wrap {
    color: var(--card-accent, #1de2c0);
    line-height: 0;
}

.bundle-icon {
    width: 44px;
    height: 44px;
    display: block;
}

.bundle-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.68rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    white-space: nowrap;
}

.bundle-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    color: #ffffff;
    letter-spacing: -0.015em;
}

.bundle-card p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.93rem;
    line-height: 1.58;
}

/* --- FEATURE SECTIONS (PRODUCT) --- */
.feature-section { padding: 3.5rem 0; }

.feature-heading {
    font-size: clamp(1.35rem, 2.2vw, 1.8rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    margin-bottom: 1.25rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1.5fr 2.5fr;
    gap: 3rem;
    align-items: center;
}

.feature-grid-reverse {
    grid-template-columns: 2.5fr 1.5fr;
}

.feature-copy p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-list li {
    position: relative;
    padding-left: 1.25rem;
    color: var(--text-muted);
    font-size: 0.97rem;
    line-height: 1.65;
}

.feature-list li::before {
    content: '•';
    color: var(--primary);
    position: absolute;
    left: 0;
    font-weight: 700;
}

.feature-list li strong { color: var(--text-main); font-weight: 600; }

.feature-media { display: flex; justify-content: center; }

/* --- MEDIA FRAME (YouTube-style) --- */
.media-frame {
    position: relative;
    width: 100%;
    max-width: 620px;
    min-height: 400px;
    background: rgba(255, 255, 255, 0.02);
    line-height: 0;
    border-radius: 0;
    border: none;
    box-shadow:
        0 -2px 20px 2px rgba(37, 99, 235, 0.4),
        0  2px 20px 2px rgba(37, 99, 235, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-frame img {
    width: 100%;
    height: auto;
    max-height: 100%;
    display: block;
    border-radius: 0;
    object-fit: contain;
}

.media-frame span {
    display: block;
    padding: 1.5rem;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.8;
}

.media-frame code { color: var(--primary); font-size: 0.85rem; }

/* --- PRICING CARDS --- */
.pricing-section { padding: 4rem 0 5rem; }

.pricing-sub {
    text-align: center;
    color: var(--text-muted);
    max-width: 640px;
    margin: -2rem auto 3rem;
    font-size: 1rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 380px));
    justify-content: center;
    gap: 2rem;
    align-items: stretch;
}

.price-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.75rem 2rem 2.25rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.015) 55%, rgba(6, 11, 22, 0) 100%),
        #0a1120;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.price-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 24px 52px rgba(0, 0, 0, 0.5);
}

.price-card-featured {
    border-color: rgba(29, 226, 192, 0.45);
    background:
        linear-gradient(180deg, rgba(29, 226, 192, 0.10) 0%, rgba(37, 99, 235, 0.06) 45%, rgba(6, 11, 22, 0) 100%),
        #0a1120;
    box-shadow: 0 18px 46px rgba(29, 226, 192, 0.12);
}

.price-card-featured:hover {
    border-color: rgba(29, 226, 192, 0.7);
    box-shadow: 0 26px 60px rgba(29, 226, 192, 0.18);
}

.price-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #25edd0 0%, #16cfa9 100%);
    color: #05161b;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.4rem 1.1rem;
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(29, 226, 192, 0.35);
    white-space: nowrap;
}

.price-card h3 { font-size: 1.25rem; font-weight: 700; text-align: center; }

.price-tagline {
    text-align: center;
    color: var(--text-dim);
    font-size: 0.92rem;
    margin-top: -0.6rem;
}

.price-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.5rem 0 1.1rem;
    border-bottom: 1px solid var(--border-color);
}

.price {
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.price-period { color: var(--text-dim); font-size: 0.95rem; font-weight: 500; }

.price-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin: 1.1rem 0 1.6rem;
    flex-grow: 1;
}

.price-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    color: var(--text-muted);
    font-size: 0.97rem;
    line-height: 1.5;
}

.price-list li:first-child { color: var(--text-main); font-weight: 600; }

.price-list li::before {
    content: '';
    flex-shrink: 0;
    width: 17px;
    height: 17px;
    margin-top: 2px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%231de2c0' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M2.5 8.6l3.4 3.4 7.1-8'/%3E%3C/svg%3E") no-repeat center / contain;
}

.pricing-note {
    text-align: center;
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-top: 2.25rem;
}

/* --- FAQ --- */
.faq-section { padding: 3rem 0 5rem; }

.faq-inner { max-width: 900px; }

.faq-item { padding: 1.75rem 0; }

.faq-item + .faq-item { border-top: 1px solid var(--border-color); }

.faq-item h3 {
    font-size: 1.08rem;
    font-weight: 700;
    margin-bottom: 0.85rem;
    letter-spacing: -0.01em;
}

.faq-item p {
    color: var(--text-muted);
    font-size: 0.97rem;
    line-height: 1.7;
}

/* --- DIFFERENTIATOR INTRO (HOME) --- */
.intro-section {
    padding: 4rem 0 4.5rem;
    text-align: center;
    position: relative;
}

.intro-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(92%, 1100px);
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(29, 226, 192, 0.25) 35%, rgba(59, 130, 246, 0.28) 65%, transparent 100%);
}

.intro-inner {
    max-width: 840px;
    margin: 0 auto;
}

.intro-inner h2 {
    font-size: clamp(1.55rem, 2.5vw, 2.05rem);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1.4rem;
    letter-spacing: -0.015em;
}

.intro-inner p {
    color: var(--text-muted);
    font-size: 1.02rem;
    line-height: 1.72;
}

/* --- CORE PRINCIPLES / 4 CARDS (HOME) --- */
.pillars-section {
    padding: 1.5rem 0 5.5rem;
    position: relative;
}

.pillars-section::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: min(100%, 1100px);
    height: 420px;
    background: radial-gradient(
        ellipse at center,
        rgba(37, 99, 235, 0.09) 0%,
        rgba(29, 226, 192, 0.05) 45%,
        transparent 75%
    );
    filter: blur(60px);
    z-index: -1;
    pointer-events: none;
}

.section-heading {
    text-align: center;
    font-size: clamp(1.45rem, 2.4vw, 1.95rem);
    font-weight: 600;
    margin-bottom: 3rem;
    letter-spacing: -0.015em;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.35rem;
}

.pillar-card {
    position: relative;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    padding: 2.35rem 1.75rem 2.5rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
}

.pillar-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.48);
}

.card-blue { background: linear-gradient(180deg, #2c62b5 0%, #14294f 48%, #090f1d 100%); }
.card-teal { background: linear-gradient(180deg, #008b8b 0%, #083842 48%, #090f1d 100%); }
.card-magenta { background: linear-gradient(180deg, #b51d5b 0%, #461430 48%, #090f1d 100%); }
.card-amber { background: linear-gradient(180deg, #d6800f 0%, #563510 48%, #090f1d 100%); }

.card-icon {
    width: 52px;
    height: 52px;
    display: block;
    margin: 0 auto 1.35rem;
    flex-shrink: 0;
}

.pillar-card h3 {
    text-align: center;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1.35rem;
    letter-spacing: -0.02em;
}

.pillar-card p {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.94rem;
    line-height: 1.58;
}

/* --- BOTTOM CTA (HOME) --- */
.cta-section {
    padding: 1rem 0 5.5rem;
}

.cta-box {
    background: linear-gradient(135deg, rgba(29, 226, 192, 0.08) 0%, rgba(37, 99, 235, 0.1) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 3.25rem 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
}

.cta-box h2 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    margin-bottom: 0.9rem;
}

.cta-box p {
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 auto 2rem;
    font-size: 1rem;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* --- FOOTER --- */
.footer {
    padding: 2.5rem 0;
    border-top: 1px solid var(--border-color);
}

.footer-glow {
    position: relative;
    height: 220px;
    margin-top: -60px;
    pointer-events: none;
}

.footer-glow::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse 50% 50% at 50% 100%,
        rgba(37, 99, 235, 0.75) 0%,
        rgba(37, 99, 235, 0.35) 40%,
        rgba(37, 99, 235, 0.12) 70%,
        transparent 100%
    );
    filter: blur(35px);
    -webkit-mask-image: linear-gradient(to top, black 0%, transparent 100%);
    mask-image: linear-gradient(to top, black 0%, transparent 100%);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 1.75rem;
    flex-wrap: wrap;
}

.footer-links a:hover {
    color: var(--primary);
}

/* ================================
   MANUALS / DOCUMENTATION STYLES
   ================================ */
.docs-header {
    padding: 1.75rem 0 2.5rem;
    border-bottom: 1px solid var(--border-color);
}

.docs-header h1 {
    font-size: clamp(2rem, 3.3vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.18;
    margin-bottom: 0.85rem;
}

.docs-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 680px;
    margin-bottom: 1.65rem;
}

/* --- SHARED SUBPAGE BREADCRUMB (Manuals + Videos) --- */
.docs-breadcrumb {
    padding: 1.5rem 0 0.5rem;
    font-size: 0.88rem;
    color: var(--text-dim);
}

.docs-breadcrumb ol {
    display: flex;
    list-style: none;
    gap: 0.55rem;
    align-items: center;
}

.docs-breadcrumb li + li::before {
    content: '/';
    margin-right: 0.55rem;
    opacity: 0.5;
}

.docs-breadcrumb a {
    color: var(--text-dim);
    transition: color 0.2s ease;
}

.docs-breadcrumb a:hover {
    color: var(--primary);
}

.docs-search-wrap {
    position: relative;
    max-width: 460px;
}

.docs-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
    pointer-events: none;
}

#docs-search {
    width: 100%;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    padding: 0.8rem 1rem 0.8rem 2.75rem;
    color: #fff;
    font-family: var(--font-main);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#docs-search::placeholder { color: var(--text-dim); }

#docs-search:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(29, 226, 192, 0.14);
}

/* --- SEARCH HIGHLIGHT --- */
.search-highlight {
    background: transparent;
    color: inherit;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    text-decoration: underline;
    text-decoration-color: #b51d5b;
    text-decoration-style: dashed;
    text-underline-offset: 3px;
    text-decoration-thickness: 2px;
    transition: text-decoration-style 0.2s ease;
}

.search-highlight.active {
    background: transparent;
    border: none;
    box-shadow: none;
    animation: none;
    text-decoration-style: solid;
}

.search-count {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.82rem;
    color: var(--text-dim);
    pointer-events: none;
    background: rgba(6, 11, 22, 0.8);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

/* --- DOCS 2-COLUMN LAYOUT --- */
.docs-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 3.5rem;
    padding: 3rem 0 5.5rem;
    align-items: start;
}

.docs-sidebar {
    position: sticky;
    top: calc(var(--navbar-height) + 1.75rem);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.toc-title {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.toc-list {
    list-style: none;
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.toc-list a {
    display: block;
    padding: 0.45rem 0 0.45rem 1rem;
    font-size: 0.9rem;
    color: var(--text-dim);
    border-left: 2px solid transparent;
    margin-left: -1px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.toc-list a:hover { color: var(--text-main); }

.toc-list a.active {
    color: var(--primary);
    border-left-color: var(--primary);
    font-weight: 600;
}

.sidebar-cta {
    background: rgba(29, 226, 192, 0.06);
    border: 1px solid rgba(29, 226, 192, 0.22);
    border-radius: 14px;
    padding: 1.15rem;
}

.sidebar-cta p {
    font-size: 0.86rem;
    color: var(--text-muted);
    margin-bottom: 0.85rem;
    line-height: 1.5;
}

.sidebar-cta .btn {
    width: 100%;
    padding: 0.65rem 1rem;
    font-size: 0.88rem;
}

/* Mobile TOC */
.mobile-toc {
    display: none;
    margin-bottom: 2rem;
    background: rgba(15, 23, 42, 0.58);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.85rem 1.1rem;
}

.mobile-toc summary {
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    color: var(--primary);
}

.mobile-toc ul {
    list-style: none;
    margin-top: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.mobile-toc a {
    display: block;
    font-size: 0.92rem;
    color: var(--text-muted);
    padding: 0.25rem 0;
}

/* Mobile CTA */
.mobile-cta {
    display: none;
    background: rgba(29, 226, 192, 0.06);
    border: 1px solid rgba(29, 226, 192, 0.22);
    border-radius: 14px;
    padding: 1.15rem;
    margin-top: 2rem;
}

.mobile-cta p {
    font-size: 0.86rem;
    color: var(--text-muted);
    margin-bottom: 0.85rem;
    line-height: 1.5;
}

.mobile-cta .btn {
    width: 100%;
    padding: 0.65rem 1rem;
    font-size: 0.88rem;
}

/* Right Content */
.docs-content {
    max-width: 820px;
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

.doc-section {
    scroll-margin-top: calc(var(--navbar-height) + 1.5rem);
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.doc-section:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.doc-section.is-hidden { display: none; }

.section-num {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.doc-section h2 {
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.doc-section h3 {
    font-size: 1.12rem;
    font-weight: 600;
    margin: 1.65rem 0 0.65rem;
    color: #fff;
}

.doc-section p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.98rem;
}

.doc-steps,
.doc-list {
    padding-left: 1.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
    color: var(--text-muted);
    font-size: 0.97rem;
}

.doc-steps li strong,
.doc-list li strong { color: #ffffff; }

/* Ergotick-themed Installation Steps */
.ergo-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.25rem;
}

.ergo-step {
    position: relative;
    background: rgba(15, 23, 42, 0.58);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.25rem 1.45rem;
    overflow: hidden;
}

.ergo-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 12%;
    right: 12%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(29, 226, 192, 0.45), transparent);
}

.ergo-step-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.ergo-step-num {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(29, 226, 192, 0.1);
    border: 1px solid rgba(29, 226, 192, 0.25);
    border-radius: 6px;
    padding: 0.18rem 0.48rem;
    line-height: 1.2;
}

.ergo-step-head h3 {
    margin: 0;
    font-size: 1.06rem;
    font-weight: 600;
    color: #ffffff;
}

.ergo-step-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ergo-step-list li {
    position: relative;
    padding-left: 1.05rem;
    font-size: 0.94rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.ergo-step-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.58rem;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--primary);
}

.ergo-step-list li strong { color: #ffffff; }

/* Before Start Box */
.before-start-box {
    background: rgba(245, 158, 11, 0.06);
    border: 1px solid rgba(245, 158, 11, 0.32);
    border-radius: 14px;
    padding: 1.25rem 1.4rem;
    margin: 1.5rem 0 0;
}

.before-start-title {
    color: #f59e0b;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.85rem;
}

.before-start-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.before-start-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    font-size: 0.94rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.before-start-list li strong { color: #ffffff; }

.check-circle {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    color: #f59e0b;
}

/* Callouts */
.callout {
    border-radius: 12px;
    padding: 1rem 1.2rem;
    margin: 1.35rem 0;
    border-left: 3px solid var(--primary);
    background: rgba(29, 226, 192, 0.07);
    font-size: 0.94rem;
    color: var(--text-muted);
}

.callout strong {
    display: block;
    color: var(--primary);
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.callout-warn {
    border-left-color: #f59e0b;
    background: rgba(245, 158, 11, 0.08);
}

.callout-warn strong { color: #f59e0b; }

/* Tables */
.table-wrap {
    overflow-x: auto;
    margin: 1.25rem 0;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.58);
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.92rem;
}

th, td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

th {
    color: #fff;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.03);
}

td { color: var(--text-muted); }
tr:last-child td { border-bottom: none; }

/* Code & UI Pills */
code, kbd {
    font-family: var(--font-mono);
    font-size: 0.86em;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 0.12rem 0.42rem;
    color: var(--primary);
}

.ui-pill {
    display: inline-block;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    padding: 0.06rem 0.48rem;
    font-size: 0.87em;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0.12rem;
}

/* Image Frame Placeholder */
.media-frame-doc {
    margin: 1.35rem 0 1.65rem;
    border: 1px dashed rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.55);
    padding: 2.5rem 1.5rem;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.92rem;
}

.media-frame-doc img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
    margin: 1.25rem 0;
}

.metric-box {
    background: rgba(15, 23, 42, 0.58);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 1.15rem;
}

.metric-box strong {
    display: block;
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.metric-box span {
    color: var(--text-dim);
    font-size: 0.88rem;
    line-height: 1.45;
    display: block;
}

/* Troubleshooting Accordions */
.faq-details {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.58);
    margin-bottom: 0.85rem;
    padding: 0.95rem 1.2rem;
}

.faq-details summary {
    font-weight: 600;
    font-size: 0.98rem;
    cursor: pointer;
    color: #fff;
}

.faq-details p {
    margin-top: 0.75rem;
    margin-bottom: 0;
    font-size: 0.94rem;
}

#no-results {
    display: none;
    text-align: center;
    padding: 3rem 1.5rem;
    border: 1px dashed var(--border-color);
    border-radius: 16px;
    color: var(--text-muted);
}

#no-results.visible { display: block; }

/* ================================
   VIDEOS PAGE
   ================================ */
.videos-header {
    padding: 1.05rem 0 1.4rem;
    text-align: center;
}

.videos-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(29, 226, 192, 0.08);
    border: 1px solid rgba(29, 226, 192, 0.25);
    border-radius: 999px;
    padding: 0.3rem 0.8rem;
    margin-bottom: 0.8rem;
}

.videos-eyebrow::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    animation: livePulse 2.4s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.videos-header h1 {
    font-size: clamp(1.75rem, 2.7vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.14;
    margin-bottom: 0.6rem;
}

.videos-header > .container > p {
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.55;
    max-width: 700px;
    margin: 0 auto;
}

/* Featured player — sized so the whole 16:9 frame fits the first screen */
.featured-section { padding: 0.25rem 0 3.5rem; }

.featured-shell {
    width: 100%;
    margin: 0 auto;
    max-width: min(1160px, max(480px, calc((100vh - var(--videos-chrome)) * 16 / 9)));
    max-width: min(1160px, max(480px, calc((100svh - var(--videos-chrome)) * 16 / 9)));
}

.featured-player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    background: #05080f;
    border: 1px solid rgba(255, 255, 255, 0.11);
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.55);
}

.featured-player iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.video-facade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

.video-facade img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-facade::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 11, 22, 0.05) 0%, rgba(6, 11, 22, 0.5) 100%);
    transition: opacity 0.3s ease;
}

.video-facade:hover::after,
.video-facade:focus-visible::after { opacity: 0.62; }

/* Red badge, white glyph — circle 90px, triangle 49px */
.play-btn {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: radial-gradient(circle at 34% 28%, var(--play-red-hi) 0%, var(--play-red) 46%, var(--play-red-deep) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 0 6px rgba(6, 11, 22, 0.3);
    transition: transform 0.26s var(--ease-out), box-shadow 0.26s ease;
}

.video-facade:hover .play-btn,
.video-facade:focus-visible .play-btn {
    transform: scale(1.07);
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.58), 0 0 0 8px rgba(6, 11, 22, 0.34);
}

.video-facade:focus-visible { outline: none; }

.video-facade:focus-visible .play-btn {
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.58), 0 0 0 4px rgba(255, 255, 255, 0.85);
}

.play-btn svg {
    width: 49px;
    height: 49px;
    flex-shrink: 0;
    margin-left: 4px;
    fill: var(--play-glyph);
}

.video-tag-tl {
    position: absolute;
    top: 0.9rem;
    left: 0.9rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #05161b;
    background: linear-gradient(135deg, #25edd0 0%, #16cfa9 100%);
    padding: 0.32rem 0.78rem;
    border-radius: 999px;
}

.video-duration {
    position: absolute;
    bottom: 0.9rem;
    right: 0.9rem;
    z-index: 2;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    color: #ffffff;
    background: rgba(6, 11, 22, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 0.24rem 0.58rem;
    border-radius: 6px;
}

.featured-info {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2.5rem;
    margin-top: 1.6rem;
    flex-wrap: wrap;
}

.featured-info-text { flex: 1 1 460px; min-width: 0; }

.featured-info h2 {
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.28;
    margin-bottom: 0.75rem;
}

.featured-info p {
    color: var(--text-muted);
    font-size: 0.97rem;
    line-height: 1.68;
}

.featured-chapters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.15rem;
}

.chapter-chip {
    font-size: 0.81rem;
    color: var(--text-dim);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 0.3rem 0.82rem;
}

.featured-actions {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    flex: 0 0 250px;
}

.featured-actions .btn { width: 100%; }

.featured-note {
    font-size: 0.81rem;
    color: var(--text-dim);
    line-height: 1.5;
    text-align: center;
    margin-top: 0.1rem;
}

/* Demos */
.shorts-section { padding: 1rem 0 4.5rem; }

.shorts-head {
    text-align: center;
    margin-bottom: 2.25rem;
}

.shorts-head h2 {
    font-size: clamp(1.45rem, 2.4vw, 1.95rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    margin-bottom: 0.75rem;
}

.shorts-head p {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 620px;
    margin: 0 auto;
}

.shorts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.35rem;
}

.short-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.55) 0%, rgba(9, 15, 29, 0.92) 100%);
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
    transition: transform 0.28s var(--ease-out), border-color 0.25s ease, box-shadow 0.28s ease;
}

.short-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 14%;
    right: 14%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--card-accent, #1de2c0), transparent);
    opacity: 0.75;
    z-index: 3;
}

.short-card:hover {
    transform: translateY(-6px);
    border-color: var(--card-border, rgba(255, 255, 255, 0.22));
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.48);
}

.short-teal   { --card-accent: #1de2c0; --card-border: rgba(29, 226, 192, 0.45); }
.short-blue   { --card-accent: #3b82f6; --card-border: rgba(59, 130, 246, 0.45); }
.short-amber  { --card-accent: #f59e0b; --card-border: rgba(245, 158, 11, 0.45); }
.short-violet { --card-accent: #a855f7; --card-border: rgba(168, 85, 247, 0.45); }

.short-frame {
    position: relative;
    aspect-ratio: 9 / 16;
    background: #05080f;
}

.short-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.short-body {
    padding: 1.15rem 1.25rem 1.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex-grow: 1;
}

.short-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.short-index {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-dim);
    letter-spacing: 0.04em;
}

.short-tag {
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--card-accent, #1de2c0);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 0.26rem 0.7rem;
}

.short-card h3 {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.short-card p {
    font-size: 0.87rem;
    color: var(--text-dim);
    line-height: 1.55;
}

.short-link {
    margin-top: auto;
    padding-top: 0.35rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--primary);
    transition: gap 0.2s ease;
}

.short-link:hover { gap: 0.6rem; }

/* Sticky conversion bar */
.video-cta-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    padding: 0.8rem 0;
    background: rgba(6, 11, 22, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(29, 226, 192, 0.28);
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(110%);
    visibility: hidden;
    transition: transform 0.4s var(--ease-out), visibility 0.4s;
}

.video-cta-bar.is-visible {
    transform: translateY(0);
    visibility: visible;
}

.video-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.video-cta-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
    min-width: 0;
}

.video-cta-copy strong { font-size: 0.98rem; font-weight: 700; color: #ffffff; }
.video-cta-copy span { font-size: 0.83rem; color: var(--text-dim); }

.video-cta-actions {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-left: auto;
}

.video-cta-actions .btn { padding: 0.68rem 1.3rem; font-size: 0.9rem; }

.video-cta-close {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-dim);
    cursor: pointer;
    font-size: 1.15rem;
    line-height: 1;
    font-family: inherit;
    transition: var(--transition);
}

.video-cta-close:hover {
    color: var(--primary);
    border-color: rgba(29, 226, 192, 0.4);
}

/* ================================
   THEME SHOWCASE TOGGLE (Product page)
   ================================ */
.theme-showcase {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    max-width: 445px;
    margin: 0 auto;
}

.theme-images {
    position: relative;
    width: 100%;
    aspect-ratio: 456 / 541;
}

.theme-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    filter: drop-shadow(0 26px 55px rgba(0, 0, 0, 0.6));
}

.theme-img.active {
    opacity: 1;
    pointer-events: auto;
}

/* Theme switcher — slate pills w wanience, cień pod guzikami, brak ramek.
   Styl analogiczny do referencji (segmented control). */
.theme-toggles {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: inline-flex;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.theme-pill {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    color: var(--text-muted);
    background-color: rgba(30, 41, 59, 0.8);
    border: none;
    border-radius: 999px;
    padding: 0.55rem 1.3rem;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.theme-pill:hover {
    color: var(--primary);
    background-color: rgba(40, 55, 75, 0.9);
}

.theme-pill.active {
    color: var(--primary);
    background-color: rgba(29, 226, 192, 0.15);
}

.theme-pill:focus-visible {
    outline: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), inset 0 0 0 2px rgba(29, 226, 192, 0.45);
}

.theme-ico {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Scroll reveal */
.js-ready .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}

.js-ready .reveal.is-in { opacity: 1; transform: none; }

/* --- RESPONSIVE --- */
@media (max-width: 1080px) {
    .pillars-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 780px;
        margin: 0 auto;
    }
    .bundle-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 780px;
        margin: 0 auto;
    }
}

@media (max-width: 980px) {
    .shorts-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 660px;
        margin: 0 auto;
    }
}

@media (max-width: 960px) {
    .docs-layout {
        grid-template-columns: 1fr;
        gap: 0;
        padding-top: 2rem;
    }
    .docs-sidebar { display: none; }
    .mobile-toc { display: block; }
    .mobile-cta { display: block; }
    .docs-content { max-width: 100%; }
}

@media (max-width: 900px) {
    :root { --navbar-height: 70px; }
    .desktop-only { display: none !important; }
    .mobile-controls, .hamburger { display: flex; }
    .logo-svg { height: 38px; }
    .hero { padding: 3rem 0 4rem; }
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    .hero-lead { margin: 0 auto 1.5rem; }
    .hero-highlights { justify-content: center; margin: 0 auto 2rem; }
    .hero-visual img { max-width: 360px; }
    .hero-visual::before { width: 380px; height: 380px; }
    .hero-actions { gap: 0.85rem; }
    .hero-actions .btn {
        flex: 1 1 auto;
        min-width: 180px;
    }
    .feature-grid,
    .feature-grid-reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .feature-grid-reverse .feature-media { order: -1; }
}

@media (max-width: 780px) {
    .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
    .price-card-featured { order: -1; }
    .featured-shell { max-width: 100%; }
    .featured-info { flex-direction: column; gap: 1.5rem; }
    .featured-actions { flex: 1 1 auto; width: 100%; flex-direction: row; flex-wrap: wrap; }
    .featured-actions .btn { flex: 1 1 200px; width: auto; }
    .featured-note { flex: 1 1 100%; }
    .play-btn {
        width: 74px;
        height: 74px;
        box-shadow: 0 9px 25px rgba(0, 0, 0, 0.5), 0 0 0 5px rgba(6, 11, 22, 0.3);
    }
    .play-btn svg { width: 41px; height: 41px; margin-left: 3px; }
}

@media (max-width: 620px) {
    .container { padding: 0 1.25rem; }
    .hero-text h1 { font-size: 1.85rem; }
    .pillars-grid {
        grid-template-columns: 1fr;
        max-width: 440px;
    }
    .bundle-grid {
        grid-template-columns: 1fr;
        max-width: 440px;
    }
    .ergo-step { padding: 1.15rem; }
    .metrics-grid { grid-template-columns: 1fr; }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .videos-header { padding: 0.85rem 0 1.15rem; }
    .featured-section { padding-bottom: 3rem; }
    .featured-player { border-radius: 13px; }
    .play-btn {
        width: 64px;
        height: 64px;
        box-shadow: 0 7px 20px rgba(0, 0, 0, 0.5), 0 0 0 4px rgba(6, 11, 22, 0.3);
    }
    .play-btn svg { width: 35px; height: 35px; margin-left: 2px; }
    .video-tag-tl { top: 0.65rem; left: 0.65rem; font-size: 0.66rem; padding: 0.26rem 0.6rem; }
    .video-duration { bottom: 0.65rem; right: 0.65rem; font-size: 0.72rem; }
    .shorts-head { margin-bottom: 1.75rem; }
    .shorts-grid {
        grid-template-columns: minmax(0, 360px);
        justify-content: center;
        max-width: none;
        gap: 1.15rem;
        margin: 0 auto;
    }
    .short-card:hover { transform: none; }
    .short-body { padding: 1.05rem 1.15rem 1.2rem; }
    .video-cta-inner { gap: 0.75rem; }
    .video-cta-copy span { display: none; }
    .video-cta-copy strong { font-size: 0.86rem; }
    .video-cta-actions .btn-secondary { display: none; }
    .video-cta-actions .btn { padding: 0.6rem 1.05rem; font-size: 0.85rem; }
    .theme-toggles {
        padding: 0.3rem;
        gap: 0.3rem;
    }
    .theme-pill {
        gap: 0.4rem;
        padding: 0.45rem 0.95rem;
        font-size: 0.8rem;
    }
    .theme-ico {
        width: 13px;
        height: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .videos-eyebrow::before { animation: none !important; }
    .js-ready .reveal { opacity: 1; transform: none; transition: none; }
    * { transition-duration: 0.01ms !important; }
}