/* ============================================================
 * Sidekick Forge — Marketing design system (shared)
 *
 * Loaded by every marketing page via marketing/base.html. Contains
 * the visual primitives (cosmic atmosphere, kicker/display type,
 * buttons, pills, cards, mock-UI tiles, pricing tier styling)
 * that are reused across home / features / pricing / about / etc.
 *
 * Page-specific styles still live in each template's extra_head
 * block (e.g. the squad halo on the homepage).
 * ============================================================ */

/* Drop overflow-hidden from sections with glows so the soft halos
   don't get sliced at section edges; clip horizontal bleed at the
   body level so off-canvas glow boxes don't trigger a horizontal
   scrollbar. */
body { overflow-x: hidden; }

/* Place content above the particle layer (which sits at z-index: -1) */
main, footer { position: relative; z-index: 1; }


/* ============================================================
 * Floating particle layer (cosmic atmosphere)
 * ============================================================ */
.particles {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}
.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.45);
    will-change: transform, opacity;
}
.particle.warm  { background: rgba(255, 220, 190, 0.92); box-shadow: 0 0 6px rgba(255, 200, 160, 0.45); }
.particle.cool  { background: rgba(190, 240, 240, 0.92); box-shadow: 0 0 6px rgba(150, 230, 235, 0.45); }
.particle.lilac { background: rgba(220, 200, 240, 0.92); box-shadow: 0 0 6px rgba(195, 170, 230, 0.45); }

@keyframes drift-a {
    0%   { transform: translate(0, 0); }
    25%  { transform: translate(22px, -28px); }
    50%  { transform: translate(38px, -46px); }
    75%  { transform: translate(15px, -22px); }
    100% { transform: translate(0, 0); }
}
@keyframes drift-b {
    0%   { transform: translate(0, 0); }
    25%  { transform: translate(-26px, 20px); }
    50%  { transform: translate(-44px, 38px); }
    75%  { transform: translate(-22px, 22px); }
    100% { transform: translate(0, 0); }
}
@keyframes drift-c {
    0%   { transform: translate(0, 0); }
    33%  { transform: translate(20px, 30px); }
    66%  { transform: translate(34px, 12px); }
    100% { transform: translate(0, 0); }
}
@keyframes drift-d {
    0%   { transform: translate(0, 0); }
    33%  { transform: translate(-18px, -24px); }
    66%  { transform: translate(-32px, 16px); }
    100% { transform: translate(0, 0); }
}
@keyframes twinkle-slow {
    0%, 100% { opacity: 0.25; }
    50%      { opacity: 0.95; }
}
@keyframes twinkle-fast {
    0%, 100% { opacity: 0.45; }
    50%      { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .particle { animation: none !important; opacity: 0.6 !important; }
}


/* ============================================================
 * Section-glow accents
 * ============================================================ */
.section-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.55;
    pointer-events: none;
    z-index: 0;
}
.glow-teal   { background: radial-gradient(circle, rgba(1,164,166,0.7)  0%, transparent 70%); }
.glow-orange { background: radial-gradient(circle, rgba(252,114,68,0.65) 0%, transparent 70%); }
.glow-salmon { background: radial-gradient(circle, rgba(245,100,83,0.55) 0%, transparent 70%); }
.glow-purple { background: radial-gradient(circle, rgba(122, 61,142,0.55) 0%, transparent 70%); }


/* ============================================================
 * Type primitives — kicker, display heading
 * ============================================================ */
.kicker {
    font-family: "futura-pt", sans-serif;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-size: 11px;
    color: rgba(95, 225, 227, 0.95);
}
.display-heading {
    font-family: "futura-pt", sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.05;
}


/* ============================================================
 * Buttons + pills
 * ============================================================ */
