/* ─── Design Tokens (matching tenant frontend) ─── */
:root {
    --color-primary-50: #f3f7fb;
    --color-primary-100: #e7eef6;
    --color-primary-200: #cfddea;
    --color-primary-500: #4f7398;
    --color-primary-600: #173a5c;
    --color-primary-700: #0d2745;
    --color-primary-800: #08203a;
    --color-primary-900: #06182c;

    --color-bg: #f5f6f8;
    --color-surface: #ffffff;
    --color-surface-subtle: #fafbfc;
    --color-border: #e5e7eb;
    --color-border-strong: #d1d5db;

    --color-text: #121417;
    --color-text-muted: #4b5563;
    --color-text-subtle: #6b7280;
    --color-text-on-primary: #ffffff;

    --color-success-500: #2f8f5b;
    --color-warning-500: #c48a2c;
    --color-error-500: #c65a5a;

    --shadow-sm: 0 1px 2px 0 rgb(16 24 40 / 0.04);
    --shadow-md: 0 4px 12px rgb(16 24 40 / 0.08);
    --shadow-lg: 0 12px 28px rgb(16 24 40 / 0.12);
    --ring-primary: rgb(23 58 92 / 0.18);

    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 1.5rem 0.75rem;
}

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

/* ─── Container ────────────────────────── */
.container {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 2.5rem 1.25rem;
    max-width: 100%;
    width: 100%;
}

@media (min-width: 768px) {
    .container { max-width: 720px; }
}

@media (min-width: 1024px) {
    .container { max-width: 960px; }
}

@media (min-width: 1200px) {
    .container { max-width: 1140px; }
}

.page-home .container {
    text-align: center;
}

/* ─── Top Bar ──────────────────────────── */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ─── Logo ─────────────────────────────── */
.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 32px;
    width: auto;
}

.page-home .logo-img {
    height: 40px;
}

.page-legal .logo-img {
    height: 28px;
}

/* ─── Hero ─────────────────────────────── */
.subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

h1 {
    margin: 0.5rem 0 1.25rem 0;
    font-size: 1.6rem;
    letter-spacing: -0.6px;
    color: var(--color-text);
}

.details {
    font-size: 1rem;
    color: var(--color-text);
    margin-bottom: 2rem;
}

.hero-points {
    margin: -1rem auto 1.25rem auto;
    padding: 0;
    list-style: none;
    max-width: 720px;
    color: var(--color-text);
    text-align: left;
}

.hero-points li {
    display: flex;
    gap: 0.5rem;
    align-items: baseline;
    padding: 0.25rem 0;
}

.hero-points li::before {
    content: "•";
    color: var(--color-primary-700);
    font-weight: 600;
}

/* ─── Grid / Sections ──────────────────── */
.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    text-align: left;
    margin-top: 2rem;
}

.section {
    border-radius: var(--radius-md);
    padding: 1.25rem;
    background: var(--color-surface-subtle);
    border: 1px solid var(--color-border);
}

.section h2 {
    margin: 0 0 0.75rem 0;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.2px;
    color: var(--color-text);
}

.section p {
    margin: 0.5rem 0;
    color: var(--color-text-muted);
    line-height: 1.55;
}

.section ul {
    margin: 0.75rem 0 0 1.1rem;
    padding: 0;
    color: var(--color-text);
    line-height: 1.6;
}

/* ─── Tabs ─────────────────────────────── */
.tabs {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 0.75rem;
}

.tab-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    background: var(--color-surface-subtle);
    border-radius: 10px;
    padding: 0.25rem;
}

.tab-button {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--color-text-muted);
    font-weight: 600;
    padding: 0.55rem 0.8rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.18s ease;
    font-family: inherit;
    font-size: 0.875rem;
}

.tab-button:hover {
    color: var(--color-text);
    background: var(--color-bg);
}

.tab-button.is-active {
    background: var(--color-primary-700);
    color: var(--color-text-on-primary);
    box-shadow: var(--shadow-sm);
}

