/* Ceratine Labs - Public Website Styles */

/* ==========================================
   CSS Variables - Dark Tech Theme
   ========================================== */
:root {
    /* Modernised dark palette — tighter contrast, deeper bg, slightly
       cooler accent. Backwards compatible with every component on the
       site (same variable names, just different values). */
    --bg-primary: #06080f;
    --bg-secondary: #0d1322;
    --bg-tertiary: #161e34;
    --bg-card: #111729;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #828fa6;
    --accent: #60a5fa;
    --accent-hover: #3b82f6;
    --accent-glow: rgba(96, 165, 250, 0.18);
    --white: #f8fafc;
    --border-color: rgba(96, 165, 250, 0.14);
    --gradient-start: #06080f;
    --gradient-end: #0d1322;
    --shadow: 0 10px 40px -15px rgba(0, 0, 0, 0.85);
    --shadow-hover: 0 24px 48px -20px rgba(0, 0, 0, 0.9);

    /* Per-product accents — used by product cards, the Three.js
       journey, and any product-scoped hero. The card's
       --product-accent inline style overrides --accent inside
       that card only. */
    --product-finance: #10b981;   /* emerald */
    --product-erp:     #60a5fa;   /* blue (matches default --accent) */
    --product-db:      #a78bfa;   /* violet */
    --product-retail:  #f59e0b;   /* amber */
    --product-crm:      #f472b6;  /* rose — CRM plan journey */
    --product-dispatch: #2dd4bf;  /* teal — Dispatch plan journey */
    --product-pipeline: #22d3ee;  /* cyan — Lead-to-Cash pipeline journey */
}

/* Product card accent treatment — left border + icon glow tinted to
   the per-product colour set on the card via --product-accent. */
.product-card {
    border-left: 3px solid var(--product-accent, var(--accent));
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.product-card:hover {
    box-shadow: 0 12px 32px -16px var(--product-accent, var(--accent));
    transform: translateY(-2px);
}
.product-card .card-icon {
    filter: drop-shadow(0 0 12px var(--product-accent, var(--accent)));
}
.product-card .card-link {
    color: var(--product-accent, var(--accent));
}
.product-card .card-link:hover {
    color: var(--white);
}

/* Page-scoped product accent overrides: pages that set
   data-product-accent on <body> get the entire --accent recoloured.
   This lets each product's marketing page feel like its own product
   without forking CSS. */
body[data-product-accent="finance"] { --accent: var(--product-finance); --accent-hover: #059669; --accent-glow: rgba(16, 185, 129, 0.15); --border-color: rgba(16, 185, 129, 0.12); }
body[data-product-accent="erp"]     { --accent: var(--product-erp);     --accent-hover: #3b82f6; --accent-glow: rgba(96, 165, 250, 0.15); --border-color: rgba(96, 165, 250, 0.12); }
body[data-product-accent="db"]      { --accent: var(--product-db);      --accent-hover: #8b5cf6; --accent-glow: rgba(167, 139, 250, 0.15); --border-color: rgba(167, 139, 250, 0.12); }
body[data-product-accent="retail"]  { --accent: var(--product-retail);  --accent-hover: #d97706; --accent-glow: rgba(245, 158, 11, 0.15); --border-color: rgba(245, 158, 11, 0.12); }
body[data-product-accent="crm"]      { --accent: var(--product-crm);      --accent-hover: #ec4899; --accent-glow: rgba(244, 114, 182, 0.15); --border-color: rgba(244, 114, 182, 0.12); }
body[data-product-accent="dispatch"] { --accent: var(--product-dispatch); --accent-hover: #14b8a6; --accent-glow: rgba(45, 212, 191, 0.15); --border-color: rgba(45, 212, 191, 0.12); }
body[data-product-accent="pipeline"] { --accent: var(--product-pipeline); --accent-hover: #06b6d4; --accent-glow: rgba(34, 211, 238, 0.15); --border-color: rgba(34, 211, 238, 0.12); }

/* ==========================================
   Journey ambient layer — shared via the
   resources/views/components/journey-ambient
   partial. Sits behind any section's content
   to add grid + orb + slash + particle motion.
   ========================================== */
.journey-ambient {
    position: absolute !important;
    inset: 0 !important;
    pointer-events: none !important;
    overflow: hidden !important;
    z-index: 0 !important;
    width: 100%;
    height: 100%;
}
.journey-ambient-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--accent-glow) 1px, transparent 1px),
        linear-gradient(90deg, var(--accent-glow) 1px, transparent 1px);
    background-size: 64px 64px;
    opacity: 0.5;
    -webkit-mask-image: radial-gradient(circle at center, #000 25%, transparent 75%);
            mask-image: radial-gradient(circle at center, #000 25%, transparent 75%);
}
.journey-ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    will-change: transform;
}
.journey-ambient-orb-1 {
    top: -10%;
    left: -8%;
    width: 480px;
    height: 480px;
    background: var(--accent);
    animation: ambientOrbDrift1 22s ease-in-out infinite;
}
.journey-ambient-orb-2 {
    bottom: -12%;
    right: -10%;
    width: 420px;
    height: 420px;
    background: var(--accent-hover);
    animation: ambientOrbDrift2 26s ease-in-out infinite;
}
@keyframes ambientOrbDrift1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(70px, -40px) scale(1.08); }
}
@keyframes ambientOrbDrift2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(-50px, 30px) scale(1.05); }
}
.journey-ambient-slash {
    position: absolute;
    top: 50%;
    left: -10%;
    width: 120%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.3;
    transform: rotate(-8deg);
}
.journey-ambient-slash.slash-2 {
    top: 32%;
    transform: rotate(6deg);
    opacity: 0.18;
}
.journey-ambient-particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Soft variant uses gentler opacity */
.journey-ambient-soft .journey-ambient-grid { opacity: 0.3; }
.journey-ambient-soft .journey-ambient-orb-1 { opacity: 0.25; }

/* Sections that host an ambient need positioned content. The ambient
   itself is absolutely positioned (z-index 0). All other direct children
   should remain in normal flow but rendered above the ambient — we lift
   ONLY the .container (the actual content) onto z-index 1, leaving the
   .journey-ambient div alone. */
.section-with-ambient,
.section.section-with-ambient {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.section-with-ambient > .container {
    position: relative;
    z-index: 1;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .journey-ambient-orb-1,
    .journey-ambient-orb-2 { animation: none; }
}

/* ==========================================
   Base Styles
   ========================================== */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
}

/* Black page-fader: sits over the body on first paint and fades out
   over ~2s. Used for ordinary page loads where no splash takes over. */
.page-fader {
    position: fixed;
    inset: 0;
    background: #000;
    opacity: 1;
    z-index: 100000;
    pointer-events: none;
    animation: pageFaderOut 2s ease-out both;
}

@keyframes pageFaderOut {
    0%, 25% { opacity: 1; }
    100%    { opacity: 0; visibility: hidden; }
}

@media (prefers-reduced-motion: reduce) {
    .page-fader { display: none; }
}

/* Splash gate. The inline head script in layouts/public.blade.php sets
   `html.splash-pending` BEFORE the body is painted whenever the welcome
   splash is going to show. The splash is rendered inside <main>, so a
   direct-body-child selector wouldn't catch it — instead we hide ALL
   body children, then explicitly re-show #welcomeSplash and its
   descendants (visibility:visible cascades back through the subtree).
   We also force display:flex on the splash so it mounts before JS
   runs (avoiding an empty flash). The class is removed by the splash
   dismiss handler in pages/home.blade.php. */
html.splash-pending body > * { visibility: hidden; }
html.splash-pending #welcomeSplash,
html.splash-pending #welcomeSplash * { visibility: visible; }
html.splash-pending #welcomeSplash { display: flex; }
html.splash-pending .page-fader { display: none; }

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-hover);
}

