:root {
    /* Dark theme (for hero and topnav) */
    --bg-dark: #0D1117;
    --surface-dark: #161B22;
    --primary-blue: #388BFD;
    --primary-purple: #A371F7;
    --text-light: #C9D1D9;
    --text-dim: #8B949E;
    --border-color: #30363D;

    /* Light theme (for rest of page) */
    --bg-light: #FFFFFF;
    --surface-light: #F8F9FA;
    --text-dark: #1F2328;
    --text-muted: #656d76;
    --border-light: #D0D7DE;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px;
    overflow-x: clip;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    margin: 0;
    padding: 0;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

main {
    isolation: isolate;
    /* Creates a new stacking context to solve z-index issues */
}

section {
    padding: 100px 0;
}

/* Header */
/* ======================== NAVBAR – PREMIUM REDESIGN ======================== */
.header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 14px 0;
    transition: padding 0.4s cubic-bezier(.4, 0, .2, 1),
        background-color 0.4s cubic-bezier(.4, 0, .2, 1);
    background-color: transparent;
}

.header-scrolled {
    padding: 6px 0;
}

.navbar {
    display: flex;
    justify-content: flex-start;
    gap: 40px;
    align-items: center;
    height: 60px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    padding: 0 28px;
    backdrop-filter: blur(24px) saturate(1.2);
    -webkit-backdrop-filter: blur(24px) saturate(1.2);
    transition: all 0.5s cubic-bezier(.4, 0, .2, 1);
    position: relative;
}

/* Subtle animated gradient glow on hover */
.navbar::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 17px;
    background: linear-gradient(135deg,
            rgba(56, 139, 253, 0.20),
            rgba(139, 92, 246, 0.15),
            rgba(56, 139, 253, 0.08));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.navbar:hover::after {
    opacity: 1;
}

.header-scrolled .navbar {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* ---- Transition to WHITE navbar when past hero ---- */
.header.hero-passed {
    background-color: transparent;
}

.header.hero-passed .navbar {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06),
        0 1px 0 rgba(0, 0, 0, 0.03);
}

.header.hero-passed .nav-links a {
    color: var(--text-navy, #1e293b);
}

.header.hero-passed .nav-links a:hover,
.header.hero-passed .nav-links a.active {
    color: var(--primary-blue);
}

.header.hero-passed .nav-download {
    color: #1e293b;
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: none;
}

.header.hero-passed .nav-download:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow: none;
}

/* Language switcher – light mode */
.header.hero-passed .nav-lang {
    background: rgba(0, 0, 0, .06) !important;
    border-color: rgba(0, 0, 0, .08) !important;
}

.header.hero-passed .nav-lang-btn {
    color: rgba(0, 0, 0, .35) !important;
    background: transparent !important;
}

.header.hero-passed .nav-lang-btn--active {
    background: #fff !important;
    color: #1e293b !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .1);
}

/* ── Premium Nav Download Button ── */
@keyframes nav-dl-border-spin {
    to {
        --nav-dl-angle: 360deg;
    }
}

@keyframes nav-dl-shimmer {
    0% {
        transform: translateX(-100%) skewX(-15deg);
    }

    100% {
        transform: translateX(200%) skewX(-15deg);
    }
}

@keyframes nav-dl-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(3px);
    }

    60% {
        transform: translateY(-1px);
    }
}

@property --nav-dl-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.nav-download {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(.4, 0, .2, 1);
    z-index: 1;
}

.nav-download::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(from var(--nav-dl-angle, 0deg),
            #388bfd, #a78bfa, #ec4899, #f59e0b, #10b981, #388bfd);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: nav-dl-border-spin 3s linear infinite;
    z-index: -1;
}

.nav-download:hover::before {
    opacity: 1;
}

.nav-download:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: transparent;
    transform: translateY(-1px);
    box-shadow:
        0 4px 20px rgba(56, 139, 253, 0.2),
        0 0 40px rgba(167, 139, 250, 0.1);
}

.nav-dl-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    transition: transform 0.35s cubic-bezier(.4, 0, .2, 1);
}

.nav-dl-icon svg {
    width: 100%;
    height: 100%;
}

.nav-download:hover .nav-dl-icon {
    animation: nav-dl-bounce 0.5s ease 0.1s 1;
}

.nav-dl-text {
    position: relative;
    z-index: 1;
}

.nav-dl-shimmer {
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.15),
            transparent);
    transform: translateX(-100%) skewX(-15deg);
    pointer-events: none;
    z-index: 2;
}

.nav-download:hover .nav-dl-shimmer {
    animation: nav-dl-shimmer 0.8s ease 0.15s 1;
}

.header.hero-passed .btn-secondary {
    color: var(--text-navy, #1e293b);
    border-color: var(--text-navy, #1e293b);
}

.header.hero-passed .btn-secondary:hover {
    background-color: var(--primary-blue);
    color: #fff;
    border-color: var(--primary-blue);
}

/* ---- Inline SVG Logo ---- */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    /* currentColor for the SVG paths */
    transition: color 0.4s ease;
}

.header.hero-passed .logo {
    color: var(--primary-blue);
}

.logo-svg {
    height: 24px;
    width: auto;
}

/* X letter 360° spin on page load */
@keyframes logoXSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.logo-x {
    animation: logoXSpin 0.8s cubic-bezier(.4, 0, .2, 1) 0.3s 1 both;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    position: relative;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
}

/* ── Nav Dropdowns ── */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    font: inherit;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}

.nav-dropdown-trigger:hover {
    color: #fff;
}

.nav-chevron {
    width: 10px;
    height: 10px;
    transition: transform 0.25s ease;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(8px) scale(0.97);
    min-width: 220px;
    list-style: none;
    margin: 0;
    padding: 10px 6px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.12),
        0 4px 16px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(56, 139, 253, 0.04);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
        transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 1000;
}



.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    height: 20px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
    pointer-events: auto;
}

.nav-dropdown:hover .nav-chevron,
.nav-dropdown:focus-within .nav-chevron {
    transform: rotate(180deg);
}

/* Staggered fade-in for items */
.nav-dropdown:hover .nav-dropdown-menu li,
.nav-dropdown:focus-within .nav-dropdown-menu li {
    animation: navItemIn 0.3s ease forwards;
}

@keyframes navItemIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

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

.nav-dropdown-menu li {
    opacity: 0;
}

.nav-dropdown:hover .nav-dropdown-menu li:nth-child(1) {
    animation-delay: 0.02s;
}

.nav-dropdown:hover .nav-dropdown-menu li:nth-child(2) {
    animation-delay: 0.04s;
}

.nav-dropdown:hover .nav-dropdown-menu li:nth-child(3) {
    animation-delay: 0.06s;
}

.nav-dropdown:hover .nav-dropdown-menu li:nth-child(4) {
    animation-delay: 0.08s;
}

.nav-dropdown:hover .nav-dropdown-menu li:nth-child(5) {
    animation-delay: 0.10s;
}

.nav-dropdown:hover .nav-dropdown-menu li:nth-child(6) {
    animation-delay: 0.12s;
}

.nav-dropdown:hover .nav-dropdown-menu li:nth-child(7) {
    animation-delay: 0.14s;
}

.nav-dropdown:hover .nav-dropdown-menu li:nth-child(8) {
    animation-delay: 0.16s;
}

.nav-dropdown:hover .nav-dropdown-menu li:nth-child(9) {
    animation-delay: 0.18s;
}

.nav-dropdown:hover .nav-dropdown-menu li:nth-child(10) {
    animation-delay: 0.20s;
}

.nav-dropdown:hover .nav-dropdown-menu li:nth-child(11) {
    animation-delay: 0.22s;
}

.nav-dropdown:hover .nav-dropdown-menu li:nth-child(12) {
    animation-delay: 0.24s;
}

.nav-dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 14px;
    color: #334155;
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    border-radius: 10px;
    margin: 1px 0;
    position: relative;
}

.nav-dropdown-menu li a .material-icons-outlined {
    font-size: 18px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #f1f5f9;
    color: #64748b;
    transition: none;
    flex-shrink: 0;
}

.nav-dropdown-menu li a:hover {
    background: linear-gradient(135deg, rgba(56, 139, 253, 0.08), rgba(139, 92, 246, 0.05));
    color: #1e293b;
}

.nav-dropdown-menu li a:hover .material-icons-outlined {
    background: linear-gradient(135deg, #388bfd, #6366f1);
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(56, 139, 253, 0.3);
}

/* Wide dropdown variant (for Soluciones) */
.nav-dropdown-menu--wide {
    min-width: 260px;
}

/* Submenu items */
.nav-submenu {
    position: relative;
}

.nav-submenu-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 14px;
    color: #334155;
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    border-radius: 10px;
    margin: 1px 0;
    cursor: pointer;
}

.nav-submenu-trigger .material-icons-outlined {
    font-size: 18px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #f1f5f9;
    color: #64748b;
    transition: none;
    flex-shrink: 0;
}

.nav-submenu:hover>.nav-submenu-trigger .material-icons-outlined {
    background: linear-gradient(135deg, #388bfd, #6366f1);
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(56, 139, 253, 0.3);
}

.nav-submenu-trigger .nav-chevron-right {
    margin-left: auto;
}

.nav-submenu-trigger:hover {
    background: linear-gradient(135deg, rgba(56, 139, 253, 0.08), rgba(139, 92, 246, 0.05));
    color: #1e293b;
}

.nav-chevron-right {
    width: 8px;
    height: 8px;
    margin-left: 8px;
    flex-shrink: 0;
    transition: transform 0.2s;
}

/* Submenu fly-out */
.nav-submenu-menu {
    position: absolute;
    top: -8px;
    left: 100%;
    margin-left: 4px;
    min-width: 240px;
    list-style: none;
    padding: 10px 6px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.12),
        0 4px 16px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(56, 139, 253, 0.04);
    opacity: 0;
    pointer-events: none;
    transform: translateX(8px) scale(0.97);
    transition: opacity 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
        transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 1001;
}



.nav-submenu:hover>.nav-submenu-menu {
    opacity: 1;
    transform: translateX(0) scale(1);
    pointer-events: auto;
}

.nav-submenu:hover>.nav-submenu-trigger {
    background: linear-gradient(135deg, rgba(56, 139, 253, 0.08), rgba(139, 92, 246, 0.05));
    color: #1e293b;
}

.nav-submenu-menu li a {
    display: block;
    padding: 9px 16px;
    color: #334155;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    border-radius: 8px;
    margin: 1px 0;
}

.nav-submenu-menu li a:hover {
    background: linear-gradient(135deg, rgba(56, 139, 253, 0.08), rgba(139, 92, 246, 0.05));
    color: #1e293b;
}

/* Divider between submenus and plain links */
.nav-submenu-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(56, 139, 253, 0.15), transparent);
    margin: 8px 12px;
}

/* hero-passed dropdown overrides */
.header.hero-passed .nav-dropdown-trigger {
    color: var(--text-navy, #1e293b);
}

.header.hero-passed .nav-dropdown-trigger:hover {
    color: var(--primary-blue);
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

/* ── Hamburger Button ── */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1001;
}

.nav-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.header.hero-passed .nav-hamburger span {
    background: #1e293b;
}

/* ── Mobile Nav Overlay ── */
.mob-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s;
}

.mob-nav-overlay.active {
    display: block;
    opacity: 1;
}

/* ── Mobile Nav Drawer ── */
.mob-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    height: 100dvh;
    background: #fff;
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
}

.mob-nav.active {
    transform: translateX(0);
}

.mob-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
}

.mob-nav-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: #1e293b;
}

.mob-nav-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: #64748b;
    transition: background 0.15s;
}

.mob-nav-close:hover {
    background: #e2e8f0;
}

.mob-nav-close svg {
    width: 18px;
    height: 18px;
}

.mob-nav-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0;
}

/* Accordion group */
.mob-nav-group {
    border-bottom: 1px solid #f1f5f9;
}

.mob-nav-group-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 20px;
    background: none;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    transition: background 0.15s;
}

.mob-nav-group-title:hover {
    background: #f8fafc;
}

.mob-chev {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    transition: transform 0.25s;
    color: #94a3b8;
}

.mob-nav-group.open .mob-chev {
    transform: rotate(180deg);
}

.mob-nav-list {
    list-style: none;
    margin: 0;
    padding: 0 0 8px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.mob-nav-group.open .mob-nav-list {
    max-height: 600px;
}

.mob-nav-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px 10px 28px;
    color: #475569;
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.mob-nav-list li a:hover {
    background: rgba(0, 122, 255, 0.06);
    color: #007AFF;
}

.mob-nav-list li a .material-icons-outlined {
    font-size: 18px;
    color: #94a3b8;
}

.mob-nav-list li a:hover .material-icons-outlined {
    color: #007AFF;
}

/* Solo link (Blog) */
.mob-nav-solo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    color: #1e293b;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s;
}

.mob-nav-solo:hover {
    background: #f8fafc;
}

.mob-nav-solo .material-icons-outlined {
    font-size: 18px;
    color: #94a3b8;
}

/* Footer CTA */
.mob-nav-footer {
    padding: 16px 20px;
    border-top: 1px solid #f1f5f9;
}

.mob-nav-cta {
    display: block;
    text-align: center;
    padding: 14px;
    background: linear-gradient(135deg, #388bfd, #6366f1);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(56, 139, 253, 0.3);
}

.mob-nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(56, 139, 253, 0.4);
}

/* ── Mobile responsive ── */
@media (max-width: 1024px) {
    nav, .nav-links {
        display: none !important;
    }

    .nav-hamburger {
        display: flex;
    }

    .nav-dl-text {
        display: none;
    }
}


/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: white;
    box-shadow: 0 0 20px rgba(56, 139, 253, 0.3);
}

.btn-primary:hover {
    background-color: #58a6ff;
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(88, 166, 255, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-dim);
    border-color: var(--border-color);
}

.btn-secondary:hover,
.btn-secondary.active {
    background-color: var(--surface-dark);
    color: var(--text-light);
    border-color: var(--text-dim);
}

.btn-outline {
    background-color: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.35);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 0 24px 60px;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-dark);
    margin-top: -88px;
    padding-top: 88px;
    height: 100vh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Scroll-down chevron button */
.hero-scroll-down {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    transition: border-color 0.3s, background 0.3s, color 0.3s;
    animation: heroBounce 2s ease-in-out infinite;
    text-decoration: none;
    outline: none;
    font: inherit;
}

.hero-scroll-down:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.hero-scroll-down svg {
    width: 22px;
    height: 22px;
}

@keyframes heroBounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(8px);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

/* ── Background glow — Vivid Gradient ── */
.hero-bg-glow {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    background:
        radial-gradient(ellipse 130% 130% at 25% 50%, #1a3a9a, transparent 60%),
        radial-gradient(ellipse 130% 130% at 75% 50%, #b03080, transparent 60%),
        linear-gradient(135deg, #0e1a50, #2a1545);
    background-size: 100% 100%;
    animation: heroGradientShift 60s ease-in-out infinite alternate;
}

@keyframes heroGradientShift {
    0% {
        background-size: 100% 100%;
    }

    50% {
        background-size: 120% 120%;
    }

    100% {
        background-size: 100% 100%;
    }
}

/* Overlay blobs for depth */
.hero-aurora-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    will-change: transform;
}

.hero-aurora-blob-1 {
    width: 800px;
    height: 800px;
    background: rgba(40, 80, 220, 0.25);
    top: -30%;
    left: -10%;
    animation: heroAurora1 40s ease-in-out infinite alternate;
}

.hero-aurora-blob-2 {
    width: 700px;
    height: 700px;
    background: rgba(100, 40, 180, 0.2);
    bottom: -30%;
    right: -5%;
    animation: heroAurora2 50s ease-in-out infinite alternate;
}

.hero-aurora-blob-3 {
    width: 500px;
    height: 500px;
    background: rgba(60, 30, 140, 0.2);
    top: 20%;
    left: 45%;
    animation: heroAurora3 35s ease-in-out infinite alternate;
}

.hero-aurora-blob-4 {
    width: 600px;
    height: 500px;
    background: rgba(30, 60, 200, 0.15);
    top: 0%;
    right: 15%;
    animation: heroAurora4 45s ease-in-out infinite alternate;
}

@keyframes heroAurora1 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(15%, 10%) scale(1.15);
    }

    66% {
        transform: translate(-5%, 20%) scale(0.95);
    }

    100% {
        transform: translate(10%, -5%) scale(1.1);
    }
}

@keyframes heroAurora2 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(-20%, -10%) scale(1.1);
    }

    66% {
        transform: translate(10%, -15%) scale(1.2);
    }

    100% {
        transform: translate(-10%, 5%) scale(0.9);
    }
}

@keyframes heroAurora3 {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    50% {
        transform: translate(-20%, 15%) scale(1.3) rotate(15deg);
    }

    100% {
        transform: translate(15%, -10%) scale(0.85) rotate(-10deg);
    }
}

@keyframes heroAurora4 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-15%, 20%) scale(1.2);
    }

    100% {
        transform: translate(5%, -15%) scale(1.05);
    }
}

/* ── Floating orbs (larger, brighter) ── */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    z-index: 2;
    opacity: 0;
    animation: heroOrbFloat 8s ease-in-out infinite, heroOrbFadeIn 1.5s 0.8s forwards;
}

.hero-orb-1 {
    width: 5px;
    height: 5px;
    background: #388bfd;
    box-shadow: 0 0 8px rgba(56, 139, 253, 0.8);
    top: 25%;
    left: 12%;
    animation-delay: 0s, 0.8s;
}

.hero-orb-2 {
    width: 4px;
    height: 4px;
    background: #a78bfa;
    box-shadow: 0 0 8px rgba(167, 139, 250, 0.8);
    top: 35%;
    right: 10%;
    animation-delay: -3s, 1s;
}

.hero-orb-3 {
    width: 6px;
    height: 6px;
    background: #6366f1;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.8);
    bottom: 20%;
    left: 20%;
    animation-delay: -5s, 1.2s;
}

.hero-orb-4 {
    width: 4px;
    height: 4px;
    background: #06b6d4;
    box-shadow: 0 0 8px rgba(6, 182, 212, 0.8);
    top: 18%;
    right: 25%;
    animation-delay: -2s, 1.4s;
}

.hero-orb-5 {
    width: 5px;
    height: 5px;
    background: #ec4899;
    box-shadow: 0 0 8px rgba(236, 72, 153, 0.7);
    bottom: 30%;
    right: 15%;
    animation-delay: -7s, 1.6s;
}

@keyframes heroOrbFloat {

    0%,
    100% {
        transform: translateY(0) translateX(0);
    }

    25% {
        transform: translateY(-35px) translateX(20px);
    }

    50% {
        transform: translateY(-15px) translateX(-25px);
    }

    75% {
        transform: translateY(-45px) translateX(15px);
    }
}

@keyframes heroOrbFadeIn {
    to {
        opacity: 0.8;
    }
}

/* ── Eyebrow badge ── */
.hero-eyebrow-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    background: linear-gradient(90deg, #fbbf24 0%, #fbbf24 40%, #fff 50%, #fbbf24 60%, #fbbf24 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation:
        eyebrowDropBounce 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.7s both,
        eyebrow-shimmer 3s ease-in-out 1.5s infinite;
    position: relative;
}

.hero-eyebrow-badge svg {
    flex-shrink: 0;
    color: #fbbf24;
    filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.4));
}

/* Smoke burst on landing */
.hero-eyebrow-badge::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -4px;
    width: 80%;
    height: 20px;
    transform: translateX(-50%) scaleY(0);
    background: radial-gradient(ellipse at center, rgba(251, 191, 36, 0.25), transparent 70%);
    border-radius: 50%;
    filter: blur(6px);
    animation: eyebrowSmoke 0.6s ease-out 1.3s both;
    pointer-events: none;
}

/* ── Drop + bounce keyframes ── */
@keyframes eyebrowDropBounce {
    0% {
        opacity: 0;
        transform: translateY(-60px) scale(0.8);
    }

    50% {
        opacity: 1;
        transform: translateY(6px) scale(1.04);
    }

    70% {
        transform: translateY(-4px) scale(0.98);
    }

    85% {
        transform: translateY(2px) scale(1.01);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ── Smoke burst that fades fast ── */
@keyframes eyebrowSmoke {
    0% {
        opacity: 0;
        transform: translateX(-50%) scaleY(0) scaleX(0.5);
    }

    30% {
        opacity: 1;
        transform: translateX(-50%) scaleY(1) scaleX(1.2);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) scaleY(1.5) scaleX(2);
    }
}

@keyframes eyebrow-shimmer {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

/* ── Hero Feature Tags ── */
.hero-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 36px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    cursor: pointer;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.12),
        0 1px 0 rgba(255, 255, 255, 0.06);
    transition: background 0.25s, border-color 0.25s, transform 0.25s;
    animation: tagDropIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.hero-tag--capture {
    animation-delay: 0.15s;
}

.hero-tag--video {
    animation-delay: 0.25s;
}

.hero-tag--kb {
    animation-delay: 0.35s;
}

.hero-tag--export {
    animation-delay: 0.45s;
}

.hero-tag:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    color: #fff;
}

.hero-tag svg {
    opacity: 0.65;
    flex-shrink: 0;
}

