/* ==============================================
   JPNR — Homepage Sections
   ============================================== */

/* --- Section rhythm --- */
.section--white { background: var(--white); }
.section--gray  { background: var(--gray-50); }

.section-header--left { text-align: left; }
.section-header--left .section-desc { margin: 0; }

/* --- Hero (Split Layout) --- */
.hero {
    position: relative;
    overflow: hidden;
}

.hero--split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    min-height: 100vh;
    background: #eef2f7;
}

.hero__panel {
    position: relative;
    background: linear-gradient(160deg, #070D1F 0%, #0A1628 55%, #0E1F3D 100%);
    padding: calc(var(--nav-height) + 48px) clamp(24px, 5vw, 72px) 48px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero__panel .hero__hex-bg,
.hero__panel .hero__grid-bg,
.hero__panel .hero__circuit,
.hero__panel .hero__particles {
    position: absolute;
    inset: 0;
}

.hero__panel .hero__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.hero__panel .hero__glow--1 {
    width: 480px;
    height: 480px;
    background: var(--primary-500);
    top: -80px;
    left: -60px;
    opacity: 0.18;
}

.hero__panel .hero__glow--3 {
    width: 320px;
    height: 320px;
    background: var(--purple);
    bottom: 10%;
    right: -40px;
    opacity: 0.1;
}

.hero__panel .hero__hex-bg {
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath d='M28 0l28 16v32l-28 16L0 48V16z' fill='none' stroke='%232563EB' stroke-width='1'/%3E%3C/svg%3E");
    background-size: 56px 100px;
}

.hero__panel .hero__particles { overflow: hidden; pointer-events: none; }

.hero__particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(37, 99, 235, 0.4);
    border-radius: 50%;
    animation: particleFloat 8s infinite ease-in-out;
}

.hero__circuit line {
    stroke: var(--primary-500);
    stroke-width: 0.5;
    stroke-dasharray: 4 8;
    animation: circuitFlow 6s linear infinite;
}

.hero__circuit circle {
    fill: var(--secondary-500);
    opacity: 0.6;
    animation: nodePulse 3s ease-in-out infinite;
}

@keyframes circuitFlow {
    to { stroke-dashoffset: -24; }
}

@keyframes nodePulse {
    0%, 100% { opacity: 0.3; r: 2; }
    50%      { opacity: 0.9; r: 3; }
}

@keyframes particleFloat {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0.3; }
    50%      { transform: translateY(-30px) translateX(15px); opacity: 0.8; }
}

.hero__panel .hero__grid-bg {
    background-image:
        linear-gradient(rgba(37, 99, 235, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: linear-gradient(180deg, black 0%, transparent 90%);
    -webkit-mask-image: linear-gradient(180deg, black 0%, transparent 90%);
}

.hero__panel .hero__circuit { opacity: 0.18; pointer-events: none; }

.hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 540px;
    margin-left: auto;
    margin-right: clamp(16px, 3vw, 40px);
    text-align: left;
}

.hero__intro { padding-bottom: 28px; }

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--secondary-500);
    margin-bottom: 20px;
    font-family: var(--font-heading);
}

.hero__eyebrow::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--secondary-500);
}

