/* ── Fonts ── */
/* Design-system fonts (welfare, AnekBangla, NibPro) are registered locally in security.html; no external font requests */

:root {
    --bg-color: #ebe3d8;
    --ink: #101010;
    --accent-pink: #eb2f96;
    /* Pink accent matching "Plan Smarter" vibe */
    --card-yellow: #ffe66d;
    --card-pink: #ff9bf5;
    --card-green: #4de890;
    --card-purple: #a39aff;
    --border-color: #000000;
    --btn-primary: #ffce1f;
    /* Yellowish button */
}

/* ── Global Reset ── */
.security-page,
.security-page *,
.security-page *::before,
.security-page *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.security-page-body {
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.security-page {
    color: var(--ink);
    font-family: AnekBangla, Inter, system-ui, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* ── Hero Section ── */
.hero-section {
    min-height: 85vh;
    /* Reduced from 100vh to fit better */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 4vw;
    /* Reduced top/bottom padding from 80px */
}

.hero-container {
    display: grid;
    /* Changed from 1fr 1fr to 0.8fr 1.2fr to give right side more space */
    grid-template-columns: 0.78fr 1.22fr;
    gap: 60px;
    max-width: 1580px;
    /* Increased max-width */
    width: 100%;
}

/* ... Left Content (Typography) ... */

/* ... */

/* ── Right Content (Bento Grid) ── */
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bento-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    /* Allow it to fill the 1.2fr column */
}

/* ... Card Styles ... */

/* Marquee Title (Sliding Up/Along) */
.card-marquee-wrap {
    width: 100%;
    margin-bottom: 20px;
    overflow: hidden;
    /* Blurry margin effect */
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.card-marquee {
    display: flex;
    align-items: center;
    gap: 0;
    /* Gap handled by padding in items for seamless loop */
    width: max-content;
    /* Speed depends on content width, adjusted to 10s */
    animation: slideScroll 12s linear infinite;
}

/* 
   We have 4 sets of items usually.
   To be seamless, we move from 0% to -25% (if 4 sets) or -50% (if 2 sets).
   I added 4 sets to HTML. 
   Ideally, if we have 4 identical items, we simply scroll by the width of ONE item?
   Actually, the simplest seamless loop is 2 identical chunks.
   With 4 items (ITEM * 4), we can scroll -25% (one item width) if they are identical?
   Let's try scrolling -50% (half the track) which assumes the second half is clone of first half.
   In HTML I put 4 duplicates. So standard translateX(-25%) might be safest loop if all equal.
   BUT, usually, you just need [Content] [Duplicate].
   Here I have 4 repeats. Let's scroll -25% (1/4th) so item 2 replaces item 1 perfectly.
*/
@keyframes slideScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-25%);
    }
}

.marquee-item {
    display: flex;
    align-items: center;
    padding-right: 30px;
    /* Spacing between repeats */
}

.card-marquee .marquee-title {
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
}

.marquee-star {
    font-size: 14px;
    color: var(--ink);
    margin-left: 18px;
    /* Space between text and star */
    line-height: 1;
    display: inline-block;
}

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

.badge-pill {
    display: inline-block;
    background: #fff;
    border: 2px solid var(--border-color);
    /* Brutalist border */
    padding: 8px 24px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 24px;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.1);
}