/* ==========================================
   Typography
   ========================================== */
h1, h2, h3, h4, h5, h6 {
    color: var(--white);
    font-weight: 600;
    line-height: 1.2;
}

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

.text-muted {
    color: var(--text-secondary) !important;
}

.text-light {
    color: var(--text-primary) !important;
}

/* ==========================================
   Navigation
   ========================================== */
.navbar-public {
    background-color: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar-public.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow);
}

.navbar-brand {
    color: var(--white) !important;
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.navbar-brand img {
    height: 40px;
    width: auto;
}

.navbar-brand span {
    color: var(--accent);
}

.nav-link {
    color: var(--text-primary) !important;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.2s ease;
}

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

.navbar-toggler {
    border-color: var(--border-color);
    padding: 0.5rem;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2896, 165, 250, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ==========================================
   Buttons
   ========================================== */
.btn-accent {
    background-color: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-accent:hover {
    background-color: var(--accent-glow);
    color: var(--accent);
    transform: translateY(-2px);
}

.btn-accent-solid {
    background-color: var(--accent);
    border: 2px solid var(--accent);
    color: var(--bg-primary);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-accent-solid:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(96, 165, 250, 0.2);
}

.btn-ghost {
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    transition: color 0.2s ease;
}

.btn-ghost:hover {
    color: var(--accent);
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
    /* Hero clears the fixed navbar with a modest breathing gap and
       runs to a calm bottom margin. */
    min-height: auto;
    display: block;
    padding: 120px 0 60px;
    position: relative;
    overflow: hidden;
}

/* Sections below the fold that should only appear once the user has
   started to scroll. They sit invisible at page-load and fade in the
   moment scroll > 0 (the body picks up .has-scrolled). */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.8,.2,1);
    pointer-events: none;
}
body.has-scrolled .reveal-on-scroll {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* ==========================================
   Journey warp transition — when the user clicks
   any link that goes to a journey, the current
   page warps forward (slight scale + fade) and a
   radial accent flash sweeps the viewport, then
   we navigate. Mirrors the language of the
   /journey card-explode for consistency.
   ========================================== */
.page-warp-flash {
    position: fixed;
    /* Center pulled in via CSS variables — defaults to viewport
       centre, but the JS overrides --warp-x / --warp-y to the position
       of the clicked button so the flash radiates from there.
       Profile is tight (transparent past 30%) so it reads as a
       focused burst at the button rather than washing the viewport. */
    --warp-x: 50%;
    --warp-y: 50%;
    inset: 0;
    z-index: 9999;
    background: radial-gradient(circle at var(--warp-x) var(--warp-y),
        var(--accent),
        var(--accent-glow) 12%,
        transparent 30%);
    opacity: 0;
    pointer-events: none;
}
/* Bloom + fade rather than fade-in-and-hold. The pulse peaks at ~25%
   of the warp duration then fades out so by the time the blackout
   completes, the flash is gone and the dark void takes over. */
body.is-warping-out .page-warp-flash {
    animation: warpFlashPulse 0.6s cubic-bezier(.4, 0, .6, 1) forwards;
}
@keyframes warpFlashPulse {
    0%   { opacity: 0; }
    25%  { opacity: 1; }
    100% { opacity: 0; }
}

/* Full-viewport blackout that fades in concurrently with the warp.
   Sits below the exploding button (z 10000) but above the flash
   (9999) so the user sees the button + flash get progressively
   engulfed by black just before navigation. */
.page-warp-blackout {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: #05070d;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.55s cubic-bezier(.5, 0, .8, .25);
}
body.is-warping-out .page-warp-blackout {
    opacity: 1;
}
body.is-warping-out main,
body.is-warping-out footer.footer {
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(.5, 0, .25, 1), filter 0.5s ease;
    transform: scale(1.04);
    transform-origin: 50% 30%;
    opacity: 0;
    filter: blur(2px);
}
body.is-warping-out .page-warp-flash {
    opacity: 1;
}

/* The single button (or link) that the user clicked to trigger the
   warp. It scales up and glows briefly, then the glow fades out as
   the screen blacks over — the button feels like the "epicentre" of
   the transition without dominating it. */
.is-button-warp {
    position: relative !important;
    z-index: 10000 !important;
    background: var(--accent) !important;
    color: var(--bg-primary) !important;
    border-color: var(--accent) !important;
    pointer-events: none;
    isolation: isolate;
    animation: buttonWarpExplode 0.6s cubic-bezier(.5, 0, .25, 1) forwards;
}
@keyframes buttonWarpExplode {
    0% {
        transform: scale(1);
        box-shadow:
            0 0 0 0 var(--accent),
            0 0 0 0 var(--accent-glow);
    }
    30% {
        transform: scale(1.4);
        box-shadow:
            0 0 0 3px var(--accent),
            0 0 60px 12px var(--accent),
            0 0 120px 24px var(--accent-glow);
    }
    100% {
        transform: scale(1.55);
        box-shadow:
            0 0 0 0 transparent,
            0 0 0 0 transparent,
            0 0 0 0 transparent;
        opacity: 0;
    }
}
/* The outgoing button gets a ring "pulse" via a pseudo-element. */
.is-button-warp::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: inherit;
    border: 2px solid var(--accent);
    opacity: 0;
    animation: buttonWarpPulse 0.5s ease-out forwards;
    pointer-events: none;
}
@keyframes buttonWarpPulse {
    0%   { opacity: 0.8; transform: scale(1); }
    100% { opacity: 0;   transform: scale(2.2); }
}

@media (prefers-reduced-motion: reduce) {
    body.is-warping-out main,
    body.is-warping-out footer.footer {
        transition: none;
        transform: none;
        filter: none;
    }
    .page-warp-flash { display: none; }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: var(--accent-glow);
    color: var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero h1 .highlight {
    color: var(--accent);
}

.hero .lead {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Animated gradient background */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-tertiary) 100%);
    z-index: 1;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(96, 165, 250, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(96, 165, 250, 0.03) 0%, transparent 40%);
}