.btn-orange {
    background: linear-gradient(135deg, #fc7244 0%, #f56453 100%);
    color: #fff;
    padding: 0.95rem 1.75rem;
    border-radius: 9999px;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 10px 30px rgba(252, 114, 68, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-orange:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 40px rgba(252, 114, 68, 0.55);
}
.btn-orange-lg {
    padding: 1.15rem 2.4rem;
    font-size: 1.05rem;
    letter-spacing: 0.6px;
}

.btn-outline-teal {
    border: 1px solid rgba(1, 164, 166, 0.5);
    color: #d8f6f6;
    padding: 0.85rem 1.5rem;
    border-radius: 9999px;
    font-weight: 500;
    letter-spacing: 0.5px;
    background: rgba(1, 164, 166, 0.08);
    transition: all 0.2s ease;
}
.btn-outline-teal:hover {
    background: rgba(1, 164, 166, 0.18);
    border-color: rgba(1, 164, 166, 0.9);
}

.pill-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border-radius: 9999px;
    background: rgba(1, 164, 166, 0.12);
    border: 1px solid rgba(1, 164, 166, 0.35);
    color: #5fe1e3;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 500;
}
.pill-inline:hover {
    background: rgba(1, 164, 166, 0.2);
    border-color: rgba(1, 164, 166, 0.7);
}


/* ============================================================
 * Stat blocks + value-prop headings
 * ============================================================ */
.stat-num {
    font-family: "futura-pt", sans-serif;
    font-weight: 700;
    font-size: clamp(2.25rem, 4vw, 3rem);
    background: linear-gradient(135deg, #01a4a6 0%, #fc7244 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}
.stat-label {
    font-family: "futura-pt", sans-serif;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-size: 11px;
    color: rgba(229, 231, 235, 0.7);
    margin-top: 0.5rem;
}
.value-prop-num {
    font-family: "futura-pt", sans-serif;
    font-weight: 700;
    font-size: clamp(1rem, 1.6vw, 1.5rem);
    background: linear-gradient(135deg, #01a4a6 0%, #fc7244 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    letter-spacing: -0.01em;
    white-space: nowrap;
    text-transform: uppercase;
}


/* ============================================================
 * Embed-anywhere platform pill
 * ============================================================ */
.embed-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1rem;
    border-radius: 9999px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(229, 231, 235, 0.92);
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s ease;
}
.embed-pill:hover {
    background: rgba(1,164,166,0.12);
    border-color: rgba(1,164,166,0.45);
    color: #d8f6f6;
}
.embed-pill-soon {
    background: rgba(252, 114, 68, 0.08);
    border-color: rgba(252, 114, 68, 0.3);
    color: #fc9c78;
    font-style: italic;
}


/* ============================================================
 * Capability cards (LORE bullets, CREATE row, How-it-works)
 * ============================================================ */
.cap-card {
    position: relative;
    background: rgba(20, 20, 22, 0.6);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 1.25rem;
    padding: 1.5rem;
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    overflow: hidden;
}
.cap-card:hover {
    transform: translateY(-4px);
    border-color: rgba(1, 164, 166, 0.4);
    background: rgba(20, 20, 22, 0.78);
}
.cap-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(1,164,166,0.18), rgba(252,114,68,0.18));
    color: #5fe1e3;
}
.cap-title {
    font-family: "futura-pt", sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    color: #fff;
    margin-top: 1rem;
}
.cap-body {
    color: rgba(209, 213, 219, 0.78);
    font-size: 0.9rem;
    margin-top: 0.4rem;
    line-height: 1.55;
}


/* ============================================================
 * Ownership callout — emphasized sovereignty pull-quote
 * ============================================================ */
.ownership-callout {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.25rem;
    border-radius: 0.85rem;
    background: linear-gradient(135deg, rgba(1,164,166,0.10) 0%, rgba(252,114,68,0.08) 100%);
    border: 1px solid rgba(1,164,166,0.3);
    box-shadow: 0 0 24px rgba(1,164,166,0.08);
}
.ownership-callout-icon {
    flex-shrink: 0;
    width: 36px; height: 36px;
    border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(1,164,166,0.25), rgba(252,114,68,0.20));
    color: #5fe1e3;
}
.ownership-callout-text {
    color: rgba(229, 231, 235, 0.92);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}