/* ── Drop-in keyframes ── */
@keyframes tagDropIn {
    0% {
        opacity: 0;
        transform: translateY(-24px) scale(0.85);
    }

    60% {
        opacity: 1;
        transform: translateY(4px) scale(1.02);
    }

    80% {
        transform: translateY(-2px) scale(0.99);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ── Mobile: show one tag at a time, cycling ── */
@media (max-width: 640px) {
    .hero-tags {
        position: relative;
        height: 36px;
        overflow: hidden;
        gap: 0;
    }

    .hero-tag {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        white-space: nowrap;
        animation: tagCycleMobile 12s ease-in-out infinite both;
        opacity: 0;
    }

    .hero-tag--capture {
        animation-delay: 0s;
    }

    .hero-tag--video {
        animation-delay: 3s;
    }

    .hero-tag--kb {
        animation-delay: 6s;
    }

    .hero-tag--export {
        animation-delay: 9s;
    }

    @keyframes tagCycleMobile {

        0%,
        2% {
            opacity: 0;
            transform: translateX(-50%) translateY(12px);
        }

        6%,
        22% {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }

        26%,
        100% {
            opacity: 0;
            transform: translateX(-50%) translateY(-12px);
        }
    }
}

/* ── Headline ── */
.hero-headline {
    font-size: clamp(2.6rem, 5.5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    color: var(--text-light);
    animation: heroFadeUp 0.8s 0.15s ease both;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.3);
}

.gradient-text {
    background: linear-gradient(135deg, #4facfe 0%, #7c6fff 40%, #c084fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3));
}

/* ── Subtitle ── */
.hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    color: rgba(255, 255, 255, 0.82) !important;
    max-width: 640px;
    margin: 0 auto 28px;
    line-height: 1.7;
    animation: heroFadeUp 0.8s 0.3s ease both;
}

/* ── CTA buttons ── */
.hero-cta {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 16px;
    animation: heroFadeUp 0.8s 0.45s ease both;
}

.hero-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.6), rgba(88, 86, 214, 0.5), rgba(175, 82, 222, 0.5));
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.08rem;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s;
    box-shadow: 0 4px 24px rgba(88, 86, 214, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.hero-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.hero-btn-primary:hover::before {
    left: 100%;
}

.hero-btn-primary:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 32px rgba(88, 86, 214, 0.5);
}

.hero-btn-primary svg {
    transition: transform 0.25s;
}

.hero-btn-primary:hover svg {
    transform: translateX(4px);
}

.hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    font-weight: 500;
    text-decoration: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.hero-btn-secondary svg {
    opacity: 0.7;
}

/* ── Trust bar ── */
.hero-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 28px;
    animation: heroFadeUp 0.8s 0.6s ease both;
}

.hero-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
    font-weight: 500;
}

.hero-trust-item svg {
    opacity: 0.75;
    color: #fff;
}

.hero-trust-divider {
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.12);
}

/* ── Entrance animation ── */
@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

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

.hero p {
    font-size: 1.25rem;
    color: var(--text-dim);
    max-width: 750px;
    margin: 0 auto 40px;
}

/* ── Short desktop viewport: scale hero to fit ── */
@media (min-width: 769px) and (max-height: 750px) {
    .hero {
        padding-bottom: 32px;
    }

    .hero-eyebrow-badge {
        margin-bottom: 10px;
        font-size: 0.8rem;
    }

    .hero-tags {
        margin-bottom: 18px;
        gap: 6px;
    }

    .hero-tag {
        padding: 3px 9px;
        font-size: 0.62rem;
    }

    .hero-headline {
        font-size: clamp(1.9rem, 4.5vw, 3rem);
        margin-bottom: 12px;
    }

    .hero-subtitle {
        font-size: clamp(0.9rem, 1.6vw, 1.1rem);
        margin-bottom: 16px;
        line-height: 1.5;
    }

    .hero-btn-primary {
        padding: 12px 28px;
        font-size: 0.95rem;
        border-radius: 12px;
    }

    .hero-btn-secondary {
        padding: 12px 24px;
        font-size: 0.95rem;
        border-radius: 12px;
    }

    .hero-trust {
        margin-top: 16px;
        gap: 14px;
    }

    .hero-trust-item {
        font-size: 0.78rem;
    }

    .hero-scroll-down {
        bottom: 10px;
        width: 36px;
        height: 36px;
    }
}

@media (min-width: 769px) and (max-height: 650px) {
    .hero-eyebrow-badge {
        margin-bottom: 6px;
        font-size: 0.75rem;
    }

    .hero-tags {
        margin-bottom: 10px;
    }

    .hero-headline {
        font-size: clamp(1.6rem, 4vw, 2.4rem);
        margin-bottom: 8px;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 12px;
        line-height: 1.4;
    }

    .hero-btn-primary {
        padding: 10px 24px;
        font-size: 0.88rem;
    }

    .hero-btn-secondary {
        padding: 10px 20px;
        font-size: 0.88rem;
    }

    .hero-trust {
        margin-top: 10px;
    }

    .hero-trust-item {
        font-size: 0.72rem;
    }

    .hero-scroll-down {
        bottom: 6px;
        width: 32px;
        height: 32px;
    }

    .hero-scroll-down svg {
        width: 18px;
        height: 18px;
    }
}

.cta-subtext {
    font-size: 0.9rem;
    color: var(--text-dim);
}

/* ── Inline CTA banners between sections ── */
.inline-cta {
    position: relative;
    text-align: center;
    padding: 72px 24px;
    background: var(--bg-dark);
    overflow: hidden;
}

.inline-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 300px;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse, rgba(88, 86, 214, 0.15), transparent 70%);
    pointer-events: none;
}

.inline-cta-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
    margin: 0 auto;
}

.inline-cta h3 {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.inline-cta h3 .gradient-text {
    background: linear-gradient(135deg, #4facfe, #7c6fff, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.inline-cta p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 32px;
    line-height: 1.6;
}

.inline-cta-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.inline-cta .icta-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 12px;
    background: linear-gradient(135deg, #007AFF, #5856D6);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s;
    box-shadow: 0 4px 20px rgba(88, 86, 214, 0.3);
}

.inline-cta .icta-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    transition: left 0.5s;
}

.inline-cta .icta-primary:hover::before {
    left: 100%;
}

.inline-cta .icta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(88, 86, 214, 0.45);
}

.inline-cta .icta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}

.inline-cta .icta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.22);
}

/* Variant: green glow */
.inline-cta.icta-green::before {
    background: radial-gradient(ellipse, rgba(52, 199, 89, 0.12), transparent 70%);
}

.inline-cta.icta-green .icta-primary {
    background: linear-gradient(135deg, #30D158, #34C759);
    box-shadow: 0 4px 20px rgba(52, 199, 89, 0.3);
}

.inline-cta.icta-green .icta-primary:hover {
    box-shadow: 0 8px 28px rgba(52, 199, 89, 0.45);
}

/* Variant: blue glow */
.inline-cta.icta-blue::before {
    background: radial-gradient(ellipse, rgba(0, 122, 255, 0.12), transparent 70%);
}


/* General Section Styling */
.how-it-works {
    background-color: var(--surface-light);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-title h1 {
    font-size: 3.8rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.section-title p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* ===== Apple-Style Steps Section ===== */
/* =============================================
   STEPS SECTION – Spectacular Redesign
   ============================================= */
.steps-section {
    position: relative;
    background: linear-gradient(180deg, #f8f9ff 0%, #ffffff 30%, #f5f0ff 70%, #f0f5ff 100%);
    padding: 120px 0 100px;
    overflow: hidden;
    scroll-margin-top: 0;
}

/* Animated background orbs */
.steps-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    opacity: 0.25;
}

.steps-orb-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    left: -150px;
    background: radial-gradient(circle, rgba(56, 139, 253, 0.15), transparent 70%);
    animation: stepsOrb1 16s ease-in-out infinite;
}

.steps-orb-2 {
    width: 450px;
    height: 450px;
    top: 50%;
    right: -120px;
    background: radial-gradient(circle, rgba(163, 113, 247, 0.12), transparent 70%);
    animation: stepsOrb2 18s ease-in-out infinite;
}

.steps-orb-3 {
    width: 350px;
    height: 350px;
    bottom: -100px;
    left: 30%;
    background: radial-gradient(circle, rgba(56, 139, 253, 0.1), transparent 70%);
    animation: stepsOrb3 14s ease-in-out infinite;
}

@keyframes stepsOrb1 {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(60px, 40px);
    }
}

@keyframes stepsOrb2 {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-50px, -30px);
    }
}

@keyframes stepsOrb3 {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, -40px);
    }
}

/* Eyebrow */
.steps-eyebrow {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 100px;
    background: rgba(56, 139, 253, 0.08);
    border: 1px solid rgba(56, 139, 253, 0.15);
    color: #388BFD;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
}