/* Grid pattern overlay */
.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(rgba(96, 165, 250, 0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(96, 165, 250, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 1;
}

/* ==========================================
   Page Hero (smaller, for inner pages)
   ========================================== */
.page-hero {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.page-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.page-hero .lead {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 700px;
}

/* ==========================================
   Cards
   ========================================== */
.card-dark {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.3s ease;
    height: 100%;
}

.card-dark:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: var(--shadow-hover);
}

.card-dark .card-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-glow);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--accent);
}

.card-dark h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.card-dark p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.card-dark .card-link {
    color: var(--accent);
    font-weight: 500;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.card-dark .card-link:hover {
    gap: 0.75rem;
}

/* Module/Feature Card */
.module-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.module-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
}

.module-card .module-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.module-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.module-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    flex-grow: 1;
}

.module-card ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.module-card ul li {
    color: var(--text-secondary);
    font-size: 0.85rem;
    padding: 0.25rem 0;
    padding-left: 1.25rem;
    position: relative;
}

.module-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* ==========================================
   Stats Section
   ========================================== */
.stats-section {
    padding: 4rem 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================
   Section Styling
   ========================================== */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--bg-secondary);
}

.section-title {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* ==========================================
   Feature List
   ========================================== */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.feature-list li strong {
    color: var(--white);
}

/* ==========================================
   Tech Stack
   ========================================== */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    padding: 2rem 0;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.tech-item:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.tech-item img {
    height: 40px;
    width: auto;
    filter: grayscale(100%) brightness(2);
    transition: filter 0.3s ease;
}

.tech-item:hover img {
    filter: grayscale(0%) brightness(1);
}

.tech-item span {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* ==========================================
   CTA Section
   ========================================== */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(96, 165, 250, 0.05) 0%, transparent 60%);
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    position: relative;
}

