/* ===================================
   ROOT VARIABLES & BASE
   =================================== */

:root {
    /* Colors */
    --primary-blue: #3F83FF;
    --primary-orange: #EE6849;
    --dark-purple: #130033;
    --dark-navy: #123773;
    --light-peach: #F0D1CA;
    --light-gray: #F6F6F6;
    --text-gray: #808080;
    --text-dark: #1c0c4f;
    --white: #ffffff;

    /* Typography - Fluid */
    --font-body: 'Rubik', sans-serif;
    --text-xs: clamp(0.5rem, 1.2vw, 0.75rem);
    --text-sm: clamp(0.75rem, 1.5vw, 0.875rem);
    --text-base: clamp(0.875rem, 2vw, 1rem);
    --text-lg: clamp(1rem, 2.5vw, 1.25rem);
    --text-xl: clamp(1.125rem, 3vw, 1.375rem);
    --text-2xl: clamp(1.25rem, 3.5vw, 1.5rem);
    --text-3xl: clamp(1.5rem, 4vw, 2rem);
    --text-4xl: clamp(1.75rem, 4.5vw, 2.25rem);
    --text-5xl: clamp(2rem, 5vw, 2.625rem);

    /* Spacing */
    --space-xs: clamp(0.25rem, 0.5vw, 0.5rem);
    --space-sm: clamp(0.5rem, 1vw, 0.75rem);
    --space-md: clamp(1rem, 2vw, 1.5rem);
    --space-lg: clamp(1.5rem, 3vw, 2rem);
    --space-xl: clamp(2rem, 4vw, 3rem);
    --space-2xl: clamp(3rem, 6vw, 5rem);
    --space-3xl: clamp(4rem, 8vw, 6rem);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===================================
   NAVBAR
   =================================== */

.navbar.main-nav {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    min-height: 80px;
    padding: var(--space-md) 0;
    transition: box-shadow var(--transition-base);
}

.navbar.main-nav.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar-nav .nav-link {
    position: relative;
    padding: var(--space-sm) 0;
    font-weight: 500;
    color: var(--dark-purple);
    line-height: 1.5;
    transition: color var(--transition-base);
}

.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 4px;
    background-color: var(--dark-purple);
    border-radius: 4px;
    transition: width var(--transition-fast);
}

.navbar-nav .nav-link.active::after,
.navbar-nav .nav-link:hover::after {
    width: 100%;
}

.navbar-logo {
    height: 45px;
    width: auto;
}

.navbar-brand {
    display: flex;
    align-items: center;
    padding: 0;
}

.navbar-toggler {
    border: none;
    padding: var(--space-sm);
}

.navbar-toggler:focus {
    box-shadow: none;
}

.login-link {
    color: var(--dark-purple);
    font-weight: 700;
    text-decoration: none;
    transition: opacity var(--transition-base);
}

.login-link:hover {
    opacity: 0.7;
}

/* ===================================
   BUTTONS (Consolidated)
   =================================== */

.btn-contact,
.btn-demo,
.hero-cta,
.cerousel-cta,
.products-cta-button {
    border-radius: var(--radius-full);
    padding: clamp(0.5rem, 1.5vw, 1rem) clamp(1.25rem, 3vw, 2.5rem);
    font-weight: 500;
    font-size: var(--text-base);
    border: none;
    transition: all var(--transition-base);
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
}

.btn-contact {
    background-color: #f2f2f2;
    color: var(--dark-purple);
}

.btn-contact:hover {
    background-color: #e8e8e8;
}

.hero-cta,
.cerousel-cta,
.btn-demo,
.products-cta-button {
    background: var(--text-dark);
    color: var(--white);
    box-shadow: 0 8px 24px rgba(28, 12, 79, 0.4);
}

.hero-cta:hover,
.cerousel-cta:hover,
.btn-demo:hover,
.products-cta-button:hover {
    color: var(--white);
    background: #241063;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(28, 12, 79, 0.5);
}

/* ===================================
   HERO SECTION
   =================================== */

.hero-wrapper {
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
}