/* Timeline container */
.steps-timeline {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Vertical connector line */
.steps-connector {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 4px;
    height: 100%;
    z-index: 0;
}

.steps-connector-track {
    stroke: rgba(56, 139, 253, 0.08);
    stroke-width: 4;
}

.steps-connector-fill {
    stroke: url(#connectorGradient);
    stroke-width: 4;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    transition: stroke-dashoffset 0.1s linear;
}

/* Step card */
.step-card {
    position: relative;
    margin-bottom: 24px;
    z-index: 1;
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1s cubic-bezier(.16, 1, .3, 1), transform 1s cubic-bezier(.16, 1, .3, 1);
}

.step-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Badge with glow */
.step-card-badge {
    position: absolute;
    left: 50%;
    top: -8px;
    transform: translateX(-50%);
    width: 56px;
    height: 56px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-card-badge-num {
    position: relative;
    z-index: 2;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #388BFD, #A371F7);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 800;
    box-shadow: 0 4px 20px rgba(56, 139, 253, 0.4);
}

.step-card-badge-glow {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(56, 139, 253, 0.4), rgba(163, 113, 247, 0.4));
    filter: blur(12px);
    animation: badgeGlow 3s ease-in-out infinite alternate;
}

@keyframes badgeGlow {
    0% {
        opacity: 0.4;
        transform: scale(1);
    }

    100% {
        opacity: 0.7;
        transform: scale(1.15);
    }
}

/* Card inner – glass container */
.step-card-inner {
    display: flex;
    align-items: center;
    gap: 48px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(56, 139, 253, 0.08);
    border-radius: 24px;
    padding: 48px 40px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    margin-top: 24px;
    box-shadow: 0 4px 30px rgba(56, 139, 253, 0.06);
    transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}

.step-card-inner:hover {
    border-color: rgba(56, 139, 253, 0.18);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 40px rgba(56, 139, 253, 0.1);
}

.step-card-inner--reverse {
    flex-direction: row-reverse;
}

/* Visual area inside card */
.step-card-visual {
    flex: 0 0 380px;
}

/* Card body */
.step-card-body {
    flex: 1;
}

.step-card-body h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark, #1a1a2e);
    margin: 0 0 14px;
    line-height: 1.3;
}

.step-card-body p {
    font-size: 1.05rem;
    color: var(--text-muted, #6b7280);
    line-height: 1.75;
    margin: 0 0 20px;
}

/* Feature tags */
.step-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.step-card-tag {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 100px;
    background: rgba(56, 139, 253, 0.06);
    border: 1px solid rgba(56, 139, 253, 0.12);
    color: #4a6fa5;
    font-size: 0.78rem;
    font-weight: 500;
}

/* Arrow connectors between steps */
.step-arrow-connector {
    display: flex;
    justify-content: center;
    height: 80px;
    position: relative;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.step-arrow-connector svg {
    width: 60px;
    height: 80px;
}

.step-arrow-connector.is-visible {
    opacity: 1;
}

.step-arrow-path {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    transition: stroke-dashoffset 1s ease;
}

.step-arrow-connector.is-visible .step-arrow-path {
    stroke-dashoffset: 0;
}

.step-arrow-head {
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity 0.5s ease 0.7s, transform 0.5s ease 0.7s;
}

.step-arrow-connector.is-visible .step-arrow-head {
    opacity: 1;
    transform: translateY(0);
}

/* SVG drawing styles */
.steps-section .apple-step-svg {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 8px 30px rgba(0, 0, 0, 0.08));
}



/* ----- SVG Animation Primitives ----- */
.svg-draw {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    transition: stroke-dashoffset 1.8s cubic-bezier(.4, 0, .2, 1);
}

.is-visible .svg-draw {
    stroke-dashoffset: 0;
}

.svg-draw-h {
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.2s cubic-bezier(.4, 0, .2, 1);
}

.is-visible .svg-draw-h:nth-child(4) {
    transition-delay: 0.7s;
}

.is-visible .svg-draw-h:nth-child(5) {
    transition-delay: 0.95s;
}

.is-visible .svg-draw-h:nth-child(6) {
    transition-delay: 1.2s;
}

.is-visible .svg-draw-h:nth-child(7) {
    transition-delay: 1.45s;
}

.is-visible .svg-draw-h {
    transform: scaleX(1);
}

.svg-pop {
    transform: scale(0);
    transition: transform 0.6s cubic-bezier(.34, 1.56, .64, 1);
    transition-delay: var(--pop-delay, 0s);
}

.is-visible .svg-pop {
    transform: scale(1);
}

/* ----- Step 1: Cursor Moves + 2 Green-Ripple Clicks ----- */
.step1-cursor {
    opacity: 0;
    transform: translate(200px, 60px);
    transition: none;
}

.is-visible .step1-cursor {
    animation: cursorMove 5s ease-in-out 1.5s infinite;
}

/* Cursor movement: start off → move to click1 → pause → move to click2 → pause → reset */
@keyframes cursorMove {
    0% {
        opacity: 0;
        transform: translate(200px, 60px);
    }

    8% {
        opacity: 1;
        transform: translate(200px, 60px);
    }

    18% {
        opacity: 1;
        transform: translate(125px, 90px);
    }

    /* arrive at click 1 */
    22% {
        opacity: 1;
        transform: translate(125px, 90px);
    }

    /* hold for click 1 */
    24% {
        opacity: 1;
        transform: translate(127px, 92px);
    }

    /* micro-press */
    26% {
        opacity: 1;
        transform: translate(125px, 90px);
    }

    /* release */
    42% {
        opacity: 1;
        transform: translate(125px, 90px);
    }

    /* wait for ripple */
    55% {
        opacity: 1;
        transform: translate(195px, 123px);
    }

    /* arrive at click 2 */
    59% {
        opacity: 1;
        transform: translate(195px, 123px);
    }

    /* hold for click 2 */
    61% {
        opacity: 1;
        transform: translate(197px, 125px);
    }

    /* micro-press */
    63% {
        opacity: 1;
        transform: translate(195px, 123px);
    }

    /* release */
    80% {
        opacity: 1;
        transform: translate(195px, 123px);
    }

    /* wait for ripple */
    90% {
        opacity: 0;
        transform: translate(195px, 123px);
    }

    /* fade out */
    100% {
        opacity: 0;
        transform: translate(200px, 60px);
    }

    /* reset */
}

/* Click point groups visibility */
.step1-click1,
.step1-click2 {
    transition: none;
}

.is-visible .step1-click1 {
    opacity: 1 !important;
}

.is-visible .step1-click2 {
    opacity: 1 !important;
}

/* Green dot pulse on click */
.is-visible .step1-green-dot-1 {
    animation: greenDotPulse 5s ease 1.5s infinite;
}

.is-visible .step1-green-dot-2 {
    animation: greenDotPulse 5s ease 3.3s infinite;
}

@keyframes greenDotPulse {

    0%,
    22% {
        opacity: 0;
        r: 0;
    }

    24% {
        opacity: 0.8;
        r: 5;
    }

    30% {
        opacity: 0.3;
        r: 4;
    }

    50% {
        opacity: 0;
        r: 0;
    }

    100% {
        opacity: 0;
        r: 0;
    }
}

/* Ripple ring A (inner, faster) */
.is-visible .step1-ring1-a {
    animation: greenRippleA 5s ease-out 1.5s infinite;
}

.is-visible .step1-ring2-a {
    animation: greenRippleA 5s ease-out 3.3s infinite;
}

@keyframes greenRippleA {

    0%,
    23% {
        r: 4;
        opacity: 0;
        stroke-width: 2;
    }

    25% {
        r: 4;
        opacity: 0.8;
        stroke-width: 2;
    }

    40% {
        r: 20;
        opacity: 0;
        stroke-width: 0.5;
    }

    100% {
        r: 20;
        opacity: 0;
        stroke-width: 0.5;
    }
}

/* Ripple ring B (outer, slower) */
.is-visible .step1-ring1-b {
    animation: greenRippleB 5s ease-out 1.5s infinite;
}

.is-visible .step1-ring2-b {
    animation: greenRippleB 5s ease-out 3.3s infinite;
}

@keyframes greenRippleB {

    0%,
    24% {
        r: 4;
        opacity: 0;
        stroke-width: 1.2;
    }

    26% {
        r: 6;
        opacity: 0.5;
        stroke-width: 1.2;
    }

    45% {
        r: 28;
        opacity: 0;
        stroke-width: 0.3;
    }

    100% {
        r: 28;
        opacity: 0;
        stroke-width: 0.3;
    }
}



/* ----- Step 1: Recording Indicator ----- */
.step1-rec {
    transition: opacity 0.5s ease 0.8s;
}

.is-visible .step1-rec {
    opacity: 1 !important;
}

@keyframes recBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

@keyframes recPulse {
    0% {
        r: 5;
        opacity: 0.6;
    }

    100% {
        r: 14;
        opacity: 0;
    }
}

.is-visible .step1-rec-dot {
    animation: recBlink 1.4s ease-in-out 1.2s infinite;
}

.is-visible .step1-rec-pulse {
    animation: recPulse 1.8s ease-out 1.2s infinite;
}

/* ----- Step 2: Annotation Reveal ----- */
@keyframes annotationReveal {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(8px);
    }

    60% {
        transform: scale(1.08) translateY(-2px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.is-visible .step2-arrow {
    animation: annotationReveal 0.7s cubic-bezier(.34, 1.56, .64, 1) 0.9s forwards;
}

.is-visible .step2-badge {
    animation: annotationReveal 0.7s cubic-bezier(.34, 1.56, .64, 1) 1.4s forwards;
}

.is-visible .step2-highlight {
    animation: annotationReveal 0.7s cubic-bezier(.34, 1.56, .64, 1) 1.9s forwards;
}

.is-visible .step2-blur {
    animation: annotationReveal 0.7s cubic-bezier(.34, 1.56, .64, 1) 2.4s forwards;
}

/* ----- Step 3: Export Fan-Out ----- */
.step3-upload {
    transition: opacity 0.7s ease 0.8s, transform 0.7s cubic-bezier(.34, 1.56, .64, 1) 0.8s;
    transform: translateY(10px);
}

.is-visible .step3-upload {
    opacity: 1 !important;
    transform: translateY(0);
}

@keyframes formatPop {
    0% {
        opacity: 0;
        transform: scale(0);
    }

    60% {
        transform: scale(1.15);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.is-visible .step3-fmt {
    animation: formatPop 0.7s cubic-bezier(.34, 1.56, .64, 1) calc(1.2s + var(--fmt-delay, 0s)) forwards;
}

.step3-lines {
    transition: opacity 0.8s ease 2.6s;
}

.is-visible .step3-lines {
    opacity: 1 !important;
}

/* ----- Responsive ----- */
@media (max-width: 768px) {

    .step-card-inner,
    .step-card-inner--reverse {
        flex-direction: column;
        gap: 32px;
        text-align: center;
        padding: 36px 24px;
    }

    .step-card-visual {
        flex: 0 0 auto;
        width: 100%;
        max-width: 340px;
        margin: 0 auto;
    }

    .step-card-badge {
        left: 50%;
        transform: translateX(-50%);
    }

    .step-card-body h3 {
        font-size: 1.5rem;
    }

    .step-card-body p {
        font-size: 1rem;
    }

    .step-card-tags {
        justify-content: center;
    }

    .steps-connector {
        display: none;
    }
}




/* ===== Import Sources Section ===== */
/* ======== APPLE-STYLE SOURCES ======== */
.apple-sources {
    background: #f5f5f7;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
}

/* Hero */
.as-hero {
    padding: 100px 0 60px;
    text-align: center;
}

.as-eyebrow {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #6e6e73;
    margin: 0 0 16px;
}

.as-headline {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #1d1d1f;
    margin: 0 0 24px;
}

.as-headline-accent {
    background: linear-gradient(90deg, #007AFF, #5856D6, #AF52DE);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.as-sub {
    max-width: 520px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #6e6e73;
}

.as-sub strong {
    color: #1d1d1f;
}

/* Grid */
.as-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding-bottom: 100px;
}

/* Card */
.as-card {
    background: #fff;
    border-radius: 24px;
    border: 1px solid #e5e5ea;
    padding: 36px 28px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(.16, 1, .3, 1);
}

.as-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.03);
    border-color: color-mix(in srgb, var(--sc) 30%, #e5e5ea);
}

/* ── Hero card — spans 2 columns ── */
.as-card--hero {
    grid-column: span 2;
    display: flex;
    align-items: flex-start;
    gap: 24px;
    background: linear-gradient(135deg, #fff5f5 0%, #fff 60%);
    border-color: rgba(239, 68, 68, 0.15);
}

.as-card--hero .as-card-icon {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    margin-bottom: 0;
}

.as-card--hero .as-card-body h4 {
    font-size: 1.25rem;
}

.as-card--hero:hover {
    border-color: rgba(239, 68, 68, 0.3);
    box-shadow: 0 12px 48px rgba(239, 68, 68, 0.1), 0 2px 8px rgba(0, 0, 0, 0.03);
}

/* ── AI card — special gradient glow ── */
.as-card--ai {
    background: linear-gradient(135deg, #faf5ff 0%, #f0f0ff 50%, #fff 100%);
    border-color: rgba(139, 92, 246, 0.15);
    position: relative;
}

.as-card--ai::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 25px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(99, 102, 241, 0.15), rgba(236, 72, 153, 0.1));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.as-card--ai:hover::before {
    opacity: 1;
}

.as-card--ai:hover {
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 12px 48px rgba(139, 92, 246, 0.12), 0 2px 8px rgba(0, 0, 0, 0.03);
}

.as-card--ai .as-card-tag {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: #fff;
}

/* Card Icon */
.as-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: color-mix(in srgb, var(--sc) 10%, #fff);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--sc);
    transition: transform 0.4s cubic-bezier(.34, 1.56, .64, 1);
}

.as-card-icon svg {
    width: 28px;
    height: 28px;
}

.as-card:hover .as-card-icon {
    transform: translateY(-3px) scale(1.08);
}

/* Card Body */
.as-card-body h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}

.as-card-body p {
    font-size: 0.92rem;
    color: #6e6e73;
    margin: 0;
    line-height: 1.6;
}

/* Tag badge */
.as-card-tag {
    position: absolute;
    top: 16px;
    right: 16px;
    background: color-mix(in srgb, var(--sc) 10%, #fff);
    color: var(--sc);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* --- Import Icon Animations --- */

/* Rec dot pulse */
@keyframes importRecPulse {

    0%,
    100% {
        r: 5;
        opacity: 0.9;
    }

    50% {
        r: 3;
        opacity: 0.4;
    }
}

.import-anim-rec {
    animation: importRecPulse 1.6s ease-in-out infinite;
}

/* Camera viewfinder */
@keyframes importCamPan {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(3px);
    }
}

.import-anim-cam {
    animation: importCamPan 2s ease-in-out infinite;
}

/* YouTube play button */
@keyframes importPlayBounce {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

.import-anim-play {
    animation: importPlayBounce 2s ease-in-out infinite;
    transform-origin: 26px 24px;
}

/* Image stack cascade */
@keyframes importImgCascade1 {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

@keyframes importImgCascade2 {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 0.9;
    }
}

@keyframes importImgCascade3 {

    0%,
    100% {
        opacity: 0.35;
    }

    50% {
        opacity: 0.7;
    }
}

.import-anim-img1 {
    animation: importImgCascade1 2.5s ease-in-out infinite;
}

.import-anim-img2 {
    animation: importImgCascade2 2.5s ease-in-out 0.3s infinite;
}

.import-anim-img3 {
    animation: importImgCascade3 2.5s ease-in-out 0.6s infinite;
}

/* Globe orbiting dot */
@keyframes importGlobeOrbit {
    0% {
        transform: rotate(0deg) translateX(8px) rotate(0deg);
    }

    100% {
        transform: rotate(360deg) translateX(8px) rotate(-360deg);
    }
}

.import-anim-globe {
    animation: importGlobeOrbit 4s linear infinite;
    transform-origin: 24px 24px;
}

/* Document lines reveal */
@keyframes importLineReveal {

    0%,
    30% {
        opacity: 0.3;
    }

    50%,
    80% {
        opacity: 1;
    }

    100% {
        opacity: 0.3;
    }
}

.import-anim-line1 {
    animation: importLineReveal 2.5s ease-in-out infinite;
}

.import-anim-line2 {
    animation: importLineReveal 2.5s ease-in-out 0.4s infinite;
}

.import-anim-line3 {
    animation: importLineReveal 2.5s ease-in-out 0.8s infinite;
}


/* ===== Features Section ===== */
/* ======== APPLE-STYLE FEATURES ======== */
.apple-features {
    background: #fff;
    color: #1d1d1f;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    padding-bottom: 0;
}

/* ── Hero ── */
.af-hero {
    padding: 120px 0 80px;
    text-align: center;
}

.af-eyebrow {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #6e6e73;
    margin: 0 0 16px;
}

.af-headline {
    font-size: clamp(2.8rem, 6vw, 4.2rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: #1d1d1f;
    margin: 0 0 24px;
}

.af-headline-accent {
    background: linear-gradient(90deg, #007AFF, #AF52DE, #FF9500);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.af-sub {
    max-width: 560px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.6;
    color: #6e6e73;
}

.af-sub strong {
    color: #1d1d1f;
}

/* ── Feature Blocks ── */
.af-block {
    padding: 80px 0;
}

.af-block:has(.af-closing) {
    padding-bottom: 0;
}

.af-block--alt {
    background: #f5f5f7;
}

/* Block Header */
.af-block-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 48px;
}

.af-block-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: color-mix(in srgb, var(--b-color) 10%, #fff);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    flex-shrink: 0;
    color: var(--b-color);
}

.af-block-icon svg {
    width: 100%;
    height: 100%;
}

.af-block-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0 0 4px;
    letter-spacing: -0.02em;
}

.af-block-tagline {
    font-size: 1rem;
    color: #86868b;
    margin: 0;
}

/* ── Lead: Visual + Text Side-by-Side ── */
.af-lead {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 56px;
    align-items: center;
    margin-bottom: 56px;
}

.af-lead--reverse {
    direction: rtl;
}

.af-lead--reverse>* {
    direction: ltr;
}

/* Lead Visual */
.af-lead-visual {
    position: relative;
}

.af-lead-visual::after {
    content: '';
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, color-mix(in srgb, var(--glow) 8%, transparent) 0%, transparent 70%);
    border-radius: 32px;
    z-index: 0;
    pointer-events: none;
}

/* Lead Mockup */
.af-lead-mockup {
    position: relative;
    z-index: 1;
    background: #f5f5f7;
    border-radius: 20px;
    border: 1px solid #e5e5ea;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: transform 0.4s cubic-bezier(.16, 1, .3, 1), box-shadow 0.4s ease;
}

.af-lead-mockup:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 56px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.04);
}

/* Mockup: Capture Preview */
.af-mockup-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid #e5e5ea;
}

.af-mockup-bar>span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.af-mockup-bar>span:nth-child(1) {
    background: #FF5F57;
}

.af-mockup-bar>span:nth-child(2) {
    background: #FEBC2E;
}

.af-mockup-bar>span:nth-child(3) {
    background: #28C840;
}

.af-mockup-title {
    margin-left: auto;
    font-size: 0.75rem;
    font-weight: 600;
    color: #86868b;
}

.af-mockup-body {
    padding: 24px;
}

.af-mockup-screen {
    background: linear-gradient(135deg, #e8ecf0 0%, #d2d8de 100%);
    border-radius: 12px;
    height: 140px;
    position: relative;
    margin-bottom: 16px;
    overflow: hidden;
}

.af-mockup-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.af-mockup-highlight {
    position: absolute;
    top: 50%;
    left: 60%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid #28c840;
    box-shadow: 0 0 0 8px rgba(40, 200, 64, 0.15);
    animation: afPulse 2s ease-in-out infinite;
}

@keyframes afPulse {

    0%,
    100% {
        box-shadow: 0 0 0 8px rgba(40, 200, 64, 0.15);
    }

    50% {
        box-shadow: 0 0 0 16px rgba(40, 200, 64, 0.08);
    }
}

.af-mockup-step {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.af-mockup-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #007AFF;
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.af-mockup-step strong {
    display: block;
    font-size: 0.88rem;
    color: #1d1d1f;
    margin-bottom: 4px;
}

.af-mockup-step p {
    font-size: 0.82rem;
    color: #86868b;
    margin: 0;
    line-height: 1.5;
}

/* Mockup: AI Demo */
.af-ai-demo {
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.af-ai-input {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #e5e5ea;
    border-radius: 12px;
    padding: 12px 18px;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.af-ai-input svg {
    width: 22px;
    height: 22px;
    color: #86868b;
    flex-shrink: 0;
}

.af-ai-input span {
    font-size: 0.88rem;
    color: #1d1d1f;
    font-weight: 500;
}

.af-ai-arrow {
    width: 32px;
    height: 32px;
    color: #AF52DE;
    animation: afBounce 1.5s ease-in-out infinite;
}

.af-ai-arrow svg {
    width: 100%;
    height: 100%;
}

@keyframes afBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(6px);
    }
}

.af-ai-output {
    background: #fff;
    border: 1px solid #e5e5ea;
    border-radius: 12px;
    padding: 16px 18px;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border-left: 3px solid #AF52DE;
}

.af-ai-output p {
    font-size: 0.85rem;
    color: #1d1d1f;
    line-height: 1.6;
    margin: 0;
}

.af-ai-output code {
    background: #f5f5f7;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.82rem;
    font-family: 'SF Mono', SFMono-Regular, monospace;
}

.af-ai-output strong {
    font-weight: 700;
    color: #AF52DE;
}

/* Mockup: Editor Demo */
.af-editor-demo {
    padding: 20px;
}

.af-ed-toolbar {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e5ea;
}

.af-ed-tool {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e5e5ea;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #86868b;
    transition: all 0.2s ease;
    cursor: pointer;
}

.af-ed-tool svg {
    width: 18px;
    height: 18px;
}

.af-ed-tool:hover {
    background: #f0f0f3;
    color: #1d1d1f;
}

.af-ed-tool--active {
    background: #007AFF;
    border-color: #007AFF;
    color: #fff;
}

.af-ed-canvas {
    background: linear-gradient(135deg, #e8ecf0 0%, #d2d8de 100%);
    border-radius: 12px;
    height: 160px;
    position: relative;
    overflow: hidden;
}

.af-ed-arrow {
    position: absolute;
    top: 30%;
    left: 25%;
    width: 60px;
    height: 3px;
    background: #FF3B30;
    transform: rotate(-30deg);
    border-radius: 2px;
}

.af-ed-arrow::after {
    content: '';
    position: absolute;
    right: -4px;
    top: -4px;
    width: 0;
    height: 0;
    border-left: 8px solid #FF3B30;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}

.af-ed-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 149, 0, 0.9);
    border: 2px solid #FF9500;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #fff;
}

.af-ed-num {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #007AFF;
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Mini CRM inside Capture mockup ── */
.af-mockup-screen--crm {
    background: #fff;
    height: 160px;
    display: flex;
    border-radius: 12px;
    overflow: hidden;
}

.af-crm {
    display: flex;
    width: 100%;
    height: 100%;
}

.af-crm-sidebar {
    width: 36px;
    background: #1e293b;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 0;
    gap: 6px;
    flex-shrink: 0;
}

.af-crm-logo {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: linear-gradient(135deg, #007AFF, #5856D6);
    color: #fff;
    font-weight: 800;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
}

.af-crm-nav-item {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    transition: background 0.2s;
}

.af-crm-nav-item svg {
    width: 14px;
    height: 14px;
}

.af-crm-nav-item--active {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.af-crm-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.af-crm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-bottom: 1px solid #f1f5f9;
}

.af-crm-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: #1e293b;
}

.af-crm-btn {
    padding: 3px 10px;
    border-radius: 6px;
    background: #007AFF;
    color: #fff;
    font-size: 0.58rem;
    font-weight: 700;
    border: none;
    cursor: default;
    white-space: nowrap;
    line-height: 1.5;
}

.af-crm-btn-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.af-crm-table {
    flex: 1;
    padding: 0 10px;
    overflow: hidden;
}

.af-crm-row {
    display: grid;
    grid-template-columns: 1.2fr 1.5fr 0.7fr;
    gap: 6px;
    padding: 4px 0;
    border-bottom: 1px solid #f1f5f9;
    align-items: center;
}

.af-crm-row--header {
    border-bottom: 1px solid #e2e8f0;
}

.af-crm-row--header span {
    font-size: 0.52rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.af-crm-row span {
    font-size: 0.56rem;
    color: #334155;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.af-crm-email {
    color: #64748b !important;
    font-weight: 400 !important;
}

.af-crm-badge {
    font-size: 0.48rem !important;
    font-weight: 700 !important;
    padding: 1px 5px;
    border-radius: 4px;
    text-align: center;
    width: fit-content;
}

.af-crm-badge--green {
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a !important;
}

.af-crm-badge--blue {
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb !important;
}

.af-crm-badge--orange {
    background: rgba(249, 115, 22, 0.12);
    color: #ea580c !important;
}

/* Ripple centered on button via btn-wrap */
.af-crm-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    z-index: 5;
    pointer-events: none;
}

.af-crm-ripple-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #28c840;
    transform: translate(-50%, -50%);
}

.af-crm-ripple-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #28c840;
    transform: translate(-50%, -50%);
    animation: crmRippleRing 2s ease-out infinite;
}

.af-crm-ripple-ring--2 {
    animation-delay: 0.6s;
}

@keyframes crmRippleRing {
    0% {
        width: 8px;
        height: 8px;
        opacity: 0.8;
    }

    100% {
        width: 36px;
        height: 36px;
        opacity: 0;
    }
}

/* Ripple in editor section — absolute positioned on the button area */
.af-crm-ripple--editor {
    top: 14px;
    left: auto;
    right: 22px;
    position: absolute;
}

.af-ed-anim--ripple {
    animation: edRippleAppear 6s ease-in-out infinite;
}

@keyframes edRippleAppear {

    0%,
    8% {
        opacity: 0;
    }

    14%,
    75% {
        opacity: 1;
    }

    85%,
    100% {
        opacity: 0;
    }
}

/* ── Editor CRM variant ── */
.af-crm--editor {
    position: absolute;
    inset: 0;
    border-radius: 12px;
    overflow: hidden;
}

/* ── Editor: Arrow tip at the Nuevo Contacto button ── */
/* Canvas: 557x160. Button center: right:10px top:18px.
   Arrow right end (tip with ::after) anchored at button.
   rotate(30deg) sends the body down-left from the button.
   Width 120px for visible diagonal. */
.af-ed-canvas .af-ed-arrow {
    top: 26px;
    right: 40px;
    left: auto;
    bottom: auto;
    width: 65px;
    transform: rotate(-67deg);
    transform-origin: right center;
}

/* ── Editor: "Haga clic aquí" at the arrow tail (bottom-left end) ── */
.af-ed-canvas .af-ed-box {
    top: 87px;
    left: calc(50% + 90px);
    right: auto;
    bottom: auto;
    z-index: 10;
    transform: none;
}

/* ── Editor: Email blur over email column ── */
.af-ed-email-blur {
    position: absolute;
    top: 38px;
    left: 35%;
    width: 25%;
    bottom: 8px;
    height: auto;
    border-color: #c8d0d8;
    border-radius: 4px;
    background: rgba(238, 238, 242, 0.4);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(3px);
}

/* ── Editor: Number badge below button ── */
.af-ed-canvas .af-ed-num {
    top: 10px;
    left: 25%;
    right: auto;
    bottom: auto;
    transform: none;
}

/* ── Editor: Canvas white background ── */
.af-ed-canvas {
    background: #fff;
}

/* ── Animated Annotations ── */
.af-ed-anim {
    opacity: 0;
}

/* Arrow: draw in from left */
.af-ed-anim--arrow {
    animation: edArrowAppear 6s ease-in-out infinite;
}

/* Box: bounce scale */
.af-ed-anim--box {
    animation: edBoxAppear 6s ease-in-out infinite;
}

/* Number: pop in */
.af-ed-anim--num {
    animation: edNumPop 6s ease-in-out infinite;
}

/* Blur: fade in */
.af-ed-anim--blur {
    animation: edBlurReveal 6s ease-in-out infinite;
}

@keyframes edArrowAppear {

    0%,
    8% {
        opacity: 0;
        transform: rotate(-67deg) scaleX(0);
        transform-origin: right center;
    }

    14%,
    75% {
        opacity: 1;
        transform: rotate(-67deg) scaleX(1);
        transform-origin: right center;
    }

    85%,
    100% {
        opacity: 0;
        transform: rotate(-67deg) scaleX(1);
        transform-origin: right center;
    }
}

@keyframes edBoxAppear {

    0%,
    18% {
        opacity: 0;
        transform: scale(0.3);
    }

    24% {
        opacity: 1;
        transform: scale(1.08);
    }

    28%,
    75% {
        opacity: 1;
        transform: scale(1);
    }

    85%,
    100% {
        opacity: 0;
        transform: scale(1);
    }
}

@keyframes edNumPop {

    0%,
    30% {
        opacity: 0;
        transform: scale(0);
    }

    36% {
        opacity: 1;
        transform: scale(1.2);
    }

    40%,
    75% {
        opacity: 1;
        transform: scale(1);
    }

    85%,
    100% {
        opacity: 0;
        transform: scale(1);
    }
}

@keyframes edBlurReveal {

    0%,
    42% {
        opacity: 0;
    }

    50%,
    75% {
        opacity: 1;
    }

    85%,
    100% {
        opacity: 0;
    }
}

/* ── Lead Text ── */
.af-lead-text h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}

.af-lead-desc {
    font-size: 1.05rem;
    color: #6e6e73;
    line-height: 1.7;
    margin: 0 0 24px;
}

.af-lead-desc strong {
    color: #1d1d1f;
}

/* Pills */
.af-pills {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.af-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 50px;
    background: #f5f5f7;
    border: 1px solid #e5e5ea;
    font-size: 0.82rem;
    font-weight: 600;
    color: #1d1d1f;
    transition: all 0.3s ease;
}

.af-pill:hover {
    background: #eee;
    border-color: #ccc;
}

.af-pill svg {
    width: 16px;
    height: 16px;
    color: #007AFF;
}

/* ── Trio Cards ── */
.af-trio {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.af-trio-card {
    padding: 28px 24px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #e5e5ea;
    transition: all 0.4s cubic-bezier(.16, 1, .3, 1);
}

.af-block--alt .af-trio-card {
    background: #fff;
}

.af-trio-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.07);
}

.af-trio-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--tc) 10%, #fff);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--tc);
}

.af-trio-icon svg {
    width: 22px;
    height: 22px;
}

.af-trio-card h5 {
    font-size: 1rem;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0 0 8px;
}

.af-trio-card p {
    font-size: 0.88rem;
    color: #6e6e73;
    line-height: 1.6;
    margin: 0;
}

/* ── Format Showcase ── */
.af-formats {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 48px;
    padding: 40px 0;
}

.af-format-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease;
    text-decoration: none;
    cursor: pointer;
    opacity: 0;
    transform: translateY(-40px);
}

/* Bounce-drop animation triggered when section enters viewport */
.af-formats--visible .af-format-item {
    animation: formatBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.af-formats--visible .af-format-item:nth-child(1) {
    animation-delay: 0s;
}

.af-formats--visible .af-format-item:nth-child(2) {
    animation-delay: 0.07s;
}

.af-formats--visible .af-format-item:nth-child(3) {
    animation-delay: 0.14s;
}

.af-formats--visible .af-format-item:nth-child(4) {
    animation-delay: 0.21s;
}

.af-formats--visible .af-format-item:nth-child(5) {
    animation-delay: 0.28s;
}

.af-formats--visible .af-format-item:nth-child(6) {
    animation-delay: 0.35s;
}

.af-formats--visible .af-format-item:nth-child(7) {
    animation-delay: 0.42s;
}

.af-formats--visible .af-format-item:nth-child(8) {
    animation-delay: 0.49s;
}

.af-formats--visible .af-format-item:nth-child(9) {
    animation-delay: 0.56s;
}

.af-formats--visible .af-format-item:nth-child(10) {
    animation-delay: 0.63s;
}

@keyframes formatBounce {
    0% {
        opacity: 0;
        transform: translateY(-40px);
    }

    50% {
        opacity: 1;
        transform: translateY(8px);
    }

    70% {
        transform: translateY(-4px);
    }

    85% {
        transform: translateY(2px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.af-format-item:hover {
    transform: translateY(-4px);
}

.af-formats-subtitle {
    display: block;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 600;
    color: #15803d;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 50px;
    padding: 8px 24px;
    margin: 0 auto 28px;
    letter-spacing: 0.01em;
    width: fit-content;
}

.af-format-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: color-mix(in srgb, var(--fc) 8%, #fff);
    border: 1px solid color-mix(in srgb, var(--fc) 15%, #e5e5ea);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fc);
    padding: 14px;
    transition: all 0.3s ease;
}

.af-format-item:hover .af-format-icon {
    background: color-mix(in srgb, var(--fc) 14%, #fff);
    box-shadow: 0 4px 20px color-mix(in srgb, var(--fc) 15%, transparent);
}

.af-format-icon svg {
    width: 100%;
    height: 100%;
}

.af-format-item span {
    font-size: 0.78rem;
    font-weight: 600;
    color: #6e6e73;
    letter-spacing: 0.01em;
}

/* ── Closing Tagline ── */
.af-closing {
    padding: 80px 0 60px;
    text-align: center;
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 20%, #e0e7ff 40%, #f0e6ff 60%, #fce7f3 80%, #f5f3ff 100%);
    position: relative;
    overflow: hidden;
}

.af-closing::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 60% at 20% 40%, rgba(139, 92, 246, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse 40% 50% at 80% 30%, rgba(56, 139, 253, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse 50% 45% at 50% 85%, rgba(236, 72, 153, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 35% 40% at 70% 65%, rgba(99, 102, 241, 0.08) 0%, transparent 55%);
    pointer-events: none;
    animation: af-mesh-shift 8s ease-in-out infinite alternate;
}

.af-closing::after {
    content: '';
    position: absolute;
    top: -30%;
    left: -30%;
    width: 160%;
    height: 160%;
    background:
        radial-gradient(circle 350px at 25% 35%, rgba(139, 92, 246, 0.07) 0%, transparent 50%),
        radial-gradient(circle 250px at 75% 55%, rgba(56, 139, 253, 0.06) 0%, transparent 50%),
        radial-gradient(circle 200px at 50% 80%, rgba(236, 72, 153, 0.05) 0%, transparent 50%);
    animation: af-orb-drift 14s ease-in-out infinite;
    pointer-events: none;
}

@keyframes af-mesh-shift {
    0% {
        opacity: 0.7;
        transform: scale(1);
    }

    100% {
        opacity: 1;
        transform: scale(1.06);
    }
}

@keyframes af-orb-drift {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(3%, -2%) rotate(1deg);
    }

    66% {
        transform: translate(-2%, 3%) rotate(-1deg);
    }
}

.af-closing .container {
    position: relative;
    z-index: 2;
}

.af-closing-text {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 700;
    line-height: 1.3;
    color: #6e6e73;
    letter-spacing: -0.02em;
    margin: 0 0 48px;
}

.af-closing-text strong {
    color: #1d1d1f;
}

/* CTA Button */
.af-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 20px 48px;
    border-radius: 16px;
    background: linear-gradient(135deg, #007AFF, #5856D6, #AF52DE);
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: -0.01em;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(.16, 1, .3, 1), box-shadow 0.4s ease;
    box-shadow: 0 8px 32px rgba(88, 86, 214, 0.35), 0 2px 8px rgba(0, 0, 0, 0.1);
    animation: afCtaFloat 3s ease-in-out infinite;
}

.af-cta-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 16px 48px rgba(88, 86, 214, 0.45), 0 4px 16px rgba(0, 0, 0, 0.15);
}

.af-cta-btn:active {
    transform: translateY(0) scale(0.98);
}

/* Shimmer sweep */
.af-cta-btn-shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.25) 50%, transparent 60%);
    transform: translateX(-100%);
    transition: none;
}

.af-cta-btn:hover .af-cta-btn-shimmer {
    animation: afShimmer 0.8s ease forwards;
}

@keyframes afShimmer {
    to {
        transform: translateX(100%);
    }
}

/* Arrow */
.af-cta-btn-arrow {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.af-cta-btn:hover .af-cta-btn-arrow {
    transform: translateX(4px);
}

/* Float */
@keyframes afCtaFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

.af-cta-btn:hover {
    animation: none;
}

/* Subtitle */
.af-cta-sub {
    margin: 20px 0 0;
    font-size: 0.85rem;
    color: #86868b;
    letter-spacing: 0.02em;
}

/* Before & After Section */
/* ======================== BEFORE / AFTER – PREMIUM REDESIGN ======================== */
#before-after {
    background-color: var(--bg-light);
}

/* --- Two-Column Layout --- */
.ba-columns {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    margin-top: 56px;
    align-items: start;
}

.ba-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Column Headers */
.ba-col-header {
    text-align: center;
    margin-bottom: 8px;
}

.ba-badge {
    display: inline-block;
    padding: 8px 24px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

.ba-badge--before {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, 0.15);
}

.ba-badge--after {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    color: #16a34a;
    border: 1px solid rgba(22, 163, 74, 0.15);
}

/* --- Cards --- */
.ba-card {
    border-radius: 20px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Scroll-triggered entrance animation */
    opacity: 0;
    transform: translateY(24px);
    animation: baCardIn 0.6s cubic-bezier(.4, 0, .2, 1) forwards;
    animation-delay: calc(var(--ba-delay, 0) * 0.15s + 0.2s);
}

.ba-card:hover {
    transform: translateY(-4px);
}

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

/* Before cards – warm red tint */
.ba-card--before {
    background: linear-gradient(160deg, #fff5f5, #fff);
    border: 1px solid rgba(220, 38, 38, 0.10);
    box-shadow: 0 2px 16px rgba(220, 38, 38, 0.06);
}

.ba-card--before:hover {
    box-shadow: 0 8px 32px rgba(220, 38, 38, 0.12);
}

/* After cards – cool green tint */
.ba-card--after {
    background: linear-gradient(160deg, #f0fdf4, #fff);
    border: 1px solid rgba(22, 163, 74, 0.10);
    box-shadow: 0 2px 16px rgba(22, 163, 74, 0.06);
}

.ba-card--after:hover {
    box-shadow: 0 8px 32px rgba(22, 163, 74, 0.12);
}

/* Card text */
.ba-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.3;
}

.ba-card p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Animated SVG Icons --- */
.ba-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ba-icon-wrap svg {
    width: 32px;
    height: 32px;
}

.ba-icon--before {
    background: linear-gradient(135deg, #fef2f2, #fecaca);
    color: #ef4444;
}

.ba-icon--after {
    background: linear-gradient(135deg, #f0fdf4, #bbf7d0);
    color: #16a34a;
}

/* Icon micro-animations */
@keyframes baHandTick {

    0%,
    100% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(30deg);
    }
}

.ba-icon-hand {
    transform-origin: 24px 26px;
    animation: baHandTick 2s ease-in-out infinite;
}

@keyframes baDocFloat {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(2px, -3px) rotate(3deg);
    }
}

.ba-doc1 {
    animation: baDocFloat 3s ease-in-out infinite;
}

.ba-doc2 {
    animation: baDocFloat 3s ease-in-out 0.4s infinite;
}

.ba-doc3 {
    animation: baDocFloat 3s ease-in-out 0.8s infinite;
}

@keyframes baRepeatDash {
    0% {
        stroke-dashoffset: 0;
    }

    100% {
        stroke-dashoffset: 28;
    }
}

.ba-repeat-dash {
    animation: baRepeatDash 1.5s linear infinite;
}

@keyframes baFireFlicker {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.6);
    }
}

.ba-fire1 {
    animation: baFireFlicker 0.5s ease-in-out infinite;
}

.ba-fire2 {
    animation: baFireFlicker 0.5s ease-in-out 0.15s infinite;
}

.ba-fire3 {
    animation: baFireFlicker 0.5s ease-in-out 0.3s infinite;
}

@keyframes baBrainPulse {

    0%,
    100% {
        stroke-dashoffset: 0;
    }

    50% {
        stroke-dashoffset: 8;
    }
}

.ba-brain-path {
    stroke-dasharray: 40;
    animation: baBrainPulse 3s ease-in-out infinite;
}

@keyframes baBotSmile {

    0%,
    40%,
    100% {
        d: path("M17 26c0 2 3 4 7 4s7-2 7-4");
    }

    50% {
        d: path("M17 27c0 1 3 2 7 2s7-1 7-2");
    }
}

/* --- Central Divider --- */
.ba-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding-top: 56px;
    /* align with content below badge */
    align-self: stretch;
}

