/* ── Hero ── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: var(--space-3xl) 0;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    z-index: 0;
}

/* Noise texture overlay for depth */
.hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    opacity: 0.4;
    mix-blend-mode: overlay;
}

.hero__shapes {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.hero__shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.06;
    background: var(--white);
}

.hero__shape--1 {
    width: 500px;
    height: 500px;
    top: -150px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
    background: radial-gradient(circle, rgba(123, 47, 190, 0.15), transparent 70%);
    opacity: 1;
}

.hero__shape--2 {
    width: 350px;
    height: 350px;
    bottom: -100px;
    left: -80px;
    animation: float 10s ease-in-out infinite reverse;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.12), transparent 70%);
    opacity: 1;
}

.hero__shape--3 {
    width: 200px;
    height: 200px;
    top: 40%;
    left: 10%;
    animation: float 6s ease-in-out infinite 2s;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1), transparent 70%);
    opacity: 1;
}

.hero__shape--4 {
    width: 100px;
    height: 100px;
    top: 20%;
    right: 15%;
    border-radius: var(--radius-xl);
    transform: rotate(45deg);
    animation: float 7s ease-in-out infinite 1s;
    background: radial-gradient(circle, rgba(123, 47, 190, 0.1), transparent 70%);
    opacity: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: var(--container-narrow);
}

.hero__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.4rem 1.25rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: var(--fs-small);
    color: var(--gray-300);
    margin-bottom: var(--space-lg);
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.03);
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero__label::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
    animation: pulse 2s ease-in-out infinite;
}

.hero__title {
    font-size: var(--fs-hero);
    margin-bottom: var(--space-md);
    color: var(--white);
    letter-spacing: -0.02em;
    animation: fadeInUp 0.8s ease 0.4s both;
}

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

.hero__subtitle {
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    color: var(--gray-400);
    margin-bottom: var(--space-xl);
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.hero__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
    animation: fadeInUp 0.8s ease 0.8s both;
}

.hero__scroll {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: var(--gray-500);
    animation: bounce 2.5s ease-in-out infinite;
    opacity: 0.6;
    transition: opacity var(--transition-fast);
}

.hero__scroll:hover {
    opacity: 1;
}

.hero__scroll svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* ── About ── */
.about__image-wrapper {
    position: relative;
    z-index: 1;
}

.about__image {
    width: 100%;
    max-width: 400px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.about__image-wrapper::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: calc(var(--radius-xl) + 3px);
    background: var(--gradient-primary);
    z-index: 0;
    opacity: 0.4;
    max-width: 406px;
    margin: 0 auto;
    left: 0;
    right: 0;
    filter: blur(2px);
}

.about__text h2 {
    margin-bottom: var(--space-sm);
}

.about__text p {
    color: var(--gray-300);
    line-height: 1.7;
}

.about__stats {
    display: flex;
    gap: var(--space-lg);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-lg);
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.stat {
    text-align: center;
    flex: 1;
}

.stat__number {
    display: block;
    font-family: var(--font-heading);
    font-size: var(--fs-h2);
    font-weight: 700;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    margin-bottom: 4px;
}

.stat__label {
    font-size: var(--fs-tiny);
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* ── Leap ── */
.leap-header {
    text-align: center;
    max-width: var(--container-narrow);
    margin: 0 auto var(--space-xl);
}

.leap-ecosystem-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.35rem 1rem;
    border-radius: var(--radius-full);
    background: rgba(123, 47, 190, 0.06);
    border: 1px solid rgba(123, 47, 190, 0.15);
    color: var(--purple-light);
    font-size: var(--fs-tiny);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.leap-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

@media (min-width: 640px) {
    .leap-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .leap-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.leap-card {
    background: var(--dark-card);
    border-radius: var(--radius-lg);
    padding: var(--space-md) var(--space-md) var(--space-md);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.leap-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

.leap-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(123, 47, 190, 0.15);
    border-color: rgba(123, 47, 190, 0.1);
}

.leap-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: var(--space-sm);
}

.leap-card__icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    background: rgba(123, 47, 190, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--purple-light);
    flex-shrink: 0;
}

.leap-card__icon-wrap svg {
    width: 24px;
    height: 24px;
}