.tab-button:focus {
    outline: 2px solid var(--ring-primary);
    outline-offset: 2px;
}

.tab-panels {
    margin-top: 0.75rem;
}

.tab-panel {
    background: var(--color-surface-subtle);
    border-radius: var(--radius-md);
    padding: 1rem;
    border: 1px solid var(--color-border);
}

/* ─── CTA Row ──────────────────────────── */
.cta-row {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 1.25rem 0 0 0;
}

/* ─── Buttons ──────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6875rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition:
        background-color 160ms ease,
        border-color 160ms ease,
        color 160ms ease,
        box-shadow 160ms ease,
        transform 120ms ease;
    font-family: inherit;
    line-height: 1;
    letter-spacing: 0.01em;
}

.btn:hover:not(:disabled) {
    transform: translateY(-1px);
}

.btn:active:not(:disabled) {
    transform: translateY(0);
}

.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-primary {
    background: linear-gradient(180deg, #123252 0%, #0d2745 100%);
    color: var(--color-text-on-primary);
    border-color: var(--color-primary-800);
    box-shadow:
        0 1px 2px rgb(16 24 40 / 0.10),
        0 6px 16px rgb(13 39 69 / 0.18);
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(180deg, #173a5c 0%, #08203a 100%);
    border-color: var(--color-primary-800);
    box-shadow:
        0 2px 4px rgb(16 24 40 / 0.12),
        0 10px 20px rgb(13 39 69 / 0.22);
    text-decoration: none;
}

.btn-secondary {
    background: var(--color-surface);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--color-surface-subtle);
    border-color: var(--color-border-strong);
    box-shadow: 0 4px 10px rgb(16 24 40 / 0.08);
    text-decoration: none;
}

.btn-block {
    width: 100%;
    text-align: center;
}

.btn-lg {
    padding: 0.875rem 1.375rem;
    font-size: 1rem;
    border-radius: var(--radius-lg);
}

/* ─── Pricing ──────────────────────────── */
.pricing {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: stretch;
}

@media (max-width: 600px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

.price-card {
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition:
        box-shadow 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.price-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-border-strong);
    transform: translateY(-1px);
}

.price-header {
    margin-bottom: 0.5rem;
}

.price-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
}

.price-amount {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary-700);
    margin-top: 0.25rem;
}

.price-card > p {
    min-height: 3.2em;
}

.price-card > ul {
    flex: 1;
}

.plan-cta {
    margin-top: auto;
    padding-top: 0.9rem;
    text-align: center;
}

.plan-cta .btn {
    padding: 0.65rem 2.5rem;
}

.plan-note {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    text-align: center;
}

/* ─── Add-on Packs ─────────────────────── */
.addon-heading {
    margin: 1.5rem 0 0.75rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.addon-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

@media (max-width: 900px) {
    .addon-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .addon-grid {
        grid-template-columns: 1fr;
    }
}

.addon-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.9rem 1rem;
    border-radius: var(--radius-md);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    transition:
        box-shadow 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.addon-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-border-strong);
    transform: translateY(-1px);
}

.addon-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.35;
}

.addon-price {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-primary-700);
}

/* ─── Typography ───────────────────────── */
p, li {
    color: var(--color-text-muted);
    line-height: 1.6;
}

a {
    color: var(--color-primary-700);
    text-decoration: none;
    transition: color 0.18s ease;
}

a:hover {
    color: var(--color-primary-800);
    text-decoration: underline;
}

::selection {
    background: var(--color-primary-200);
    color: var(--color-primary-900);
}