.hero__title {
    font-size: clamp(32px, 3.8vw, 52px);
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero__title span {
    background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__desc {
    font-size: clamp(16px, 1.6vw, 18px);
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
    margin: 0;
    max-width: 480px;
}

.hero__metrics {
    display: flex;
    gap: 32px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.hero-metric {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.hero-metric__value {
    font-family: var(--font-heading);
    font-size: clamp(24px, 2.5vw, 32px);
    font-weight: 800;
    color: var(--white);
    line-height: 1;
}

.hero-metric__label {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.45);
}

.hero__actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.hero__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.trust-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
}

.trust-chip svg { width: 14px; height: 14px; color: var(--secondary-500); flex-shrink: 0; }

.tech-strip {
    width: 100%;
    padding: 16px 20px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.tech-strip__label {
    display: block;
    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 12px;
}

.tech-strip__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-strip__chip {
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    background: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(37, 99, 235, 0.2);
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}

.tech-strip__chip:hover {
    background: rgba(37, 99, 235, 0.25);
    border-color: var(--primary-500);
}

.hero__visual {
    background: #eef2f7;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--nav-height) + 24px) clamp(16px, 3vw, 32px) 24px;
    overflow: hidden;
}

.hero__visual img {
    width: 100%;
    height: auto;
    max-height: calc(100vh - var(--nav-height) - 48px);
    object-fit: contain;
    display: block;
}

/* --- Company Snapshot --- */
.snapshot-section {
    padding: 100px 0;
    position: relative;
}

.snapshot-section .section-header {
    margin-bottom: 56px;
}

.snapshot__split {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
    margin-bottom: 56px;
}

.snapshot__visual img {
    width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

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

.snapshot__lead {
    font-size: 17px;
    color: var(--gray-600);
    line-height: 1.75;
    margin: 0;
}

.snapshot__statement {
    font-size: 16px;
    color: var(--gray-600);
    line-height: 1.75;
    margin: 0;
    padding-left: 16px;
    border-left: 3px solid var(--primary-500);
}

.snapshot-section .snapshot__grid {
    gap: 24px;
}

.snapshot-section .snapshot-card {
    padding: 32px 28px;
    text-align: left;
}

.snapshot-section .snapshot-card__icon {
    margin: 0 0 16px;
}

/* --- Services (Hierarchy Grid) --- */
.services-section { padding: 120px 0; }

.services__grid--hierarchy {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
}

.service-card--featured {
    grid-column: span 6;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 32px;
    align-items: center;
    padding: 40px;
}

.service-card--featured .service-card__image {
    margin-bottom: 0;
    aspect-ratio: 16/11;
}

.service-card--featured .service-card__icon { margin-bottom: 20px; }

.service-card--featured .service-card__title { font-size: 28px; }

.service-card--medium { grid-column: span 3; }

.service-card--compact { grid-column: span 2; }

.service-card--compact .service-card__desc { font-size: 14px; margin-bottom: 20px; }

.service-card__image--compact {
    aspect-ratio: 16/9;
    margin-bottom: 16px;
}

/* --- Why Choose JPNR --- */
.why-section {
    padding: 120px 0;
    background: linear-gradient(135deg, #0A1628 0%, #0E1F3D 100%);
    position: relative;
    overflow: hidden;
}

.why-section__bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(37, 99, 235, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
}

.why-section .container { position: relative; z-index: 2; }

.why__split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.why__visual img {
    width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
    animation: heroFloat 8s ease-in-out infinite;
}

.why__content .eyebrow { margin-bottom: 16px; }
.why__content .section-heading--light { margin-bottom: 20px; }
.why__content .section-desc--light { margin-bottom: 32px; }

.why__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 36px;
}

.why__list-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all var(--transition-base);
}

.why__list-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(37, 99, 235, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.why__list-item svg { width: 22px; height: 22px; color: var(--secondary-500); flex-shrink: 0; margin-top: 2px; }

.why__list-title {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 2px;
}

.why__list-desc { font-size: 12px; color: rgba(255, 255, 255, 0.5); line-height: 1.5; }

/* --- Technology Ecosystem --- */
.tech-section { padding: 120px 0; }

.tech-ecosystem {
    position: relative;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    aspect-ratio: 1;
}

.tech-ecosystem__svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.tech-ecosystem__line {
    stroke: var(--primary-500);
    stroke-opacity: 0.2;
    stroke-width: 1.5;
    stroke-dasharray: 6 8;
    fill: none;
    transition: stroke-opacity var(--transition-base), stroke-width var(--transition-base);
}

.tech-ecosystem__line.visible { animation: linePulse 3s ease-in-out infinite; }

.tech-ecosystem__line.active {
    stroke-opacity: 0.8;
    stroke-width: 2.5;
    animation: linePulseActive 1.5s ease-in-out infinite;
}

@keyframes linePulse {
    0%, 100% { stroke-opacity: 0.15; }
    50%      { stroke-opacity: 0.4; }
}

@keyframes linePulseActive {
    0%, 100% { stroke-opacity: 0.6; }
    50%      { stroke-opacity: 1; }
}

.tech-ecosystem__center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    z-index: 3;
    border-radius: 50%;
    background: var(--white);
    box-shadow: 0 0 40px rgba(37, 99, 235, 0.25);
    padding: 8px;
}

.tech-ecosystem__center img { width: 100%; height: 100%; object-fit: contain; }

.tech-node {
    position: absolute;
    transform: translate(-50%, -50%);
    padding: 10px 18px;
    border-radius: var(--radius-md);
    background: var(--white);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-800);
    transition: all var(--transition-base);
    z-index: 2;
    white-space: nowrap;
    cursor: pointer;
    appearance: none;
}

.tech-node:hover,
.tech-node.active {
    border-color: var(--primary-500);
    color: var(--primary-500);
    box-shadow: 0 0 24px rgba(37, 99, 235, 0.25);
    transform: translate(-50%, -50%) scale(1.08);
}

.tech-ecosystem__panel {
    max-width: 560px;
    margin: 32px auto 0;
    padding: 24px 32px;
    text-align: center;
    border-radius: var(--radius-lg);
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    min-height: 100px;
    transition: all var(--transition-base);
}

.tech-ecosystem__panel.active {
    background: rgba(37, 99, 235, 0.06);
    border-color: rgba(37, 99, 235, 0.2);
}

.tech-ecosystem__panel-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.tech-ecosystem__panel-desc {
    font-size: 15px;
    color: var(--gray-500);
    line-height: 1.6;
    margin: 0;
}

/* --- Industries --- */
.industries-section { padding: 120px 0; }
.industries__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 48px; }
.industries__cta { text-align: center; }

.industry-card__image--healthcare    { background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(124, 58, 237, 0.1)); }
.industry-card__image--finance       { background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(20, 184, 166, 0.1)); }
.industry-card__image--government    { background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(37, 99, 235, 0.1)); }
.industry-card__image--education     { background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(239, 68, 68, 0.08)); }
.industry-card__image--retail        { background: linear-gradient(135deg, rgba(20, 184, 166, 0.15), rgba(34, 197, 94, 0.1)); }
.industry-card__image--manufacturing { background: linear-gradient(135deg, rgba(100, 116, 139, 0.2), rgba(37, 99, 235, 0.1)); }
.industry-card__image--logistics      { background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(99, 102, 241, 0.12)); }
.industry-card__image--telecom       { background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(20, 184, 166, 0.1)); }

