/* style-extras.css
   Loaded AFTER /style.css (the imported light design system) on every page.
   Holds (a) compatibility classes the retained Tailwind homepage sections, the
   blog and the sample-report page still use but the imported CSS lacks — all
   recolored for the light theme — and (b) the homepage scroll-snap rules. */

/* ---- Buttons (used by the retained A-SPM section + sample_report) ---- */
.btn-primary {
    background: linear-gradient(135deg, var(--rust, #de6445), var(--red, #a13630));
    color: #ffffff !important;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(161, 54, 48, 0.3);
}

/* ---- Light "enterprise card" surface (security-tabs slides, blog cards) ---- */
.enterprise-card {
    background: var(--surface, #ffffff);
    border: 1px solid var(--light-line, rgba(14, 13, 13, 0.12));
    box-shadow: 0 18px 48px rgba(14, 13, 13, 0.05);
    transition: border-color 0.3s ease, background 0.3s ease;
}

.enterprise-card:hover {
    border-color: rgba(222, 100, 69, 0.45);
}

/* ---- Tab cross-fade (security-layers section) ---- */
.carousel-transition {
    transition:
        opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Build-time flowchart travelling dot ---- */
.flowchart-dot {
    animation: flowDot 3s infinite linear;
}

@keyframes flowDot {
    0% { top: 12%; opacity: 0; transform: scale(0.5); }
    10% { opacity: 1; transform: scale(1); }
    90% { top: 88%; opacity: 1; transform: scale(1); }
    100% { top: 100%; opacity: 0; transform: scale(0.5); }
}

/* ---- Run-time guardrail rotating ring ---- */
@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes spin-slow-reverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

.animate-spin-slow {
    animation: spin-slow 20s linear infinite;
}

.animate-spin-slow-reverse {
    animation: spin-slow-reverse 20s linear infinite;
}

/* The free-report banner sits above the sticky header (see Header.astro), so it
   should be flush to the very top of the page. */
.announcement {
    margin-top: 0;
}

/* Keep the footer copyright readable as "DwaarAI Tech Pvt. Ltd." rather than the
   imported design's all-caps small-print transform. */
.footer-bottom {
    text-transform: none;
}

/* ---- Homepage rhythm ----
   Keep anchor jumps tidy without forcing the first sections to fill the whole
   viewport. */
.snap-section {
    scroll-margin-top: 92px;
}