/* Color variants per tool */
.leap-card--purple .leap-card__icon-wrap {
    background: rgba(123, 47, 190, 0.1);
    color: var(--purple-light);
}

.leap-card--purple::before {
    background: linear-gradient(90deg, var(--purple), var(--purple-light));
}

.leap-card--purple:hover {
    box-shadow: 0 8px 30px rgba(123, 47, 190, 0.15);
    border-color: rgba(123, 47, 190, 0.12);
}

.leap-card--blue .leap-card__icon-wrap {
    background: rgba(37, 99, 235, 0.1);
    color: var(--blue-light);
}

.leap-card--blue::before {
    background: linear-gradient(90deg, var(--blue), var(--blue-light));
}

.leap-card--blue:hover {
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.12);
}

.leap-card--green .leap-card__icon-wrap {
    background: rgba(16, 185, 129, 0.1);
    color: var(--green-light);
}

.leap-card--green::before {
    background: linear-gradient(90deg, var(--green), var(--green-light));
}

.leap-card--green:hover {
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.12);
}

.leap-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
    font-family: var(--font-heading);
}

.leap-card__tagline {
    color: var(--gray-500);
    font-size: var(--fs-small);
    font-style: italic;
    margin-bottom: var(--space-xs);
    line-height: 1.5;
}

.leap-card__description {
    color: var(--gray-300);
    font-size: var(--fs-small);
    line-height: 1.6;
    flex: 1;
}

.leap-card__footer {
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* ── Contact ── */
.contact__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

@media (min-width: 768px) {
    .contact__inner {
        grid-template-columns: 1fr 1.2fr;
    }
}

.contact__text h3 {
    margin-bottom: var(--space-sm);
    font-size: var(--fs-h3);
}

.contact__text > p {
    color: var(--gray-300);
    margin-bottom: var(--space-lg);
    line-height: 1.7;
}

.contact__form-wrapper {
    background: var(--dark-card);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    border: 1px solid rgba(255, 255, 255, 0.04);
    position: relative;
    overflow: hidden;
}

.contact__form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
}

/* ── Certifications & Skills ── */
.certs-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

@media (min-width: 768px) {
    .certs-layout {
        grid-template-columns: 1fr 1fr;
    }
}

.subsection-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--fs-body);
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: var(--fs-small);
}

.subsection-icon {
    width: 20px;
    height: 20px;
    fill: var(--green-light);
    flex-shrink: 0;
}

/* Skills by category */
.skills-section {
    margin-bottom: var(--space-xl);
}

.skills-categories {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-sm);
}

@media (min-width: 640px) {
    .skills-categories {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .skills-categories {
        grid-template-columns: repeat(3, 1fr);
    }
}

.skill-category {
    background: var(--dark-card);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    border: 1px solid rgba(255, 255, 255, 0.04);
    position: relative;
    overflow: hidden;
    transition: border-color var(--transition-fast);
}

.skill-category:hover {
    border-color: rgba(255, 255, 255, 0.08);
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
}

.skill-category__title {
    font-size: var(--fs-small);
    font-weight: 600;
    color: var(--purple-light);
    margin-bottom: 8px;
    font-family: var(--font-heading);
}

.skill-category__desc {
    font-size: var(--fs-tiny);
    color: var(--gray-500);
    margin-bottom: var(--space-sm);
    line-height: 1.5;
}

.skill-category__items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skill-item__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.skill-item__name {
    font-size: var(--fs-tiny);
    font-weight: 500;
    color: var(--gray-100);
}

.skill-item__level {
    font-size: 0.6875rem;
    color: var(--gray-500);
    font-weight: 500;
}

.skill-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.skill-bar__fill {
    height: 100%;
    width: var(--skill-level);
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Cert cards */
.certs-section {
    margin-bottom: 0;
}

.cert-timeline {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cert-card {
    display: flex;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--dark-card);
    border-radius: var(--radius-lg);
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-left: 3px solid var(--green);
    align-items: flex-start;
}

.cert-card:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
    border-color: rgba(16, 185, 129, 0.1);
    border-left-color: var(--green-light);
}

.cert-card__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.06);
    border-radius: var(--radius-md);
    margin-top: 2px;
}

.cert-card__icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 3px;
}

.cert-card__icon svg {
    width: 20px;
    height: 20px;
}