/* ─── Footer ───────────────────────────── */
.footer {
    margin-top: 2rem;
    color: var(--color-text-subtle);
    font-size: 0.95rem;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-home .footer {
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
}

.page-legal .footer {
    margin-top: 1.25rem;
}

.footer-links {
    margin-top: 0.75rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.copyright {
    margin-top: 0.75rem;
    color: var(--color-text-subtle);
    font-size: 0.85rem;
}

.footer-location {
    color: var(--color-text-subtle);
    font-size: 0.85rem;
}

/* ─── FAQ Accordion ────────────────────── */
.faq {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
}

.faq-item:first-child {
    border-top: 1px solid var(--color-border);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0.25rem;
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: color 0.18s ease;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--color-text-subtle);
    transition: transform 0.2s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-item summary:hover {
    color: var(--color-primary-700);
}

.faq-answer {
    padding: 0 0.25rem 1rem 0.25rem;
}

.faq-answer p {
    margin: 0;
    line-height: 1.6;
}

/* ─── Demo Placeholder ─────────────────── */
.demo-box {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.demo-placeholder {
    padding: 2rem;
    border: 2px dashed var(--color-border-strong);
    border-radius: var(--radius-md);
    width: 100%;
    text-align: center;
}

/* ═══════════════════════════════════════════
   Feature Animations
   ═══════════════════════════════════════════ */

/* Feature Layout — text left, visual right */
.feature-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.feature-text {
    flex: 1;
    min-width: 0;
}

.feature-visual {
    flex: 0 0 260px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 700px) {
    .feature-layout {
        flex-direction: column;
    }
    .feature-visual {
        flex: none;
        width: 100%;
    }
}

/* ─── 1. Autonomy — Animated Slider ──── */
.anim-autonomy {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.autonomy-track {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.autonomy-label-left,
.autonomy-label-right {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-text-subtle);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.autonomy-bar {
    flex: 1;
    height: 8px;
    background: var(--color-border);
    border-radius: 4px;
    position: relative;
    overflow: visible;
}

.autonomy-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--color-primary-500), var(--color-primary-700));
    animation: autonomy-slide 4s ease-in-out infinite;
}

.autonomy-thumb {
    position: absolute;
    top: 50%;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--color-primary-700);
    border: 3px solid var(--color-surface);
    box-shadow: var(--shadow-md);
    transform: translate(-50%, -50%);
    animation: autonomy-thumb-slide 4s ease-in-out infinite;
}

@keyframes autonomy-slide {
    0%, 100% { width: 25%; }
    50% { width: 85%; }
}

@keyframes autonomy-thumb-slide {
    0%, 100% { left: 25%; }
    50% { left: 85%; }
}

.autonomy-steps {
    display: flex;
    gap: 0.5rem;
}

.auto-step {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    color: var(--color-text-subtle);
    font-weight: 500;
}

.step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-border-strong);
    flex-shrink: 0;
}

.step-dot.active {
    background: var(--color-primary-600);
    box-shadow: 0 0 6px rgb(23 58 92 / 0.3);
}

.auto-step.s1 { animation: step-fade 4s ease-in-out infinite; }
.auto-step.s2 { animation: step-fade 4s ease-in-out 0.3s infinite; }
.auto-step.s3 { animation: step-fade 4s ease-in-out 0.6s infinite; }
.auto-step.s4 { animation: step-fade 4s ease-in-out 0.9s infinite; }

@keyframes step-fade {
    0%, 30% { opacity: 0.5; }
    50% { opacity: 1; }
    70%, 100% { opacity: 0.5; }
}

/* ─── 2. Browser Automation — Window ──── */
.anim-browser {
    width: 220px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.browser-window {
    width: 100%;
    height: 100%;
    background: var(--color-surface);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.browser-header {
    height: 24px;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    padding: 0 10px;
}

.browser-dots {
    display: flex;
    gap: 4px;
}

.browser-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-border-strong);
}

