/* === Hero mesh gradient === */
.hero-mesh {
    position: absolute; inset: 0;
    overflow: hidden;
    z-index: 1;
}
.blob {
    position: absolute; border-radius: 50%;
    filter: blur(80px); opacity: 0.75;
    will-change: transform;
    animation: floatBlob 18s ease-in-out infinite;
}
.blob-1 {
    width: 520px; height: 520px;
    background: var(--navy);
    top: -180px; left: -180px;
    animation-delay: 0s;
}
.blob-2 {
    width: 480px; height: 480px;
    background: var(--electric);
    top: 10%; right: -100px;
    animation-delay: -6s;
}
.blob-3 {
    width: 420px; height: 420px;
    background: var(--lime);
    bottom: -140px; left: 35%;
    animation-delay: -12s;
    opacity: 0.85;
}
@keyframes floatBlob {
    0%, 100% { transform: translate(0,0) scale(1); }
    33% { transform: translate(60px, -40px) scale(1.15); }
    66% { transform: translate(-50px, 50px) scale(0.9); }
}

.hero-noise {
    position: absolute; inset: 0; z-index: 1;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/></svg>");
    opacity: 0.08; pointer-events: none;
}
.hero-vignette {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.45));
    pointer-events: none;
}

/* === Blueprint grid (subtle) === */
.hero-grid-bg {
    position: absolute; inset: 0; z-index: 1;
    background-image:
        linear-gradient(rgba(164,216,46,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(164,216,46,0.05) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

/* === Watermark PLASTOPACK vertical === */
.hero-watermark {
    position: absolute;
    right: -60px;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    transform-origin: right center;
    font-family: var(--font-display);
    font-size: 10rem;
    font-weight: 800;
    letter-spacing: 12px;
    color: rgba(255,255,255,0.025);
    z-index: 1;
    pointer-events: none;
    white-space: nowrap;
    user-select: none;
}

/* === Floating plasturgie icons === */
.hero-floats {
    position: absolute; inset: 0; z-index: 1;
    pointer-events: none;
    overflow: hidden;
}
.hero-float {
    position: absolute;
    color: rgba(164,216,46,0.28);
    animation: heroFloat 18s ease-in-out infinite;
    will-change: transform;
}
@keyframes heroFloat {
    0%, 100% { transform: translate(0,0) rotate(0deg); }
    25% { transform: translate(20px, -25px) rotate(8deg); }
    50% { transform: translate(-15px, -35px) rotate(-6deg); }
    75% { transform: translate(25px, 15px) rotate(12deg); }
}
@keyframes heroFloatRev {
    0%, 100% { transform: translate(0,0) rotate(0deg); }
    33% { transform: translate(-25px, 18px) rotate(-10deg); }
    66% { transform: translate(18px, -22px) rotate(15deg); }
}
.hero-float.hf-1 { top: 14%; left: 8%; animation-duration: 16s; }
.hero-float.hf-2 { top: 22%; right: 10%; color: rgba(30,155,255,0.32); animation: heroFloatRev 20s ease-in-out infinite; }
.hero-float.hf-3 { bottom: 18%; left: 18%; animation-duration: 17s; animation-delay: -3s; }
.hero-float.hf-4 { bottom: 26%; right: 16%; color: rgba(255,255,255,0.18); animation: heroFloatRev 22s ease-in-out infinite; animation-delay: -5s; }
.hero-float.hf-5 { top: 55%; left: 4%; color: rgba(255,255,255,0.16); animation-duration: 19s; animation-delay: -7s; }
.hero-float.hf-6 { top: 42%; right: 22%; animation: heroFloatRev 16s ease-in-out infinite; animation-delay: -2s; }
.hero-float.hf-7 { top: 32%; left: 38%; color: rgba(30,155,255,0.28); animation-duration: 24s; animation-delay: -9s; }
.hero-float.hf-8 { bottom: 12%; left: 48%; animation: heroFloatRev 21s ease-in-out infinite; animation-delay: -4s; }

@media (max-width: 768px) {
    .hero-float.hf-3, .hero-float.hf-5, .hero-float.hf-7, .hero-float.hf-8 { display: none; }
    .hero-watermark { font-size: 6rem; right: -30px; letter-spacing: 8px; }
    .hero-grid-bg { background-size: 24px 24px; }
}

/* === Apropos corporate card === */
.apropos-corporate {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    clip-path: polygon(0 0, 100% 0, 100% 85%, 85% 100%, 0 100%);
    background: linear-gradient(135deg, #0A1530 0%, #162E6F 60%, #1E9BFF 100%);
    color: #fff;
    isolation: isolate;
}

/* Mesh halo */
.ap-bg-mesh {
    position: absolute; inset: 0; z-index: 0;
}
.ap-bg-mesh::before, .ap-bg-mesh::after {
    content:''; position:absolute; border-radius:50%; filter: blur(70px);
}
.ap-bg-mesh::before {
    width: 320px; height: 320px; background: rgba(164,216,46,0.45);
    bottom: -100px; right: -80px;
}
.ap-bg-mesh::after {
    width: 260px; height: 260px; background: rgba(30,155,255,0.4);
    top: -60px; left: -60px;
}

/* Blueprint grid */
.ap-bg-grid {
    position: absolute; inset: 0; z-index: 1;
    background-image:
        linear-gradient(rgba(164,216,46,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(164,216,46,0.06) 1px, transparent 1px);
    background-size: 36px 36px;
    pointer-events: none;
}

/* Watermark P2P */
.ap-watermark {
    position: absolute;
    top: 50%; right: -20px;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: right center;
    font-family: var(--font-display);
    font-size: 14rem;
    font-weight: 800;
    letter-spacing: 8px;
    color: rgba(255,255,255,0.04);
    z-index: 1;
    pointer-events: none;
    user-select: none;
    line-height: 1;
}

/* Content */
.ap-content {
    position: relative; z-index: 2;
    padding: 50px 45px;
    height: 100%;
    display: flex; flex-direction: column;
}
.ap-eyebrow {
    font-size: 0.72rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--lime);
    font-weight: 700;
    margin-bottom: 18px;
}
.ap-headline {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}
.ap-headline span {
    background: linear-gradient(135deg, var(--lime) 0%, var(--lime-bright) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.ap-tagline {
    font-size: 1rem;
    color: rgba(255,255,255,0.75);
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 28px;
}
.ap-divider {
    width: 60px; height: 3px;
    background: var(--lime);
    margin-bottom: 28px;
    border-radius: 2px;
}
.ap-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: auto;
}
.ap-stat {
    display: flex; flex-direction: column;
    padding-left: 14px;
    border-left: 2px solid rgba(164,216,46,0.4);
}
.ap-stat strong {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--lime);
    line-height: 1;
    margin-bottom: 6px;
}
.ap-stat span {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.3;
}
.ap-bottom-bar {
    display: flex; flex-direction: column;
    align-items: flex-start;
    padding-top: 20px;
    margin-top: 20px;
    padding-right: 180px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.78rem;
    color: rgba(255,255,255,0.6);
    gap: 6px;
}
.ap-cert { color: var(--lime); font-weight: 600; letter-spacing: 0.5px; }
.tn-flag-corner {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 56px;
    height: 38px;
    border-radius: 4px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.35), 0 0 0 2px rgba(255,255,255,0.25);
    z-index: 4;
    transform-origin: left center;
    animation: tnFlagWave 3.5s ease-in-out infinite;
}
@keyframes tnFlagWave {
    0%, 100% { transform: skewY(0deg) skewX(0deg); }
    25% { transform: skewY(-2deg) skewX(-1deg); }
    50% { transform: skewY(0deg) skewX(0deg); }
    75% { transform: skewY(2deg) skewX(1deg); }
}

@media (max-width: 768px) {
    .ap-content { padding: 32px 28px; }
    .ap-headline { font-size: 1.6rem; }
    .ap-stats { grid-template-columns: 1fr 1fr; }
    .ap-watermark { font-size: 9rem; }
}