.cert-card__title {
    font-size: var(--fs-small);
    font-weight: 600;
    margin-bottom: 2px;
    line-height: 1.3;
}

.cert-card__issuer {
    font-size: var(--fs-tiny);
    color: var(--gray-500);
    display: block;
    margin-bottom: 6px;
}

.cert-card__dates {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 4px;
}

.cert-card__link {
    font-size: var(--fs-tiny);
    font-weight: 500;
    color: var(--blue-light);
    transition: color var(--transition-fast);
}

.cert-card__link:hover {
    color: var(--green-light);
}

/* Roadmap */
.roadmap-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    padding-left: var(--space-md);
}

.roadmap-grid::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(180deg, var(--blue), rgba(37, 99, 235, 0.1));
    border-radius: 1px;
}

.roadmap-item {
    display: flex;
    gap: var(--space-xs);
    position: relative;
}

.roadmap-item__marker {
    position: absolute;
    left: calc(-1 * var(--space-md));
    top: 14px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--dark);
    border: 2px solid var(--blue);
    z-index: 1;
    transition: all var(--transition-fast);
}

.roadmap-item:hover .roadmap-item__marker {
    background: var(--blue);
    box-shadow: 0 0 8px rgba(37, 99, 235, 0.4);
}

.roadmap-item__content {
    background: var(--dark-card);
    border-radius: var(--radius-lg);
    padding: var(--space-sm) var(--space-md);
    flex: 1;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-left: 3px solid rgba(37, 99, 235, 0.3);
    transition: all var(--transition-fast);
}

.roadmap-item:hover .roadmap-item__content {
    border-color: rgba(37, 99, 235, 0.1);
    border-left-color: var(--blue);
}

.roadmap-item__title {
    font-size: var(--fs-small);
    font-weight: 600;
    margin-bottom: 2px;
    line-height: 1.3;
}

.roadmap-item__issuer {
    font-size: var(--fs-tiny);
    color: var(--gray-500);
    display: block;
    margin-bottom: 6px;
}

.roadmap-item__desc {
    font-size: var(--fs-tiny);
    color: var(--gray-300);
    margin-bottom: 6px;
    line-height: 1.5;
}

.roadmap-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.certs-empty {
    text-align: center;
    color: var(--gray-500);
    font-size: var(--fs-small);
    padding: var(--space-lg);
    background: var(--dark-card);
    border-radius: var(--radius-lg);
    border: 1px dashed rgba(255, 255, 255, 0.08);
}

/* ── Blog ── */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

@media (min-width: 640px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.blog-card {
    background: var(--dark-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
    border: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(37, 99, 235, 0.1);
}

.blog-card__thumb {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
}

.blog-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.blog-card:hover .blog-card__thumb img {
    transform: scale(1.05);
}

.blog-card__gradient {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.blog-card__gradient::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, var(--dark-card), transparent);
}

.blog-card__body {
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: var(--fs-tiny);
    color: var(--gray-500);
}

.blog-card__dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--gray-500);
}

.blog-card__cat {
    color: var(--blue-light);
    font-weight: 600;
}

.blog-card__title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    font-family: var(--font-heading);
}

.blog-card__title a {
    color: var(--white);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.blog-card__title a:hover {
    color: var(--blue-light);
}

.blog-card__excerpt {
    font-size: var(--fs-small);
    color: var(--gray-400);
    line-height: 1.6;
    flex: 1;
    margin-bottom: var(--space-sm);
}

.blog-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--fs-small);
    font-weight: 600;
    color: var(--blue-light);
    text-decoration: none;
    transition: gap var(--transition-fast), color var(--transition-fast);
}

.blog-card__link:hover {
    gap: 10px;
    color: var(--green-light);
}

.blog-cta {
    text-align: center;
    margin-top: var(--space-xl);
}

/* Blog Archive */
.blog-pagination {
    margin-top: var(--space-xl);
    text-align: center;
}

.blog-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: var(--space-xs);
}

.blog-pagination a,
.blog-pagination span {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: var(--fs-small);
    background: var(--dark-card);
    color: var(--gray-300);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all var(--transition-fast);
}

.blog-pagination a:hover,
.blog-pagination .current {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: transparent;
}