.ba-divider-line {
    width: 2px;
    flex: 1;
    background: linear-gradient(180deg,
            transparent,
            rgba(56, 139, 253, 0.3),
            transparent);
}

.ba-divider-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), #8b5cf6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(56, 139, 253, 0.35);
    animation: baDividerPulse 2s ease-in-out infinite;
    position: sticky;
    top: 50vh;
    z-index: 2;
}

.ba-divider-icon svg {
    width: 24px;
    height: 24px;
}

@keyframes baDividerPulse {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(56, 139, 253, 0.35);
    }

    50% {
        box-shadow: 0 4px 30px rgba(56, 139, 253, 0.55), 0 0 0 8px rgba(56, 139, 253, 0.08);
    }
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .ba-columns {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .ba-divider {
        flex-direction: row;
        padding-top: 0;
        gap: 0;
    }

    .ba-divider-line {
        width: auto;
        height: 2px;
        min-height: unset;
        flex: 1;
        background: linear-gradient(90deg,
                transparent,
                rgba(56, 139, 253, 0.3),
                transparent);
    }
}


/* Security Section */
#security {
    background-color: var(--surface-light);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

/* ======== PREMIUM SECURITY SECTION ======== */
.security-premium {
    background: linear-gradient(175deg, #0d1117 0%, #161b22 40%, #1a1f2e 100%);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.security-premium::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 50% at 30% 20%, rgba(56, 139, 253, 0.06) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 70% 80%, rgba(139, 92, 246, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.security-premium .section-title h2 {
    color: #f0f6fc;
}

.security-premium .section-title p {
    color: #8b949e;
}

.security-premium .gradient-text {
    background: linear-gradient(135deg, #388bfd, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Layout: Shield left + Cards right --- */
.sec-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 48px;
}

/* --- Animated Shield --- */
.sec-shield-col {
    display: flex;
    justify-content: center;
    align-items: center;
}

.sec-shield-wrap {
    position: relative;
    width: 240px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sec-shield-svg {
    width: 200px;
    height: 240px;
    filter: drop-shadow(0 0 30px rgba(56, 139, 253, 0.25));
    position: relative;
    z-index: 2;
}

/* Sweeping shine across shield */
.sec-shine-rect {
    animation: secShieldSweep 3s ease-in-out infinite;
}

@keyframes secShieldSweep {
    0% {
        transform: translateX(-120px);
    }

    40% {
        transform: translateX(320px);
    }

    100% {
        transform: translateX(320px);
    }
}

/* Checkmark draw-in */
.sec-check-path {
    stroke-dasharray: 120;
    stroke-dashoffset: 120;
    animation: secCheckDraw 1.2s ease-out 0.5s forwards;
}

@keyframes secCheckDraw {
    to {
        stroke-dashoffset: 0;
    }
}

/* Pulse rings behind shield */
.sec-pulse-ring {
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 1.5px solid rgba(56, 139, 253, 0.15);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
    z-index: 1;
}

.sec-pulse-ring--1 {
    animation: secPulse 3.5s ease-out 0s infinite;
}

.sec-pulse-ring--2 {
    animation: secPulse 3.5s ease-out 0.7s infinite;
}

.sec-pulse-ring--3 {
    animation: secPulse 3.5s ease-out 1.4s infinite;
}

@keyframes secPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }

    100% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }
}

/* --- Security Feature Cards --- */
.sec-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.sec-card {
    background: rgba(22, 27, 34, 0.85);
    backdrop-filter: blur(16px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 28px 24px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(.16, 1, .3, 1), box-shadow 0.4s, border-color 0.4s;
}

.sec-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--sec-accent), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.sec-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 255, 255, 0.1);
}

.sec-card:hover::before {
    opacity: 1;
}

.sec-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--sec-accent), color-mix(in srgb, var(--sec-accent) 60%, white));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: #fff;
    box-shadow: 0 4px 16px color-mix(in srgb, var(--sec-accent) 30%, transparent);
}

.sec-card-icon svg {
    width: 26px;
    height: 26px;
}

.sec-card h4 {
    color: #f0f6fc;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 8px;
}

.sec-card p {
    color: #8b949e;
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0;
}

/* --- SSO Card Special Styling --- */
.sec-card--sso {
    border-color: rgba(245, 158, 11, 0.2);
    background: linear-gradient(135deg, rgba(22, 27, 34, 0.9), rgba(40, 35, 20, 0.85));
}

.sec-sso-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #000;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 3px 10px;
    border-radius: 20px;
    animation: secSsoPulse 2s ease-in-out infinite;
}

@keyframes secSsoPulse {

    0%,
    100% {
        box-shadow: 0 0 8px rgba(245, 158, 11, 0.3);
    }

    50% {
        box-shadow: 0 0 20px rgba(245, 158, 11, 0.6);
    }
}

.sec-sso-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.sec-sso-benefits span {
    font-size: 0.78rem;
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.08);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(245, 158, 11, 0.15);
    white-space: nowrap;
}

/* --- Trust Badges Bar --- */
.sec-trust-bar {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sec-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color 0.3s;
}

.sec-trust-item svg {
    width: 20px;
    height: 20px;
}

.sec-trust-item:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* --- Integrated Security CTA --- */
.sec-cta-wrap {
    margin-top: 72px;
    position: relative;
    display: flex;
    justify-content: center;
}

.sec-cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 300px;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse, rgba(56, 139, 253, 0.12) 0%, rgba(139, 92, 246, 0.08) 40%, transparent 70%);
    pointer-events: none;
    animation: sec-cta-breathe 4s ease-in-out infinite;
}

@keyframes sec-cta-breathe {

    0%,
    100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.sec-cta-inner {
    position: relative;
    text-align: center;
    max-width: 640px;
    padding: 56px 48px;
    border-radius: 24px;
    background: rgba(22, 27, 34, 0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 0 80px rgba(56, 139, 253, 0.08),
        0 24px 64px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    z-index: 2;
    overflow: hidden;
}

.sec-cta-inner::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 25px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(56, 139, 253, 0.3), rgba(139, 92, 246, 0.2), rgba(56, 139, 253, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.sec-cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(56, 139, 253, 0.12), rgba(139, 92, 246, 0.12));
    border: 1px solid rgba(56, 139, 253, 0.2);
    margin: 0 auto 24px;
    animation: sec-cta-icon-float 3s ease-in-out infinite;
}

@keyframes sec-cta-icon-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

.sec-cta-icon svg {
    width: 32px;
    height: 32px;
}

.sec-cta-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: #f0f6fc;
    line-height: 1.25;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

.sec-cta-title span {
    background: linear-gradient(135deg, #4facfe, #7c6fff, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sec-cta-desc {
    font-size: 1rem;
    color: #8b949e;
    line-height: 1.6;
    margin: 0 0 32px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.sec-cta-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.sec-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 14px;
    background: linear-gradient(135deg, #388bfd, #6366f1, #8b5cf6);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(.16, 1, .3, 1), box-shadow 0.3s;
    box-shadow: 0 4px 24px rgba(56, 139, 253, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.sec-cta-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.sec-cta-primary:hover::before {
    left: 100%;
}

.sec-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 36px rgba(56, 139, 253, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.sec-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 14px 28px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
}

.sec-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.sec-cta-trust-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.sec-cta-trust-row span {
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.01em;
    white-space: nowrap;
}

/* Security CTA Responsive */
@media (max-width: 640px) {
    .sec-cta-inner {
        padding: 40px 24px;
    }

    .sec-cta-trust-row {
        gap: 12px;
    }

    .sec-cta-trust-row span {
        font-size: 0.72rem;
    }
}


/* ======== PREMIUM BENEFITS BENTO GRID ======== */
.benefits-premium {
    background: linear-gradient(175deg, #0d1117 0%, #161b22 50%, #111827 100%);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.benefits-premium::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 50% 50% at 70% 20%, rgba(99, 102, 241, 0.05) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 20% 70%, rgba(56, 139, 253, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.benefits-premium .section-title h2 {
    color: #f0f6fc;
}

.benefits-premium .section-title p {
    color: #8b949e;
}

/* Bento Grid Layout */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 48px;
}

/* Base Card */
.bento-card {
    background: rgba(22, 27, 34, 0.85);
    backdrop-filter: blur(16px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 32px 28px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(.16, 1, .3, 1), box-shadow 0.4s, border-color 0.4s;
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--bento-accent), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.bento-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, var(--bento-glow) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.bento-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.1);
}

.bento-card:hover::before {
    opacity: 1;
}

.bento-card:hover::after {
    opacity: 1;
}

/* Card Icon */
.bento-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--bento-accent), color-mix(in srgb, var(--bento-accent) 50%, white));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #fff;
    box-shadow: 0 6px 20px var(--bento-glow);
}

.bento-icon svg {
    width: 28px;
    height: 28px;
}

.bento-card h4 {
    color: #f0f6fc;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 10px;
    position: relative;
    z-index: 1;
}

.bento-card p {
    color: #8b949e;
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* ---- Hero Cards (span 2 columns) ---- */
.bento-hero {
    grid-column: span 2;
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 40px 36px;
}

.bento-hero-visual {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.bento-hero-text {
    flex: 1;
    position: relative;
    z-index: 1;
}

.bento-hero h4 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

/* 20× Big Number */
.bento-big-number {
    font-size: 5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #388bfd, #60a5fa, #388bfd);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: bentoNumberShimmer 3s ease-in-out infinite;
    line-height: 1;
    filter: drop-shadow(0 0 20px rgba(56, 139, 253, 0.3));
}

.bento-big-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #60a5fa;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-top: 4px;
}

@keyframes bentoNumberShimmer {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Format Icons in hero card */
.bento-formats {
    display: grid;
    grid-template-columns: repeat(2, 60px);
    gap: 12px;
    justify-content: center;
}

.bento-format-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bentoFormatFloat 3s ease-in-out infinite;
    animation-delay: var(--fd);
}

.bento-format-icon span {
    font-size: 0.75rem;
    font-weight: 700;
    color: #a5b4fc;
    letter-spacing: 0.04em;
}

@keyframes bentoFormatFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

.bento-hero--right {
    flex-direction: row-reverse;
}

/* ======== PREMIUM INDUSTRIES TABS ======== */
.ind-premium {
    background: linear-gradient(175deg, #f8faff 0%, #f0f4ff 40%, #faf5ff 100%);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.ind-premium::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 50% 40% at 80% 10%, rgba(56, 139, 253, 0.06) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 10% 80%, rgba(139, 92, 246, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* Tab Navigation */
.ind-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 40px;
    margin-bottom: 32px;
}

.ind-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1.5px solid #e2e8f0;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 500;
    color: #475569;
    transition: all 0.3s cubic-bezier(.16, 1, .3, 1);
    position: relative;
    overflow: hidden;
}

.ind-tab svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    transition: color 0.3s;
}

.ind-tab:hover {
    border-color: var(--tab-color);
    color: var(--tab-color);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.ind-tab--active {
    border-color: var(--tab-color);
    color: var(--tab-color);
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 0 0 3px color-mix(in srgb, var(--tab-color) 12%, transparent);
    font-weight: 600;
}

.ind-tab--active svg {
    color: var(--tab-color);
}

/* Panels Container */
.ind-panels {
    position: relative;
    min-height: 340px;
}

/* Individual Panel */
.ind-panel {
    display: none;
    background: #fff;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    padding: 48px;
    gap: 44px;
    align-items: flex-start;
    animation: indPanelFadeIn 0.4s cubic-bezier(.16, 1, .3, 1);
    position: relative;
    overflow: hidden;
}

.ind-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--panel-color), color-mix(in srgb, var(--panel-color) 40%, #a78bfa));
}

.ind-panel::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--panel-glow) 0%, transparent 70%);
    pointer-events: none;
}

.ind-panel--active {
    display: flex;
}

@keyframes indPanelFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

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

/* Panel Icon */
.ind-panel-icon {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 24px;
    background: linear-gradient(135deg,
            color-mix(in srgb, var(--panel-color) 10%, white),
            color-mix(in srgb, var(--panel-color) 6%, white));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--panel-color);
    box-shadow: 0 6px 24px color-mix(in srgb, var(--panel-color) 15%, transparent);
}

.ind-panel-icon svg {
    width: 52px;
    height: 52px;
}

/* Panel Content */
.ind-panel-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.ind-panel-content h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px;
}

.ind-panel-desc {
    font-size: 1.05rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 24px;
}

/* Use Cases List */
.ind-usecases {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.ind-usecases li {
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.6;
    padding: 16px 18px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 14px;
    border-left: 3px solid var(--panel-color);
    transition: transform 0.2s, box-shadow 0.2s;
}

.ind-usecases li:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.ind-usecases li strong {
    color: #0f172a;
    display: block;
    margin-bottom: 4px;
}



/* ======== AI NARRATED VIDEOS SECTION ======== */
.aiv-section {
    padding: 120px 0;
    background: linear-gradient(180deg, #f6f8fc 0%, #eef1f8 50%, #f6f8fc 100%);
    position: relative;
    overflow: hidden;
}

.aiv-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 700px 500px at 30% 20%, rgba(163, 113, 247, 0.05) 0%, transparent 70%),
        radial-gradient(ellipse 600px 400px at 70% 80%, rgba(56, 139, 253, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

/* Header */
.aiv-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 64px;
    position: relative;
}

.aiv-icon-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.aiv-icon {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(163, 113, 247, 0.1), rgba(56, 139, 253, 0.1));
    border: 1px solid rgba(163, 113, 247, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7c3aed;
    position: relative;
}

.aiv-icon svg {
    width: 30px;
    height: 30px;
}

.aiv-icon-ring {
    position: absolute;
    inset: -6px;
    border-radius: 24px;
    border: 2px solid rgba(163, 113, 247, 0.2);
    animation: aiv-ring 3s ease-in-out infinite;
}

@keyframes aiv-ring {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.18);
        opacity: 0;
    }
}

.aiv-eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #7c3aed;
    padding: 6px 18px;
    border-radius: 99px;
    background: rgba(124, 58, 237, 0.06);
    border: 1px solid rgba(124, 58, 237, 0.12);
    margin-bottom: 16px;
}

.aiv-headline {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: #1a202c;
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin: 0 0 20px;
}

.aiv-accent {
    background: linear-gradient(135deg, #7c3aed, #2563eb, #059669);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.aiv-desc {
    font-size: 1.05rem;
    color: #4a5568;
    line-height: 1.7;
    margin: 0;
}

/* Video Wrap (centered) */
.aiv-video-wrap {
    max-width: 800px;
    margin: 0 auto 56px;
}

/* Video Placeholder */
.aiv-video-placeholder {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1), 0 0 60px rgba(124, 58, 237, 0.06);
}

.aiv-video-inner {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1033, #0f1729, #0d1f1a);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.aiv-video-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    z-index: 2;
}

.aiv-play-btn {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a371f7, #388bfd);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(163, 113, 247, 0.3);
}

.aiv-play-btn svg {
    width: 28px;
    height: 28px;
    margin-left: 3px;
}

.aiv-play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(163, 113, 247, 0.45);
}

.aiv-video-label {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

/* Audio Wave */
.aiv-video-wave {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    align-items: flex-end;
    height: 32px;
    z-index: 2;
}

.aiv-wave-bar {
    width: 4px;
    border-radius: 2px;
    background: linear-gradient(to top, rgba(163, 113, 247, 0.4), rgba(56, 139, 253, 0.4));
    animation: aiv-wave 1.4s ease-in-out var(--d) infinite alternate;
    height: var(--h);
}

@keyframes aiv-wave {
    0% {
        height: 20%;
    }

    100% {
        height: var(--h);
    }
}

.aiv-video-caption {
    font-size: 0.78rem;
    color: #718096;
    text-align: center;
    margin: 12px 0 0;
    font-style: italic;
}

.aiv-video-caption code {
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(124, 58, 237, 0.08);
    color: #7c3aed;
}

/* Feature Cards Grid */
.aiv-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.aiv-feat {
    display: flex;
    gap: 16px;
    padding: 24px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(.16, 1, .3, 1);
    backdrop-filter: blur(8px);
}

.aiv-feat:hover {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
    transform: translateX(4px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.aiv-feat-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--aiv-ic) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--aiv-ic) 20%, transparent);
    color: var(--aiv-ic);
    display: flex;
    align-items: center;
    justify-content: center;
}

.aiv-feat-icon svg {
    width: 22px;
    height: 22px;
}

.aiv-feat h5 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 6px;
}

.aiv-feat p {
    font-size: 0.82rem;
    color: #4a5568;
    line-height: 1.55;
    margin: 0;
}

.aiv-feat p strong {
    color: #1a202c;
}