.industry-card__image svg,
.industry-card__image i {
    width: 56px;
    height: 56px;
    color: var(--primary-500);
    filter: drop-shadow(0 4px 12px rgba(37, 99, 235, 0.2));
}

/* --- Process --- */
.process-section { padding: 120px 0; }

.process__grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0;
    position: relative;
    max-width: 1120px;
    margin: 0 auto;
}

.process__grid::before {
    content: '';
    position: absolute;
    top: 24px;
    left: calc(100% / 14);
    right: calc(100% / 14);
    height: 2px;
    background: linear-gradient(90deg, var(--primary-500), var(--secondary-500));
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    z-index: 0;
}

.process__grid.visible::before {
    opacity: 0.3;
    transform: scaleX(1);
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 8px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.process__grid.visible .process-step {
    opacity: 1;
    transform: translateY(0);
}

.process__grid.visible .process-step:nth-child(1) { transition-delay: 0.1s; }
.process__grid.visible .process-step:nth-child(2) { transition-delay: 0.2s; }
.process__grid.visible .process-step:nth-child(3) { transition-delay: 0.3s; }
.process__grid.visible .process-step:nth-child(4) { transition-delay: 0.4s; }
.process__grid.visible .process-step:nth-child(5) { transition-delay: 0.5s; }
.process__grid.visible .process-step:nth-child(6) { transition-delay: 0.6s; }
.process__grid.visible .process-step:nth-child(7) { transition-delay: 0.7s; }

.process-step__icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(20, 184, 166, 0.12));
    color: var(--primary-500);
    position: relative;
    z-index: 1;
    transition: transform var(--transition-base);
}