.cta-section p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    position: relative;
}

/* ==========================================
   Benefits / Outcomes
   ========================================== */
.benefit-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.75rem;
    height: 100%;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: var(--shadow-hover);
}

.benefit-card .benefit-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--accent-glow);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1.1rem;
}

.benefit-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.benefit-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ==========================================
   Stats Strip
   ========================================== */
.stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
    padding: 2.25rem 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 0.25rem 0.5rem;
}

.stat-item .stat-value {
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--accent);
}

.stat-item .stat-label {
    display: block;
    margin-top: 0.4rem;
    color: var(--text-secondary);
    font-size: 0.88rem;
}

@media (max-width: 767.98px) {
    .stats-strip {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem 1rem;
    }
}

/* ==========================================
   Testimonials
   ========================================== */
.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.75rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-card .testimonial-quote {
    color: var(--text-primary);
    font-size: 0.98rem;
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.testimonial-card .testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: auto;
}

.testimonial-card .testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-glow);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.testimonial-card .testimonial-name {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.2;
}

.testimonial-card .testimonial-role {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Editorial placeholder — flags content the team still needs to supply.
   Remove .is-placeholder (and the dashed styling) once real quotes land. */
.testimonial-card.is-placeholder {
    border-style: dashed;
    opacity: 0.85;
}

.placeholder-note {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    border: 1px dashed var(--border-color);
    border-radius: 999px;
    padding: 0.3rem 0.85rem;
}

/* ==========================================
   Pricing Cards
   ========================================== */
.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.pricing-card.featured {
    border-color: var(--accent);
    transform: scale(1.02);
}

.pricing-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--bg-primary);
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.pricing-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    margin: 1rem 0;
}

.pricing-price span {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: normal;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    text-align: left;
    flex-grow: 1;
}

.pricing-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* ==========================================
   Filter Tabs
   ========================================== */
.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.filter-tab {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
}

.filter-tab:hover,
.filter-tab.active {
    background: var(--accent-glow);
    border-color: var(--accent);
    color: var(--accent);
}

/* ==========================================
   Forms
   ========================================== */
.form-dark .form-label {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-dark .form-control,
.form-dark .form-select {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.form-dark .form-control:focus,
.form-dark .form-select:focus {
    background: var(--bg-card);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
    color: var(--text-primary);
}

.form-dark .form-control::placeholder {
    color: var(--text-muted);
}

.form-dark textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* ==========================================
   Image Placeholder
   ========================================== */
.image-placeholder {
    background: var(--bg-card);
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: var(--text-muted);
    min-height: 200px;
    position: relative;
    overflow: hidden;
}

.image-placeholder.has-image {
    border: none;
    padding: 0;
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.image-placeholder .placeholder-text {
    text-align: center;
    font-size: 0.85rem;
}

.image-placeholder .placeholder-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

/* Screenshot frame effect */
.screenshot-frame {
    background: var(--bg-tertiary);
    border-radius: 8px;
    padding: 0.5rem;
    box-shadow: var(--shadow);
}

.hero .screenshot-frame,
#finance-feature .screenshot-frame {
    /* position offset (not transform) so the .animate-float keyframes,
       which animate `transform: translateY(...)`, do not overwrite it. */
    position: relative;
    left: 90px;
}

.hero .screenshot-frame {
    top: 30px;
}

.screenshot-frame .screenshot-bar {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
}

.screenshot-frame .screenshot-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
}

.screenshot-frame .screenshot-dot:nth-child(1) { background: #ff5f56; }
.screenshot-frame .screenshot-dot:nth-child(2) { background: #ffbd2e; }
.screenshot-frame .screenshot-dot:nth-child(3) { background: #27ca40; }

/* ==========================================
   Footer
   ========================================== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
}

.footer-brand {
    margin-bottom: 1.5rem;
}

.footer-brand img {
    height: 40px;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    max-width: 300px;
}

.footer h5 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    border-top: 1px solid var(--border-color);
    margin-top: 3rem;
    padding-top: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ==========================================
   Breadcrumbs
   ========================================== */
.breadcrumb-dark {
    background: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.breadcrumb-dark .breadcrumb-item {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.breadcrumb-dark .breadcrumb-item a {
    color: var(--text-secondary);
}

.breadcrumb-dark .breadcrumb-item a:hover {
    color: var(--accent);
}

.breadcrumb-dark .breadcrumb-item.active {
    color: var(--accent);
}

.breadcrumb-dark .breadcrumb-item + .breadcrumb-item::before {
    color: var(--text-muted);
    content: "→";
}

/* ==========================================
   Responsive Adjustments
   ========================================== */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: var(--bg-secondary);
        padding: 1rem;
        border-radius: 8px;
        margin-top: 1rem;
        border: 1px solid var(--border-color);
    }

    .nav-link::after {
        display: none;
    }

    .hero {
        text-align: center;
        padding: 104px 0 60px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero .lead {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 767.98px) {
    .section {
        padding: 60px 0;
    }

    .stat-item {
        margin-bottom: 1.5rem;
    }

    .pricing-card.featured {
        transform: none;
    }
}

/* ==========================================
   Animations
   ========================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* Hover lift effect */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* ==========================================
   Hero Particle Canvas
   ========================================== */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* ==========================================
   Floating Gradient Orbs
   ========================================== */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    pointer-events: none;
    will-change: transform;
}

.hero-orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.12) 0%, transparent 70%);
    top: 10%;
    left: -5%;
    animation: orbFloat1 20s ease-in-out infinite;
}

.hero-orb-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    top: 50%;
    right: -3%;
    animation: orbFloat2 25s ease-in-out infinite;
}

.hero-orb-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(147, 197, 253, 0.06) 0%, transparent 70%);
    bottom: 10%;
    left: 30%;
    animation: orbFloat3 18s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(60px, 40px) scale(1.1); }
    50% { transform: translate(20px, -30px) scale(0.95); }
    75% { transform: translate(-40px, 20px) scale(1.05); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-50px, -40px) scale(1.08); }
    66% { transform: translate(30px, 50px) scale(0.92); }
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    20% { transform: translate(40px, -30px) scale(1.1); }
    40% { transform: translate(-20px, -60px) scale(0.95); }
    60% { transform: translate(-50px, 20px) scale(1.05); }
    80% { transform: translate(30px, 40px) scale(0.98); }
}