/* Blog Single */
.blog-single__header {
    margin-bottom: var(--space-lg);
}

.blog-single__meta {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-sm);
    font-size: var(--fs-small);
    color: var(--gray-500);
}

.blog-single__title {
    font-size: var(--fs-h1);
    margin-bottom: var(--space-sm);
}

.blog-single__excerpt {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--gray-300);
    line-height: 1.6;
}

.blog-single__image {
    width: 100%;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
}

.blog-single__content {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--gray-100);
}

.blog-single__content h2,
.blog-single__content h3,
.blog-single__content h4 {
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
}

.blog-single__content p {
    margin-bottom: var(--space-md);
}

.blog-single__content a {
    color: var(--blue-light);
    text-decoration: underline;
    text-decoration-color: rgba(37, 99, 235, 0.3);
    text-underline-offset: 3px;
    transition: text-decoration-color var(--transition-fast);
}

.blog-single__content a:hover {
    text-decoration-color: var(--blue-light);
}

.blog-single__content img {
    border-radius: var(--radius-md);
    margin: var(--space-md) 0;
}

.blog-single__content blockquote {
    border-left: 3px solid var(--purple);
    padding-left: var(--space-md);
    margin: var(--space-md) 0;
    color: var(--gray-300);
    font-style: italic;
}

.blog-single__content pre {
    background: var(--dark-card);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    overflow-x: auto;
    margin: var(--space-md) 0;
    font-size: var(--fs-small);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.blog-single__content code {
    background: var(--dark-card);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.9em;
}

.blog-single__content pre code {
    background: none;
    padding: 0;
}

.blog-single__content ul,
.blog-single__content ol {
    padding-left: var(--space-md);
    margin-bottom: var(--space-md);
}

.blog-single__content li {
    margin-bottom: var(--space-xs);
    list-style: disc;
}

.blog-single__content ol li {
    list-style: decimal;
}

.blog-single__tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.blog-single__tags a {
    text-decoration: none;
}

.blog-single__nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.blog-single__nav-link {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: var(--space-md);
    background: var(--dark-card);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.blog-single__nav-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(255, 255, 255, 0.08);
}

.blog-single__nav-prev {
    text-align: left;
}

.blog-single__nav-next {
    text-align: right;
    grid-column: 2;
}

.blog-single__nav-label {
    font-size: var(--fs-small);
    color: var(--gray-500);
}

.blog-single__nav-title {
    font-size: var(--fs-body);
    font-weight: 600;
    color: var(--white);
}

.blog-single__comments {
    margin-top: var(--space-xl);
}

/* ── Keyframes ── */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-25px); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-8px); }
    60% { transform: translateX(-50%) translateY(-4px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Product Pages ── */
.product-hero {
    padding-bottom: var(--space-3xl);
}

.product-hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.product-hero__content .leap-ecosystem-label {
    margin-bottom: var(--space-sm);
}

.product-hero__title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-sm);
}

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

.product-hero__tagline {
    font-size: 1.25rem;
    color: var(--gray-300);
    font-weight: 500;
    margin-bottom: var(--space-sm);
}

.product-hero__desc {
    color: var(--gray-400);
    line-height: 1.7;
    max-width: 540px;
    margin-bottom: var(--space-md);
}

.product-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.product-hero__visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-hero__icon-large {
    width: 160px;
    height: 160px;
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-hero__icon--blue {
    background: rgba(37, 99, 235, 0.1);
    color: var(--blue-light);
    border: 1px solid rgba(37, 99, 235, 0.2);
    box-shadow: 0 0 60px rgba(37, 99, 235, 0.15);
}

.product-hero__icon--green {
    background: rgba(16, 185, 129, 0.1);
    color: var(--green-light);
    border: 1px solid rgba(16, 185, 129, 0.2);
    box-shadow: 0 0 60px rgba(16, 185, 129, 0.15);
}

.product-hero__icon--purple {
    background: rgba(123, 47, 190, 0.1);
    color: var(--purple-light);
    border: 1px solid rgba(123, 47, 190, 0.2);
    box-shadow: 0 0 60px rgba(123, 47, 190, 0.15);
}

/* Product Features Grid */
.product-features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.product-feature {
    background: var(--dark-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s;
}

.product-feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.12);
}

.product-feature__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
}