.browser-dots span:nth-child(1) { background: #ff5f56; }
.browser-dots span:nth-child(2) { background: #ffbd2e; }
.browser-dots span:nth-child(3) { background: #27c93f; }

.browser-body {
    flex: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}

.browser-field {
    height: 24px;
    width: 80%;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 8px;
    background: var(--color-bg);
    overflow: hidden;
}

.browser-typed-text {
    font-size: 0.6rem;
    font-family: 'Inter', monospace;
    color: var(--color-text);
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.browser-caret {
    display: inline-block;
    width: 1px;
    height: 12px;
    background: var(--color-primary-500);
    margin-left: 1px;
    animation: blink 1s step-end infinite;
}

.browser-button {
    height: 28px;
    width: 50%;
    background: var(--color-primary-600);
    border-radius: 4px;
    margin-top: 5px;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.browser-btn-label {
    font-size: 0.55rem;
    color: var(--color-text-on-primary);
    font-weight: 600;
    letter-spacing: 0.03em;
}

.browser-cursor {
    position: absolute;
    width: 14px;
    height: 14px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="%23ffffff" stroke="%23000000" stroke-width="2"><path d="M3 3l7.07 16.97 2.51-7.39 7.39-2.51L3 3z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 10;
    top: 100%;
    left: 80%;
    animation: cursor-move 6s ease-in-out infinite;
}

@keyframes cursor-move {
    0%       { top: 120%; left: 80%; }
    15%      { top: 10px; left: 10px; }
    20%, 60% { top: 10px; left: 10px; }
    70%      { top: 60px; left: 30px; }
    78%, 82% { top: 60px; left: 30px; transform: scale(0.9); }
    84%      { top: 60px; left: 30px; transform: scale(1); }
    100%     { top: 120%; left: 80%; }
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

/* ─── 3. Parallel Workflows — Flow ───── */
.anim-parallel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    height: 140px;
}

.parallel-node {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--color-border-strong);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.parallel-node.root {
    background: var(--color-primary-700);
}

.parallel-node.final {
    background: var(--color-primary-700);
}

.parallel-node.branch {
    background: var(--color-surface);
    border: 2px solid var(--color-primary-500);
    animation: pulse-node 2s infinite;
}

.parallel-branches {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.parallel-lines {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 64px;
    width: 30px;
    position: relative;
}



.parallel-lines:not(.reverse) .pline:nth-child(1) { transform: rotate(-30deg); }
.parallel-lines:not(.reverse) .pline:nth-child(3) { transform: rotate(30deg); }

.parallel-lines.reverse { transform: scaleX(-1); }

@keyframes pulse-node {
    0% { box-shadow: 0 0 0 0 rgba(23, 58, 92, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(23, 58, 92, 0); }
    100% { box-shadow: 0 0 0 0 rgba(23, 58, 92, 0); }
}

/* ─── Parallel flow dot particles ──── */
.pline {
    height: 2px;
    background: var(--color-border);
    width: 100%;
    transform-origin: left center;
    position: relative;
    overflow: visible;
}

.pline-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-primary-500);
    top: -2px;
    left: 0;
    box-shadow: 0 0 6px rgba(79, 115, 152, 0.6);
    animation: flow-dot 2s ease-in-out infinite;
}

.pline-dot.dot-reverse {
    animation: flow-dot-reverse 2s ease-in-out infinite;
}

.pline:nth-child(1) .pline-dot { animation-delay: 0s; }
.pline:nth-child(2) .pline-dot { animation-delay: 0.35s; }
.pline:nth-child(3) .pline-dot { animation-delay: 0.7s; }

@keyframes flow-dot {
    0%   { left: -3px; opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { left: calc(100% - 3px); opacity: 0; }
}

@keyframes flow-dot-reverse {
    0%   { left: calc(100% - 3px); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { left: -3px; opacity: 0; }
}

/* ─── 3. Cost Control — Usage Gauges ─── */
.anim-cost {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cost-meter {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.cost-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cost-bar-track {
    height: 10px;
    background: var(--color-bg);
    border-radius: 5px;
    position: relative;
    overflow: visible;
    border: 1px solid var(--color-border);
}

.cost-bar-fill {
    position: absolute;
    left: 0;
    top: -1px;
    height: calc(100% + 2px);
    border-radius: 5px;
    background: linear-gradient(90deg, var(--color-primary-200), var(--color-primary-600));
    animation: cost-fill 5s ease-in-out infinite;
}

.cost-bar-fill.fill-2 {
    background: linear-gradient(90deg, #cfddea, #4f7398);
    animation: cost-fill-2 5s ease-in-out 0.5s infinite;
}

.cost-budget-line {
    position: absolute;
    top: -4px;
    left: 72%;
    width: 2px;
    height: calc(100% + 8px);
    background: var(--color-primary-800);
    border-radius: 1px;
    animation: budget-pulse 2s ease-in-out infinite;
}

.cost-budget-line.line-2 {
    left: 65%;
}

@keyframes cost-fill {
    0%, 100% { width: 15%; }
    50% { width: 68%; }
}

@keyframes cost-fill-2 {
    0%, 100% { width: 10%; }
    50% { width: 55%; }
}

@keyframes budget-pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.cost-values {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    color: var(--color-text-subtle);
}

.cost-budget-label {
    color: var(--color-primary-700);
    font-weight: 600;
}

/* ─── 4. Data Sources — Hub Network ──── */
.anim-data {
    width: 220px;
    height: 170px;
    position: relative;
}

.data-hub {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary-600), var(--color-primary-800));
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgb(23 58 92 / 0.25);
    z-index: 2;
}

.data-source {
    position: absolute;
    left: 0;
    padding: 0.35rem 0.6rem;
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-text-muted);
    box-shadow: var(--shadow-sm);
    z-index: 2;
}

.ds-doc { top: 10px; }
.ds-api { top: 50%; transform: translateY(-50%); }
.ds-db { bottom: 10px; }

.data-line {
    position: absolute;
    height: 2px;
    background: var(--color-border);
    z-index: 1;
}

.dl-1 { width: 100px; top: 24px; left: 66px; transform: rotate(18deg); }
.dl-2 { width: 100px; top: 50%; left: 62px; transform: translateY(-50%); }
.dl-3 { width: 100px; bottom: 24px; left: 60px; transform: rotate(-18deg); }

.data-pulse {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-primary-500);
    z-index: 3;
    opacity: 0;
}

.dp-1 { animation: data-flow-1 2.5s ease-in-out 0s infinite; top: 18px; left: 70px; }
.dp-2 { animation: data-flow-2 2.5s ease-in-out 0.8s infinite; top: 50%; left: 65px; }
.dp-3 { animation: data-flow-3 2.5s ease-in-out 1.6s infinite; bottom: 18px; left: 64px; }

@keyframes data-flow-1 {
    0% { opacity: 0; transform: translate(0, 0); }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { opacity: 0; transform: translate(90px, 25px); }
}

@keyframes data-flow-2 {
    0% { opacity: 0; transform: translate(0, -50%); }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { opacity: 0; transform: translate(95px, -50%); }
}

@keyframes data-flow-3 {
    0% { opacity: 0; transform: translate(0, 0); }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { opacity: 0; transform: translate(90px, -25px); }
}

/* ─── 4. Artifacts — Extraction ──────── */
.anim-artifacts {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
}

.art-source {
    padding: 1rem;
    border: 1px dashed var(--color-border-strong);
    background: var(--color-surface);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--color-text-subtle);
    animation: fade-text 3s infinite;
}

.art-arrow {
    color: var(--color-primary-500);
    font-size: 1.5rem;
}

.art-vault {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 1rem;
    background: var(--color-primary-900);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-primary-800);
}

.art-doc {
    width: 40px;
    height: 6px;
    background: var(--color-primary-500);
    border-radius: 2px;
    opacity: 0;
}

.art-doc:nth-child(1) { animation: slide-doc 3s infinite 0.2s; }
.art-doc:nth-child(2) { animation: slide-doc 3s infinite 0.4s; }
.art-doc:nth-child(3) { animation: slide-doc 3s infinite 0.6s; width: 25px; }

@keyframes fade-text {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@keyframes slide-doc {
    0% { opacity: 0; transform: translateX(-10px); }
    20%, 80% { opacity: 1; transform: translateX(0); }
    100% { opacity: 0; transform: translateX(10px); }
}