/* ==========================================
   Hero Text Reveal Animation
   ========================================== */
.hero-title {
    overflow: hidden;
}

.hero-line {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
    animation: textReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: var(--delay, 0s);
}

@keyframes textReveal {
    from {
        opacity: 0;
        transform: translateY(40px);
        filter: blur(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* Highlight glow pulse */
.highlight-glow {
    position: relative;
    text-shadow: 0 0 30px rgba(96, 165, 250, 0.3);
    animation: glowPulse 3s ease-in-out infinite 1.5s;
}

@keyframes glowPulse {
    0%, 100% { text-shadow: 0 0 20px rgba(96, 165, 250, 0.2); }
    50% { text-shadow: 0 0 40px rgba(96, 165, 250, 0.4), 0 0 80px rgba(96, 165, 250, 0.1); }
}

/* ==========================================
   Screenshot Float Animation
   ========================================== */
.animate-float {
    animation: fadeInFloat 1s cubic-bezier(0.16, 1, 0.3, 1) forwards,
               gentleFloat 6s ease-in-out infinite 2s;
}

@keyframes fadeInFloat {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes gentleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ==========================================
   Button Glow Effect
   ========================================== */
.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, transparent 30%, rgba(96, 165, 250, 0.4) 50%, transparent 70%);
    border-radius: 6px;
    z-index: -1;
    animation: btnShimmer 3s ease-in-out infinite 2s;
    opacity: 0;
}

@keyframes btnShimmer {
    0% { opacity: 0; transform: translateX(-100%); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: translateX(100%); }
}

/* ==========================================
   Card Hover Glow Effect
   ========================================== */
.card-hover-glow {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-hover-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(96, 165, 250, 0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.card-hover-glow:hover::before {
    opacity: 1;
}

.card-hover-glow:hover {
    transform: translateY(-5px);
    border-color: rgba(96, 165, 250, 0.25);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5), 0 0 20px rgba(96, 165, 250, 0.05);
}

.card-hover-glow > * {
    position: relative;
    z-index: 1;
}

/* ==========================================
   Scroll Reveal Animations
   ========================================== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--reveal-delay, 0s);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .hero-orb,
    .animate-float,
    .highlight-glow,
    .btn-glow::before {
        animation: none !important;
    }

    .hero-line {
        opacity: 1;
        transform: none;
        filter: none;
        animation: none;
    }

    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hero-particles {
        display: none;
    }
}

/* ==========================================
   Pricing Calculator
   ========================================== */

/* Steps */
.pricing-step {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.pricing-step-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.pricing-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: var(--accent);
    color: var(--bg-primary);
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
}

/* Hosting Options */
.hosting-option {
    display: block;
    cursor: pointer;
    position: relative;
    height: 100%;
}

.hosting-option-inner {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 1.25rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.hosting-option:hover .hosting-option-inner {
    border-color: rgba(96, 165, 250, 0.3);
}

.hosting-option.selected .hosting-option-inner {
    border-color: var(--accent);
    background: rgba(96, 165, 250, 0.05);
}

.hosting-check {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: var(--accent);
    color: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s ease;
}

.hosting-option.selected .hosting-check {
    opacity: 1;
    transform: scale(1);
}

.hosting-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
    margin: 0.5rem 0;
}

.hosting-price span {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.hosting-specs {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.hosting-specs small {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.hosting-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Storage Slider */
.pricing-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: linear-gradient(to right, var(--accent) var(--fill, 0%), var(--bg-tertiary) var(--fill, 0%));
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.pricing-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid var(--bg-primary);
    box-shadow: 0 0 10px rgba(96, 165, 250, 0.3);
    cursor: pointer;
    transition: box-shadow 0.2s ease;
}

.pricing-range::-webkit-slider-thumb:hover {
    box-shadow: 0 0 20px rgba(96, 165, 250, 0.5);
}

.pricing-range::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid var(--bg-primary);
    box-shadow: 0 0 10px rgba(96, 165, 250, 0.3);
    cursor: pointer;
}

.storage-display {
    font-size: 1.1rem;
    color: var(--white);
}

/* Baseline Modules */
.baseline-tier {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(96, 165, 250, 0.06);
}

.baseline-tier:last-child {
    border-bottom: none;
}

.baseline-label {
    min-width: 110px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-top: 0.25rem;
}

.baseline-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.baseline-chip {
    display: inline-flex;
    align-items: center;
    background: rgba(96, 165, 250, 0.08);
    color: var(--text-primary);
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    font-size: 0.78rem;
    border: 1px solid rgba(96, 165, 250, 0.1);
}

.baseline-chip i {
    color: var(--accent);
    font-size: 0.7rem;
}

/* Add-on Modules */
.addon-category {
    margin-bottom: 0.75rem;
}

.addon-category-title {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.75rem 0;
    margin-bottom: 0;
    user-select: none;
    transition: color 0.2s ease;
}

.addon-category-title:hover {
    color: var(--accent);
}

.addon-toggle-icon {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.addon-category.collapsed .addon-toggle-icon {
    transform: rotate(-90deg);
}

.addon-category.collapsed .addon-list {
    display: none;
}

.addon-category-count {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--text-muted);
}

.addon-category-count.has-selection {
    background: var(--accent) !important;
    color: var(--bg-primary) !important;
}

.addon-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.addon-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.85rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 1rem;
}

.addon-item:hover {
    border-color: rgba(96, 165, 250, 0.25);
}

.addon-item.selected {
    border-color: var(--accent);
    background: rgba(96, 165, 250, 0.04);
}

.addon-item-name {
    font-weight: 600;
    color: var(--white);
    font-size: 0.9rem;
}

.addon-item-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.addon-item-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.addon-item-price {
    font-weight: 600;
    color: var(--accent);
    font-size: 0.9rem;
    white-space: nowrap;
}

.addon-item-price span {
    font-weight: 400;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Toggle Switch */
.addon-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.addon-checkbox {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.addon-toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-tertiary);
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.addon-toggle-slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.addon-checkbox:checked + .addon-toggle-slider {
    background: var(--accent);
}

.addon-checkbox:checked + .addon-toggle-slider::before {
    transform: translateX(20px);
    background: var(--bg-primary);
}

/* Pricing Summary (Sticky) */
.pricing-summary-wrap {
    position: sticky;
    top: 100px;
}

.pricing-summary {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.75rem;
}

.pricing-summary-title {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.summary-subtotal {
    font-weight: 600;
    color: var(--white);
}

.summary-addon-line {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.summary-addon-subtotal {
    font-weight: 600;
    color: var(--text-secondary);
}

.summary-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.5rem 0;
}

.summary-addons {
    max-height: 200px;
    overflow-y: auto;
}

.summary-total {
    background: rgba(96, 165, 250, 0.06);
    border: 1px solid rgba(96, 165, 250, 0.15);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    margin-top: 1rem;
}

.summary-total-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.summary-total-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    transition: transform 0.3s ease;
}

.summary-total-amount.flash {
    animation: totalFlash 0.4s ease;
}

@keyframes totalFlash {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.summary-total-note {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.summary-footnote {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 1rem;
    margin-bottom: 0;
    text-align: center;
}

/* ==========================================
   Packages Page
   ========================================== */

/* Base banner */
.packages-base-banner {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem 2rem;
}

.packages-base-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: var(--accent-glow);
    color: var(--accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.packages-base-modules {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

/* Package Card */
.package-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.package-card:hover {
    transform: translateY(-5px);
    border-color: var(--package-color, var(--accent));
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5),
                0 0 30px color-mix(in srgb, var(--package-color, var(--accent)) 10%, transparent);
}

.package-header {
    padding: 2rem 2rem 1.25rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.package-icon-wrap {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: color-mix(in srgb, var(--package-color) 12%, transparent);
    color: var(--package-color);
    border: 1px solid color-mix(in srgb, var(--package-color) 20%, transparent);
}

.package-name {
    font-size: 1.4rem;
    margin-bottom: 0.4rem;
}

.package-tagline {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* Package Pricing */
.package-pricing {
    padding: 1.25rem 2rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid var(--border-color);
}

.package-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--package-color);
}

.package-price span {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-muted);
}

.package-price-detail {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.package-price-note {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    font-style: italic;
}

/* Package Body */
.package-description {
    padding: 1.5rem 2rem 0;
}

.package-description p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.package-section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.package-modules {
    padding: 1.25rem 2rem 0;
}

.package-module-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.3rem 0;
    font-size: 0.85rem;
    color: var(--white);
}

.package-module-item i {
    font-size: 0.8rem;
    flex-shrink: 0;
}

.package-highlights {
    padding: 1.25rem 2rem 0;
}

.package-highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.25rem 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.package-highlight-item i {
    font-size: 0.8rem;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.package-actions {
    padding: 1.5rem 2rem 2rem;
    margin-top: auto;
}

/* Custom Build Visual */
.custom-build-visual {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    padding: 2rem;
}

.custom-build-block {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.custom-build-block i {
    color: var(--accent);
}

.custom-build-block:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.custom-build-plus {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px dashed var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.2rem;
    animation: plusPulse 2s ease-in-out infinite;
}

@keyframes plusPulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 1; }
}

/* Packages responsive */
@media (max-width: 991.98px) {
    .package-header,
    .package-pricing,
    .package-description,
    .package-modules,
    .package-highlights,
    .package-actions {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* Pricing responsive */
@media (max-width: 991.98px) {
    .pricing-summary-wrap {
        position: static;
    }

    .baseline-tier {
        flex-direction: column;
        gap: 0.4rem;
    }

    .baseline-label {
        min-width: auto;
    }
}

@media (max-width: 767.98px) {
    .pricing-step {
        padding: 1.25rem;
    }

    .addon-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .addon-item-right {
        width: 100%;
        justify-content: space-between;
        margin-top: 0.5rem;
    }

    .hosting-option {
        margin-bottom: 0.5rem;
    }
}

/* ==========================================
   Utilities
   ========================================== */
.bg-dark-primary { background-color: var(--bg-primary) !important; }
.bg-dark-secondary { background-color: var(--bg-secondary) !important; }
.bg-dark-card { background-color: var(--bg-card) !important; }

.border-accent { border-color: var(--accent) !important; }
.border-subtle { border-color: var(--border-color) !important; }

.rounded-lg { border-radius: 12px !important; }

.shadow-dark { box-shadow: var(--shadow) !important; }

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Selection styling */
::selection {
    background: var(--accent);
    color: var(--bg-primary);
}

/* ==========================================
   Glass aesthetic — body-level ambient gradient
   so there's depth behind the frosted cards. No
   overlay divs, no JS. Pure CSS sitting on the
   <body> via background-image.
   ========================================== */
body {
    background-color: var(--bg-primary);
    background-image:
        radial-gradient(ellipse 1200px 700px at 18% 12%, var(--accent-glow), transparent 55%),
        radial-gradient(ellipse 1000px 600px at 85% 88%, var(--accent-glow), transparent 60%),
        radial-gradient(ellipse 800px 500px at 50% 50%, rgba(96, 165, 250, 0.05), transparent 70%);
    background-attachment: fixed;
}

/* Glass card — frosted, with a subtle inner highlight at the top
   edge for that "thick glass" feel. Backdrop-filter does the work. */
.card-dark {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 50%, transparent 100%),
        rgba(17, 23, 41, 0.55);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 12px 32px -16px rgba(0, 0, 0, 0.55);
    position: relative;
    overflow: hidden;
}
.card-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 40%);
    pointer-events: none;
    border-radius: inherit;
}
.card-dark:hover {
    border-color: rgba(96, 165, 250, 0.5);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 24px 48px -20px rgba(0, 0, 0, 0.7),
        0 0 0 1px var(--accent-glow);
    transform: translateY(-3px);
}

/* Glass hero badge */
.hero-badge {
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    background: rgba(96, 165, 250, 0.08);
    border: 1px solid rgba(96, 165, 250, 0.2);
}

/* Glass CTA buttons — outlined version gets the frost too */
.btn-accent {
    background: rgba(96, 165, 250, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(96, 165, 250, 0.35);
    color: var(--accent);
}
.btn-accent:hover {
    background: rgba(96, 165, 250, 0.14);
    border-color: var(--accent);
    color: var(--white);
}

/* Navbar — already had backdrop-filter when scrolled. Keep solid at top. */

/* Screenshot frame — subtle frosted bezel */
.screenshot-frame {
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    background: rgba(13, 19, 34, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 24px 48px -20px rgba(0, 0, 0, 0.7);
    overflow: hidden;
}

/* When the frame contains a real image (.has-image), drop the
   chrome entirely — just show the image, naked. */
.screenshot-frame:has(.image-placeholder.has-image) {
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-radius: 12px;
}
.screenshot-frame:has(.image-placeholder.has-image) > .screenshot-bar {
    display: none !important;
}
.screenshot-frame:has(.image-placeholder.has-image) .image-placeholder {
    border-radius: 12px;
    overflow: hidden;
}
.screenshot-frame:has(.image-placeholder.has-image) .image-placeholder img {
    border-radius: 12px;
    display: block;
}

/* On the journey tour, body has its own theme background — disable the
   site-wide gradient there to keep it dark. */
body.journey-fullscreen-mode {
    background-image: none;
}

/* ==========================================
   Unified background — make every section
   transparent so the body's fixed gradient and
   the global particle canvas show through the
   entire page. No more section "breaks".
   ========================================== */
.section,
.section-alt,
.page-hero,
.cta-section,
.hero,
.stats-section {
    background: transparent !important;
    border-bottom: 0 !important;
}

/* ==========================================
   Glass navbar — frosted, transparent, sits over
   the global gradient + particles. Stays glass
   from top to bottom; the .scrolled state just
   tightens it.
   ========================================== */
.navbar-public {
    background-color: rgba(6, 8, 15, 0.45) !important;
    backdrop-filter: blur(18px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(160%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    box-shadow:
        inset 0 -1px 0 rgba(255, 255, 255, 0.03),
        0 6px 32px -16px rgba(0, 0, 0, 0.4);
}
.navbar-public.scrolled {
    background-color: rgba(6, 8, 15, 0.7) !important;
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

/* Glass footer — match the navbar treatment so the page feels framed
   in glass at top and bottom. */
.footer {
    background: rgba(6, 8, 15, 0.55) !important;
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    position: relative;
    z-index: 1;
}

/* Glass demo banner (if present) */
.demo-banner,
.alert-admin,
.alert {
    background: rgba(255, 255, 255, 0.04) !important;
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
}

/* Glass form fields — subtle frost on inputs/selects so they sit
   on the gradient backdrop without floating in nothingness. */
.form-control,
.form-select,
.form-dark .form-control,
.form-dark .form-select {
    background: rgba(13, 19, 34, 0.5) !important;
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: var(--text-primary) !important;
    transition: all 0.2s ease;
}
.form-control:focus,
.form-select:focus,
.form-dark .form-control:focus,
.form-dark .form-select:focus {
    background: rgba(13, 19, 34, 0.65) !important;
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px var(--accent-glow) !important;
    outline: none;
}
.form-control::placeholder,
.form-dark .form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

/* Glass dropdown menus on the navbar — z-index above the navbar
   so clicks always land on items, not the page underneath. */
.dropdown-menu,
.dropdown-menu-dark {
    background: rgba(6, 8, 15, 0.85) !important;
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 16px 32px -12px rgba(0, 0, 0, 0.5);
    z-index: 1100 !important;
}
.dropdown-menu .dropdown-item,
.dropdown-menu-dark .dropdown-item {
    pointer-events: auto !important;
    position: relative;
    z-index: 1101;
}

/* Stats section blocks — frosted tiles */
.stats-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
}
.stat-item {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 1.25rem 1rem;
}
.cta-section::before,
.section-alt::before,
.page-hero::before,
.hero-bg,
.hero-bg::before,
.hero-grid {
    /* Local section gradients/grids that previously broke continuity —
       hide them; the body and global particles do the work now. */
    display: none !important;
}

/* Global background particle canvas — fixed-position, behind every
   piece of content but above the body's gradient. As the user scrolls,
   the particles stay put (constellation feel) while content scrolls
   past, so the backdrop never "switches". */
#globalParticles {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

/* Stacking: global particles at z-index 0, content at z-index 1,
   footer at z-index 1, navbar way above everything (so dropdowns and
   nav clicks always win — fixed-position element needs to stay on top
   of any scrolling content). */
main, footer.footer {
    position: relative;
    z-index: 1;
}
nav.navbar-public {
    position: fixed; /* preserves the original nav behaviour */
    z-index: 1050;   /* above Bootstrap's modal backdrop default */
}

/* Disable on journey tour (it has its own background style) */
body.journey-fullscreen-mode #globalParticles { display: none; }

/* Reduced motion: hide the global particles */
@media (prefers-reduced-motion: reduce) {
    #globalParticles { display: none; }
}

/* ==========================================
   Modern polish — applied site-wide.
   Adds a refined card border treatment, better
   focus rings for accessibility, smoother card
   hovers, and a CSS-only scroll-reveal that
   pairs with the IntersectionObserver in
   layouts/public.blade.php.
   ========================================== */

/* Card icon hover micro-interaction — paired with the glass card above */
.card-dark {
    transition:
        border-color 0.25s ease,
        background 0.25s ease,
        box-shadow 0.3s ease,
        transform 0.3s cubic-bezier(.2, .8, .2, 1);
}
.card-dark .card-icon {
    transition: transform 0.3s ease, filter 0.3s ease;
}
.card-dark:hover .card-icon {
    transform: scale(1.06);
    filter: drop-shadow(0 0 18px var(--accent));
}

/* Accessible focus rings for keyboard nav */
:where(a, button, .btn, .journey-btn, .journey-map-step, .journey-dot):focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 8px;
}

/* Smoother button transitions */
.btn,
.btn-accent,
.btn-accent-solid {
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover,
.btn-accent:hover,
.btn-accent-solid:hover {
    transform: translateY(-1px);
}

/* Section dividers — gentle accent line */
.section + .section,
.section + .section-alt,
.section-alt + .section {
    position: relative;
}

/* Scroll-reveal — content starts hidden, gets .is-revealed when in view */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2, .8, .2, 1);
}
.reveal.is-revealed {
    opacity: 1;
    transform: translateY(0);
}
.reveal.delay-1 { transition-delay: 0.08s; }
.reveal.delay-2 { transition-delay: 0.16s; }
.reveal.delay-3 { transition-delay: 0.24s; }
.reveal.delay-4 { transition-delay: 0.32s; }

/* Soft typography refinements */
h1, h2 {
    letter-spacing: -0.015em;
}

/* Sticky navbar refinement (deeper backdrop blur) */
.navbar-public.scrolled {
    background-color: rgba(6, 8, 15, 0.85);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
}

@media (prefers-reduced-motion: reduce) {
    .card-dark, .card-dark:hover,
    .btn:hover, .btn-accent:hover, .btn-accent-solid:hover,
    .reveal { transition: none; transform: none; }
    .reveal { opacity: 1; }
}