/* ============================================================
 * Image-backed tile (LORE) — image background with text overlay
 * ============================================================ */
.lore-tile {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 1.25rem;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.lore-tile:hover {
    transform: translateY(-4px);
    border-color: rgba(1,164,166,0.45);
}
.lore-tile img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.lore-tile:hover img { transform: scale(1.06); }
.lore-tile-overlay {
    position: absolute; inset: 0;
    /* Heavy at the top where the title sits, very light through the
       middle/bottom so the underlying image actually shows. */
    background:
        linear-gradient(180deg,
            rgba(0,0,0,0.75) 0%,
            rgba(0,0,0,0.30) 40%,
            rgba(0,0,0,0.10) 100%);
}
.lore-tile-content {
    position: absolute; inset: 0;
    padding: 1.5rem;
    display: flex; flex-direction: column;
}
.lore-tile-content .cap-title { margin-top: 0; }


/* ============================================================
 * Mock-UI ability tile (used for ACT + Channels mock interfaces)
 * ============================================================ */
.ability-tile {
    position: relative;
    background: rgba(15, 16, 20, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 1.25rem;
    padding: 1.25rem;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
    min-height: 230px;
    display: flex;
    flex-direction: column;
}
.ability-tile:hover {
    transform: translateY(-4px);
    border-color: rgba(1,164,166,0.4);
}
.ability-tile-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 0.85rem;
}
.ability-tile-name {
    font-family: "futura-pt", sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff;
}
.ability-tile-tag {
    font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
    color: rgba(95,225,227,0.85);
    padding: 3px 8px; border-radius: 9999px;
    background: rgba(1,164,166,0.1);
    border: 1px solid rgba(1,164,166,0.25);
}
.ui-line {
    background: rgba(255,255,255,0.06);
    border-radius: 4px;
    height: 8px;
}
.ui-line.tall { height: 10px; }
.ui-pill {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    padding: 0.55rem 0.75rem;
}


/* ============================================================
 * Step number (How it works section)
 * ============================================================ */
.step-num {
    font-family: "futura-pt", sans-serif;
    font-weight: 700;
    font-size: clamp(3.5rem, 7vw, 5.5rem);
    line-height: 1;
    background: linear-gradient(135deg, #01a4a6 0%, #fc7244 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


/* ============================================================
 * Pricing card (Adventurer / Champion / Paragon tiers)
 * ============================================================ */
.price-card {
    background: rgba(15, 15, 18, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem;
    padding: 2rem;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.price-card.featured {
    transform: scale(1.06);
    border-color: rgba(252, 114, 68, 0.75);
    background: linear-gradient(180deg, rgba(252, 114, 68, 0.10) 0%, rgba(15, 15, 18, 0.75) 65%);
    box-shadow:
        0 30px 70px rgba(252, 114, 68, 0.32),
        0 0 0 1px rgba(252, 114, 68, 0.2) inset;
}
.price-card:hover { transform: translateY(-4px); }
.price-card.featured:hover { transform: translateY(-4px) scale(1.06); }
.price-badge {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, #fc7244, #f56453);
    color: #fff;
    font-size: 11px; letter-spacing: 2px;
    padding: 6px 14px; border-radius: 9999px;
    text-transform: uppercase; font-weight: 600;
    white-space: nowrap;
}


/* ============================================================
 * Compare check / x icons (used in the "old way / new way" lists
 * and the privacy-section pillars)
 * ============================================================ */
.check-icon, .x-icon {
    width: 22px; height: 22px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.check-icon { background: rgba(1,164,166,0.18); color: #5fe1e3; }
.x-icon     { background: rgba(245, 100, 83, 0.18); color: #ff8a78; }