.product-feature h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
    color: var(--white);
}

.product-feature p {
    color: var(--gray-400);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Product Platforms / Tech Stack */
.product-platforms {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.product-platform {
    background: var(--dark-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: border-color 0.3s;
}

.product-platform:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.product-platform__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--white);
}

.product-platform__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

/* Product CTA */
.product-cta {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    margin-top: var(--space-lg);
    flex-wrap: wrap;
}

/* ── LeapAgent Flagship Styles ── */

/* Hero glow effects */
.product-hero--flagship {
    position: relative;
    overflow: hidden;
}

.product-hero__glow {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    pointer-events: none;
    animation: glowFloat 8s ease-in-out infinite;
}

.product-hero__glow--purple {
    background: var(--purple);
    top: -100px;
    left: -100px;
}

.product-hero__glow--blue {
    background: var(--blue);
    bottom: -100px;
    right: -100px;
    animation-delay: -4s;
}

@keyframes glowFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, 20px) scale(1.1); }
}

/* Hero stats row */
.product-hero__stats {
    display: flex;
    gap: var(--space-lg);
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.product-hero__stat-num {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.product-hero__stat-label {
    font-size: 0.8rem;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Feature card glow variants */
.product-feature--glow-purple { border-left: 2px solid rgba(123, 47, 190, 0.4); }
.product-feature--glow-blue { border-left: 2px solid rgba(37, 99, 235, 0.4); }
.product-feature--glow-green { border-left: 2px solid rgba(16, 185, 129, 0.4); }
.product-feature--glow-amber { border-left: 2px solid rgba(245, 158, 11, 0.4); }

.product-feature--glow-purple:hover { box-shadow: 0 12px 40px rgba(123, 47, 190, 0.15); }
.product-feature--glow-blue:hover { box-shadow: 0 12px 40px rgba(37, 99, 235, 0.15); }
.product-feature--glow-green:hover { box-shadow: 0 12px 40px rgba(16, 185, 129, 0.15); }
.product-feature--glow-amber:hover { box-shadow: 0 12px 40px rgba(245, 158, 11, 0.15); }

.product-features--highlight {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* Architecture Diagram */
.architecture {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin-top: var(--space-xl);
    background: var(--dark-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    position: relative;
}

.architecture__node {
    flex: 1;
    text-align: center;
    padding: var(--space-lg);
}

.architecture__node-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
}

.architecture__node--agent .architecture__node-icon {
    background: rgba(123, 47, 190, 0.15);
    color: var(--purple-light);
    border: 1px solid rgba(123, 47, 190, 0.3);
}

.architecture__node--server .architecture__node-icon {
    background: rgba(37, 99, 235, 0.15);
    color: var(--blue-light);
    border: 1px solid rgba(37, 99, 235, 0.3);
}

.architecture__node h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.architecture__label {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-md);
}

.architecture__list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.architecture__list li {
    color: var(--gray-300);
    font-size: 0.85rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    position: relative;
    padding-left: 1rem;
}

.architecture__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--gray-500);
    transform: translateY(-50%);
}

.architecture__node--agent .architecture__list li::before {
    background: var(--purple-light);
}

.architecture__node--server .architecture__list li::before {
    background: var(--blue-light);
}

/* Connection between nodes */
.architecture__connection {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    min-width: 160px;
}

.architecture__line {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--purple), var(--blue));
    position: relative;
    border-radius: 1px;
    overflow: hidden;
}

.architecture__pulse {
    position: absolute;
    top: -2px;
    left: -20px;
    width: 20px;
    height: 6px;
    background: white;
    border-radius: 3px;
    opacity: 0.6;
    animation: pulseMove 2s ease-in-out infinite;
}

.architecture__pulse--reverse {
    animation: pulseMoveReverse 2s ease-in-out infinite;
    animation-delay: -1s;
}

@keyframes pulseMove {
    0% { left: -20px; opacity: 0; }
    20% { opacity: 0.8; }
    80% { opacity: 0.8; }
    100% { left: 100%; opacity: 0; }
}

@keyframes pulseMoveReverse {
    0% { left: 100%; opacity: 0; }
    20% { opacity: 0.8; }
    80% { opacity: 0.8; }
    100% { left: -20px; opacity: 0; }
}

