/* ============================================
   V4 — SECTIONS
   Intro, Solutions, Process, Showcase, About, CTA
============================================ */

/* ============================================
   INTRO SECTION
============================================ */
.intro {
    min-height: 100vh;
    padding: 160px 32px 80px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.intro-container {
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.intro-eyebrow {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.eyebrow-line {
    width: 40px;
    height: 2px;
    background: var(--accent);
    animation: lineExpand 0.8s ease-out 0.2s both;
}

@keyframes lineExpand {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 40px;
        opacity: 1;
    }
}

.intro-eyebrow span:last-child {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-soft);
    animation: textFadeIn 0.6s ease-out 0.6s both;
}

@keyframes textFadeIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.intro-headline {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    max-width: 900px;
    margin-bottom: 48px;
}

.intro-headline .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(40px);
    animation: wordReveal 0.8s ease-out forwards;
    animation-delay: calc(var(--i) * 0.1s + 0.3s);
}

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

.text-accent {
    color: var(--accent);
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
    align-items: end;
    margin-bottom: 32px;
}

.intro-desc p {
    font-size: 1.15rem;
    color: var(--text-soft);
    max-width: 400px;
    line-height: 1.7;
    opacity: 0;
    animation: fadeSlideUp 0.8s ease-out 0.3s forwards;
}

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

/* Experience Badge */
.intro-visual {
    margin-top: 0;
    will-change: transform;
}

.experience-badge {
    display: flex;
    align-items: center;
    gap: 16px;
}

.badge-number {
    position: relative;
    display: flex;
    align-items: baseline;
    line-height: 1;
    padding-right: 20px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.badge-number.counting-started {
    opacity: 1;
    transform: translateY(0);
}

.badge-number::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    transform-origin: top;
    width: 3px;
    height: 48px;
    background: linear-gradient(180deg, var(--accent) 0%, transparent 100%);
    border-radius: 2px;
    transition: transform 0.4s ease-out;
}

.badge-number.counting-done::after {
    transform: translateY(-50%) scaleY(1);
}

.badge-number span:first-child {
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.badge-plus {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--accent);
    opacity: 0.7;
}

.badge-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.badge-number.counting-done + .badge-content {
    opacity: 1;
    transform: translateX(0);
}

.badge-text {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    letter-spacing: 0.01em;
}

.badge-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
}

.badge-global {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 500;
    margin-top: 4px;
    letter-spacing: 0.02em;
}