/* Feature Tags */
.aiv-feat-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.aiv-feat-tags span {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #4a5568;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* AIV Responsive */
@media (max-width: 1024px) {
    .aiv-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .aiv-section {
        padding: 80px 0;
    }

    .aiv-features-grid {
        grid-template-columns: 1fr;
    }

    .aiv-feat {
        flex-direction: column;
        gap: 12px;
    }
}


/* ======== PREMIUM INTEGRATIONS SECTION ======== */
.integ-section {
    background: #fff;
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.integ-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 50% at 30% 0%, rgba(56, 139, 253, 0.04) 0%, transparent 70%),
        radial-gradient(ellipse 50% 50% at 80% 100%, rgba(139, 92, 246, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.integ-section .section-title h2 {
    color: #1d1d1f;
}

.integ-section .section-title p {
    color: #6e6e73;
}

.integ-gradient-text {
    background: linear-gradient(135deg, #2563eb, #7c3aed, #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Grid */
.integ-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 48px;
}

/* Card */
.integ-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 36px 24px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.4s cubic-bezier(.16, 1, .3, 1);
    position: relative;
    overflow: hidden;
}

.integ-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: radial-gradient(ellipse 120% 80% at 50% 120%, var(--integ-accent), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
}

.integ-card:hover {
    transform: translateY(-8px);
    border-color: #d1d5db;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.integ-card:hover::before {
    opacity: 0.08;
}

/* Logo */
.integ-logo {
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #e5e7eb;
    padding: 14px;
    transition: transform 0.4s cubic-bezier(.16, 1, .3, 1), box-shadow 0.4s;
}

.integ-card:hover .integ-logo {
    transform: scale(1.08);
    box-shadow: 0 8px 28px color-mix(in srgb, var(--integ-accent) 25%, transparent);
}

.integ-logo svg {
    width: 100%;
    height: 100%;
}

/* Text */
.integ-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0 0 10px;
    position: relative;
    z-index: 1;
}

.integ-desc {
    font-size: 0.88rem;
    color: #6e6e73;
    line-height: 1.6;
    margin: 0 0 16px;
    position: relative;
    z-index: 1;
    flex: 1;
}

/* Badge */
.integ-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--integ-accent);
    background: color-mix(in srgb, var(--integ-accent) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--integ-accent) 25%, transparent);
    border-radius: 50px;
    padding: 5px 14px;
    position: relative;
    z-index: 1;
    margin-top: auto;
}

/* Eyebrow */
.integ-eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #6366f1;
    margin-bottom: 16px;
    padding: 6px 18px;
    border-radius: 99px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.15);
}

/* Footer */
.integ-footer {
    text-align: center;
    color: #8e8e93;
    font-size: 0.95rem;
    margin-top: 40px;
}

.integ-footer strong {
    color: #1d1d1f;
}

/* Embed Callout */
.integ-embed-callout {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-top: 32px;
    padding: 28px 32px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.04), rgba(139, 92, 246, 0.06));
    border: 1px solid rgba(99, 102, 241, 0.12);
    transition: all 0.3s ease;
}

.integ-embed-callout:hover {
    border-color: rgba(99, 102, 241, 0.22);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.08);
    transform: translateY(-2px);
}

.integ-embed-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(139, 92, 246, 0.12));
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: #6366f1;
}

.integ-embed-icon svg {
    width: 24px;
    height: 24px;
}

.integ-embed-text h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0 0 6px;
}

.integ-embed-text h4 strong {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.integ-embed-text p {
    font-size: 0.88rem;
    color: #6e6e73;
    line-height: 1.6;
    margin: 0;
}

/* ======== EMBED MODAL ======== */
.embed-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
}

.embed-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.embed-modal {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.25);
    max-width: 660px;
    width: 90%;
    position: relative;
    overflow: hidden;
    transform: translateY(24px) scale(0.96);
    transition: transform 0.35s cubic-bezier(.16, 1, .3, 1);
}

.embed-modal-overlay.active .embed-modal {
    transform: translateY(0) scale(1);
}

.embed-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.06);
    color: #6e6e73;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    z-index: 2;
    line-height: 1;
}

.embed-modal-close:hover {
    background: rgba(0, 0, 0, 0.12);
    color: #1d1d1f;
}

.embed-modal-header {
    padding: 32px 32px 16px;
    text-align: center;
}

.embed-modal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0 0 8px;
}

.embed-modal-header p {
    font-size: 0.88rem;
    color: #6e6e73;
    margin: 0;
    line-height: 1.5;
}

.embed-modal-frame {
    padding: 0 24px 24px;
    display: flex;
    justify-content: center;
}

.embed-modal-frame iframe {
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    max-width: 100%;
}

/* ======== KNOWLEDGE BASE & AI SECTION ======== */
.kb-section {
    background: linear-gradient(175deg, #f0f4ff 0%, #f5f0ff 40%, #fdf2f8 100%);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.kb-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 50% 40% at 20% 20%, rgba(56, 139, 253, 0.06) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 80% 80%, rgba(139, 92, 246, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

/* Header */
.kb-header {
    text-align: center;
    margin-bottom: 56px;
    position: relative;
}

.kb-badge-top {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #7c3aed;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.18);
    border-radius: 50px;
    padding: 6px 18px;
    margin-bottom: 20px;
}

.kb-header h2 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #1d1d1f;
    margin: 0 0 16px;
    line-height: 1.2;
}

.kb-gradient-text {
    background: linear-gradient(135deg, #58a6ff, #a78bfa, #f0abfc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.kb-subtitle {
    max-width: 700px;
    margin: 0 auto;
    color: #6e6e73;
    font-size: 1.05rem;
    line-height: 1.7;
}

.kb-subtitle strong {
    color: #1d1d1f;
}

/* Two-Panel Grid */
.kb-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.kb-panel {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 24px;
    padding: 36px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.kb-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 24px 24px 0 0;
}

.kb-panel--kb::before {
    background: linear-gradient(90deg, #58a6ff, #3b82f6);
}

.kb-panel--ai::before {
    background: linear-gradient(90deg, #a78bfa, #8b5cf6);
}

/* Panel Header */
.kb-panel-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.kb-panel-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--panel-accent) 12%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    flex-shrink: 0;
}

.kb-panel-icon svg {
    width: 100%;
    height: 100%;
    color: var(--panel-accent);
}

.kb-panel-header h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0 0 4px;
}

.kb-panel-tagline {
    font-size: 0.88rem;
    color: #6e6e73;
    margin: 0;
}

/* KB Features Grid */
.kb-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.kb-feature {
    display: flex;
    gap: 12px;
    padding: 18px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.kb-feature:hover {
    background: rgba(56, 139, 253, 0.06);
    border-color: rgba(56, 139, 253, 0.15);
}

.kb-feature-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    color: #3b82f6;
}

.kb-feature-icon svg {
    width: 100%;
    height: 100%;
}

.kb-feature strong {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 6px;
}

.kb-feature p {
    font-size: 0.8rem;
    color: #6e6e73;
    line-height: 1.55;
    margin: 0;
}

/* Chat Mockup */
.kb-chat {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
}

.kb-chat-msg {
    margin-bottom: 16px;
}

.kb-chat-msg:last-child {
    margin-bottom: 0;
}

.kb-chat-msg--user {
    display: flex;
    justify-content: flex-end;
}

.kb-chat-msg--user p {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #fff;
    padding: 10px 16px;
    border-radius: 16px 16px 4px 16px;
    font-size: 0.88rem;
    max-width: 85%;
    margin: 0;
    line-height: 1.5;
}

.kb-chat-msg--ai {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.kb-chat-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(167, 139, 250, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 5px;
    color: #a78bfa;
}

.kb-chat-avatar svg {
    width: 100%;
    height: 100%;
}

.kb-chat-msg--ai p {
    font-size: 0.84rem;
    color: #374151;
    margin: 0 0 8px;
    line-height: 1.55;
}

.kb-chat-msg--ai ol {
    margin: 8px 0;
    padding-left: 18px;
    font-size: 0.82rem;
    color: #374151;
    line-height: 1.7;
}

.kb-chat-msg--ai ol li {
    margin-bottom: 2px;
}

.kb-chat-msg--ai code {
    background: rgba(56, 139, 253, 0.1);
    color: #2563eb;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.kb-chat-msg--ai strong {
    color: #1d1d1f;
}

.kb-chat-source {
    font-size: 0.76rem !important;
    color: #9ca3af !important;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 8px;
    margin-top: 8px !important;
}

/* AI Response Bubble */
.kb-chat-bubble {
    background: #f3f0ff;
    border: 1px solid rgba(167, 139, 250, 0.18);
    border-radius: 4px 16px 16px 16px;
    padding: 14px 16px;
    flex: 1;
    min-width: 0;
}

/* Thinking dots */
.kb-chat-thinking {
    display: flex;
    gap: 5px;
    padding: 4px 0;
}

.kb-chat-thinking span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #a78bfa;
    animation: kbDotBounce 1.2s infinite ease-in-out;
}

.kb-chat-thinking span:nth-child(2) {
    animation-delay: 0.15s;
}

.kb-chat-thinking span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes kbDotBounce {

    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.4;
    }

    30% {
        transform: translateY(-6px);
        opacity: 1;
    }
}

/* Animation transitions */
.kb-chat-anim {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.kb-chat-anim.kb-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Typewriter cursor */
#kbChatQuestion::after {
    content: '|';
    animation: kbBlink 0.6s step-end infinite;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
    margin-left: 1px;
}

#kbChatQuestion.kb-done::after {
    display: none;
}

@keyframes kbBlink {
    50% {
        opacity: 0;
    }
}

/* AI Features */
.kb-ai-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
}

.kb-ai-feat {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.kb-ai-feat:hover {
    background: rgba(139, 92, 246, 0.06);
    border-color: rgba(139, 92, 246, 0.15);
}

.kb-ai-feat>svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: #8b5cf6;
    margin-top: 2px;
}

.kb-ai-feat strong {
    display: block;
    font-size: 0.86rem;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 4px;
}

.kb-ai-feat p {
    font-size: 0.8rem;
    color: #6e6e73;
    line-height: 1.55;
    margin: 0;
}

.kb-ai-feat em {
    color: #374151;
    font-style: italic;
}

/* Deploy Badges */
.kb-deploy {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.kb-deploy-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9ca3af;
}

.kb-deploy-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.kb-deploy-badge {
    font-size: 0.76rem;
    font-weight: 600;
    color: #7c3aed;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.18);
    border-radius: 50px;
    padding: 5px 12px;
    white-space: nowrap;
}

/* Analytics Bar */
.kb-analytics {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    padding: 36px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.kb-analytics-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.kb-analytics-header svg {
    width: 28px;
    height: 28px;
    color: #f59e0b;
}

.kb-analytics-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0;
}

.kb-analytics-desc {
    color: #6e6e73;
    font-size: 0.92rem;
    margin: 0 0 24px;
    line-height: 1.6;
}

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

.kb-analytics-stat {
    padding: 20px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.kb-analytics-stat:hover {
    background: rgba(245, 158, 11, 0.06);
    border-color: rgba(245, 158, 11, 0.15);
}

.kb-analytics-icon {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.kb-analytics-stat strong {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 6px;
}

.kb-analytics-stat p {
    font-size: 0.82rem;
    color: #6e6e73;
    line-height: 1.55;
    margin: 0;
}

/* ======== XDOKU FEATURE SECTIONS (SOPs / AI Future / Automation) ======== */

/* --- Base Section --- */
.xf-section {
    padding: 110px 0;
    position: relative;
    overflow: hidden;
}

.xf-section--sops {
    background: linear-gradient(175deg, #fff7ed 0%, #fff3e0 50%, #fffbf5 100%);
}

.xf-section--ai {
    background: linear-gradient(175deg, #f5f0ff 0%, #ede9fe 50%, #faf5ff 100%);
}

.xf-section--auto {
    background: linear-gradient(175deg, #ecfeff 0%, #e0f7fa 50%, #f0fdfa 100%);
}

/* --- Header --- */
.xf-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 64px;
}

.xf-eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 18px;
    border-radius: 99px;
    margin-bottom: 16px;
}

.xf-section--sops .xf-eyebrow {
    color: #ea580c;
    background: rgba(249, 115, 22, 0.08);
    border: 1px solid rgba(249, 115, 22, 0.18);
}

.xf-section--ai .xf-eyebrow {
    color: #7c3aed;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.18);
}

.xf-section--auto .xf-eyebrow {
    color: #0891b2;
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.18);
}

.xf-headline {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: #1d1d1f;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin: 0 0 20px;
}

.xf-accent {
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.xf-accent--sops {
    background: linear-gradient(135deg, #f97316, #ea580c, #c2410c);
    -webkit-background-clip: text;
    background-clip: text;
}

.xf-accent--ai {
    background: linear-gradient(135deg, #8b5cf6, #6366f1, #4f46e5);
    -webkit-background-clip: text;
    background-clip: text;
}

.xf-accent--auto {
    background: linear-gradient(135deg, #06b6d4, #0891b2, #0e7490);
    -webkit-background-clip: text;
    background-clip: text;
}

.xf-desc {
    font-size: 1.05rem;
    color: #6e6e73;
    line-height: 1.7;
    margin: 0;
}

/* --- Card Grid --- */
.xf-grid {
    display: grid;
    gap: 24px;
    margin-bottom: 48px;
}

.xf-grid--2x2 {
    grid-template-columns: repeat(2, 1fr);
}

.xf-grid--3col {
    grid-template-columns: repeat(3, 1fr);
}

/* --- Feature Card --- */
.xf-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 20px;
    padding: 32px 28px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(.16, 1, .3, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.xf-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.12);
}

.xf-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--xf-ic, #3b82f6), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.xf-card:hover::before {
    opacity: 1;
}

.xf-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background: color-mix(in srgb, var(--xf-ic) 10%, #fff);
    border: 1px solid color-mix(in srgb, var(--xf-ic) 18%, transparent);
    color: var(--xf-ic);
    transition: all 0.3s ease;
}

.xf-card:hover .xf-card-icon {
    transform: scale(1.08);
    background: color-mix(in srgb, var(--xf-ic) 16%, #fff);
}

.xf-card-icon svg {
    width: 26px;
    height: 26px;
}

.xf-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0 0 10px;
}

.xf-card p {
    font-size: 0.88rem;
    color: #6e6e73;
    line-height: 1.65;
    margin: 0;
}

/* --- Automation Card Numbers --- */
.xf-card-number {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
    color: rgba(0, 0, 0, 0.03);
    pointer-events: none;
}

.xf-card:hover .xf-card-number {
    color: color-mix(in srgb, var(--xf-ic) 8%, transparent);
}

/* --- Callout Box --- */
.xf-callout {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 32px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.xf-callout-icon {
    font-size: 2.2rem;
    flex-shrink: 0;
}

.xf-callout-body strong {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 4px;
}

.xf-callout-body p {
    font-size: 0.88rem;
    color: #6e6e73;
    margin: 0;
    line-height: 1.55;
}

.xf-callout--sops {
    border-left: 4px solid #f97316;
}

.xf-callout--ai {
    border-left: 4px solid #8b5cf6;
}

/* --- Neural Network Diagram (AI Section) --- */
.xf-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 48px;
}

.xf-split-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.xf-neural {
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
    max-width: 420px;
}

.xf-neural-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 2;
}

.xf-neural-node svg {
    width: 44px;
    height: 44px;
    padding: 10px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
}

.xf-neural-node--1 svg {
    color: #3b82f6;
    border: 2px solid rgba(59, 130, 246, 0.2);
}

.xf-neural-node--center svg {
    color: #8b5cf6;
    border: 2px solid rgba(139, 92, 246, 0.25);
    width: 56px;
    height: 56px;
    padding: 14px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.15);
}

.xf-neural-node--3 svg {
    color: #10b981;
    border: 2px solid rgba(16, 185, 129, 0.2);
}

.xf-neural-node span {
    font-size: 0.72rem;
    font-weight: 700;
    color: #6e6e73;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.xf-neural-connector {
    flex: 1;
    height: 2px;
    position: relative;
    z-index: 1;
}

.xf-neural-connector--1 {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.3), rgba(139, 92, 246, 0.3));
}

.xf-neural-connector--2 {
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.3), rgba(16, 185, 129, 0.3));
}

.xf-neural-connector::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

.xf-neural-connector--1::after {
    left: 50%;
    background: #6366f1;
}

.xf-neural-connector--2::after {
    left: 50%;
    background: #10b981;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 0.3;
        transform: translateY(-50%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translateY(-50%) scale(1.5);
    }
}

/* --- Timeline (AI Section) --- */
.xf-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.xf-timeline-item {
    display: flex;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.xf-timeline-item:last-child {
    border-bottom: none;
}

.xf-timeline-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--dot-color, #6366f1);
    flex-shrink: 0;
    margin-top: 5px;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--dot-color, #6366f1) 15%, transparent);
}

.xf-timeline-body h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0 0 8px;
}

.xf-timeline-body p {
    font-size: 0.88rem;
    color: #6e6e73;
    line-height: 1.65;
    margin: 0;
}