.architecture__protocols {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    justify-content: center;
}

/* Supporting services */
.architecture__services {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    margin-top: var(--space-xl);
    flex-wrap: wrap;
}

.architecture__service {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--dark-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
    color: var(--gray-300);
    transition: border-color 0.3s;
}

.architecture__service:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

/* Communication Flow Timeline */
.flow-timeline {
    margin-top: var(--space-xl);
    position: relative;
    padding-left: 60px;
}

.flow-timeline::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--purple), var(--blue), var(--green));
    border-radius: 1px;
}

.flow-step {
    position: relative;
    margin-bottom: var(--space-xl);
    padding: var(--space-lg);
    background: var(--dark-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    transition: border-color 0.3s, transform 0.3s;
}

.flow-step:hover {
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateX(4px);
}

.flow-step:last-child {
    margin-bottom: 0;
}

.flow-step__number {
    position: absolute;
    left: -48px;
    top: var(--space-lg);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--dark);
    border: 2px solid var(--purple);
    color: var(--purple-light);
    font-weight: 800;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flow-step:nth-child(2) .flow-step__number { border-color: var(--blue); color: var(--blue-light); }
.flow-step:nth-child(3) .flow-step__number { border-color: var(--green); color: var(--green-light); }
.flow-step:nth-child(4) .flow-step__number { border-color: #FBBF24; color: #FBBF24; }

.flow-step__content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.flow-step__content p {
    color: var(--gray-400);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.flow-step__content code {
    background: rgba(123, 47, 190, 0.15);
    color: var(--purple-light);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-family: 'JetBrains Mono', monospace;
}

/* ── Value Propositions ── */
.value-props {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.value-prop {
    text-align: center;
    padding: var(--space-xl) var(--space-lg);
}

.value-prop__icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
}

.value-prop__icon--purple {
    background: rgba(123, 47, 190, 0.12);
    color: var(--purple-light);
    box-shadow: 0 0 40px rgba(123, 47, 190, 0.1);
}

.value-prop__icon--blue {
    background: rgba(37, 99, 235, 0.12);
    color: var(--blue-light);
    box-shadow: 0 0 40px rgba(37, 99, 235, 0.1);
}

.value-prop__icon--green {
    background: rgba(16, 185, 129, 0.12);
    color: var(--green-light);
    box-shadow: 0 0 40px rgba(16, 185, 129, 0.1);
}

.value-prop h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--space-xs);
}

.value-prop p {
    color: var(--gray-400);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ── Comparison / USP List ── */
.comparison {
    max-width: 700px;
    margin: var(--space-xl) auto 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.comparison__item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--dark-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    transition: transform 0.3s var(--ease-out), border-color 0.3s;
}

.comparison__item:hover {
    transform: translateX(6px);
    border-color: rgba(16, 185, 129, 0.3);
}

.comparison__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comparison__icon--check {
    background: rgba(16, 185, 129, 0.15);
    color: var(--green-light);
}

.comparison__text h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.comparison__text p {
    color: var(--gray-400);
    font-size: 0.88rem;
    line-height: 1.5;
    margin: 0;
}

/* ── Tech Pills ── */
.tech-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
    margin-top: var(--space-lg);
}

.tech-pills .badge {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .product-hero__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .product-hero__desc {
        max-width: 100%;
    }

    .product-hero__badges,
    .product-hero__stats {
        justify-content: center;
    }

    .product-hero__visual {
        order: -1;
    }

    .product-hero__icon-large {
        width: 120px;
        height: 120px;
        border-radius: 24px;
    }

    .product-hero__icon-large svg {
        width: 48px;
        height: 48px;
    }

    .product-features {
        grid-template-columns: 1fr;
    }

    .product-platforms {
        grid-template-columns: 1fr;
    }

    .architecture {
        flex-direction: column;
        gap: 0;
    }

    .architecture__connection {
        padding: var(--space-md) 0;
        min-width: auto;
        width: 100%;
    }

    .architecture__line {
        height: 2px;
    }

    .flow-timeline {
        padding-left: 50px;
    }

    .flow-timeline::before {
        left: 18px;
    }

    .flow-step__number {
        left: -42px;
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    .product-hero__glow {
        width: 200px;
        height: 200px;
    }

    .value-props {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .comparison__item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}