.intro-action-mobile {
    display: block;
    margin-top: 24px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.intro-action-mobile.visible {
    opacity: 1;
    transform: translateY(0);
}

.intro-action {
    display: none;
}

/* Hero Gradient Background - Right Side */
.intro-gradient-bg {
    position: absolute;
    right: 0;
    top: 0;
    bottom: -50%;
    width: 70%;
    background: radial-gradient(ellipse at 80% 40%, rgba(35, 71, 159, 0.18) 0%, transparent 55%),
                radial-gradient(ellipse at 100% 20%, rgba(99, 102, 241, 0.12) 0%, transparent 45%),
                radial-gradient(ellipse at 90% 70%, rgba(35, 71, 159, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

[data-theme="dark"] .intro-gradient-bg {
    background: radial-gradient(ellipse at 80% 40%, rgba(35, 71, 159, 0.3) 0%, transparent 55%),
                radial-gradient(ellipse at 100% 20%, rgba(99, 102, 241, 0.2) 0%, transparent 45%),
                radial-gradient(ellipse at 90% 70%, rgba(35, 71, 159, 0.15) 0%, transparent 50%);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .intro-gradient-bg {
        background: radial-gradient(ellipse at 80% 40%, rgba(35, 71, 159, 0.3) 0%, transparent 55%),
                    radial-gradient(ellipse at 100% 20%, rgba(99, 102, 241, 0.2) 0%, transparent 45%),
                    radial-gradient(ellipse at 90% 70%, rgba(35, 71, 159, 0.15) 0%, transparent 50%);
    }
}

/* Hero Visual - Right Side */
.intro-hero-visual {
    position: absolute;
    right: 4%;
    top: 52%;
    transform: translateY(-50%);
    z-index: 1;
}

/* Network Graph Visual */
.network-graph {
    width: 620px;
    height: 650px;
}

/* Large screens (2K+) */
@media (min-width: 1600px) {
    .intro-gradient-bg {
        width: 60%;
    }
    .intro-hero-visual {
        right: 12%;
        top: 180px;
        transform: none;
    }
}

@media (min-width: 1920px) {
    .intro-gradient-bg {
        width: 65%;
    }
    .intro-hero-visual {
        right: 16%;
        top: 160px;
        transform: none;
    }
}

@media (min-width: 2560px) {
    .intro-gradient-bg {
        width: 70%;
    }
    .intro-hero-visual {
        right: 22%;
        top: 140px;
        transform: none;
    }
}

.intro-hero-visual {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
}

/* Connection lines */
.graph-line {
    stroke: var(--accent);
    stroke-width: 1;
    opacity: 0.15;
}

.graph-line.thin {
    stroke-width: 0.5;
    opacity: 0.08;
}

[data-theme="dark"] .graph-line {
    opacity: 0.25;
}

[data-theme="dark"] .graph-line.thin {
    opacity: 0.12;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .graph-line {
        opacity: 0.25;
    }
    :root:not([data-theme="light"]) .graph-line.thin {
        opacity: 0.12;
    }
}

/* Small decorative dots */
.dot-small {
    fill: var(--accent);
    opacity: 0.3;
}

/* Decorative dashed rings */
.deco-ring {
    fill: none;
    stroke: var(--accent);
    stroke-width: 1;
    opacity: 0.15;
}

/* Tech nodes - base dots */
.node-dot {
    fill: var(--accent);
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

/* Center node */
.center-node {
    fill: var(--accent);
    filter: drop-shadow(0 0 12px var(--accent));
}

.center-pulse {
    fill: none;
    stroke: var(--accent);
    stroke-width: 1.5;
    opacity: 0;
    animation: centerPulseRing 3s ease-out infinite;
}

.center-pulse.delay-1 {
    animation-delay: 1.5s;
    stroke-width: 1;
}

@keyframes centerPulseRing {
    0% { opacity: 0.6; r: 22; }
    100% { opacity: 0; r: 45; }
}


/* Traveling particle */
.particle {
    fill: var(--accent);
    filter: drop-shadow(0 0 10px var(--accent)) drop-shadow(0 0 20px var(--accent));
}

/* Tech nodes - can grow when activated */
.node-dot {
    fill: var(--accent);
    opacity: 0.5;
    transition: r 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.3s ease-out,
                filter 0.3s ease-out;
}

.node-dot.active {
    opacity: 1;
    filter: drop-shadow(0 0 12px var(--accent)) drop-shadow(0 0 20px var(--accent));
}

/* Active node overlay - JS controlled */
.active-node-group,
.temp-active-group {
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.active-node-group.visible,
.temp-active-group.visible {
    opacity: 1;
}

.active-aura {
    fill: none;
    stroke: var(--accent);
    stroke-width: 2;
    opacity: 0.6;
    animation: auraExpand 1s ease-out infinite;
}

@keyframes auraExpand {
    0% { r: 28; opacity: 0.7; }
    100% { r: 55; opacity: 0; }
}

.active-node {
    display: none;
}

.active-text {
    fill: white;
    font-family: var(--font);
    font-size: 7px;
    font-weight: 700;
    text-anchor: middle;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.temp-active-group .active-text {
    opacity: 1;
}

.active-icon {
    fill: white;
    opacity: 0.95;
}

.active-icon path {
    fill: white;
}

/* Scroll Hint */
.scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--text-muted), transparent);
    animation: scrollLine 1.5s infinite;
}

@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================
   SOLUTIONS - TIMELINE
============================================ */
.solutions {
    padding: 80px 32px var(--section-pad);
    position: relative;
    overflow: visible;
}

/* Left gradient background - like network graph */
.solutions-gradient-bg {
    position: absolute;
    left: 0;
    top: -30%;
    bottom: 0;
    width: 60%;
    background: radial-gradient(ellipse at 20% 50%, rgba(35, 71, 159, 0.15) 0%, transparent 55%),
                radial-gradient(ellipse at 0% 30%, rgba(99, 102, 241, 0.1) 0%, transparent 45%),
                radial-gradient(ellipse at 10% 80%, rgba(35, 71, 159, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 100%);
}

[data-theme="dark"] .solutions-gradient-bg {
    background: radial-gradient(ellipse at 20% 50%, rgba(35, 71, 159, 0.25) 0%, transparent 55%),
                radial-gradient(ellipse at 0% 30%, rgba(99, 102, 241, 0.15) 0%, transparent 45%),
                radial-gradient(ellipse at 10% 80%, rgba(35, 71, 159, 0.12) 0%, transparent 50%);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .solutions-gradient-bg {
        background: radial-gradient(ellipse at 20% 50%, rgba(35, 71, 159, 0.25) 0%, transparent 55%),
                    radial-gradient(ellipse at 0% 30%, rgba(99, 102, 241, 0.15) 0%, transparent 45%),
                    radial-gradient(ellipse at 10% 80%, rgba(35, 71, 159, 0.12) 0%, transparent 50%);
    }
}

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

/* Services Grid - 2x2 Card Layout */
.solutions-showcase {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* 5th card full width */
.solution-block:nth-child(5) {
    grid-column: 1 / -1;
}

/* ============================================
   PROCESS
============================================ */
.process {
    padding: var(--section-pad) 32px;
    background: var(--accent);
    position: relative;
    overflow: hidden;
}

.process::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 20%, rgba(79, 70, 229, 0.5) 0%, transparent 50%),
                radial-gradient(ellipse at 20% 80%, rgba(99, 102, 241, 0.4) 0%, transparent 45%),
                radial-gradient(ellipse at 50% 50%, rgba(35, 71, 159, 0.3) 0%, transparent 60%);
    pointer-events: none;
}

.process > .container {
    position: relative;
    z-index: 1;
}

.process-flow {
    display: flex;
    align-items: flex-start;
    gap: 0;
}

.flow-step {
    flex: 1;
    text-align: center;
    color: white;
}


.step-marker {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.step-marker span {
    font-size: 1.25rem;
    font-weight: 800;
}

.step-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-info p {
    font-size: 0.9rem;
    opacity: 0.8;
    max-width: 200px;
    margin: 0 auto;
}

.flow-connector {
    flex: 1;
    height: 2px;
    background: rgba(255,255,255,0.3);
    margin-top: 30px;
    margin-left: 30px;
    margin-right: 30px;
}

/* Staggered animation for process steps */
.flow-step {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.flow-step:nth-child(1) { transition-delay: 0s; }
.flow-step:nth-child(3) { transition-delay: 0.4s; }
.flow-step:nth-child(5) { transition-delay: 0.8s; }
.flow-step:nth-child(7) { transition-delay: 1.2s; }

.flow-connector {
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left center;
    transition: opacity 0.4s ease, transform 0.6s ease;
}

.flow-connector.visible {
    opacity: 1;
    transform: scaleX(1);
}

.flow-connector:nth-child(2) { transition-delay: 0.2s; }
.flow-connector:nth-child(4) { transition-delay: 0.6s; }
.flow-connector:nth-child(6) { transition-delay: 1.0s; }

/* ============================================
   SHOWCASE
============================================ */
.showcase {
    padding: var(--section-pad) 32px;
    background: var(--bg-dark);
    color: white;
}

.showcase-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.showcase .section-label {
    margin-bottom: 16px;
}

.showcase .label-line {
    background: rgba(255,255,255,0.7);
}

.showcase .section-label span:last-child {
    color: rgba(255,255,255,0.7);
}

.showcase .btn-outline {
    border-color: rgba(255,255,255,0.3);
    color: white;
}

.showcase .btn-outline:hover {
    border-color: white;
    color: white;
}

.showcase-title {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.showcase-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.showcase-title span {
    line-height: 1;
}

.showcase-text > p {
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 32px;
}

.showcase-metrics {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 32px;
}

.showcase-metrics .metric strong {
    display: block;
    font-size: 2rem;
    font-weight: 800;
}

.showcase-metrics .metric span {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

.showcase-visual {
    display: flex;
    justify-content: center;
}

/* ============================================
   ABOUT
============================================ */
.about {
    padding: var(--section-pad) 32px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 80px;
}

.about-text {
    margin-bottom: 48px;
}

.about-text .lead {
    font-size: 1.35rem;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-soft);
    line-height: 1.8;
}

.principles {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ============================================
   CTA SECTION
============================================ */
.cta-section {
    padding: var(--section-pad) 32px;
    background: var(--bg-alt);
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 64px;
}

.cta-content h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 1.1rem;
    color: var(--text-soft);
}

.cta-form-wrap {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 64px;
    max-width: 1000px;
    margin: 0 auto;
}

.cta-contact {
    padding-top: 20px;
}

.contact-block {
    margin-bottom: 32px;
}

.contact-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.contact-block a {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent);
}

.contact-block p {
    color: var(--text-soft);
    line-height: 1.7;
}