/* --- Benefits Strip (Automation Section) --- */
.xf-benefits-strip {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    padding: 36px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.xf-benefit {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
}

.xf-benefit-value {
    font-size: 2.4rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.xf-benefit-label {
    font-size: 0.85rem;
    color: #6e6e73;
    font-weight: 500;
    max-width: 180px;
}

.xf-benefit-divider {
    width: 1px;
    height: 48px;
    background: rgba(0, 0, 0, 0.08);
}

/* --- Onboarding Section --- */
.xf-section--onboard {
    background: linear-gradient(175deg, #f0fdfa 0%, #e6fffa 50%, #f0fdf4 100%);
}

.xf-section--onboard .xf-eyebrow {
    color: #0d9488;
    background: rgba(20, 184, 166, 0.08);
    border: 1px solid rgba(20, 184, 166, 0.18);
}

.xf-accent--onboard {
    background: linear-gradient(135deg, #14b8a6, #0d9488, #0f766e);
    -webkit-background-clip: text;
    background-clip: text;
}

.xf-callout--onboard {
    border-left: 4px solid #14b8a6;
}

/* Stat Cards Row */
.ob-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.ob-stat-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 20px;
    padding: 28px 24px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(.16, 1, .3, 1);
}

.ob-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
}

.ob-stat-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #1d1d1f;
    margin: 16px 0 8px;
}

.ob-stat-card p {
    font-size: 0.84rem;
    color: #6e6e73;
    line-height: 1.6;
    margin: 0;
}

/* Animated Bar Chart */
.ob-chart--bar {
    height: 180px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.ob-bar-group {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    flex: 1;
    padding: 0 12px;
}

.ob-chart--bar {
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: center;
    padding-bottom: 28px;
}

.ob-bar-group {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 140px;
    position: relative;
}

.ob-bar {
    width: 36px;
    border-radius: 8px 8px 4px 4px;
    position: relative;
    animation: barGrow 1.2s cubic-bezier(.16, 1, .3, 1) forwards;
    height: 0;
}

@keyframes barGrow {
    to {
        height: var(--bar-h);
    }
}

.ob-bar--before {
    background: linear-gradient(180deg, #fca5a5, #ef4444);
    animation-delay: 0.3s;
}

.ob-bar--after {
    background: linear-gradient(180deg, #6ee7b7, #10b981);
    animation-delay: 0.6s;
}

.ob-bar-val {
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.68rem;
    font-weight: 700;
    color: #374151;
    white-space: nowrap;
}

.ob-bar-labels {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    font-size: 0.7rem;
    color: #9ca3af;
    font-weight: 500;
}

/* Legend */
.ob-legend {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 12px;
}

.ob-legend-item {
    font-size: 0.72rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ob-legend-item::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 3px;
}

.ob-legend-item--before::before {
    background: #ef4444;
}

.ob-legend-item--after::before {
    background: #10b981;
}

.ob-legend-item--ret::before {
    background: #6366f1;
}

.ob-legend-item--sat::before {
    background: #f59e0b;
}

/* Circular Progress */
.ob-chart--circles {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding: 10px 0;
}

.ob-circle-wrap {
    position: relative;
    width: 100px;
    height: 100px;
}

.ob-circle {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.ob-circle-bg {
    fill: none;
    stroke: rgba(0, 0, 0, 0.06);
    stroke-width: 8;
}

.ob-circle-fill {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 326.73;
    stroke-dashoffset: 326.73;
    animation: circFill 1.5s cubic-bezier(.16, 1, .3, 1) forwards;
    animation-delay: 0.5s;
}

.ob-circle-fill--1 {
    stroke: #6366f1;
    --target-offset: calc(326.73 - (var(--pct) / 100 * 326.73));
}

.ob-circle-fill--2 {
    stroke: #f59e0b;
    --target-offset: calc(326.73 - (var(--pct) / 100 * 326.73));
    animation-delay: 0.8s;
}

@keyframes circFill {
    to {
        stroke-dashoffset: var(--target-offset);
    }
}

.ob-circle-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.3rem;
    font-weight: 800;
    color: #1d1d1f;
}

/* Animated Counter */
.ob-chart--counter {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

.ob-counter {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.ob-counter-value {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: countPop 0.6s cubic-bezier(.16, 1, .3, 1) forwards;
    animation-delay: 0.4s;
    opacity: 0;
    transform: scale(0.5);
}

@keyframes countPop {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.ob-counter-unit {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ob-counter-text {
    font-size: 0.82rem;
    font-weight: 600;
    color: #6e6e73;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ob-pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 2px solid rgba(20, 184, 166, 0.2);
    animation: pulseRing 2s ease-out infinite;
    pointer-events: none;
}

@keyframes pulseRing {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.6);
        opacity: 0;
    }
}

.ob-features {
    margin-top: 0;
}

/* Responsive onboarding */
@media (max-width: 900px) {
    .ob-stats-row {
        grid-template-columns: 1fr 1fr;
    }

    .ob-stats-row .ob-stat-card:last-child {
        grid-column: span 2;
        max-width: 400px;
        justify-self: center;
    }
}

@media (max-width: 600px) {
    .ob-stats-row {
        grid-template-columns: 1fr;
    }

    .ob-stats-row .ob-stat-card:last-child {
        grid-column: span 1;
        max-width: none;
    }
}

/* ══════ GLOBAL REACH / GLOBE SECTION ══════ */
.globe-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #070b14 0%, #0a1225 40%, #0d1a30 100%);
    position: relative;
    overflow: hidden;
}

.globe-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* ── Text column ── */
.globe-text {
    position: relative;
    z-index: 2;
}

.globe-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px 8px 10px;
    background: rgba(255, 196, 0, 0.1);
    border: 1px solid rgba(255, 196, 0, 0.2);
    border-radius: 100px;
    margin-bottom: 28px;
}

.globe-flag {
    width: 28px;
    height: 19px;
    border-radius: 3px;
    flex-shrink: 0;
}

.globe-badge span {
    font-size: 0.82rem;
    font-weight: 600;
    color: #ffc400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.globe-headline {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.globe-accent {
    background: linear-gradient(135deg, #60a5fa, #a78bfa, #f472b6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.globe-desc {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.8;
    margin-bottom: 36px;
    max-width: 520px;
}

.globe-stats {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 20px 28px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 28px;
}

.globe-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.globe-stat strong {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}

.globe-stat span {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
}

.globe-stat-sep {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.globe-trust-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.globe-trust-label {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 500;
}

.globe-trust-dot {
    color: rgba(255, 255, 255, 0.15);
    font-size: 1.2rem;
}

/* ── Globe visual column ── */
.globe-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.globe-svg {
    width: 100%;
    max-width: 450px;
    height: auto;
    animation: globeFloat 8s ease-in-out infinite;
    filter: drop-shadow(0 0 40px rgba(100, 180, 255, 0.08));
}

@keyframes globeFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-12px) rotate(1.5deg);
    }

    50% {
        transform: translateY(-4px) rotate(-1deg);
    }

    75% {
        transform: translateY(-14px) rotate(0.5deg);
    }
}

.globe-glow-ring {
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(100, 180, 255, 0.06) 0%, transparent 70%);
    pointer-events: none;
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

/* Subtle rotation for meridians */
.globe-meridian {
    animation: meridianShift 20s ease-in-out infinite alternate;
}

@keyframes meridianShift {
    0% {
        transform: scaleX(1);
    }

    100% {
        transform: scaleX(0.7);
    }
}

/* ── Responsive ── */
@media (max-width: 960px) {
    .globe-layout {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .globe-text {
        order: 1;
    }

    .globe-visual {
        order: 0;
    }

    .globe-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .globe-trust-row {
        justify-content: center;
    }

    .globe-svg {
        max-width: 320px;
    }

    .globe-glow-ring {
        width: 280px;
        height: 280px;
    }

    .globe-badge {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 600px) {
    .globe-section {
        padding: 70px 0;
    }

    .globe-headline {
        font-size: 1.7rem;
    }

    .globe-stats {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }

    .globe-stat-sep {
        width: 40px;
        height: 1px;
    }

    .globe-svg {
        max-width: 260px;
    }

    .globe-glow-ring {
        width: 220px;
        height: 220px;
    }

    .globe-trust-row {
        gap: 8px;
    }

    .globe-trust-label {
        font-size: 0.75rem;
    }
}

/* ══════ SECTION CTAs (shared) ══════ */
.section-cta {
    padding: 60px 24px;
    position: relative;
    z-index: 2;
}

/* CTA backgrounds: gradient from previous section bottom → next section top */
.scta-sops {
    background: linear-gradient(180deg, #fffbf5 0%, #f5f0ff 100%);
}

.scta-ai {
    background: linear-gradient(180deg, #faf5ff 0%, #ecfeff 100%);
}

.scta-auto {
    background: linear-gradient(180deg, #f0fdfa 0%, #f0fdfa 100%);
}

.scta-onboard {
    background: linear-gradient(180deg, #f0fdf4 0%, #eff6ff 100%);
}

.scta-it {
    background: linear-gradient(180deg, #f0f9ff 0%, #fdf2f8 100%);
}

.scta-train {
    background: linear-gradient(180deg, #fff1f2 0%, #fff 100%);
}

.scta-inner {
    max-width: 780px;
    margin: 0 auto;
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.97);
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.scta-glow {
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 60%;
    border-radius: 50%;
    opacity: 0.15;
    pointer-events: none;
    filter: blur(60px);
}

.scta-content {
    position: relative;
    z-index: 1;
    padding: 52px 48px;
    text-align: center;
}

.scta-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 6px 18px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 24px;
}

.scta-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}



.scta-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
    max-width: 580px;
    margin: 0 auto 32px;
}

/* Stats bar */
.scta-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 36px;
    padding: 20px 28px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.scta-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.scta-stat strong {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}

.scta-stat span {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
}

.scta-stat-sep {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

/* Buttons */
.scta-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.scta-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 36px;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.scta-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -75%;
    width: 50%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: skewX(-20deg);
    animation: sctaShimmer 3s ease-in-out infinite;
}

@keyframes sctaShimmer {
    0% {
        left: -75%;
    }

    100% {
        left: 125%;
    }
}

.scta-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.scta-secondary {
    font-size: 0.92rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s ease;
    padding: 8px 4px;
}

.scta-secondary:hover {
    color: rgba(255, 255, 255, 0.85);
}

/* ── SOPs variant (emerald) ── */
.scta-sops .scta-glow {
    background: radial-gradient(ellipse, #10b981 0%, #059669 50%, transparent 80%);
}

.scta-highlight--sops {
    color: #6ee7b7;
}

.scta-primary--sops {
    background: linear-gradient(135deg, #10b981, #059669);
}

.scta-primary--sops:hover {
    box-shadow: 0 16px 40px rgba(16, 185, 129, 0.35);
}

/* ── AI variant (violet) ── */
.scta-ai .scta-glow {
    background: radial-gradient(ellipse, #8b5cf6 0%, #7c3aed 50%, transparent 80%);
}

.scta-highlight--ai {
    color: #c4b5fd;
}

.scta-primary--ai {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.scta-primary--ai:hover {
    box-shadow: 0 16px 40px rgba(139, 92, 246, 0.35);
}

/* ── Automation variant (amber) ── */
.scta-auto .scta-glow {
    background: radial-gradient(ellipse, #f59e0b 0%, #d97706 50%, transparent 80%);
}

.scta-highlight--auto {
    color: #fcd34d;
}

.scta-primary--auto {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.scta-primary--auto:hover {
    box-shadow: 0 16px 40px rgba(245, 158, 11, 0.35);
}

/* ── Onboarding variant (teal) ── */
.scta-onboard .scta-glow {
    background: radial-gradient(ellipse, #14b8a6 0%, #0d9488 50%, transparent 80%);
}

.scta-highlight--onboard {
    color: #5eead4;
}

.scta-primary--onboard {
    background: linear-gradient(135deg, #14b8a6, #0d9488);
}

.scta-primary--onboard:hover {
    box-shadow: 0 16px 40px rgba(20, 184, 166, 0.35);
}

/* ── IT variant (blue) ── */
.scta-it .scta-glow {
    background: radial-gradient(ellipse, #3b82f6 0%, #2563eb 50%, transparent 80%);
}

.scta-highlight--it {
    color: #93c5fd;
}

.scta-primary--it {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.scta-primary--it:hover {
    box-shadow: 0 16px 40px rgba(59, 130, 246, 0.35);
}

/* ── Training variant (rose) ── */
.scta-train .scta-glow {
    background: radial-gradient(ellipse, #ec4899 0%, #db2777 50%, transparent 80%);
}

.scta-highlight--train {
    color: #f9a8d4;
}

.scta-primary--train {
    background: linear-gradient(135deg, #ec4899, #db2777);
}

.scta-primary--train:hover {
    box-shadow: 0 16px 40px rgba(236, 72, 153, 0.35);
}

/* Responsive CTA */
@media (max-width: 768px) {
    .scta-content {
        padding: 36px 24px;
    }

    .scta-title {
        font-size: 1.4rem;
    }

    .scta-stats {
        flex-direction: column;
        gap: 12px;
    }

    .scta-stat-sep {
        width: 40%;
        height: 1px;
    }

    .scta-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .scta-primary {
        width: 100%;
        justify-content: center;
    }
}

/* ══════ IT / SOPORTE SECTION ══════ */
.xf-section--it {
    background: linear-gradient(180deg, #eff6ff 0%, #e0f2fe 50%, #f0f9ff 100%);
}

.xf-section--it .xf-eyebrow {
    background: rgba(59, 130, 246, 0.08);
    color: #2563eb;
    border-color: rgba(59, 130, 246, 0.15);
}

.xf-accent--it {
    background: linear-gradient(135deg, #2563eb, #3b82f6, #06b6d4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.it-stats-split {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 56px auto 60px;
    max-width: 960px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    border: 1px solid rgba(59, 130, 246, 0.1);
    padding: 48px 32px;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.06);
}

.it-stat-block {
    flex: 1;
    text-align: center;
    padding: 0 24px;
}

.it-stat-big {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.it-stat-num {
    font-size: 3.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    letter-spacing: -0.03em;
}

.it-stat-desc {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.5;
}

.it-stat-sub {
    margin-top: 12px;
    font-size: 0.78rem;
    color: #94a3b8;
    font-style: italic;
}

.it-stat-divider {
    width: 1px;
    height: 80px;
    background: linear-gradient(180deg, transparent, rgba(59, 130, 246, 0.2), transparent);
    flex-shrink: 0;
}

.it-features .xf-card:hover {
    border-color: rgba(59, 130, 246, 0.2);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.1);
}

.xf-callout--it {
    border-left: 4px solid #3b82f6;
    background: rgba(59, 130, 246, 0.04);
}

/* Responsive IT */
@media (max-width: 768px) {
    .it-stats-split {
        flex-direction: column;
        gap: 32px;
        padding: 32px 24px;
    }

    .it-stat-divider {
        width: 60%;
        height: 1px;
    }

    .it-stat-num {
        font-size: 2.4rem;
    }
}

/* ══════ TRAINING / FORMACIÓN SECTION ══════ */
.xf-section--train {
    background: linear-gradient(180deg, #fdf2f8 0%, #fce7f3 50%, #fff1f2 100%);
}

.xf-section--train .xf-eyebrow {
    background: rgba(236, 72, 153, 0.08);
    color: #db2777;
    border-color: rgba(236, 72, 153, 0.15);
}

.xf-accent--train {
    background: linear-gradient(135deg, #db2777, #ec4899, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Showcase Cards */
.tr-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin: 56px 0 48px;
}

.tr-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px 32px;
    border: 1px solid rgba(236, 72, 153, 0.08);
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.tr-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    border-radius: 0 4px 4px 0;
    transition: width 0.3s ease;
}

.tr-card--1::before {
    background: linear-gradient(180deg, #ec4899, #f472b6);
}

.tr-card--2::before {
    background: linear-gradient(180deg, #a855f7, #c084fc);
}

.tr-card--3::before {
    background: linear-gradient(180deg, #f59e0b, #fbbf24);
}

.tr-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(236, 72, 153, 0.12);
    border-color: rgba(236, 72, 153, 0.15);
}

.tr-card:hover::before {
    width: 6px;
}

.tr-card-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 20px;
}

.tr-card--1 .tr-card-badge {
    background: rgba(236, 72, 153, 0.08);
    color: #db2777;
}

.tr-card--2 .tr-card-badge {
    background: rgba(168, 85, 247, 0.08);
    color: #9333ea;
}

.tr-card--3 .tr-card-badge {
    background: rgba(245, 158, 11, 0.08);
    color: #d97706;
}

.tr-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.tr-card--1 .tr-card-icon {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(244, 114, 182, 0.15));
    color: #ec4899;
}

.tr-card--2 .tr-card-icon {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(192, 132, 252, 0.15));
    color: #a855f7;
}

.tr-card--3 .tr-card-icon {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(251, 191, 36, 0.15));
    color: #f59e0b;
}

.tr-card-icon svg {
    width: 26px;
    height: 26px;
}

.tr-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
}

.tr-card p {
    font-size: 0.92rem;
    color: #64748b;
    line-height: 1.65;
}

/* Training Metrics */
.tr-metrics {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 0 auto 56px;
    max-width: 900px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    border: 1px solid rgba(236, 72, 153, 0.08);
    padding: 36px 28px;
    box-shadow: 0 6px 24px rgba(236, 72, 153, 0.05);
}

.tr-metric {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 24px;
}

.tr-metric-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.08), rgba(168, 85, 247, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #db2777;
}

.tr-metric-icon svg {
    width: 22px;
    height: 22px;
}

.tr-metric-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tr-metric-text strong {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
}

.tr-metric-text span {
    font-size: 0.8rem;
    color: #94a3b8;
}

.tr-metric-sep {
    width: 1px;
    height: 48px;
    background: linear-gradient(180deg, transparent, rgba(236, 72, 153, 0.15), transparent);
    flex-shrink: 0;
}

/* Use Cases Grid */
.tr-uses {
    text-align: center;
    margin-bottom: 56px;
}

.tr-uses-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 24px;
}

.tr-uses-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.tr-use {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(236, 72, 153, 0.1);
    border-radius: 100px;
    padding: 10px 22px;
    font-size: 0.9rem;
    color: #475569;
    font-weight: 500;
    transition: all 0.25s ease;
}

.tr-use:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(236, 72, 153, 0.2);
    box-shadow: 0 4px 16px rgba(236, 72, 153, 0.08);
    transform: translateY(-2px);
}

.tr-use-emoji {
    font-size: 1.2rem;
}

.xf-callout--train {
    border-left: 4px solid #ec4899;
    background: rgba(236, 72, 153, 0.04);
}

/* ── Marketing variant (magenta-violet) ── */
.xf-section--mktg .xf-eyebrow {
    background: rgba(168, 85, 247, 0.08);
    color: #7c3aed;
    border-color: rgba(168, 85, 247, 0.15);
}

.xf-accent--mktg {
    background: linear-gradient(135deg, #7c3aed, #a855f7, #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.xf-callout--mktg {
    border-left: 4px solid #a855f7;
    background: rgba(168, 85, 247, 0.04);
}

.scta-mktg .scta-glow {
    background: radial-gradient(ellipse, #a855f7 0%, #7c3aed 50%, transparent 80%);
}

.scta-highlight--mktg {
    color: #d8b4fe;
}

.scta-primary--mktg {
    background: linear-gradient(135deg, #a855f7, #7c3aed);
}

.scta-primary--mktg:hover {
    box-shadow: 0 16px 40px rgba(168, 85, 247, 0.35);
}

/* Responsive Training */
@media (max-width: 900px) {
    .tr-showcase {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tr-metrics {
        flex-direction: column;
        gap: 24px;
        padding: 28px 24px;
    }

    .tr-metric-sep {
        width: 60%;
        height: 1px;
    }
}

/* ══════ FOOTER: Made with ❤️ ══════ */
.ft-made-with {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
    letter-spacing: 0.01em;
    flex-wrap: wrap;
    justify-content: center;
}

.ft-heart {
    width: 14px;
    height: 14px;
    color: #ef4444;
    animation: heartBeat 1.5s ease-in-out infinite;
    vertical-align: middle;
}

@keyframes heartBeat {

    0%,
    100% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.15);
    }

    50% {
        transform: scale(1);
    }

    75% {
        transform: scale(1.1);
    }
}

.ft-flag {
    vertical-align: middle;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.ft-sep {
    color: rgba(255, 255, 255, 0.25);
    margin: 0 2px;
}

/* --- Horizontal Separator for KB Section --- */
.kb-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 900px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.25), rgba(56, 139, 253, 0.25), transparent);
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .xf-grid--2x2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .xf-grid--3col {
        grid-template-columns: repeat(2, 1fr);
    }

    .xf-split {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .xf-split-visual {
        order: -1;
    }
}

@media (max-width: 600px) {
    .xf-section {
        padding: 80px 0;
    }

    .xf-grid--2x2,
    .xf-grid--3col {
        grid-template-columns: 1fr;
    }

    .xf-benefits-strip {
        flex-direction: column;
        gap: 24px;
    }

    .xf-benefit-divider {
        width: 48px;
        height: 1px;
    }

    .xf-callout {
        flex-direction: column;
        text-align: center;
    }

    .xf-neural {
        transform: scale(0.85);
    }
}

/* CTA Section */
/* ── Final CTA ── */
.final-cta {
    position: relative;
    text-align: center;
    padding: 100px 24px 90px;
    background: linear-gradient(175deg, #eef2ff 0%, #f0f4ff 50%, #faf5ff 100%);
    overflow: hidden;
}

.final-cta-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    opacity: 0.25;
}

.final-cta-orb-1 {
    width: 500px;
    height: 500px;
    top: -120px;
    left: -80px;
    background: radial-gradient(circle, rgba(0, 122, 255, 0.35), transparent 70%);
    animation: floatOrb1 14s ease-in-out infinite;
}

.final-cta-orb-2 {
    width: 400px;
    height: 400px;
    bottom: -100px;
    right: -60px;
    background: radial-gradient(circle, rgba(175, 82, 222, 0.3), transparent 70%);
    animation: floatOrb2 12s ease-in-out infinite;
}

@keyframes floatOrb1 {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(40px, 30px);
    }
}

@keyframes floatOrb2 {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-30px, -25px);
    }
}

.final-cta-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin: 0 auto;
}

.final-cta-eyebrow {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 100px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.15);
    color: #6366f1;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 28px;
}

.final-cta-headline {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 800;
    color: #1d1d1f;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.final-cta-headline .gradient-text {
    background: linear-gradient(135deg, #4facfe, #7c6fff, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.final-cta-sub {
    font-size: 1.1rem;
    color: #6e6e73;
    line-height: 1.65;
    margin-bottom: 36px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.final-cta-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.final-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    border-radius: 14px;
    background: linear-gradient(135deg, #007AFF, #5856D6, #AF52DE);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s;
    box-shadow: 0 4px 28px rgba(88, 86, 214, 0.4);
}

.final-cta-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.final-cta-primary:hover::before {
    left: 100%;
}

.final-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 36px rgba(88, 86, 214, 0.55);
}

.final-cta-primary svg {
    transition: transform 0.2s;
}

.final-cta-primary:hover svg {
    transform: translateX(4px);
}

.final-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #374151;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}

.final-cta-secondary:hover {
    background: rgba(0, 0, 0, 0.07);
    border-color: rgba(0, 0, 0, 0.18);
}

.final-cta-trust {
    font-size: 0.82rem;
    color: #9ca3af;
    letter-spacing: 0.01em;
}

/* Site Footer */



/* ======== REGULATIONS & COMPLIANCE SECTION ======== */
.reg-section {
    padding: 120px 0;
    background: linear-gradient(180deg, #f6f8fc 0%, #eef1f8 50%, #f6f8fc 100%);
    position: relative;
    overflow: hidden;
}

.reg-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse 600px 400px at 20% 30%, rgba(229, 62, 62, 0.04) 0%, transparent 70%),
        radial-gradient(ellipse 600px 400px at 80% 70%, rgba(56, 139, 253, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

/* Header */
.reg-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 64px;
    position: relative;
}

.reg-shield-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.reg-shield {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(229, 62, 62, 0.08), rgba(56, 139, 253, 0.08));
    border: 1px solid rgba(56, 139, 253, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #388bfd;
    position: relative;
}

.reg-shield svg {
    width: 32px;
    height: 32px;
}

.reg-shield-pulse {
    position: absolute;
    inset: -6px;
    border-radius: 24px;
    border: 2px solid rgba(56, 139, 253, 0.2);
    animation: reg-pulse 3s ease-in-out infinite;
}

.reg-shield-pulse--2 {
    animation-delay: 1.5s;
}

@keyframes reg-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.2);
        opacity: 0;
    }
}

.reg-eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #e53e3e;
    margin-bottom: 16px;
    padding: 6px 18px;
    border-radius: 99px;
    background: rgba(229, 62, 62, 0.06);
    border: 1px solid rgba(229, 62, 62, 0.12);
}

.reg-headline {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--text-dark, #1f2328);
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin: 0 0 20px;
}

.reg-accent {
    background: linear-gradient(135deg, #e53e3e, #388bfd, #a371f7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.reg-desc {
    font-size: 1.05rem;
    color: var(--text-muted, #656d76);
    line-height: 1.7;
    margin: 0;
}

/* Certification Cards */
.reg-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 56px;
}

.reg-card {
    padding: 32px 28px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(.16, 1, .3, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
}

.reg-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--reg-c, #388bfd), color-mix(in srgb, var(--reg-c, #388bfd) 40%, transparent));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.reg-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
}

.reg-card:hover::before {
    opacity: 1;
}

/* Badge */
.reg-card-badge {
    display: inline-flex;
    margin-bottom: 18px;
}

.reg-card-badge span {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--reg-c);
    background: color-mix(in srgb, var(--reg-c) 8%, transparent);
    border: 1px solid color-mix(in srgb, var(--reg-c) 18%, transparent);
}

.reg-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark, #1f2328);
    margin: 0 0 10px;
}

.reg-card p {
    font-size: 0.88rem;
    color: var(--text-muted, #656d76);
    line-height: 1.6;
    margin: 0 0 16px;
}

.reg-card p strong {
    color: var(--text-dark, #1f2328);
    font-weight: 600;
}

/* Tags */
.reg-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.reg-card-tags span {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted, #656d76);
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Benefits Strip */
.reg-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.reg-benefit {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 24px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.reg-benefit:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.reg-benefit-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--reg-bi) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--reg-bi) 20%, transparent);
    color: var(--reg-bi);
}

.reg-benefit-icon svg {
    width: 22px;
    height: 22px;
}

.reg-benefit strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark, #1f2328);
    margin-bottom: 4px;
}

.reg-benefit p {
    font-size: 0.82rem;
    color: var(--text-muted, #656d76);
    line-height: 1.5;
    margin: 0;
}

/* Regulations Responsive */
@media (max-width: 900px) {
    .reg-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .reg-benefits {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .reg-section {
        padding: 80px 0;
    }

    .reg-grid {
        grid-template-columns: 1fr;
    }
}


/* ======== ACCESSIBILITY SECTION ======== */
.a11y-section {
    padding: 120px 0;
    background: linear-gradient(180deg, #f0fdf4 0%, #ecfdf5 50%, #f0fdf4 100%);
    position: relative;
    overflow: hidden;
}

.a11y-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(16, 185, 129, 0.06) 0%, rgba(56, 139, 253, 0.04) 40%, transparent 70%);
    pointer-events: none;
}

/* Header */
.a11y-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 64px;
    position: relative;
}

.a11y-badge-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.a11y-badge {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(56, 139, 253, 0.15), rgba(163, 113, 247, 0.15));
    border: 1px solid rgba(56, 139, 253, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #388bfd;
    position: relative;
}

.a11y-badge svg {
    width: 30px;
    height: 30px;
}

.a11y-badge-pulse {
    position: absolute;
    inset: -6px;
    border-radius: 24px;
    border: 2px solid rgba(56, 139, 253, 0.3);
    animation: a11y-pulse 2.5s ease-in-out infinite;
}

@keyframes a11y-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.15);
        opacity: 0;
    }
}

.a11y-eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #059669;
    margin-bottom: 16px;
    padding: 6px 18px;
    border-radius: 99px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.18);
}

.a11y-headline {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: #1d1d1f;
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin: 0 0 20px;
}

.a11y-accent {
    background: linear-gradient(135deg, #10b981, #059669, #047857);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.a11y-desc {
    font-size: 1.05rem;
    color: #6e6e73;
    line-height: 1.7;
    margin: 0;
}

/* Feature Grid */
.a11y-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 56px;
}

.a11y-card {
    padding: 32px 28px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(.16, 1, .3, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.a11y-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--a11y-ic, #10b981), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.a11y-card:hover {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.a11y-card:hover::before {
    opacity: 1;
}

.a11y-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background: color-mix(in srgb, var(--a11y-ic) 10%, #fff);
    border: 1px solid color-mix(in srgb, var(--a11y-ic) 18%, transparent);
    color: var(--a11y-ic);
    transition: all 0.3s ease;
}

.a11y-card:hover .a11y-card-icon {
    transform: scale(1.08);
    background: color-mix(in srgb, var(--a11y-ic) 15%, #fff);
}

.a11y-card-icon svg {
    width: 26px;
    height: 26px;
}

.a11y-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0 0 10px;
}

.a11y-card p {
    font-size: 0.88rem;
    color: #6e6e73;
    line-height: 1.6;
    margin: 0;
}

.a11y-card p strong {
    color: #1d1d1f;
}

/* Compliance Badges Bar */
.a11y-badges-bar {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.a11y-compliance-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.18);
    color: #10b981;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
}

.a11y-compliance-badge:hover {
    background: rgba(16, 185, 129, 0.14);
    border-color: rgba(16, 185, 129, 0.3);
    transform: translateY(-2px);
}

.a11y-compliance-badge svg {
    width: 18px;
    height: 18px;
}

/* Accessibility Responsive */
@media (max-width: 900px) {
    .a11y-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .a11y-section {
        padding: 80px 0;
    }

    .a11y-grid {
        grid-template-columns: 1fr;
    }

    .a11y-badges-bar {
        gap: 10px;
    }

    .a11y-compliance-badge {
        padding: 8px 14px;
        font-size: 0.75rem;
    }
}


/* ======== TRANSLATIONS SECTION ======== */
.trl-section {
    padding: 120px 0;
    background: var(--bg-light);
    overflow: hidden;
}

.trl-layout {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 64px;
    align-items: center;
}

/* Globe visual */
.trl-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.trl-globe-wrap {
    position: relative;
    width: 320px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trl-globe {
    width: 100%;
    height: 100%;
    animation: trl-spin 20s linear infinite;
}

@keyframes trl-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.trl-orbit-dot {
    transform-origin: 100px 100px;
    animation: trl-orbit 6s linear infinite;
}

@keyframes trl-orbit {
    from {
        transform: rotate(0deg) translateY(0);
    }

    to {
        transform: rotate(360deg) translateY(0);
    }
}

/* Floating language badges */
.trl-lang-badge {
    position: absolute;
    left: var(--trl-x);
    top: var(--trl-y);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--trl-c);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid color-mix(in srgb, var(--trl-c) 20%, transparent);
    box-shadow: 0 2px 12px color-mix(in srgb, var(--trl-c) 15%, transparent),
        0 0 0 1px rgba(0, 0, 0, 0.03);
    animation: trl-float 3s ease-in-out infinite, trl-fadein 0.8s var(--trl-d) both;
    z-index: 2;
}

@keyframes trl-float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes trl-fadein {
    from {
        opacity: 0;
        transform: scale(0.7);
    }

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

/* Content side */
.trl-content {
    max-width: 560px;
}

.trl-eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #388bfd;
    margin-bottom: 16px;
    padding: 6px 16px;
    border-radius: 99px;
    background: rgba(56, 139, 253, 0.08);
    border: 1px solid rgba(56, 139, 253, 0.15);
}

.trl-headline {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    color: var(--text-dark, #1f2328);
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin: 0 0 20px;
}

.trl-accent {
    background: linear-gradient(135deg, #388bfd, #a371f7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.trl-desc {
    font-size: 1.05rem;
    color: var(--text-muted, #656d76);
    line-height: 1.7;
    margin: 0 0 36px;
}

/* Feature rows */
.trl-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.trl-feat {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.trl-feat-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--trl-fc) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--trl-fc) 20%, transparent);
    color: var(--trl-fc);
}

.trl-feat-icon svg {
    width: 22px;
    height: 22px;
}

.trl-feat h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark, #1f2328);
    margin: 0 0 4px;
}

.trl-feat p {
    font-size: 0.88rem;
    color: var(--text-muted, #656d76);
    line-height: 1.55;
    margin: 0;
}

/* Translations Responsive */
@media (max-width: 900px) {
    .trl-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .trl-visual {
        order: -1;
    }

    .trl-globe-wrap {
        width: 240px;
        height: 240px;
    }

    .trl-content {
        text-align: center;
        max-width: 100%;
    }

    .trl-feat {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}


/* ======== CUSTOMIZATION SECTION ======== */
.cust-section {
    padding: 120px 0;
    background: linear-gradient(180deg, #f8f9ff 0%, #f0f2ff 100%);
    overflow: hidden;
}

/* Carousel */
.cust-carousel-wrap {
    margin: 0 -40px 56px;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
}

.cust-carousel-track {
    display: flex;
    gap: 28px;
    animation: cust-scroll 30s linear infinite;
    width: max-content;
}

.cust-carousel-track:hover {
    animation-play-state: paused;
}

@keyframes cust-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 14px));
    }
}

/* Document card — A4-like portrait proportions */
.cust-doc {
    width: 200px;
    min-width: 200px;
    height: 280px;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(.16, 1, .3, 1), box-shadow 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
}

/* Background layer — template design fills entire card */
.cust-doc-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: 16px;
    overflow: hidden;
}