.security-page h1 {
    font-family: welfare, AnekBangla, system-ui, sans-serif;
    font-size: clamp(34px, 3.9vw, 56px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 32px;
}

.security-page h1 .block-text {
    display: block;
    font-weight: 800;
}

.security-page h1 .accent-text {
    display: block;
    font-family: welfare, AnekBangla, system-ui, sans-serif;
    font-style: normal;
    font-weight: 500;
    color: var(--accent-pink);
    margin: 4px 0;
}

.security-page h1 .small {
    font-size: 0.6em;
    /* "from day one" smaller */
    margin-top: 10px;
    font-weight: 600;
}

.hero-subhead {
    font-family: NibPro, Georgia, serif;
    font-size: clamp(1rem, 1.3vw, 1.25rem);
    max-width: 520px;
    color: #4a4a4a;
    font-weight: 500;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Guard hero styles from external CSS resets (e.g., Tailwind preflight) */
.security-page .hero-section {
    min-height: 85vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 40px 4vw !important;
}

.security-page .hero-container {
    display: grid !important;
    grid-template-columns: 0.78fr 1.22fr !important;
    gap: 60px !important;
    max-width: 1580px !important;
    width: 100% !important;
}

.security-page .hero-visual {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.security-page .bento-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: auto auto !important;
    gap: 16px !important;
    width: 100% !important;
    max-width: 620px !important;
}

.security-page .hero-content h1 {
    font-family: welfare, AnekBangla, system-ui, sans-serif !important;
    font-size: clamp(34px, 3.9vw, 56px) !important;
    line-height: 1.05 !important;
    letter-spacing: -0.02em !important;
    color: var(--ink) !important;
    margin-bottom: 32px !important;
}

.security-page .hero-content h1 .block-text {
    display: block !important;
    font-weight: 800 !important;
}

.security-page .hero-content h1 .accent-text {
    display: block !important;
    font-family: welfare, AnekBangla, system-ui, sans-serif!important;
    font-style: normal !important;
    font-weight: 500 !important;
    color: var(--accent-pink) !important;
    margin: 4px 0 !important;
}

.security-page .hero-content h1 .small {
    font-size: 0.6em !important;
    margin-top: 10px !important;
    font-weight: 600 !important;
}

/* ── Buttons ── */
.cta-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
}

.buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    border: 2px solid var(--border-color);
    /* Brutalist border */
    white-space: nowrap;
}

.btn-primary {
    background: var(--btn-primary);
    color: var(--ink);
    box-shadow: 4px 4px 0 var(--border-color);
}

.btn-primary:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--border-color);
}

.btn-secondary {
    background: transparent;
    color: var(--ink);
    box-shadow: none;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.5);
}

.micro-link {
    font-size: 14px;
    color: #666;
    text-decoration: none;
    margin-top: 4px;
}

.micro-link span {
    text-decoration: underline;
    font-weight: 600;
    cursor: pointer;
}

/* ── Right Content (Bento Grid) ── */
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bento-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 16px;
    width: 100%;
    max-width: 620px;
}

.bento-card {
    border: 3px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    position: relative;
    box-shadow: 6px 6px 0 var(--border-color);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    aspect-ratio: 1.4 / 1;
    /* Flatter cards for a shorter grid */
    min-height: 160px;
    overflow: hidden;
    opacity: 0;
}

/* Stagger animation class */
.bento-card.visible {
    opacity: 1;
    animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.bento-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 10px 10px 0 var(--border-color);
}

/* Card Colors */
.card-yellow {
    background: var(--card-yellow);
}

.card-pink {
    background: var(--card-pink);
}

.card-green {
    background: var(--card-green);
}

.card-purple {
    background: var(--card-purple);
}

/* Card Internals */
.card-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 12px;
}

.card-num {
    font-weight: 800;
    font-size: 14px;
    margin-bottom: 5px;
}

.card-line {
    width: 36px;
    height: 3px;
    background: var(--border-color);
}