.hero-wrapper::before {
    --hero-stripe-w: 11.11%;
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-color: var(--primary-blue);
    background-image:
        linear-gradient(to bottom, #fff 0%, #fff 15%, var(--light-peach) 35%, var(--primary-orange) 60%, var(--primary-blue) 100%),
        linear-gradient(to bottom, #fff 0%, #fff 15%, var(--light-peach) 36%, var(--primary-orange) 60%, var(--primary-blue) 100%),
        linear-gradient(to bottom, #fff 0%, #fff 15%, var(--light-peach) 34%, var(--primary-orange) 60%, var(--primary-blue) 100%),
        linear-gradient(to bottom, #fff 0%, #fff 15%, var(--light-peach) 35%, var(--primary-orange) 60%, var(--primary-blue) 100%),
        linear-gradient(to bottom, #fff 0%, #fff 15%, var(--light-peach) 36%, var(--primary-orange) 60%, var(--primary-blue) 100%),
        linear-gradient(to bottom, #fff 0%, #fff 15%, var(--light-peach) 35%, var(--primary-orange) 60%, var(--primary-blue) 100%),
        linear-gradient(to bottom, #fff 0%, #fff 15%, var(--light-peach) 39%, var(--primary-orange) 60%, var(--primary-blue) 100%),
        linear-gradient(to bottom, #fff 0%, #fff 15%, var(--light-peach) 38%, var(--primary-orange) 60%, var(--primary-blue) 100%),
        linear-gradient(to bottom, #fff 0%, #fff 15%, var(--light-peach) 36%, var(--primary-orange) 60%, var(--primary-blue) 100%),
        linear-gradient(to bottom, #fff 0%, #fff 15%, var(--light-peach) 35%, var(--primary-orange) 60%, var(--primary-blue) 100%);
    background-size:
        var(--hero-stripe-w) 100%,
        var(--hero-stripe-w) 89%,
        var(--hero-stripe-w) 84.7%,
        var(--hero-stripe-w) 80.5%,
        var(--hero-stripe-w) 76.9%,
        var(--hero-stripe-w) 74.9%,
        var(--hero-stripe-w) 72.9%,
        var(--hero-stripe-w) 70.9%,
        var(--hero-stripe-w) 68%,
        var(--hero-stripe-w) 65%;
    background-position:
        0 0,
        var(--hero-stripe-w) 0,
        calc(var(--hero-stripe-w) * 2) 0,
        calc(var(--hero-stripe-w) * 3) 0,
        calc(var(--hero-stripe-w) * 4) 0,
        calc(var(--hero-stripe-w) * 5) 0,
        calc(var(--hero-stripe-w) * 6) 0,
        calc(var(--hero-stripe-w) * 7) 0,
        calc(var(--hero-stripe-w) * 8) 0,
        calc(var(--hero-stripe-w) * 9) 0;
    background-repeat: no-repeat;
}

.hero-wrapper > * {
    position: relative;
    z-index: 2;
}

.hero-wrapper .navbar {
    z-index: 10;
}

.hero-content {
    padding: var(--space-xl) 0;
    text-align: center;
}

.hero-title {
    max-width: 800px;
    margin: 0 auto var(--space-lg);
    font-size: var(--text-3xl);
    line-height: 1.3;
    color: var(--text-dark);
    font-weight: 400;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.5);
}

.hero-title-bold {
    font-weight: 600;
}

.hero-cta {
    margin-bottom: clamp(3rem, 8vw, 5rem);
}

.hero-devices {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    height: clamp(250px, 50vw, 600px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-device {
    display: block;
    max-width: 100%;
}

.hero-device-bg {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    z-index: 0;
}

.hero-device-main {
    position: relative;
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    z-index: 3;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
}

.hero-scanner-frame {
    position: absolute;
    left: clamp(-100px, -8vw, -60px);
    bottom: clamp(-80px, -6vw, -40px);
    width: clamp(120px, 25vw, 320px);
    z-index: 4;
    padding: 6px;
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid #ffffff4b;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), inset 0 0 40px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.08);
}

.hero-scanner-frame .hero-device-scanner {
    position: relative;
    left: 0;
    bottom: 0;
    width: 100%;
    display: block;
    border-radius: 8px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

.hero-device-phone {
    position: absolute;
    right: clamp(-60px, -5vw, -20px);
    bottom: clamp(-80px, -6vw, -40px);
    width: clamp(80px, 15vw, 200px);
    z-index: 4;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

/* ===================================
   INSIGHTS SECTION
   =================================== */

.insights-section {
    padding: clamp(2rem, 6vw, 4rem) clamp(1rem, 4vw, 3rem);
    position: relative;
    margin-top: var(--space-2xl);
    border-radius: var(--radius-xl);
    z-index: 5;
    overflow: hidden;    
}

/* CSS gradient background - replaces img */
.insights-section::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 1500px;
    height: 100%;
    min-height: 100%;
    z-index: 0;
    border-radius: var(--radius-xl);
    border: 3px solid #ffffff4b;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), inset 0 0 40px rgba(255, 255, 255, 0.05);
    background: linear-gradient(
        135deg,
        rgba(17, 54, 114, 0.2) 20%
    );
}

.insights-section .container {
    position: relative;
    z-index: 2;
    padding-left: clamp(1rem, 4vw, 2rem);
    padding-right: clamp(1rem, 4vw, 2rem);
}

/* 3 cards per row - tablets & laptops (mobile overridden in responsive.css) */
.insights-section .row > div {
    flex: 0 0 33.333%;
    max-width: 33.333%;
}

.insights-section h2 {
    color: var(--white);
    font-weight: 700;
    font-size: var(--text-4xl);
    margin-bottom: var(--space-2xl);
    letter-spacing: -0.8px;
}

.insight-card {
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    height: 100%;
    min-height: 120px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    display: flex;
    flex-direction: column;
    position: relative;
}

.insight-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-lg);
    z-index: 1;
}

.insight-card > * {
    position: relative;
    z-index: 2;
}

.insight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.insight-card-content {
    flex: 1;
}

.insight-card h4 {
    color: var(--dark-navy);
    font-weight: 700;
    font-size: var(--text-xl);
    margin-bottom: var(--space-sm);
    line-height: 1.4;
}

.insight-card p {
    color: var(--text-gray);
    margin: 0 0 var(--space-lg);
    font-size: var(--text-base);
    line-height: 1.5;
}

.insight-card-icon {
    width: 40px;
    height: 40px;
    margin-top: auto;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.insight-card-icon img {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-width: 44px;
}

/* ===================================
   ABOUT SECTION
   =================================== */

.about-section {
    position: relative;
    background-image:
        url("../img/pikasa website background 1.png"),
        linear-gradient(to bottom, #FAFAFA 0%, #F6F6F6 50%, var(--white) 100%);
    background-repeat: no-repeat, no-repeat;
    background-position: top center, top;
    background-size: contain, 100% 100%;
    min-height: 100vh;
    padding: var(--space-3xl) 0 0;
}

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

.about-header {
    max-width: 1200px;
    margin: 0 auto var(--space-2xl);
    text-align: center;
}

.about-title {
    color: var(--dark-purple);
    font-weight: 600;
    font-size: var(--text-4xl);
    line-height: 1.3;
    letter-spacing: -0.3px;
    margin: 0 0 var(--space-md);
}

.about-title span {
    color: #2066D8;
    font-weight: 600;
}

.about-subtitle {
    color: #999999;
    font-size: var(--text-xl);
    line-height: 1.5;
    margin: 0;
}

/* ===================================
   STATS - Fluid values, single definition
   =================================== */

.about-stats-wrapper {
    overflow-x: auto;
    margin: clamp(2rem, 10vw, 7rem) auto;
    padding: 0 var(--space-lg);
    -webkit-overflow-scrolling: touch;
}

.stats-carousel-wrapper {
    position: relative;
    margin: var(--space-2xl) auto;
    padding: 0 var(--space-lg);
}

.stats-carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
}

.stats-carousel-track {
    display: flex;
    transition: transform 0.8s ease-in-out;
    will-change: transform;
}

.stats-carousel-item {
    min-width: calc(100% / 4);
    flex-shrink: 0;
    padding: 0 var(--space-xs);
    box-sizing: border-box;
}

.about-stats-table {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    border-collapse: collapse;
    table-layout: fixed;
    min-width: 800px;
}

.about-stats-table.table td {
    border: none;
    padding: 0;
}

.about-stats-table td.stat-col {
    background: transparent;
    border: none;
    padding: 0;
    width: 14.28%;
    vertical-align: top;
}

.about-stats-table .stats-text-row td,
.about-stats-table .stats-number-row td {
    padding: 0;
    vertical-align: top;
}

/* Stat cell - unified with fluid values */
.stat-cell-box {
    position: relative;
    background: var(--white);
    border: none;
    box-shadow: none;
    transition: box-shadow var(--transition-base);
    width: 100%;
}

.stat-cell-box::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(to right, var(--primary-blue) 0%, var(--primary-orange) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    z-index: -1;
}

.stat-cell-box:hover {
    box-shadow: 0 2px 8px rgba(63, 131, 255, 0.2);
}

.stat-text-box {
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    min-height: clamp(120px, 22vw, 260px);
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

.stat-number-box {
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    min-height: clamp(60px, 12vw, 140px);
    margin-top: calc(clamp(120px, 22vw, 260px) * -0.35);
    position: relative;
    z-index: 10;
}

.stat-col:last-child .stat-cell-box {
    border-right: none;
}

.stat-text-cell {
    padding: var(--space-lg);
    min-height: clamp(90px, 18vw, 150px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.stat-title {
    color: var(--dark-purple);
    font-weight: 700;
    font-size: var(--text-sm);
    line-height: 1.4;
    margin: 0 0 var(--space-xs);
}

.stat-description {
    color: rgba(19, 0, 51, 0.6);
    font-size: var(--text-xs);
    line-height: 1.5;
    margin: 0;
    overflow: visible;
    white-space: normal;
}

.stat-number-cell {
    padding: var(--space-lg);
    text-align: center;
    min-height: clamp(80px, 15vw, 120px);
}

.stat-number {
    background: linear-gradient(to bottom, var(--primary-orange) 0%, var(--primary-blue) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: -1.5px;
    line-height: 1;
}

/* Carousel stat items - inherit from table */
.stats-carousel-item .stat-text-box {
    min-height: clamp(100px, 18vw, 180px);
}

.stats-carousel-item .stat-number-box {
    margin-top: calc(clamp(100px, 18vw, 180px) * -0.35);
}

.stats-carousel-item .stat-col {
    width: 100%;
    padding: 0;
}

/* About kicker & tall cards */
.about-header.mt-5 {
    margin-top: var(--space-3xl);
    margin-bottom: var(--space-2xl);
}

.about-kicker {
    color: #1a1a1a;
    font-weight: 600;
    font-size: var(--text-3xl);
    line-height: 1.4;
    margin: 0 0 var(--space-md);
}

.about-kicker span {
    color: #2268D9;
    font-weight: 700;
}

.about-tall-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
}

.about-tall-card {
    width: 100%;
    min-height: clamp(300px, 40vw, 500px);
    background: var(--light-gray);
    padding: var(--space-lg);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    cursor: pointer;
}

.about-tall-card:hover {
    background: #f0f0f0;
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.about-card-title {
    color: var(--dark-navy);
    font-weight: 700;
    font-size: var(--text-lg);
    line-height: 1.4;
    margin: 0 0 var(--space-sm);
}

.about-card-text {
    color: #666666;
    font-size: var(--text-base);
    line-height: 1.6;
    margin: 0 0 var(--space-xs);
}

.about-card-visual {
    margin-top: auto;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-top: var(--space-md);
}

.about-card-visual img {
    width: 100%;
    max-width: 180px;
    height: auto;
    object-fit: contain;
}

/* ===================================
   CAROUSEL SECTION
   =================================== */

.carousel-bg-decoration {
    position: relative;
    min-height: clamp(600px, 80vw, 900px);
    overflow: visible;
    background: var(--white);
}

.carousel-bg-decoration::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    max-width: 1600px;
    height: 100%;
    background-image: url('../img/website background line.png');
    background-repeat: no-repeat;
    background-position: center 15%;
    background-size: 100% auto;
    z-index: 1;
    pointer-events: none;
}

.carousel-wrapper {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-3xl) var(--space-lg);
    z-index: 5;
}

.carousel-wrapper::before,
.carousel-wrapper::after,
.laptop-carousel::before,
.laptop-carousel::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    height: 2px;
    background: repeating-linear-gradient(
        to right,
        rgba(156, 163, 175, 0.6) 0px 6px,
        transparent 6px 12px
    );
    z-index: 1;
    pointer-events: none;
}

.carousel-wrapper::before { top: 300px; }
.carousel-wrapper::after { top: 400px; }
.laptop-carousel::before { top: 500px; }
.laptop-carousel::after { top: 600px; }

.laptop-frame {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.laptop-bg {
    width: 100%;
    height: auto;
    display: block;
    z-index: 6;
}

.laptop-screen-carousel {
    position: absolute;
    top: 6%;
    left: 12.3%;
    width: 75.4%;
    height: 82%;
    z-index: 7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    object-position: top center;
    border-radius: 10px;
}

.carousel-slide.center {
    z-index: 10;
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.carousel-slide.left {
    z-index: 6;
    transform: translate(-145%, -50%) scale(0.72);
    box-shadow: 0 10px 40px rgba(31, 31, 31, 0.2);
    opacity: 0.7;
}

.carousel-slide.right {
    z-index: 6;
    transform: translate(45%, -50%) scale(0.72);
    box-shadow: 0 10px 40px rgba(31, 31, 31, 0.2);
    opacity: 0.7;
}

.carousel-slide.left-2 {
    z-index: 4;
    transform: translate(-230%, -50%) scale(0.55);
    opacity: 0.35;
}

.carousel-slide.right-2 {
    z-index: 4;
    transform: translate(130%, -50%) scale(0.55);
    opacity: 0.35;
}

.carousel-slide.hidden {
    opacity: 0;
    z-index: 1;
    transform: translate(-50%, -50%) scale(0.5);
    pointer-events: none;
}

.carousel-dots {
    position: absolute;
    bottom: clamp(-50px, -5vw, -70px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--space-sm);
    z-index: 20;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #D1D5DB;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    padding: 0;
}

.carousel-dot:hover {
    background: #9CA3AF;
}

.carousel-dot.active {
    width: 10px;
    border-radius: var(--radius-full);
    background: var(--dark-navy);
}

.cta-section {
    text-align: center;
    margin-top: var(--space-2xl);
    z-index: 5;
}

/* ===================================
   CLIENTS SECTION
   =================================== */

.clients-section {
    background: linear-gradient(to right, var(--primary-orange) 0%, #2066D8 100%);
    padding: var(--space-3xl) 0;
    position: relative;
    min-height: clamp(600px, 80vw, 1000px);
}

.clients-title,
.products-title {
    color: var(--white);
    font-weight: 700;
    font-size: var(--text-5xl);
    margin-bottom: var(--space-2xl);
    letter-spacing: -0.5px;
}

.clients-grid-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    transition: opacity 0.4s ease-in-out;
}

.clients-grid-container.fade-out {
    opacity: 0;
}

.clients-grid-container.fade-in {
    opacity: 1;
}

.clients-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: var(--space-lg);
}

.client-logo-item {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

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

.client-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: clamp(1rem, 2.5vw, 2rem);
    min-height: clamp(80px, 12vw, 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-base), background var(--transition-base), box-shadow var(--transition-base);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.client-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.client-logo {
    max-width: 100%;
    max-height: clamp(60px, 10vw, 120px);
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.95;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.client-card:hover .client-logo {
    opacity: 1;
    transform: scale(1.05);
}

.client-logo.fade-out-logo {
    opacity: 0;
    transform: scale(0.8);
}

.client-logo.fade-in-logo {
    animation: logoFadeIn 0.6s ease-out forwards;
}

@keyframes logoFadeIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 0.95; transform: scale(1); }
}

/* ===================================
   PIKASA SECTION
   =================================== */

#pikasa {
    background: linear-gradient(
        180deg,
        rgba(238, 104, 73, 0) 0%,
        rgba(150, 118, 164, 0.3) 50%,
        rgba(63, 131, 255, 0) 83%,
        rgba(255, 255, 255, 0) 100%
    ) !important;
    backdrop-filter: blur(20px);
    position: relative;
    z-index: 2;
    height: 1000px;
}
#pikasa .pikasa-section {
    background: linear-gradient(
        180deg,
        rgba(238, 104, 73, 0) 0%,
        rgba(150, 118, 164, 0.3) 50%,
        rgba(63, 131, 255, 0) 83%,
        rgba(255, 255, 255, 0) 100%
    );
    backdrop-filter: blur(20px);
    position: relative;
    z-index: 2;
    min-height: clamp(600px, 80vw, 1000px);
}

.pikasa-content {
    position: relative;
    min-height: 400px;
    background: #F8F8F8;
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    border: clamp(10px, 1.5vw, 15px) solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 18px 46px rgba(63, 80, 125, 0.18);
    overflow: hidden;
}

.pikasa-header {
    text-align: center;
    margin: var(--space-2xl);
}

.pikasa-title {
    color: var(--dark-purple);
    font-weight: 700;
    font-size: var(--text-4xl);
    margin-bottom: var(--space-md);
}

.pikasa-subtitle {
    color: var(--text-gray);
    font-size: var(--text-3xl);
    font-weight: 400;
    margin: 0;
}

.pikasa-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    padding-bottom: var(--space-sm);
    position: relative;
}

.pikasa-tabs::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background-color: #E0E0E0;
    border-radius: 2px;
    z-index: 0;
}

.pikasa-tab {
    background: none;
    border: none;
    color: var(--dark-purple);
    font-size: var(--text-lg);
    font-weight: 600;
    padding: var(--space-sm) 0;
    cursor: pointer;
    position: relative;
    transition: color var(--transition-base);
    z-index: 1;
}

.pikasa-tab::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--primary-orange) 100%);
    border-radius: 2px;
    transition: width var(--transition-base);
}

.pikasa-tab.active::after {
    width: 100%;
}

.pikasa-tab:hover {
    color: var(--primary-blue);
}

.pikasa-tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.pikasa-tab-content.active {
    display: block;
}

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

.pikasa-content-title {
    color: var(--dark-navy);
    font-weight: 700;
    font-size: var(--text-2xl);
    margin-bottom: var(--space-lg);
    line-height: 1.3;
}

.pikasa-text {
    color: #666666;
    font-size: var(--text-base);
    line-height: 1.6;
    margin-bottom: var(--space-sm);
}

.highlight-text {
    color: var(--primary-orange);
    font-weight: 600;
}

.highlight-link {
    color: var(--primary-orange);
    text-decoration: none;
    transition: opacity var(--transition-base);
}

.highlight-link:hover {
    opacity: 0.8;
}

.pikasa-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(250px, 35vw, 400px);
}

.pikasa-decorative-lines {
    position: absolute;
    top: -25%;
    left: 10%;
    width: 120%;
    max-width: 550px;
    z-index: 1;
    pointer-events: none;
    opacity: 0.9;
}

.pikasa-dashboard {
    position: relative;
    width: 100%;
    max-width: 600px;
    z-index: 10;
    filter: drop-shadow(0 25px 50px rgba(145, 3, 239, 0.12));
    animation: float-dashboard 6s ease-in-out infinite;
}

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

/* ===================================
   CORE PRODUCTS
   =================================== */

.core-products-header {
    text-align: center;
    z-index: 120;
}

.core-products-title {
    color: var(--dark-purple);
    font-weight: 700;
    font-size: var(--text-5xl);
    margin-bottom: var(--space-lg);
}

.product-icon-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: var(--space-sm) 0;
    min-height: clamp(32px, 4vw, 48px);
}

.product-vector-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: clamp(32px, 4vw, 48px);
    height: clamp(32px, 4vw, 48px);
    object-fit: contain;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.product-vector-icon.active {
    opacity: 0.8;
}

.core-products-subtitle {
    color: #6B7280;
    font-size: var(--text-xl);
    margin: 0 0 var(--space-lg);
}

.product-name-wrapper {
    min-height: 45px;
    margin-top: var(--space-lg);
}

.product-name {
    display: none;
    color: var(--dark-navy);
    font-weight: 600;
    font-size: var(--text-3xl);
    margin: 0;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.product-name.active {
    display: block;
    opacity: 1;
}

.product-description-wrapper {
    max-width: 100%;
    margin: var(--space-2xl) auto 0;
    padding: 0 var(--space-lg);
    min-height: 80px;
    text-align: center;
}

.product-description {
    display: none;
    color: #4B5563;
    font-size: var(--text-lg);
    line-height: 1.7;
    margin: 0;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.product-description.active {
    display: block;
    opacity: 1;
}

/* ===================================
   TESTIMONIALS SECTION
   =================================== */
   .plans-section {
    padding: 80px 0;
    background: #FFFFFF;
    position: relative;
    overflow: visible;
}

.plans-box {
    max-width: 1300px;
    width: 90%;
    min-height: 900px;
    margin: 0 auto;
    position: relative;
    border-radius: 50px;
    padding: 60px 30px 100px;
    background: transparent;
    overflow: hidden;
    box-shadow: 0px 10px 40px rgba(0, 0, 0, 0.25);
}

/* Left half - 180° rotation - W 835.54 H 1156 */
.plans-box::before {
    content: "";
    position: absolute;
    left: -2px;
    top: 0;
    width: calc(50% + 2px);
    height: 160%;
    background: conic-gradient(from 270deg, #3F83FF 0%, #123773 100%);
    transform: scaleX(-1);
    z-index: 1;
    

}

/* Right half - 0° rotation - W 854.17 H 1158.83 */
.plans-box::after {
    content: "";
    position: absolute;
    right: -2px;
    top: 0;
    width: calc(50% + 2px);
    height: 160%;
    background: conic-gradient(from 270deg, #3F83FF 0%, #123773 100%);
    z-index: 1;
   
}

.plans-box > * {
    position: relative;
    z-index: 10;
}


.plans-header {
    text-align: center;
    margin-bottom: 50px;
}

.plans-title {
    color: #FFFFFF;
    font-weight: 600;
    font-size: clamp(36px, 5vw, 38px);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.plans-subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-size: clamp(26px, 3vw, 28px);
    font-weight: 400;
    margin: 0;
}

.testimonial-card {
    background: transparent;
    border: none;
    padding: 0;
    height: 100%;
}

.testimonial-logo {
    max-width: 200px;
    height: 48px;
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.testimonial-logo img {
    width: auto;
    max-width: 100%;
    max-height: 48px;
    height: auto;
    object-fit: contain;
    object-position: left center;
    filter: brightness(0) invert(1);
    display: block;
}

.testimonial-text {
    color: #FFFFFF;
    font-size: clamp(14px, 2vw, 16px);
    line-height: 1.75;
    margin-bottom: 0;
    font-weight: 400;
}

.testimonial-author {
    margin-top: 30px;
}

.author-name {
    color: #FFFFFF;
    font-weight: 700;
    font-size: clamp(16px, 2vw, 18px);
    margin-bottom: 5px;
}

.author-position {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(14px, 1.8vw, 15px);
    margin: 0;
}
.angular-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height:180px;
    overflow: hidden; 
    pointer-events: none;
    z-index: 2;
}

/* Real ellipse + real blur */
.ellipse-blur {
    position: absolute;
    left: 50%;
    bottom: -250px; /* половина надвор – како Figma */
    transform: translateX(-50%);
    width: 1000px;
    height: 350px;
    background: #EE6849;
    border-radius: 50%;
    filter: blur(100px); /* ✔️ Layer Blur 100 */
    opacity: 1;
}



/* ===================================
   CTA & FOOTER
   =================================== */

.final-cta-title {
    color: var(--dark-purple);
    font-size: var(--text-5xl);
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.final-cta-subtitle {
    color: var(--text-gray);
    font-size: var(--text-lg);
    margin-bottom: var(--space-xl);
}

.footer-section {
    background: linear-gradient(to bottom, var(--white) 0%, #FFEAE5 30%, var(--primary-orange) 60%, var(--primary-blue) 100%);
    padding: 0 clamp(1rem, 5vw, 4rem);
    padding-bottom: clamp(2rem, 5vw, 4rem);
    border: clamp(1rem, 2vw, 2rem) solid var(--white);
    border-radius: 50px;
}

.footer-box {
    background: linear-gradient(180deg, var(--primary-blue) 0%, #113672 100%);
    border-radius: var(--radius-xl);
    color: var(--white);
    padding: clamp(2rem, 5vw, 5rem);
    position: relative;
    overflow: hidden;
}

.footer-box::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 500px;
    height: 300px;
    background: radial-gradient(circle, rgba(63, 131, 255, 0.4) 0%, transparent 70%);
    pointer-events: none;
}

.footer-content {
    position: relative;
    z-index: 1;
}

.footer-logo {
    height: 45px;
    width: auto;
}

.footer-text {
    color: var(--white);
    max-width: 320px;
    font-size: var(--text-base);
    line-height: 1.6;
    margin-top: var(--space-lg);
}

.footer-title {
    font-size: var(--text-sm);
    font-weight: 700;
    margin-bottom: var(--space-lg);
    color: var(--white);
    letter-spacing: 1px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    font-size: var(--text-base);
    transition: color var(--transition-base);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-social {
    margin-top: var(--space-lg);
}

.footer-social .social-icon {
    width: clamp(40px, 5vw, 50px);
    height: clamp(40px, 5vw, 50px);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    font-size: 1.25rem;
    transition: all var(--transition-base);
    background: transparent;
}

.footer-social .social-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--white);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--text-sm);
    padding-top: var(--space-lg);
    margin-top: var(--space-2xl);
    text-align: center;
}

/* ===================================
   UTILITY & ACCESSIBILITY
   =================================== */

:focus-visible {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