.cust-doc-bg svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.cust-doc:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* Doc header */
.cust-doc-header {
    padding: 16px 16px 12px;
    position: relative;
    z-index: 1;
}

.cust-doc-logo-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.cust-doc-logo {
    width: 18px;
    height: 18px;
    border-radius: 3px;
}

.cust-doc-title-bar {
    height: 7px;
    border-radius: 4px;
    width: 65%;
}

/* Doc body */
.cust-doc-body {
    padding: 0 16px 16px;
    position: relative;
    z-index: 1;
}

.cust-doc-lines {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.cust-doc-lines span {
    height: 5px;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.06);
}

.cust-doc-step {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--cust-step-color, #888) 6%, transparent);
    border: 1px solid color-mix(in srgb, var(--cust-step-color, #888) 12%, transparent);
}

.cust-doc-step+.cust-doc-step {
    margin-top: 6px;
}

.cust-doc-step-num {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border-radius: 50%;
    background: var(--cust-step-color);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cust-doc-step-lines {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    padding-top: 4px;
}

.cust-doc-step-lines span {
    height: 4px;
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.07);
}

/* Features grid */
.cust-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.cust-feat-card {
    padding: 28px 24px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.06);
    text-align: center;
    transition: all 0.35s cubic-bezier(.16, 1, .3, 1);
    backdrop-filter: blur(8px);
}

.cust-feat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.1);
}

.cust-feat-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    background: color-mix(in srgb, var(--cust-ic) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--cust-ic) 18%, transparent);
    color: var(--cust-ic);
    transition: all 0.3s ease;
}

.cust-feat-card:hover .cust-feat-icon {
    background: color-mix(in srgb, var(--cust-ic) 15%, transparent);
    transform: scale(1.08);
}

.cust-feat-icon svg {
    width: 28px;
    height: 28px;
}

.cust-feat-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark, #1f2328);
    margin: 0 0 8px;
}

.cust-feat-card p {
    font-size: 0.85rem;
    color: var(--text-muted, #656d76);
    line-height: 1.55;
    margin: 0;
}

/* Customization Responsive */
@media (max-width: 900px) {
    .cust-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .cust-section {
        padding: 80px 0;
    }

    .cust-features {
        grid-template-columns: 1fr;
    }

    .cust-doc {
        width: 220px;
        min-width: 220px;
    }
}


/* ======== PREMIUM FOOTER ======== */
.ft {
    background: linear-gradient(180deg, #0c0f16 0%, #080a0f 100%);
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
}

/* Gradient accent line at top */
.ft-accent {
    height: 3px;
    background: linear-gradient(90deg, #388bfd 0%, #a371f7 35%, #f778ba 65%, #ff9500 100%);
}

/* ── CTA Band ── */
.ft-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 48px 40px;
    margin: 56px 0 64px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    position: relative;
    overflow: hidden;
}

.ft-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(56, 139, 253, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(163, 113, 247, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.ft-cta-text {
    position: relative;
    z-index: 1;
}

.ft-cta-text h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}

.ft-cta-text p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    line-height: 1.5;
}

.ft-cta-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.ft-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(.16, 1, .3, 1);
    white-space: nowrap;
}

.ft-btn svg {
    width: 18px;
    height: 18px;
}

.ft-btn--primary {
    background: linear-gradient(135deg, #388bfd 0%, #6366f1 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(56, 139, 253, 0.3);
}

.ft-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(56, 139, 253, 0.45);
}

.ft-btn--ghost {
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
}

.ft-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
    transform: translateY(-2px);
}

/* ── Main Grid ── */
.ft-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 48px;
    padding-bottom: 64px;
}

/* ── Brand Column ── */
.ft-brand {
    padding-right: 24px;
}

.ft-logo {
    display: inline-block;
    color: rgba(255, 255, 255, 0.75);
    transition: color 0.3s ease;
}

.ft-logo svg {
    height: 28px;
    width: auto;
}

.ft-logo:hover {
    color: #fff;
}

.ft-tagline {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.65;
    margin: 20px 0 28px;
    max-width: 260px;
}

/* Social Links */
.ft-socials {
    display: flex;
    gap: 12px;
}

.ft-social {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.45);
    transition: all 0.3s cubic-bezier(.16, 1, .3, 1);
}

.ft-social svg {
    width: 18px;
    height: 18px;
}

.ft-social:hover {
    border-color: rgba(56, 139, 253, 0.5);
    background: rgba(56, 139, 253, 0.1);
    color: #388bfd;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(56, 139, 253, 0.15);
}

/* ── Navigation Columns ── */
.ft-col-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 20px;
}

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

.ft-links li {
    margin-bottom: 12px;
}

.ft-links a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    transition: color 0.25s ease, padding-left 0.25s ease;
    display: inline-block;
}

.ft-links a:hover {
    color: #388bfd;
    padding-left: 4px;
}

/* Contact links with icons */
.ft-links--contact li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ft-links--contact svg {
    width: 16px;
    height: 16px;
    color: rgba(255, 255, 255, 0.25);
    flex-shrink: 0;
}

.ft-links--contact li:hover svg {
    color: #388bfd;
}

/* ── Bottom Bar ── */
.ft-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ft-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
}

.ft-copy {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.3);
    margin: 0;
}

.ft-bottom-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ft-bottom-links a {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
    transition: color 0.2s ease;
}

.ft-bottom-links a:hover {
    color: rgba(255, 255, 255, 0.7);
}

.ft-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}

/* ── Footer Responsive ── */
@media (max-width:960px) {
    .ft-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px 32px;
    }

    .ft-brand {
        grid-column: 1 / -1;
        padding-right: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .ft-tagline {
        max-width: 380px;
    }

    .ft-socials {
        justify-content: center;
    }

    .ft-cta {
        flex-direction: column;
        text-align: center;
        padding: 40px 28px;
    }

    .ft-cta-actions {
        justify-content: center;
    }
}

@media (max-width:600px) {
    .ft-grid {
        grid-template-columns: 1fr;
        gap: 36px;
        text-align: center;
    }

    .ft-col-title {
        margin-bottom: 14px;
    }

    .ft-links a:hover {
        padding-left: 0;
    }

    .ft-links--contact li {
        justify-content: center;
    }

    .ft-cta {
        margin: 40px 0 48px;
        padding: 32px 20px;
    }

    .ft-cta-text h3 {
        font-size: 1.3rem;
    }

    .ft-cta-actions {
        flex-direction: column;
        width: 100%;
    }

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

    .ft-bottom-inner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}


/* Downloads Page */
/* ══════════════════════════════════════════
   Downloads Page — Premium Light Theme
   ══════════════════════════════════════════ */

/* ── Hero ── */
.dl-hero {
    position: relative;
    margin-top: -80px;
    padding: 140px 0 40px;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(to bottom, #f0f4ff, #fff);
}

.dl-hero-glow {
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(56, 139, 253, 0.12), transparent 70%);
    pointer-events: none;
}

.dl-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary-blue);
    background: rgba(56, 139, 253, 0.08);
    border: 1px solid rgba(56, 139, 253, 0.15);
    margin-bottom: 10px;
}

.dl-changelog-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 0.78rem;
    font-weight: 500;
    color: #94a3b8;
    text-decoration: none;
    margin-bottom: 24px;
    transition: color 0.25s ease;
}

.dl-changelog-link svg {
    flex-shrink: 0;
}

.dl-changelog-link:hover {
    color: var(--primary-blue);
}