/* Marquee Title (Sliding Up/Along) */
.card-marquee-wrap {
    width: 100%;
    margin-bottom: 10px;
    overflow: hidden;
    /* Blurry margin effect */
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.card-marquee {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: slideScroll 8s linear infinite;
}

@keyframes slideScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.card-marquee h3 {
    font-size: 26px;
    /* Bigger Title */
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
}

/* Icons */
.card-icon-area {
    margin-bottom: auto;
    /* Push body down */
    margin-bottom: 8px;
}

.nice-icon {
    width: 28px;
    height: 28px;
}

.card-body p {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    color: rgba(0, 0, 0, 0.85);
}

/* Doodles removed in favor of nice icons */
/* .card-doodle { display: none; } */


/* ── Modal ── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: none;
    /* Hidden by default */
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.modal-overlay.open {
    display: flex;
    opacity: 1;
}

.modal-window {
    background: #fff;
    border: 3px solid var(--border-color);
    box-shadow: 12px 12px 0 var(--border-color);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    padding: 32px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.open .modal-window {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
}

/* Steps */
.step {
    display: none;
    /* Hidden */
}

.step.active {
    display: block;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.step h2 {
    font-size: 24px;
    margin-bottom: 24px;
}

.input-group {
    margin-bottom: 18px;
}

.input-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
}

.btn-modal-next,
.btn-modal-submit,
.btn-modal-close-final {
    width: 100%;
    background: var(--ink);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
}

.btn-modal-submit {
    background: var(--btn-primary);
    color: var(--ink);
    border: 2px solid black;
}

.btn-modal-close-final {
    background: #eee;
    color: #000;
}

.success-icon {
    font-size: 48px;
    margin-bottom: 16px;
    text-align: center;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-content {
        align-items: center;
    }

    .hero-subhead {
        margin: 0 auto 32px;
    }

    .cta-wrapper {
        align-items: center;
    }

    .buttons {
        justify-content: center;
    }

    .bento-grid {
        max-width: 420px;
        margin: 0 auto;
    }
}

@media (max-width: 1024px) {
    .security-page .hero-container {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
        text-align: center !important;
    }

    .security-page .hero-content {
        align-items: center !important;
    }

    .security-page .hero-subhead {
        margin: 0 auto 32px !important;
    }

    .security-page .cta-wrapper {
        align-items: center !important;
    }

    .security-page .buttons {
        justify-content: center !important;
    }

    .security-page .bento-grid {
        max-width: 420px !important;
        margin: 0 auto !important;
    }
}

@media (max-width: 600px) {
    .bento-grid {
        grid-template-columns: 1fr;
        /* Stack cards on mobile */
    }

    .security-page h1 {
        font-size: 42px;
    }
}

@media (max-width: 600px) {
    .security-page .bento-grid {
        grid-template-columns: 1fr !important;
    }

    .security-page .hero-content h1 {
        font-size: clamp(2rem, 9vw, 2.45rem) !important;
        line-height: 1.02 !important;
        letter-spacing: -0.02em !important;
        margin-bottom: 22px !important;
    }

    .security-page .hero-subhead {
        font-size: 1rem !important;
        line-height: 1.5 !important;
        margin-bottom: 24px !important;
    }

    .security-page .buttons {
        width: 100% !important;
        justify-content: center !important;
    }

    .security-page .btn-primary,
    .security-page .btn-secondary {
        width: min(100%, 320px) !important;
        min-height: 50px !important;
        padding: 13px 20px !important;
        font-size: 1rem !important;
        line-height: 1.15 !important;
        white-space: normal !important;
        text-align: center !important;
    }
}

/* ── Section 2: Stats Strip ── */
.stats-section {
    padding: 100px 4vw;
    background: transparent;
    /* Removed background color and border to be seamless */
    text-align: center;
    position: relative;
    z-index: 6;
}

.stats-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    /* Significantly increased gap to prevent overlap */
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.stat-card {
    position: relative;
    width: 250px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: default;
    background: #eee;
    color: var(--ink);
    border: 3px solid var(--border-color);
    box-shadow: 8px 8px 0 var(--border-color);
    /* Float animation for ALL cards */
    animation: floatCard 6s ease-in-out infinite;
}

/* Stagger animations */
.stat-card:nth-child(1) {
    animation-delay: 0s;
}

.stat-card:nth-child(2) {
    animation-delay: 1.5s;
}

.stat-card:nth-child(3) {
    animation-delay: 3s;
}

.stat-card:nth-child(4) {
    animation-delay: 4.5s;
}

@keyframes floatCard {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

.stat-card:hover {
    transform: scale(1.1) translateY(-12px) !important;
    box-shadow: 14px 14px 0 var(--border-color);
    z-index: 10;
}

.stat-inner {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.stat-icon {
    width: 32px;
    height: 32px;
    margin-top: 8px;
    /* Icon at bottom now */
    stroke-width: 2px;
    opacity: 0.7;
}

.stat-val {
    display: block;
    font-size: 56px;
    /* Bigger number */
    font-weight: 800;
    line-height: 1;
    font-family: AnekBangla, Inter, system-ui, sans-serif;
}

.stat-label {
    font-family: welfare, AnekBangla, system-ui, sans-serif;
    /* Nicer font */
    font-style: italic;
    font-size: 22px;
    /* Bigger label */
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 4px;
    color: var(--ink);
}

/* Unique Shapes */

/* 1. Blob (Pink) */
.shape-blob {
    background: var(--card-pink);
    border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
    /* Combine float (inherited) with Pulse? 
       To avoid overriding float, we can just use floatCard here too, 
       OR define a specific keyframe that does BOTH. 
       Let's use a specific one for Blob to keep it "alive". */
    animation: blobFloat 7s ease-in-out infinite alternate;
}

@keyframes blobFloat {
    0% {
        transform: translateY(0);
        border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
    }

    100% {
        transform: translateY(-12px);
        border-radius: 58% 42% 30% 70% / 55% 55% 45% 45%;
    }
}

/* 2. Circle (Green) - Fixed aspect ratio */
.shape-pill {
    background: var(--card-green);
    border-radius: 50%;
    width: 250px;
    /* Ensure circle */
}

/* 3. Diamond (Purple) */
.shape-diamond {
    background: var(--card-purple);
    border-radius: 24px;
    /* We must use specific animation for Diamond because default float uses translateY 
       which might conflict with the base rotate(45deg) if not carefully composed?
       Actually, `transform` property overrides. So we need a specific keyframe that includes rotation. */
    animation: diamondFloat 6s ease-in-out infinite;
}

@keyframes diamondFloat {

    0%,
    100% {
        transform: rotate(45deg) translateY(0);
    }

    50% {
        transform: rotate(45deg) translateY(-12px);
    }
}

.shape-diamond:hover {
    transform: rotate(45deg) scale(1.1) translateY(-12px) !important;
}

.shape-diamond .stat-inner {
    transform: rotate(-45deg);
    /* Counter rotate content */
    width: 140%;
}

/* 4. Skew (Yellow) */
.shape-skew {
    background: var(--card-yellow);
    transform: skew(-10deg);
    border-radius: 12px;
    /* Specific animation to include skew */
    animation: skewFloat 6s ease-in-out infinite;
}

@keyframes skewFloat {

    0%,
    100% {
        transform: skew(-10deg) translateY(0);
    }

    50% {
        transform: skew(-10deg) translateY(-12px);
    }
}

.shape-skew:hover {
    transform: skew(-10deg) scale(1.1) translateY(-12px) !important;
}

.shape-skew .stat-inner {
    transform: skew(10deg);
}

/* Tagline */
.stats-tagline {
    font-family: welfare, AnekBangla, system-ui, sans-serif;
    font-style: italic;
    font-size: 28px;
    font-weight: 600;
    max-width: 800px;
    margin: 0 auto;
    color: var(--ink);
    position: relative;
    padding-top: 30px;
}

.stats-tagline::before {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-pink);
    margin: 0 auto 24px;
    border-radius: 2px;
}

/* Responsive */
@media (max-width: 1024px) {
    .stats-container {
        gap: 50px;
    }
}

@media (max-width: 768px) {
    .stats-container {
        gap: 40px;
    }

    .stat-card {
        width: 100%;
        max-width: 280px;
        height: auto;
        min-height: 200px;
        padding: 40px 20px;
    }

    /* On mobile, reset complex transforms for better layout flow? */
    .shape-diamond {
        transform: none;
        animation: floatCard 6s ease-in-out infinite;
        /* Standard float */
        margin: 20px 0;
    }

    @keyframes diamondFloat {
        /* Reset for mobile if needed, but easier to just change class animation */
    }

    .shape-diamond:hover {
        transform: scale(1.05);
    }

    .shape-diamond .stat-inner {
        transform: none;
        width: auto;
    }

    .shape-skew {
        transform: none;
        animation: floatCard 6s ease-in-out infinite;
    }

    .shape-skew:hover {
        transform: scale(1.05);
    }

    .shape-skew .stat-inner {
        transform: none;
    }
}

/* ── Section Gradient Divider — now rendered as ::before on core-pillars ── */
.section-gradient-divider {
    display: none;
    /* Replaced by ::before pseudo-element below */
}

/* ── Section 3: Core Pillars ── */
.core-pillars {
    background-color: #000000;
    /* Pure black */
    color: #fff;
    padding: 56px 4vw;
    padding-top: 320px;
    /* Extra top padding to make room for the gradient overlay */
    margin-top: -280px;
    /* Pull section up so gradient overlaps the cream area */
    position: relative;
    z-index: 5;

    /* Palette */
    --p-cream: #f0e6cb;
    /* Updated to beige as requested */
    --p-green: #004d33;
    /* Dark Green for "Black" replacement */
    --p-red: #d92525;
    --p-black: #0d0d0d;
    /* Avoid using this for text, use p-green instead */
}

.core-pillars::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 280px;
    background: linear-gradient(180deg,
            #ebe3d8 0%,
            #e6ddd0 5%,
            #e0d5c4 10%,
            #d9cab3 16%,
            #d1be9f 22%,
            #c9b18b 28%,
            #bfa276 34%,
            #b39262 40%,
            #a47e50 46%,
            #946940 52%,
            #835433 58%,
            #6e3f27 64%,
            #5a2d1c 70%,
            #451e14 76%,
            #30120d 82%,
            #1e0a07 88%,
            #0d0503 94%,
            #000000 100%);
    z-index: 0;
    pointer-events: none;
}

.pillars-intro {
    max-width: 860px;
    margin: 0 auto 36px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.pillars-intro h2 {
    font-family: welfare, AnekBangla, system-ui, sans-serif;
    font-size: clamp(34px, 3.9vw, 56px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    /* dark section: ink swaps to white */
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

/* dark background: lightened tints of the blue/green accent pair */
.pillars-intro h2 .pillars-focus-a { color: #60a5fa; }
.pillars-intro h2 .pillars-focus-b { color: #34d399; }

.pillars-intro p {
    font-family: NibPro, Georgia, serif;
    font-size: clamp(1rem, 1.3vw, 1.25rem);
    color: rgba(240, 230, 203, 0.7);
    /* Matching beige opacity */
    line-height: 1.6;
}

/* Dark Bento Grid */
.bento-grid-dark {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(200px, auto);
    gap: 14px;
    max-width: 1120px;
    margin: 0 auto;
}

.pillar-card {
    border-radius: 18px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.6s ease;
    border: none;

    /* Initial state for scroll animation */
    opacity: 0;
    transform: translateY(30px);
}

.pillar-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.pillar-card:hover {
    transform: translateY(-5px);
    z-index: 2;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

/* Typography Defaults for Cards */
.pillar-card h3 {
    font-family: welfare, AnekBangla, system-ui, sans-serif;
    /* Condensed Font */
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: none;
    line-height: 0.98;
    letter-spacing: -0.02em;
}

.pillar-card ul {
    list-style: none;
    /* Remove default bullets */
    padding: 0;
    margin: 0;
}

/* Remove Black Text - Use Green/Red/Cream */
.pillar-card ul li {
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 5px;
    opacity: 1;
    position: relative;
    padding-left: 20px;
    /* More padding for icon */
    line-height: 1.3;
}

/* Fascinating Bullet: Custom 8-Point Star SVG Mask */
.pillar-card ul li::before {
    content: "";
    /* Absolute fix for double rendering */
    position: absolute;
    left: 0;
    top: 3px;
    width: 14px;
    height: 14px;

    background-color: var(--bullet-color, currentColor);

    /* 8-Point Star (Asterisk) SVG Mask */
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2V22' stroke='black' stroke-width='3' stroke-linecap='round'/%3E%3Cpath d='M2 12H22' stroke='black' stroke-width='3' stroke-linecap='round'/%3E%3Cpath d='M4.93 4.93 19.07 19.07' stroke='black' stroke-width='3' stroke-linecap='round'/%3E%3Cpath d='M4.93 19.07 19.07 4.93' stroke='black' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2V22' stroke='black' stroke-width='3' stroke-linecap='round'/%3E%3Cpath d='M2 12H22' stroke='black' stroke-width='3' stroke-linecap='round'/%3E%3Cpath d='M4.93 4.93 19.07 19.07' stroke='black' stroke-width='3' stroke-linecap='round'/%3E%3Cpath d='M4.93 19.07 19.07 4.93' stroke='black' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");

    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

/* Card 1 Large: Identity & Access */
.card-large {
    grid-column: span 2;
    --bullet-color: var(--p-red);
    padding-top: 80px !important;
    /* Push content down */
}

/* Identity Icon (Top Right) */
.identity-icon {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 72px;
    /* Adjust size */
    height: auto;
    z-index: 2;
    pointer-events: none;
}

/* Specific overrides for Identity Box */
.card-large h3 {
    font-size: 68px;
    /* Giant Title */
    line-height: 0.9;
    margin-bottom: 24px;
}

.card-large ul li::before {
    /* controlled by var */
}

/* Card 2: Data Protection (Nested Card Design) */
.bg-red-special {
    background: var(--p-red);
    padding: 16px;
    /* Outer Red Padding */
    display: flex;
    align-items: stretch;
    /* Stretch inner */
}

.bg-red-special .inner-white-card {
    background: var(--p-cream);
    border-radius: 14px;
    width: 100%;
    height: 100%;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--p-red);
    /* Red Text inside */
    --bullet-color: var(--p-red);
}

.bg-red-special h3 {
    color: #004d33;
    font-size: 22px;
    margin-bottom: 8px;
    font-style: italic;
    /* From reference */
}

.bg-red-special .pillar-icon {
    color: var(--p-red);
    margin-bottom: 12px;
}

.bg-red-special ul li {
    color: var(--p-red);
    font-weight: 700;
}

.bg-red-special ul li::before {
    /* controlled by var */
}

/* Palette Classes */
.bg-cream {
    background: var(--p-cream);
    color: var(--p-green);
    --bullet-color: var(--p-red);
    /* Cream cards have RED bullets */
}

.bg-cream h3 {
    color: var(--p-green);
}

.bg-cream .pillar-icon {
    color: var(--p-green);
}

.bg-cream ul li {
    color: var(--p-green);
}

/* No Black */
.bg-cream ul li::before {
    /* controlled by var */
}

.bg-red {
    background: var(--p-red);
    color: var(--p-cream);
    --bullet-color: var(--p-black);
    /* Dark bullets on Red */
}

.bg-red h3 {
    color: var(--p-cream);
}

.bg-red .pillar-icon {
    color: var(--p-cream);
}

.bg-red ul li {
    color: rgba(240, 230, 203, 0.9);
    /* Beige text on red */
}

.bg-red ul li::before {
    /* controlled by var + opacity if needed */
    background-color: #f0e6cb;
}

.bg-green-dark {
    background: var(--p-green);
    color: var(--p-cream);
    --bullet-color: var(--p-cream);
    /* Cream bullets on Green */
}

.bg-green-dark h3 {
    color: var(--p-cream);
}

.bg-green-dark .pillar-icon {
    color: var(--p-cream);
}

.bg-green-dark ul li {
    color: #f0e6cb;
}

/* Special Text Variants */
.bg-cream.text-red h3 {
    color: var(--p-red);
}

.bg-cream.text-red .pillar-icon {
    color: var(--p-red);
}

/* 1. Network & Perimeter: Red Title */
.text-red-title h3 {
    color: var(--p-red) !important;
}

/* 2. Resilience & Recovery: Red Bullets */
.bullets-red {
    --bullet-color: var(--p-red) !important;
}

.bullets-red ul li {
    color: #eb6666;
    /* Ensure text remains cream if not already */
}

/* 3. Secure Engineering: Green Title & Green Bullets (Cream Text) */
.title-bullets-green h3 {
    color: var(--p-green) !important;
    /* Green Title */
}

.title-bullets-green {
    --bullet-color: var(--p-green) !important;
    /* Green Bullets */
}

.title-bullets-green ul li {
    color: #f0e6cb;
    /* Text remains Cream */
}

/* Card 1A: Headline Gradient (Green + Red/Orange Mix) */
.bg-gradient-header {
    background: linear-gradient(100deg, var(--p-green), #d92525);
    /* Green to Orange-Red mix */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 !important;
    /* Full fill */
}

.header-text-white {
    color: #ffffff !important;
    font-family: welfare, AnekBangla, system-ui, sans-serif;
    font-size: 56px !important;
    line-height: 1 !important;
    text-transform: uppercase;
    margin: 0 !important;
}

/* Filler Ends - Removed or Hidden since moved to start */
.filler-end {
    display: none;
}

/* Swapped black for green */
.bg-cream.text-black .pillar-icon {
    color: var(--p-green);
}


.pillar-icon-wrap {
    margin-bottom: 10px;
}

.pillar-icon {
    width: 30px;
    height: 30px;
    transition: transform 0.4s ease;
    stroke-width: 2.5px;
}

.pillar-card:hover .pillar-icon {
    transform: rotate(8deg) scale(1.1);
}

/* CCTV Camera Icon (Monitoring Card) */
.cctv-icon {
    position: absolute;
    top: -12px;
    right: -10px;
    width: 80px;
    height: 80px;
    z-index: 2;
    pointer-events: none;
    overflow: visible;
}

/* Firewall Icon (Network Card) */
.firewall-icon {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 62px;
    /* Adjust as needed */
    height: auto;
    z-index: 2;
    pointer-events: none;
}

/* Data Protection Icon (Data Protection Card) */
.data-icon {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 66px;
    height: auto;
    z-index: 2;
    pointer-events: none;
}

/* Secure Engineering Icon */
.secure-icon {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 66px;
    height: auto;
    z-index: 2;
    pointer-events: none;
}

/* Recovery Icon (Resilience & Recovery Card) */
.recovery-icon {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 66px;
    height: auto;
    z-index: 2;
    pointer-events: none;
}

/* Vertical Stack Card (Monitoring + Every Layer) */
.span-row-2 {
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-section-top {
    flex: 1;
}

.card-section-bottom {
    margin-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    /* Optional divider */
    padding-top: 24px;
}

.card-section-bottom p {
    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
}

.every-layer-text {
    font-family: welfare, AnekBangla, system-ui, sans-serif;
    font-size: 56px !important;
    line-height: 0.9 !important;
    color: var(--p-red);
    text-transform: uppercase;
    margin: 0 !important;
    letter-spacing: -0.02em;
}

/* Fillers */
.filler-center {
    display: flex;
    align-items: center;
    justify-content: center;
    justify-content: center;
}

.shield-anim {
    width: 42px;
    height: 42px;
    border: 3px solid var(--p-green);
    border-radius: 50%;
    position: relative;
    animation: shieldPulse 3s infinite;
}

/* Adjust filler for red background */
.bg-red .shield-anim {
    border-color: var(--p-cream);
}

.bg-red .shield-anim::after {
    background: var(--p-cream);
}

.shield-anim::after {
    content: "";
    position: absolute;
    inset: 8px;
    background: var(--p-green);
    border-radius: 50%;
    opacity: 0.2;
}

@keyframes shieldPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.filler-end {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--p-cream) !important;
    /* Force cream */
}

.filler-text {
    font-family: welfare, AnekBangla, system-ui, sans-serif;
    font-size: 56px;
    line-height: 1;
    color: var(--p-red);
    /* Red text on cream */
    text-transform: uppercase;
    font-weight: 700;
}

/* Responsive Grid */
@media (max-width: 1024px) {
    .bento-grid-dark {
        grid-template-columns: 1fr 1fr;
    }

    .card-large {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .bento-grid-dark {
        grid-template-columns: 1fr;
    }

    .card-large {
        grid-column: span 1;
    }

    .pillars-intro h2 {
        font-size: clamp(30px, 8vw, 40px);
    }

    .card-large h3 {
        font-size: 48px;
    }
}

/* ── Section 4: WF Embed ── */
.wf-embed-section {
    position: relative;
    width: 100%;
    background: #ebe3d8;
    border-top: 0;
}

.wf-embed-frame {
    display: block;
    width: 100%;
    border: 0;
    background: #ebe3d8;
    min-height: 620px;
}

/* Section 4-8 scroll performance guardrails (no visual/layout changes in-view) */
@supports (content-visibility: auto) {
    #as-sec-workflows {
        content-visibility: auto;
        contain-intrinsic-size: 1200px;
    }

    .p5-privacy-section {
        content-visibility: auto;
        contain-intrinsic-size: 1300px;
    }

    #as-compliance-posture {
        content-visibility: auto;
        contain-intrinsic-size: 1150px;
    }

    #as-security-faq {
        content-visibility: auto;
        contain-intrinsic-size: 1200px;
    }
}

#as-sec-workflows[data-perf-active="0"] .as-anim,
#as-sec-workflows[data-perf-active="0"] .as-anim *,
#as-sec-workflows[data-perf-active="0"] .wf-dot-active,
.p5-privacy-section[data-perf-active="0"] .p5-halo,
.p5-privacy-section[data-perf-active="0"] .p5-blob,
.p5-privacy-section[data-perf-active="0"] #p5-left-main-card::after,
#as-compliance-posture[data-perf-active="0"] .s7-underline {
    animation-play-state: paused !important;
}