.process-step:hover .process-step__icon { transform: scale(1.1) rotate(3deg); }

.process-step__icon svg,
.process-step__icon i { width: 24px; height: 24px; }

.process-step__title {
    font-size: 15px;
    min-height: 2.4em;
    width: 100%;
}

.process-step__desc {
    font-size: 12px;
    line-height: 1.5;
    max-width: 120px;
    margin: 0 auto;
}

.process-step__number { display: none; }

/* --- Statistics (Blueprint) --- */
.stats-section {
    padding: 100px 0;
    background: var(--gray-50);
    position: relative;
    overflow: hidden;
}

.stats-section__pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(37, 99, 235, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.06) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
    pointer-events: none;
}

.stats-section .container { position: relative; z-index: 1; }

.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }

/* --- Testimonials --- */
.testimonials-section { padding: 120px 0; overflow: hidden; }

.testimonials__carousel {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonials__track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonials__dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 32px;
}

.testimonials__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gray-300);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all var(--transition-base);
}

.testimonials__dot.active {
    background: var(--primary-500);
    width: 28px;
    border-radius: var(--radius-pill);
}

/* --- Responsive --- */
@media (max-width: 1200px) {
    .services__grid--hierarchy { grid-template-columns: repeat(2, 1fr); }
    .service-card--featured,
    .service-card--medium,
    .service-card--compact { grid-column: span 1; }
    .service-card--featured { grid-template-columns: 1fr; }
    .industries__grid  { grid-template-columns: repeat(2, 1fr); }
    .process__grid     { grid-template-columns: repeat(4, 1fr); gap: 32px 16px; max-width: none; }
    .process__grid::before { display: none; }
    .stats__grid       { grid-template-columns: repeat(2, 1fr); }
    .snapshot__split   { grid-template-columns: 1fr; gap: 40px; }
    .snapshot__visual  { max-width: 640px; margin: 0 auto; }
}

@media (max-width: 992px) {
    .hero--split {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero__panel {
        padding: calc(var(--nav-height) + 32px) 24px 40px;
    }

    .hero__content {
        max-width: none;
    }

    .hero__visual {
        padding: 24px;
        min-height: 320px;
    }

    .hero__visual img {
        max-height: none;
    }

    .hero__metrics { gap: 32px; }
    .why__split { grid-template-columns: 1fr; }
    .why__visual { order: -1; max-width: 480px; margin: 0 auto; }
    .why__list { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .services__grid--hierarchy { grid-template-columns: 1fr; }
    .industries__grid { grid-template-columns: 1fr; }
    .process__grid    { grid-template-columns: repeat(2, 1fr); gap: 28px 12px; }
    .process-step__desc { max-width: none; }
    .stats__grid      { grid-template-columns: repeat(2, 1fr); }
    .hero__title      { font-size: 32px; }
    .hero__desc       { font-size: 16px; }
    .tech-node        { font-size: 11px; padding: 8px 12px; }
    .snapshot-section { padding-top: 80px; }
}

@media (max-width: 480px) {
    .hero__actions { flex-direction: column; width: 100%; }
    .hero__actions .btn { width: 100%; }
    .hero__metrics { gap: 20px; }
    .process__grid { grid-template-columns: 1fr; }
    .trust-chip { font-size: 12px; padding: 8px 12px; }
    .tech-strip__chips { gap: 8px; }
    .tech-strip__chip { font-size: 11px; padding: 5px 10px; }
}

@media (prefers-reduced-motion: reduce) {
    .why__visual img,
    .hero__circuit line,
    .hero__circuit circle,
    .cta-section__beams::before,
    .cta-section__beams::after { animation: none; }
}