.dl-title {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 800;
    color: #1e293b;
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.dl-title-logo {
    height: clamp(2rem, 4.2vw, 3.2rem);
    width: auto;
    display: inline-block;
    vertical-align: baseline;
    position: relative;
    top: 2px;
}

/* Linux card icon — show full-color Tux */
.dl-card-icon--linux {
    background: transparent !important;
}

.dl-card-icon--linux svg {
    width: 42px;
    height: 42px;
}

.dl-card:hover .dl-card-icon--linux {
    background: transparent !important;
    color: inherit;
}

.dl-subtitle {
    font-size: 1.15rem;
    color: #64748b;
    line-height: 1.6;
    max-width: 480px;
    margin: 0 auto;
}

/* ── Download Cards ── */
.dl-cards-section {
    padding: 40px 0 80px;
    background: #fff;
}

.dl-primary {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 720px;
    margin: 0 auto;
}

.dl-hero-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 28px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.dl-hero-card:hover {
    border-color: rgba(56, 139, 253, 0.35);
    box-shadow: 0 12px 36px rgba(56, 139, 253, 0.1), 0 4px 16px rgba(0, 0, 0, 0.04);
    transform: translateY(-3px);
}

.dl-hero-card-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.dl-hero-card-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.dl-icon-win {
    background: linear-gradient(145deg, #f0f4ff, #e0e8ff);
    color: #388bfd;
}

.dl-icon-mac {
    background: linear-gradient(145deg, #f5f3ff, #ede9fe);
    color: #7c3aed;
}

.dl-hero-card:hover .dl-icon-win {
    background: linear-gradient(145deg, #388bfd, #6366f1);
    color: #fff;
}

.dl-hero-card:hover .dl-icon-mac {
    background: linear-gradient(145deg, #7c3aed, #6366f1);
    color: #fff;
}

.dl-hero-card-os {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dl-hero-badge {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 3px 8px;
    border-radius: 50px;
    text-transform: uppercase;
}

.dl-badge-release {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #15803d;
}

.dl-badge-beta {
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
    color: #7c3aed;
}

.dl-badge-soon {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #b45309;
}

.dl-hero-card-detail {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 2px;
}

.dl-hero-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #388bfd, #6366f1);
    box-shadow: 0 4px 14px rgba(56, 139, 253, 0.25);
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.dl-hero-card:hover .dl-hero-card-btn {
    box-shadow: 0 6px 20px rgba(56, 139, 253, 0.4);
    filter: brightness(1.06);
}

/* Registration note */
.dl-register-note {
    max-width: 720px;
    margin: 32px auto 0;
    text-align: center;
}

.dl-register-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.dl-register-main svg {
    flex-shrink: 0;
    color: #388bfd;
}

.dl-register-footnote {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: #15803d;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 50px;
    padding: 6px 16px;
    font-weight: 500;
}

/* Secondary cards */
.dl-secondary {
    display: flex;
    gap: 16px;
    max-width: 720px;
    margin: 28px auto 0;
}

.dl-sec-card {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    transition: all 0.25s ease;
}

.dl-sec-card--link {
    cursor: pointer;
}

.dl-sec-card--link:hover {
    border-color: rgba(56, 139, 253, 0.3);
    background: #fff;
}

.dl-sec-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dl-sec-icon {
    font-size: 1.4rem;
    color: #64748b;
}

.dl-sec-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.dl-sec-info strong {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1e293b;
}

.dl-sec-info span {
    font-size: 0.75rem;
    color: #94a3b8;
}

.dl-sec-badge {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 3px 8px;
    border-radius: 50px;
    text-transform: uppercase;
}

.dl-sec-action {
    font-size: 0.82rem;
    font-weight: 600;
    color: #388bfd;
    white-space: nowrap;
}




/* ── Trust Strip ── */
.dl-trust {
    padding: 48px 0 60px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.dl-trust-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.dl-trust-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.dl-trust-item svg {
    flex-shrink: 0;
    color: #388bfd;
    margin-top: 2px;
}

.dl-trust-item div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dl-trust-item strong {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
}

.dl-trust-item span {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.4;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .dl-cards {
        grid-template-columns: 1fr 1fr;
        max-width: 600px;
    }

    .dl-trust-items {
        grid-template-columns: 1fr 1fr;
    }

    .dl-hero-card {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 20px;
        gap: 16px;
    }

    .dl-hero-card-left {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .dl-hero-card-os {
        justify-content: center;
    }

    .dl-hero-card-btn {
        justify-content: center;
        width: 100%;
        padding: 12px 20px;
    }

    .dl-secondary {
        flex-direction: column;
    }

    .dl-sec-card {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 16px;
    }

    .dl-sec-left {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .dl-sec-info {
        align-items: center;
    }

    .dl-register-main {
        flex-direction: column;
        gap: 6px;
    }

    .dl-register-footnote {
        font-size: 0.72rem;
        padding: 6px 12px;
    }
}

@media (max-width: 600px) {
    .dl-hero {
        padding: 110px 0 32px;
    }

    .dl-title {
        font-size: 1.6rem;
    }

    .dl-title-logo {
        height: 22px;
    }

    .dl-subtitle {
        font-size: 0.95rem;
    }

    .dl-eyebrow {
        font-size: 0.78rem;
    }

    .dl-cards-section {
        padding: 24px 0 48px;
    }

    .dl-primary {
        gap: 12px;
    }

    .dl-hero-card {
        padding: 16px;
    }

    .dl-hero-card-icon {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }

    .dl-hero-card-os {
        font-size: 1rem;
    }

    .dl-hero-card-detail {
        font-size: 0.72rem;
    }

    .dl-hero-card-btn {
        font-size: 0.82rem;
        padding: 10px 16px;
    }

    .dl-register-note {
        margin-top: 24px;
    }

    .dl-register-main {
        font-size: 0.82rem;
    }

    .dl-secondary {
        margin-top: 20px;
    }

    .dl-trust {
        padding: 32px 0 40px;
    }

    .dl-trust-items {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .dl-cards {
        grid-template-columns: 1fr;
        max-width: 380px;
    }
}


/* Contact Page */
.contact-section {
    padding-top: 20px;
    padding-bottom: 80px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    margin-top: 60px;
}

.contact-info h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 12px;
}

.contact-info p {
    color: var(--text-dim);
    margin-bottom: 32px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.info-item .material-icons-outlined {
    font-size: 28px;
    color: var(--primary-blue);
    margin-top: 4px;
}

.info-item strong {
    display: block;
    font-weight: 600;
    color: var(--text-light);
}

.info-item a,
.info-item span {
    color: var(--text-dim);
    text-decoration: none;
}

.info-item a:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

.contact-form-container {
    background: linear-gradient(145deg, var(--surface-dark), #10141a);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.contact-form-container h3 {
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 32px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-field {
    position: relative;
}

.form-field label {
    position: absolute;
    top: 14px;
    left: 16px;
    color: var(--text-dim);
    background-color: var(--surface-dark);
    padding: 0 4px;
    transition: all 0.2s ease-out;
    pointer-events: none;
}

.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    background-color: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 14px 16px;
    color: var(--text-light);
    font-size: 1rem;
    box-sizing: border-box;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(56, 139, 253, 0.2);
}

.form-field input:focus+label,
.form-field input:not(:placeholder-shown)+label,
.form-field textarea:focus+label,
.form-field textarea:not(:placeholder-shown)+label,
.form-field select:not(:has(option[value="-None-"]:checked))+label {
    top: -10px;
    left: 12px;
    font-size: 0.8rem;
    color: var(--primary-blue);
    background-color: #1a1f27;
    /* Match the card background more closely */
}

.form-field textarea {
    min-height: 120px;
    resize: vertical;
}

.form-field select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%238B949E'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.form-field-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-field-checkbox label {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.form-field-checkbox a {
    color: var(--primary-blue);
    text-decoration: none;
}

.form-field-checkbox a:hover {
    text-decoration: underline;
}

.form-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 16px;
}

/* FAQ Page */
.faq-section {
    padding-top: 180px;
    padding-bottom: 80px;
}

.faq-search-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto 60px;
}

#faq-search {
    width: 100%;
    padding: 16px 20px 16px 50px;
    font-size: 1.1rem;
    border: 1px solid var(--border-color);
    border-radius: 99px;
    background-color: var(--surface-dark);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: var(--text-light);
    box-sizing: border-box;
}

#faq-search:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(56, 139, 253, 0.2);
}

.faq-search-container .material-icons-outlined {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
}

.faq-content {
    max-width: 800px;
    margin: 0 auto;
}

.faq-category {
    margin-bottom: 50px;
}

.faq-category h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-purple);
    border-bottom: 2px solid var(--primary-purple);
    padding-bottom: 8px;
    margin-bottom: 24px;
    text-align: left;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-question {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    padding: 20px 0;
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question .material-icons-outlined {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question .material-icons-outlined {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.faq-answer p,
.faq-answer ul {
    color: var(--text-dim);
    padding-bottom: 20px;
    margin: 0;
}

.faq-answer ul {
    padding-left: 20px;
}

/* Help Page */
.help-section {
    padding-top: 10px;
    padding-bottom: 80px;
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.help-card {
    background: linear-gradient(145deg, var(--surface-dark), #10141a);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    text-align: left;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.help-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(88, 166, 255, 0.2), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.help-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-blue);
}

.help-card:hover::before {
    opacity: 1;
}

.help-card .material-icons-outlined {
    font-size: 40px;
    color: var(--primary-blue);
    margin-bottom: 20px;
    background: -webkit-linear-gradient(45deg, var(--primary-blue), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.help-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-light);
    margin: 0 0 12px 0;
}

.help-card p {
    font-size: 1rem;
    color: var(--text-dim);
    margin: 0;
}


/* Legal Pages */
.legal-section {
    padding-top: 10px;
    padding-bottom: 80px;
}

.legal-card {
    background: linear-gradient(145deg, var(--surface-dark), #10141a);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px 50px;
}

.legal-card section {
    padding: 0;
}

.legal-card h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-light);
    text-align: left;
}

.legal-card h2 {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--primary-purple);
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary-purple);
    padding-bottom: 0.5rem;
}

.legal-card h2:first-of-type {
    margin-top: 0;
}

.legal-card p,
.legal-card ul,
.legal-card dl {
    color: var(--text-dim);
    font-size: 1.05rem;
    margin-bottom: 0.8rem;
}

.legal-card li,
.legal-card dd {
    margin-bottom: 0.4rem;
}

.legal-card a {
    color: var(--primary-blue);
    font-weight: 500;
}

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

.legal-card ul {
    list-style: disc;
    padding-left: 25px;
}

.legal-card strong,
.legal-card dt {
    color: var(--text-light);
    font-weight: 600;
}

.legal-card dl {
    margin-top: 1.5rem;
}

.legal-card dt {
    margin-top: 0.5rem;
}

.legal-card dd {
    margin-left: 0;
}


/* Responsive */
@media (max-width: 1100px) {
    .steps-container {
        flex-wrap: wrap;
        justify-content: center;
    }

    .step-card {
        flex-basis: 45%;
    }

    .step-arrow {
        display: none;
    }

    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .integ-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

    .import-cards-grid.carousel-track .import-card {
        min-width: calc(50% - 14px);
        flex: 0 0 calc(50% - 14px);
    }

    .kb-panels {
        grid-template-columns: 1fr;
    }

    .kb-features-grid {
        grid-template-columns: 1fr;
    }

    .kb-analytics-grid {
        grid-template-columns: 1fr;
    }

    .kb-header h2 {
        font-size: 2rem;
    }

    /* Apple Features responsive */
    .af-lead {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .af-lead--reverse {
        direction: ltr;
    }

    .af-trio {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .af-hero {
        padding: 80px 0 48px;
    }

    .af-block {
        padding: 48px 0;
    }

    .af-headline {
        font-size: 2.2rem;
    }

    .af-formats {
        gap: 16px;
    }

    .af-closing {
        padding: 48px 0 64px;
    }

    /* Apple Sources responsive */
    .as-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .as-card--hero {
        grid-column: span 2;
    }

    .as-hero {
        padding: 60px 0 40px;
    }

    .as-headline {
        font-size: 2rem;
    }

    .full-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    /* Industries Tabs Responsive */
    .ind-panel {
        flex-direction: column;
        padding: 28px;
        gap: 24px;
    }

    .ind-panel-icon {
        width: 72px;
        height: 72px;
    }

    .ind-panel-icon svg {
        width: 40px;
        height: 40px;
    }

    .ind-usecases {
        grid-template-columns: 1fr;
    }

    .ind-tab span {
        display: none;
    }

    .ind-tab {
        padding: 10px 14px;
    }

    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .sec-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .sec-shield-wrap {
        margin: 0 auto;
    }

    .sec-cards-grid {
        grid-template-columns: 1fr;
    }

    .sec-trust-bar {
        flex-wrap: wrap;
        gap: 20px;
    }

}

@media (max-width: 768px) {
    .help-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .integ-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .integ-card {
        padding: 24px 16px 20px;
    }

    .integ-logo {
        width: 56px;
        height: 56px;
        padding: 12px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    section {
        padding: 60px 0;
    }

    .as-grid {
        grid-template-columns: 1fr;
    }

    .as-card--hero {
        grid-column: span 1;
        flex-direction: column;
    }

    .as-card {
        padding: 28px 22px;
    }

    .final-cta {
        padding: 70px 20px 60px;
    }

    .final-cta-headline {
        font-size: 1.8rem;
    }

    .final-cta-buttons {
        flex-direction: column;
    }

    .import-cards-grid.carousel-track .import-card {
        min-width: calc(100% - 8px);
        flex: 0 0 calc(100% - 8px);
    }

    .carousel-arrow {
        width: 36px;
        height: 36px;
    }

    .carousel-arrow svg {
        width: 18px;
        height: 18px;
    }


    .step-card {
        flex-basis: 100%;
    }

    .full-features-grid {
        grid-template-columns: 1fr;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-hero {
        grid-column: span 1;
        flex-direction: column;
        text-align: center;
    }

    .bento-hero--right {
        flex-direction: column;
    }

    .bento-big-number {
        font-size: 3.5rem;
    }
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    width: calc(100% - 40px);
    max-width: 1200px;
    background: rgba(30, 32, 40, 0.72);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #e2e8f0;
    padding: 20px 24px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    z-index: 10000;
    opacity: 0;
    transform: translate(-50%, 20px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
    pointer-events: none;
}

.cookie-banner.show {
    opacity: 1;
    transform: translateX(-50%);
    pointer-events: auto;
}

.cookie-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cookie-banner p {
    margin: 0;
    color: #cbd5e1;
    font-size: 0.95rem;
}

.cookie-banner a {
    color: #93c5fd;
    text-decoration: none;
    font-weight: 500;
}

.cookie-banner a:hover {
    text-decoration: underline;
    color: #bfdbfe;
}

.cookie-banner-buttons {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
}

.cookie-banner .btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #e2e8f0;
}

.cookie-banner .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
}

.cookie-banner .btn-primary {
    background: linear-gradient(135deg, #388bfd, #6366f1);
    border: none;
    color: #fff;
}

.cookie-banner .btn-primary:hover {
    background: linear-gradient(135deg, #5da0fd, #818cf8);
}

@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .cookie-banner-buttons {
        width: 100%;
        justify-content: flex-end;
    }
}

/* ======== COST SAVINGS SECTION ======== */
.cost-section {
    background: #0f1117;
    padding: 100px 0 80px;
    overflow: hidden;
}

.cost-section .af-headline {
    color: #ffffff;
    text-align: center;
}

.cost-headline-sm {
    font-size: clamp(1.8rem, 4vw, 2.6rem) !important;
}

.cost-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 560px;
    margin: 16px auto 0;
}

.cost-header {
    margin-bottom: 48px;
}

.cost-chart-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 40px 40px 32px;
}

.cost-legend {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 32px;
}

.cost-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.cost-legend-swatch {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    flex-shrink: 0;
}

.cost-chart {
    display: flex;
    gap: 0;
    height: 360px;
}

.cost-y-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0 16px 28px 0;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 500;
    text-align: right;
    min-width: 40px;
}

.cost-bars-area {
    flex: 1;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    padding-bottom: 36px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%;
}

.cost-grid-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

.cost-bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    height: calc(100% - 36px);
}

.cost-bar-pair {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    flex: 1;
    width: 100%;
    justify-content: center;
}

.cost-bar {
    width: 40px;
    border-radius: 4px 4px 0 0;
    position: relative;
    transition: height 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    min-height: 4px;
}

.cost-bar--manual {
    background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
}

.cost-bar--xdoku {
    background: linear-gradient(180deg, #60a5fa 0%, #3b82f6 100%);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.cost-bar-label {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.65);
    white-space: nowrap;
}

.cost-bar-quarter {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 10px;
    flex-shrink: 0;
}

.cost-savings-callout {
    position: absolute;
    top: -60px;
    right: -10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cost-savings-badge {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #4ade80;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 8px;
    white-space: nowrap;
}

.cost-savings-arrow {
    width: 2px;
    height: 24px;
    background: rgba(34, 197, 94, 0.4);
    position: relative;
}

.cost-savings-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid rgba(34, 197, 94, 0.6);
}

.cost-footnote {
    max-width: 800px;
    margin: 32px auto 0;
    text-align: left;
}

.cost-footnote p {
    font-size: 0.82rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.4);
    margin: 0 0 8px;
}

.cost-sources {
    font-size: 0.78rem !important;
    color: rgba(255, 255, 255, 0.35) !important;
}

.cost-sources a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.2);
    transition: color 0.2s;
}

.cost-sources a:hover {
    color: #ffffff;
}

/* Responsive */
@media (max-width: 768px) {
    .cost-chart-wrapper {
        padding: 24px 16px 20px;
    }

    .cost-chart {
        height: 280px;
    }

    .cost-bar {
        width: 28px;
    }

    .cost-legend {
        gap: 16px;
        flex-direction: column;
        align-items: center;
    }

    .cost-bar-label {
        font-size: 0.55rem;
    }

    .cost-savings-callout {
        top: -50px;
        right: -5px;
    }

    .cost-savings-badge {
        font-size: 0.65rem;
        padding: 4px 10px;
    }
}

/* ═══════════════════════════════════════════
   API PAGE
   ═══════════════════════════════════════════ */

.api-hero {
    position: relative;
    margin-top: -80px;
    padding: 160px 0 80px;
    overflow: hidden;
    background: #0a0e1a;
    color: #fff;
}

.api-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.api-grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(56, 139, 253, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 139, 253, .06) 1px, transparent 1px);
    background-size: 60px 60px;
}

.api-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: .4;
}

.api-glow--1 {
    width: 500px;
    height: 500px;
    background: #388bfd;
    top: -150px;
    left: -100px;
}

.api-glow--2 {
    width: 400px;
    height: 400px;
    background: #a855f7;
    bottom: -100px;
    right: -50px;
}

.api-hero-inner {
    position: relative;
    text-align: center;
}

.api-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(56, 139, 253, .12);
    border: 1px solid rgba(56, 139, 253, .25);
    border-radius: 100px;
    padding: 6px 18px;
    font-size: .8rem;
    font-weight: 600;
    color: #79b8ff;
    letter-spacing: .5px;
    margin-bottom: 28px;
}

.api-pulse {
    width: 8px;
    height: 8px;
    background: #34d058;
    border-radius: 50%;
    box-shadow: 0 0 8px #34d058;
    animation: api-pulse 2s ease-in-out infinite;
}

@keyframes api-pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .5;
        transform: scale(1.3);
    }
}

.api-hero-title {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 900;
    margin: 0 0 20px;
    letter-spacing: -1px;
    line-height: 1.1;
}

.api-gradient-text {
    background: linear-gradient(135deg, #388bfd, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.api-hero-subtitle {
    font-size: 1.2rem;
    color: #8b949e;
    max-width: 600px;
    margin: 0 auto 36px;
    line-height: 1.6;
}

.api-hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-bottom: 56px;
    flex-wrap: wrap;
}

/* Buttons */
.api-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: .92rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;
    border: none;
    cursor: pointer;
}

.api-btn--primary {
    background: linear-gradient(135deg, #388bfd, #6e40c9);
    color: #fff;
    box-shadow: 0 4px 20px rgba(56, 139, 253, .3);
}

.api-btn--primary:hover {
    box-shadow: 0 6px 30px rgba(56, 139, 253, .45);
    transform: translateY(-1px);
}

.api-btn--ghost {
    background: rgba(255, 255, 255, .06);
    color: #c9d1d9;
    border: 1px solid rgba(255, 255, 255, .1);
}

.api-btn--ghost:hover {
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

.api-btn--outline {
    background: transparent;
    color: #388bfd;
    border: 1.5px solid #388bfd;
}

.api-btn--outline:hover {
    background: rgba(56, 139, 253, .08);
}

.api-btn--lg {
    padding: 16px 32px;
    font-size: 1rem;
}

/* Terminal */
.api-terminal {
    max-width: 720px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .06);
    text-align: left;
}

.api-terminal-bar {
    background: #1c2130;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.api-terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.api-terminal-title {
    color: #8b949e;
    font-size: .75rem;
    margin-left: auto;
    font-family: 'JetBrains Mono', monospace;
}

.api-terminal-body {
    background: #0d1117;
    padding: 20px 24px;
    font-family: 'JetBrains Mono', monospace;
    font-size: .82rem;
    line-height: 1.8;
}

.api-terminal-body code {
    display: block;
    color: #c9d1d9;
    white-space: pre;
}

.api-t-prompt {
    color: #34d058;
}

.api-t-str {
    color: #a5d6ff;
}

.api-t-ok {
    color: #34d058;
}

.api-t-dim {
    color: #8b949e;
}

.api-t-num {
    color: #d2a8ff;
    font-weight: 600;
}

.api-t-blank {
    height: 8px;
}

/* Sections */
.api-section {
    padding: 100px 0;
}

.api-section--dark {
    background: #0a0e1a;
    color: #fff;
}

.api-eyebrow {
    display: inline-block;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #388bfd;
    margin-bottom: 12px;
}

.api-section-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    margin: 0 0 16px;
    letter-spacing: -.5px;
}

.api-section--dark .api-section-title {
    color: #fff;
}

.api-section-desc {
    font-size: 1.05rem;
    color: #64748b;
    max-width: 680px;
    line-height: 1.7;
    margin: 0 0 48px;
}

.api-section--dark .api-section-desc {
    color: #8b949e;
}

/* Cards Grid */
.api-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.api-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px 28px;
    transition: transform .25s, box-shadow .25s;
}

.api-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .08);
}

.api-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.api-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 10px;
    color: #1e293b;
}

.api-card p {
    font-size: .9rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* Flow Diagram */
.api-flow {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 12px;
    margin-top: 56px;
    flex-wrap: wrap;
}

.api-flow-step {
    background: rgba(56, 139, 253, .06);
    border: 1px solid rgba(56, 139, 253, .15);
    border-radius: 14px;
    padding: 24px 20px;
    text-align: center;
    flex: 1;
    min-width: 160px;
    max-width: 220px;
}

.api-flow-num {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #388bfd, #6e40c9);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: .95rem;
    margin: 0 auto 14px;
}

.api-flow-step h4 {
    color: #fff;
    font-size: .95rem;
    margin: 0 0 6px;
}

.api-flow-step p {
    color: #8b949e;
    font-size: .8rem;
    line-height: 1.5;
    margin: 0;
}

.api-flow-arrow {
    color: #388bfd;
    font-size: 1.6rem;
    padding-top: 26px;
    font-weight: 700;
}

/* Endpoint Card */
.api-endpoint-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 36px 32px;
    margin-top: 36px;
}

.api-method {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.api-method-badge {
    background: #34d058;
    color: #fff;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: .8rem;
    font-weight: 700;
}

.api-endpoint-desc {
    color: #64748b;
    font-size: .95rem;
    margin: 0 0 32px;
    line-height: 1.6;
}

.api-ref-heading {
    font-size: .9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: #388bfd;
    margin: 32px 0 16px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.api-ref-heading:first-of-type {
    border-top: none;
    padding-top: 0;
}

/* Tables */
.api-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .85rem;
}

.api-table th {
    text-align: left;
    font-weight: 600;
    color: #64748b;
    padding: 10px 14px;
    border-bottom: 2px solid #e2e8f0;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.api-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
}

.api-table code {
    background: #eef2ff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: .82rem;
    color: #4338ca;
    font-family: 'JetBrains Mono', monospace;
}

/* Code Blocks */
.api-code-block {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
    border: 1px solid #e2e8f0;
}

.api-code-header {
    background: #1e293b;
    padding: 10px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .78rem;
    color: #94a3b8;
    font-family: 'JetBrains Mono', monospace;
}

.api-copy-btn {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    color: #94a3b8;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: .72rem;
    cursor: pointer;
    transition: all .2s;
    font-family: 'Inter', sans-serif;
}

.api-copy-btn:hover {
    background: rgba(255, 255, 255, .15);
    color: #fff;
}

.api-code-block pre {
    background: #0d1117;
    margin: 0;
    padding: 20px 24px;
    overflow-x: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: .8rem;
    line-height: 1.7;
    color: #c9d1d9;
}

.api-code-block--sm pre {
    font-size: .78rem;
    padding: 16px 20px;
}

.api-j-key {
    color: #79c0ff;
}

.api-j-str {
    color: #a5d6ff;
}

.api-j-num {
    color: #d2a8ff;
}

.api-j-bool {
    color: #ff7b72;
}

/* Two Columns */
.api-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-top: 48px;
}

.api-img-method {
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    padding: 32px 28px;
}

.api-img-method-badge {
    display: inline-block;
    background: linear-gradient(135deg, #388bfd, #6e40c9);
    color: #fff;
    padding: 4px 14px;
    border-radius: 100px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .5px;
    margin-bottom: 16px;
}

.api-img-method h3 {
    color: #fff;
    font-size: 1.15rem;
    margin: 0 0 10px;
}

.api-img-method p {
    color: #8b949e;
    font-size: .88rem;
    line-height: 1.6;
    margin: 0 0 20px;
}

.api-check-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
}

.api-check-list li {
    color: #8b949e;
    font-size: .84rem;
    padding: 4px 0;
}

/* Pricing */
.api-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
    align-items: start;
}

.api-pricing-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 36px 28px;
    text-align: center;
    position: relative;
    transition: transform .25s;
    display: flex;
    flex-direction: column;
}

.api-pricing-card:hover {
    transform: translateY(-4px);
}

.api-pricing-card--featured {
    border: 2px solid #388bfd;
    box-shadow: 0 12px 48px rgba(56, 139, 253, .15);
    transform: scale(1.03);
}

.api-pricing-card--featured:hover {
    transform: scale(1.03) translateY(-4px);
}

.api-pricing-popular {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #388bfd, #6e40c9);
    color: #fff;
    padding: 5px 20px;
    border-radius: 100px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .5px;
}

.api-pricing-card h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0 0 6px;
    color: #1e293b;
}

.api-pricing-desc {
    color: #64748b;
    font-size: .85rem;
    margin: 0 0 24px;
}

.api-pricing-price {
    font-size: 2.5rem;
    font-weight: 900;
    color: #1e293b;
    margin-bottom: 28px;
}

.api-pricing-currency {
    font-size: 1.4rem;
    vertical-align: super;
    color: #64748b;
}

.api-pricing-period {
    font-size: .85rem;
    font-weight: 500;
    color: #94a3b8;
}

.api-pricing-custom {
    font-size: 1.3rem;
    color: #388bfd;
    font-weight: 700;
}

.api-pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    text-align: left;
    flex-grow: 1;
}

.api-pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .88rem;
    color: #475569;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}

.api-pricing-features li:last-child {
    border: none;
}

.api-pricing-features svg {
    flex-shrink: 0;
    color: #34d058;
}

.api-pricing-card .api-btn {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
    margin-top: auto;
}

/* Generation Type Cards */
.api-gen-type-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 24px 22px;
}

/* CTA */
.api-cta {
    background: linear-gradient(135deg, #0a0e1a 0%, #1a1040 100%);
    padding: 80px 0;
    text-align: center;
    color: #fff;
}

.api-cta-inner h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 800;
    margin: 0 0 14px;
}

.api-cta-inner p {
    color: #8b949e;
    font-size: 1.05rem;
    max-width: 540px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 900px) {

    .api-cards-grid,
    .api-two-col,
    .api-pricing-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }

    .api-flow {
        flex-direction: column;
        align-items: center;
    }

    .api-flow-arrow {
        transform: rotate(90deg);
        padding: 0;
    }

    .api-flow-step {
        max-width: 100%;
    }

    .api-pricing-card--featured {
        transform: none;
    }

    .api-pricing-card--featured:hover {
        transform: translateY(-4px);
    }

    .api-terminal-body code {
        font-size: .7rem;
    }
}

@media (max-width: 600px) {
    .api-hero {
        padding: 120px 0 60px;
    }

    .api-section {
        padding: 60px 0;
    }

    .api-endpoint-card {
        padding: 20px 16px;
    }

    .api-table {
        font-size: .78rem;
    }

    .api-table th,
    .api-table td {
        padding: 8px 8px;
    }
}

/* --- Downloads Page Refinements --- */
.dl-title {
    font-size: 2.5rem !important;
}

.dl-title-logo {
    height: 45px;
    vertical-align: middle;
}

/* Grid Layout for Downloads */
.dl-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .dl-cards {
        grid-template-columns: 1fr;
    }
}

/* ── Mobile Fix: Hero Trust Bar Wrap ── */
@media (max-width: 768px) {
    .hero-trust {
        flex-wrap: wrap;
        gap: 12px 16px;
        margin-top: 32px;
        padding: 0 10px;
    }

    .hero-trust-divider {
        display: none;
    }

    .hero-trust-item {
        font-size: 0.8rem;
        justify-content: center;
        width: auto;
    }

    /* Safety for tags block */
    .hero-tags {
        flex-wrap: wrap;
        justify-content: center;
    }
}
/* Login Button */
.nav-login {
    color: #fff;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 7px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.nav-login:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.header.hero-passed .nav-login,
.header.always-light .nav-login {
    background: linear-gradient(135deg, #388bfd, #6366f1);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 12px rgba(56, 139, 253, 0.25);
}

.header.hero-passed .nav-login:hover,
.header.always-light .nav-login:hover {
    box-shadow: 0 4px 20px rgba(56, 139, 253, 0.4), 0 0 0 1px rgba(56, 139, 253, 0.3);
    color: #fff;
    transform: translateY(-1px);
}
