/* =================================================================
   How It Works — Cloud Architecture Page
   Prefix: arc- (architecture)
   Builds on /index.css and /features/shared/feature-page-base.css
   ================================================================= */

:root {
    --arc-aws-orange: #FF9900;
    --arc-aws-orange-soft: rgba(255, 153, 0, 0.12);
    --arc-ink: #0A1628;
    --arc-ink-2: #162240;
    --arc-panel: #ffffff;
    --arc-panel-2: #f8fafc;
    --arc-line: #e2e8f0;
    --arc-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* =================================================================
   HERO
   ================================================================= */
.arc-hero {
    padding: calc(var(--navbar-h) + var(--section-py) + 20px) 0 calc(var(--section-py) + 40px);
    background: #ffffff;
}

.arc-hero-blob {
    background: linear-gradient(145deg,
        rgba(232, 240, 254, 0.92),
        rgba(219, 234, 254, 0.85) 30%,
        rgba(255, 237, 213, 0.78) 60%,
        rgba(237, 233, 254, 0.7));
}

.arc-hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(99,155,241,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99,155,241,0.06) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(circle at 50% 40%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 30%, transparent 75%);
    pointer-events: none;
    z-index: 0;
}

.arc-hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.arc-p {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99,155,241,0.8), rgba(99,155,241,0));
    animation: arcFloatP 12s ease-in-out infinite;
}
.arc-p1 { top: 18%; left: 8%;  animation-delay: 0s; }
.arc-p2 { top: 72%; left: 12%; animation-delay: 2s; background: radial-gradient(circle, rgba(255,153,0,0.8), rgba(255,153,0,0)); }
.arc-p3 { top: 28%; left: 92%; animation-delay: 4s; background: radial-gradient(circle, rgba(139,92,246,0.8), rgba(139,92,246,0)); }
.arc-p4 { top: 58%; left: 86%; animation-delay: 6s; }
.arc-p5 { top: 84%; left: 46%; animation-delay: 3s; background: radial-gradient(circle, rgba(6,182,212,0.8), rgba(6,182,212,0)); }
.arc-p6 { top: 12%; left: 52%; animation-delay: 5s; background: radial-gradient(circle, rgba(255,153,0,0.6), rgba(255,153,0,0)); }

@keyframes arcFloatP {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.55; }
    50%      { transform: translate(-14px, -18px) scale(1.4); opacity: 1; }
}

.arc-hero-tag {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    color: var(--arc-aws-orange) !important;
    background: var(--arc-aws-orange-soft) !important;
    border: 1px solid rgba(255, 153, 0, 0.18);
}

.arc-hero-tag i { font-size: 0.95em; }

.arc-gradient {
    background-image: linear-gradient(135deg, #4F7BF7 0%, #8b5cf6 50%, var(--arc-aws-orange) 100%) !important;
}

.arc-hero-stats {
    margin-bottom: 28px;
}

.arc-stat-value {
    background: linear-gradient(135deg, var(--color-navy), #4F7BF7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    font-variant-numeric: tabular-nums;
}

.arc-hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.arc-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 100px;
    background: rgba(255,255,255,0.8);
    border: 1px solid var(--color-border);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-text-medium);
    backdrop-filter: blur(8px);
}

.arc-chip i { color: var(--color-primary); font-size: 0.75rem; }
.arc-chip:nth-child(2) i { color: #10b981; }
.arc-chip:nth-child(3) i { color: var(--arc-aws-orange); }

/* ----- Hero visual: orbit core ----- */
.fp-hero-visual {
    perspective: 1400px;
}

.arc-hero-visual-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: 520px;
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at 50% 45%, rgba(255,153,0,0.08), transparent 55%),
        radial-gradient(circle at 30% 60%, rgba(139,92,246,0.10), transparent 60%),
        linear-gradient(145deg, #ffffff, #f0f5ff);
    border: 1px solid var(--color-border-light);
    box-shadow:
        0 20px 60px rgba(79,123,247,0.12),
        inset 0 0 80px rgba(255,255,255,0.6);
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.arc-core-center {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.arc-orbit-core {
    position: absolute;
    inset: 10%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arc-core-ring {
    position: absolute;
    width: 44%;
    height: 44%;
    border-radius: 50%;
    border: 1.5px dashed rgba(79, 123, 247, 0.35);
    animation: arcRingSpin 30s linear infinite;
}

.arc-core-ring-2 {
    width: 70%;
    height: 70%;
    border-color: rgba(139, 92, 246, 0.25);
    animation-duration: 45s;
    animation-direction: reverse;
}

.arc-core-ring-3 {
    width: 92%;
    height: 92%;
    border-color: rgba(255, 153, 0, 0.18);
    animation-duration: 60s;
}

@keyframes arcRingSpin {
    to { transform: rotate(360deg); }
}

.arc-core-center {
    position: relative;
    z-index: 2;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--arc-ink), var(--arc-ink-2));
    color: var(--arc-aws-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.6rem;
    box-shadow:
        0 0 0 6px rgba(255,255,255,0.85),
        0 0 0 7px rgba(255, 153, 0, 0.2),
        0 20px 40px rgba(10, 22, 40, 0.25);
    animation: arcCorePulse 4s ease-in-out infinite;
}

@keyframes arcCorePulse {
    0%, 100% { box-shadow: 0 0 0 6px rgba(255,255,255,0.85), 0 0 0 7px rgba(255,153,0,0.2), 0 20px 40px rgba(10,22,40,0.25); }
    50%      { box-shadow: 0 0 0 6px rgba(255,255,255,0.85), 0 0 0 14px rgba(255,153,0,0.08), 0 20px 40px rgba(10,22,40,0.25); }
}

/* Orbits act purely as positional wrappers. The orbital motion is
   driven by the child node's own keyframes so we can simultaneously
   spin the node around the center AND keep the icon upright. Orbit
   radius is controlled via --orbit-r (overridable per breakpoint). */
.arc-orbit {
    position: absolute;
    inset: 0;
    --orbit-r: 160px;
}

.arc-orbit-2 {
    inset: -8%;
    --orbit-r: 220px;
}

.arc-node {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid var(--color-border-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--color-text-dark);
    box-shadow: 0 8px 20px rgba(10, 22, 40, 0.08);
    transform: translate(-50%, -50%)
               rotate(var(--n-angle))
               translateY(calc(-1 * var(--orbit-r)))
               rotate(calc(-1 * var(--n-angle)));
    animation: arcNodeOrbit 24s linear infinite;
}

.arc-orbit-2 .arc-node {
    animation-duration: 36s;
    animation-direction: reverse;
    width: 78px;
    height: 78px;
}

.arc-node i {
    font-size: 1.15rem;
    color: var(--color-primary);
}

.arc-node-s3 i  { color: #10b981; }
.arc-node-rds i { color: #8b5cf6; }
.arc-node-lambda i { color: var(--arc-aws-orange); }
.arc-node-cf i  { color: #06b6d4; }
.arc-node-vec i { color: #06b6d4; }

/* Outer rotate walks the node around the orbit; inner counter-rotate
   keeps the icon/text upright throughout a full revolution. */
@keyframes arcNodeOrbit {
    from { transform: translate(-50%, -50%)
                      rotate(var(--n-angle))
                      translateY(calc(-1 * var(--orbit-r)))
                      rotate(calc(-1 * var(--n-angle))); }
    to   { transform: translate(-50%, -50%)
                      rotate(calc(var(--n-angle) + 360deg))
                      translateY(calc(-1 * var(--orbit-r)))
                      rotate(calc(-1 * var(--n-angle) - 360deg)); }
}

.arc-hero-statusbar {
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(10, 22, 40, 0.88);
    color: #ffffff;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(10,22,40,0.18);
    white-space: nowrap;
}

.arc-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    position: relative;
}

.arc-status-live::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #10b981;
    animation: arcLivePing 1.8s ease-out infinite;
}

@keyframes arcLivePing {
    0%   { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(2.8); opacity: 0; }
}

.arc-status-sep { opacity: 0.5; }
.arc-status-region {
    font-family: var(--arc-mono);
    color: var(--arc-aws-orange);
    font-weight: 500;
    font-size: 0.7rem;
}

/* =================================================================
   ARCHITECTURE OVERVIEW (4-layer stack)
   ================================================================= */
.arc-overview-section {
    background: #ffffff;
}

.arc-stack {
    --arc-timeline-gutter: 36px; /* = left padding; timeline centred in this strip */
    /* Packet Y positions: set by how-it-works.js to each .arc-layer vertical centre (minus 5px) */
    --arc-packet-y1: 100px;
    --arc-packet-y2: 200px;
    --arc-packet-y3: 300px;
    --arc-packet-y4: 400px;
    /* Gradient line: vertical span of the four layer blocks (overrides = JS-measured) */
    --arc-vline-top: 32px;
    --arc-vline-bottom: 32px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 18px;
    /* Left gutter: line sits in the middle of this, never under .arc-layer */
    padding: 36px 28px 36px var(--arc-timeline-gutter);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at 0% 0%, rgba(79,123,247,0.06), transparent 45%),
        radial-gradient(circle at 100% 100%, rgba(255,153,0,0.05), transparent 45%),
        linear-gradient(180deg, #f8fafc, #ffffff);
    border: 1px solid var(--color-border-light);
    box-shadow: 0 12px 40px rgba(10, 22, 40, 0.05);
    overflow: hidden;
}

.arc-stack::before {
    content: '';
    position: absolute;
    /* Horizontally centred in the left gutter (between frame edge and .arc-layer) */
    left: calc(var(--arc-timeline-gutter) / 2 - 1px);
    top: var(--arc-vline-top);
    bottom: var(--arc-vline-bottom);
    width: 2px;
    background: linear-gradient(180deg,
        #4F7BF7 0%,
        #8b5cf6 33%,
        #06b6d4 66%,
        var(--arc-aws-orange) 100%);
    opacity: 0.35;
    z-index: 0;
    pointer-events: none;
}

.arc-stack-packet {
    position: absolute;
    left: calc(var(--arc-timeline-gutter) / 2 - 5px); /* 10px dot centred on line */
    top: var(--arc-packet-y1);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--arc-aws-orange);
    box-shadow: 0 0 16px var(--arc-aws-orange);
    z-index: 1;
    will-change: top, opacity;
    animation: arcPacketDrop 8s ease-in-out infinite;
}

/* Four stops, each at the JS-measured middle of a .arc-layer; brief hold + move to next */
@keyframes arcPacketDrop {
    0%   { top: var(--arc-packet-y1); opacity: 0; }
    2%   { top: var(--arc-packet-y1); opacity: 1; }
    16%  { top: var(--arc-packet-y1); opacity: 1; }
    22%  { top: var(--arc-packet-y2); }
    25%  { top: var(--arc-packet-y2); opacity: 1; }
    39%  { top: var(--arc-packet-y2); opacity: 1; }
    45%  { top: var(--arc-packet-y3); }
    48%  { top: var(--arc-packet-y3); opacity: 1; }
    62%  { top: var(--arc-packet-y3); opacity: 1; }
    68%  { top: var(--arc-packet-y4); }
    72%  { top: var(--arc-packet-y4); opacity: 1; }
    90%  { top: var(--arc-packet-y4); opacity: 1; }
    91%  { top: var(--arc-packet-y4); opacity: 0; }
    92%  { top: var(--arc-packet-y1); opacity: 0; }
    100% { top: var(--arc-packet-y1); opacity: 0; }
}

.arc-layer {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 28px;
    align-items: center;
    padding: 24px 24px 24px 60px;
    border-radius: var(--radius-lg);
    background: var(--arc-panel);
    border: 1px solid var(--color-border-light);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.arc-layer:hover {
    transform: translateX(6px);
    border-color: rgba(79, 123, 247, 0.2);
    box-shadow: 0 12px 30px rgba(10,22,40,0.06);
}

.arc-layer-label {
    display: flex;
    align-items: center;
    gap: 12px;
}

.arc-layer-num {
    font-family: var(--arc-mono);
    font-size: 1.6rem;
    font-weight: 600;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--color-primary);
    opacity: 0.55;
}

.arc-layer-label h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin: 0 0 2px;
    line-height: 1.25;
}

.arc-layer-label p {
    font-size: 0.78rem;
    color: var(--color-text-light);
    margin: 0;
}

.arc-layer-edge .arc-layer-num { -webkit-text-stroke-color: #4F7BF7; }
.arc-layer-app  .arc-layer-num { -webkit-text-stroke-color: #8b5cf6; }
.arc-layer-data .arc-layer-num { -webkit-text-stroke-color: #06b6d4; }
.arc-layer-obs  .arc-layer-num { -webkit-text-stroke-color: var(--arc-aws-orange); }

.arc-layer-nodes {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.arc-layer-nodes::-webkit-scrollbar { height: 4px; }
.arc-layer-nodes::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 2px; }

.arc-hop {
    flex-shrink: 0;
    min-width: 96px;
    padding: 12px 10px;
    border-radius: 12px;
    background: linear-gradient(180deg, #f8fafc, #ffffff);
    border: 1px solid var(--color-border-light);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.arc-hop:hover {
    transform: translateY(-3px);
    border-color: rgba(79,123,247,0.25);
    box-shadow: 0 6px 18px rgba(10,22,40,0.06);
}

.arc-hop i {
    font-size: 1.15rem;
    color: var(--color-primary);
}

.arc-hop span {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--color-text-medium);
    line-height: 1.3;
}

.arc-hop-wide {
    min-width: 200px;
    padding: 12px;
}

.arc-hop-stack {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    margin-bottom: 4px;
}

.arc-stack-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: rgba(79, 123, 247, 0.06);
    border: 1px solid rgba(79, 123, 247, 0.12);
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--color-text-medium);
}

.arc-stack-card i { font-size: 0.8rem; color: #4F7BF7; }
.arc-stack-card:nth-child(2) i { color: var(--arc-aws-orange); }
.arc-stack-card:nth-child(3) i { color: #06b6d4; }

.arc-hop-line {
    flex-shrink: 0;
    width: 32px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-border) 20%, var(--color-border) 80%, transparent);
    position: relative;
    overflow: hidden;
}

.arc-hop-line span {
    position: absolute;
    top: -1px;
    left: -10px;
    width: 10px;
    height: 4px;
    border-radius: 2px;
    background: var(--color-primary);
    box-shadow: 0 0 6px rgba(79,123,247,0.6);
    animation: arcHopFlow 2.4s linear infinite;
}

@keyframes arcHopFlow {
    0%   { left: -10px; opacity: 0; }
    20%  { opacity: 1; }
    80%  { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

/* Per-layer node accents */
.arc-layer-edge .arc-hop i { color: #4F7BF7; }
.arc-layer-app  .arc-hop i { color: #8b5cf6; }
.arc-layer-data .arc-hop i { color: #06b6d4; }
.arc-layer-obs  .arc-hop i { color: var(--arc-aws-orange); }

.arc-layer-data .arc-layer-nodes {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}
.arc-data-node { min-width: 0; width: 100%; }

/* =================================================================
   INFRASTRUCTURE PILLARS GRID
   ================================================================= */
.arc-pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.arc-pcard {
    position: relative;
    padding: 28px 26px 26px;
    background: var(--arc-panel);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.45s cubic-bezier(0.4,0,0.2,1),
                box-shadow 0.45s ease,
                border-color 0.3s ease;
}

.arc-pcard::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--p-accent), transparent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.45s ease;
}

.arc-pcard::after {
    content: '';
    position: absolute;
    bottom: -60%;
    right: -30%;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--p-accent) 18%, transparent), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.arc-pcard:hover {
    transform: translateY(-8px);
    border-color: color-mix(in srgb, var(--p-accent) 30%, transparent);
    box-shadow: 0 24px 50px rgba(10, 22, 40, 0.08);
}

.arc-pcard:hover::before { transform: scaleX(1); }
.arc-pcard:hover::after  { opacity: 1; }

.arc-pcard-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--p-accent) 12%, transparent);
    color: var(--p-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 18px;
    transition: transform 0.35s ease;
}

.arc-pcard:hover .arc-pcard-icon {
    transform: scale(1.08) rotate(-4deg);
}

.arc-pcard-anim {
    position: relative;
    height: 96px;
    margin-bottom: 18px;
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(240, 245, 255, 0.7), rgba(248, 250, 252, 0.7));
    border: 1px solid rgba(99, 155, 241, 0.08);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arc-pcard h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 8px;
}

.arc-pcard p {
    font-size: 0.85rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* ----- Mini Animation: Globe (multi-region) ----- */
.arc-mini-globe {
    position: relative;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #e0e7ff, #4F7BF7);
    box-shadow: inset -6px -6px 14px rgba(10,22,40,0.2),
                0 6px 18px rgba(79,123,247,0.25);
}

.arc-mg-ring {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 1.5px dashed rgba(79, 123, 247, 0.45);
    animation: arcMgSpin 14s linear infinite;
}
.arc-mg-ring-2 {
    inset: -20px;
    border-color: rgba(255, 153, 0, 0.35);
    animation-duration: 20s;
    animation-direction: reverse;
}

@keyframes arcMgSpin { to { transform: rotate(360deg); } }

.arc-mg-pin {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #4F7BF7;
    box-shadow: 0 0 8px rgba(79,123,247,0.7);
}
.arc-mg-p1 { top: 18%; left: 58%; }
.arc-mg-p2 { top: 58%; left: 16%; border-color: var(--arc-aws-orange); box-shadow: 0 0 8px rgba(255,153,0,0.7); }
.arc-mg-p3 { top: 72%; left: 72%; border-color: #10b981; box-shadow: 0 0 8px rgba(16,185,129,0.7); }

.arc-mg-pin::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid currentColor;
    color: inherit;
    opacity: 0;
    animation: arcMgPing 2.6s ease-out infinite;
}
.arc-mg-p1::after { border-color: #4F7BF7; }
.arc-mg-p2::after { border-color: var(--arc-aws-orange); animation-delay: 0.8s; }
.arc-mg-p3::after { border-color: #10b981; animation-delay: 1.6s; }

@keyframes arcMgPing {
    0%   { transform: scale(0.6); opacity: 0.8; }
    100% { transform: scale(2.6); opacity: 0; }
}

/* ----- Mini Animation: Auto-scale bars ----- */
.arc-mini-scale {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 64px;
    padding: 0 10px;
}

.arc-ms-bar {
    width: 12px;
    background: linear-gradient(180deg, var(--arc-aws-orange), #f59e0b);
    border-radius: 3px 3px 0 0;
    animation: arcMsGrow 2.4s ease-in-out infinite;
    transform-origin: bottom;
}

.arc-ms-bar:nth-child(1) { animation-delay: 0s;   }
.arc-ms-bar:nth-child(2) { animation-delay: 0.2s; }
.arc-ms-bar:nth-child(3) { animation-delay: 0.4s; }
.arc-ms-bar:nth-child(4) { animation-delay: 0.6s; }
.arc-ms-bar:nth-child(5) { animation-delay: 0.8s; }

@keyframes arcMsGrow {
    0%, 100% { height: 20%; }
    50%      { height: 90%; }
}

/* ----- Mini Animation: Centralized Logs funnel ----- */
.arc-mini-logs {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 8px 12px;
}

.arc-ml-src {
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid rgba(139, 92, 246, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: #8b5cf6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.arc-ml-src:nth-child(1) { top: 12%; left: 10%; }
.arc-ml-src:nth-child(2) { top: 42%; left: 4%;  }
.arc-ml-src:nth-child(3) { top: 72%; left: 10%; }

.arc-ml-funnel {
    position: absolute;
    left: 46%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-left: 18px solid transparent;
    border-right: 18px solid transparent;
    border-top: 28px solid rgba(139, 92, 246, 0.45);
}

.arc-ml-out {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    box-shadow: 0 4px 12px rgba(139,92,246,0.35);
}

/* Flowing packets */
.arc-mini-logs::before,
.arc-mini-logs::after {
    content: '';
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #8b5cf6;
    box-shadow: 0 0 6px rgba(139,92,246,0.7);
    animation: arcLogPkt 2.2s ease-in-out infinite;
}
.arc-mini-logs::before {
    top: 20%;
    left: 32%;
    animation-delay: 0s;
}
.arc-mini-logs::after {
    top: 78%;
    left: 32%;
    animation-delay: 0.8s;
}

@keyframes arcLogPkt {
    0%   { transform: translate(0, 0); opacity: 0; }
    15%  { opacity: 1; }
    60%  { transform: translate(42px, 0); opacity: 1; }
    100% { transform: translate(80px, 0); opacity: 0; }
}

/* ----- Mini Animation: Vector cluster ----- */
.arc-mini-vector {
    position: relative;
    width: 80px;
    height: 80px;
}

.arc-mv-core {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    z-index: 2;
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.15),
                0 8px 20px rgba(6,182,212,0.3);
}

.arc-mv-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #06b6d4;
    transform: translate(-50%, -50%)
               rotate(calc(var(--dot-a) * 1deg))
               translateY(-32px);
    animation: arcMvPulse 2.6s ease-in-out infinite;
    animation-delay: calc(var(--dot-a) * 0.01s);
    box-shadow: 0 0 6px rgba(6,182,212,0.6);
}

@keyframes arcMvPulse {
    0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) rotate(calc(var(--dot-a) * 1deg)) translateY(-32px) scale(0.8); }
    50%      { opacity: 1;   transform: translate(-50%, -50%) rotate(calc(var(--dot-a) * 1deg)) translateY(-38px) scale(1.2); }
}

/* ----- Mini Animation: Edge waves ----- */
.arc-mini-edge {
    position: relative;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arc-me-center {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), #4F7BF7);
    box-shadow: 0 0 10px rgba(79,123,247,0.6);
    z-index: 2;
}

.arc-me-wave {
    position: absolute;
    inset: 50%;
    border-radius: 50%;
    border: 1.5px solid rgba(79, 123, 247, 0.6);
    animation: arcMeWave 2.5s ease-out infinite;
}

.arc-me-wave-2 { animation-delay: 0.8s; }
.arc-me-wave-3 { animation-delay: 1.6s; }

@keyframes arcMeWave {
    0%   { inset: 50%; opacity: 1; }
    100% { inset: 0%;  opacity: 0; }
}

/* ----- Mini Animation: Durable storage cubes ----- */
.arc-mini-cubes {
    display: grid;
    grid-template-columns: repeat(2, 22px);
    grid-template-rows: repeat(2, 22px);
    gap: 5px;
    transform: rotate(8deg);
}

.arc-mc-cube {
    border-radius: 4px;
    background: linear-gradient(135deg, #34d399, #10b981);
    box-shadow: 0 2px 6px rgba(16,185,129,0.25);
    animation: arcCubePop 2.5s ease-in-out infinite;
}

.arc-mc-c1 { animation-delay: 0s; }
.arc-mc-c2 { animation-delay: 0.15s; }
.arc-mc-c3 { animation-delay: 0.3s; }
.arc-mc-c4 { animation-delay: 0.45s; }

@keyframes arcCubePop {
    0%, 100% { opacity: 0.5; transform: scale(0.9); }
    50%      { opacity: 1;   transform: scale(1.05); }
}

/* ----- Mini Animation: Security shield ----- */
.arc-mini-shield {
    position: relative;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arc-sh-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(239, 68, 68, 0.4);
    animation: arcShRing 2.2s ease-out infinite;
}

.arc-sh-ring-2 {
    animation-delay: 1.1s;
}

@keyframes arcShRing {
    0%   { transform: scale(0.6); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}

.arc-sh-core {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    z-index: 2;
    box-shadow: 0 6px 14px rgba(239,68,68,0.35);
}

/* ----- Mini Animation: DB primary-standby sync ----- */
.arc-mini-db {
    display: flex;
    align-items: center;
    gap: 10px;
}

.arc-db-node {
    width: 54px;
    padding: 6px 4px;
    border-radius: 8px;
    background: #fff;
    border: 1.5px solid var(--color-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.arc-db-node i { font-size: 1rem; color: #d4af7a; }
.arc-db-node span { font-size: 0.6rem; font-weight: 700; color: #475569; }

.arc-db-primary {
    border-color: #d4af7a;
    box-shadow: 0 0 0 3px rgba(212,175,122,0.12);
}

.arc-db-sync {
    width: 36px;
    height: 2px;
    background: linear-gradient(90deg, #d4af7a, #f59e0b);
    position: relative;
    overflow: visible;
}

.arc-db-sync::before,
.arc-db-sync::after {
    content: '';
    position: absolute;
    top: -3px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d4af7a;
    box-shadow: 0 0 6px rgba(212,175,122,0.7);
    animation: arcDbPkt 2s linear infinite;
}
.arc-db-sync::before { left: 0; }
.arc-db-sync::after  { left: 0; animation-delay: 1s; }

@keyframes arcDbPkt {
    0%   { transform: translateX(0);    opacity: 0; }
    15%  { opacity: 1; }
    85%  { opacity: 1; }
    100% { transform: translateX(36px); opacity: 0; }
}

/* ----- Mini Animation: WebSocket pulse dots ----- */
.arc-mini-ws {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 20px;
}

.arc-ws-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 8px rgba(56,189,248,0.55);
    animation: arcWsWave 1.4s ease-in-out infinite;
}

.arc-ws-dot:nth-child(1) { animation-delay: 0s; }
.arc-ws-dot:nth-child(2) { animation-delay: 0.15s; }
.arc-ws-dot:nth-child(3) { animation-delay: 0.3s; }
.arc-ws-dot:nth-child(4) { animation-delay: 0.45s; }
.arc-ws-dot:nth-child(5) { animation-delay: 0.6s; }

@keyframes arcWsWave {
    0%, 100% { transform: translateY(0);  opacity: 0.4; }
    50%      { transform: translateY(-8px); opacity: 1; }
}

/* =================================================================
   DETAIL FRAMES (Region map / Log terminal / Vector / Security)
   ================================================================= */

.arc-detail-frame {
    background: linear-gradient(135deg, #f0f5ff, #e8f0fe);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    width: 100%;
    aspect-ratio: 4 / 3;
    position: relative;
    border: 1px solid var(--color-border-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ----- Multi-Region map ----- */
.arc-frame-region {
    background:
        radial-gradient(circle at 20% 80%, rgba(255,153,0,0.08), transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(79,123,247,0.10), transparent 50%),
        linear-gradient(135deg, #f8fafc, #eff6ff);
}

.arc-region-map {
    position: relative;
    width: 90%;
    height: 80%;
}

.arc-region-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(79,123,247,0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79,123,247,0.08) 1px, transparent 1px);
    background-size: 22px 22px;
    border-radius: 14px;
    opacity: 0.55;
}

.arc-region-pin {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translate(-50%, -50%);
    z-index: 3;
}

.arc-rp-primary   { left: 25%; top: 72%; }
.arc-rp-secondary { left: 75%; top: 32%; }

.arc-rp-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #4F7BF7;
    box-shadow: 0 0 0 4px rgba(79,123,247,0.18),
                0 0 12px rgba(79,123,247,0.6);
}

.arc-rp-secondary .arc-rp-dot {
    background: var(--arc-aws-orange);
    box-shadow: 0 0 0 4px rgba(255,153,0,0.18),
                0 0 12px rgba(255,153,0,0.6);
}

.arc-rp-pulse {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translate(0, -50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #4F7BF7;
    animation: arcRpPing 2.4s ease-out infinite;
}
.arc-rp-secondary .arc-rp-pulse {
    background: var(--arc-aws-orange);
    animation-delay: 1.2s;
}

@keyframes arcRpPing {
    0%   { transform: translate(0, -50%) scale(1); opacity: 0.7; }
    100% { transform: translate(0, -50%) scale(3.6); opacity: 0; }
}

.arc-rp-label {
    font-family: var(--arc-mono);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--color-text-dark);
    line-height: 1.35;
    background: rgba(255,255,255,0.9);
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid var(--color-border-light);
    box-shadow: 0 4px 10px rgba(10,22,40,0.05);
    white-space: nowrap;
}
.arc-rp-label em {
    font-style: normal;
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--color-text-muted);
    font-family: var(--font-body);
}

.arc-region-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.arc-region-path {
    stroke-dasharray: 6 6;
    animation: arcRegionFlow 4s linear infinite;
}

@keyframes arcRegionFlow {
    to { stroke-dashoffset: -24; }
}

/* Traveling replication packet — moves diagonally across the map
   between the two region pins. Kept as a simple translate animation
   for the broadest browser support. */
.arc-region-packet {
    position: absolute;
    left: 25%;
    top: 72%;
    width: 10px;
    height: 10px;
    margin-left: -5px;
    margin-top: -5px;
    border-radius: 50%;
    background: var(--arc-aws-orange);
    box-shadow: 0 0 12px var(--arc-aws-orange);
    z-index: 2;
    animation: arcRegionPacket 4s ease-in-out infinite;
}

@keyframes arcRegionPacket {
    0%   { left: 25%; top: 72%; opacity: 0; transform: scale(0.6); }
    15%  { opacity: 1; transform: scale(1); }
    50%  { left: 50%; top: 38%; opacity: 1; transform: scale(1); }
    85%  { left: 75%; top: 32%; opacity: 1; transform: scale(1); }
    100% { left: 75%; top: 32%; opacity: 0; transform: scale(0.6); }
}

/* ----- Log Terminal ----- */
.arc-frame-logs {
    background: linear-gradient(135deg, #0A1628, #162240);
    padding: 20px;
}

.arc-log-terminal {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: #0b1220;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.35),
                inset 0 0 40px rgba(99,155,241,0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.arc-log-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.arc-log-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}
.arc-log-r { background: #ef4444; }
.arc-log-y { background: #f59e0b; }
.arc-log-g { background: #10b981; }

.arc-log-title {
    flex: 1;
    text-align: center;
    font-family: var(--arc-mono);
    font-size: 0.75rem;
    color: rgba(255,255,255,0.55);
    font-weight: 500;
    letter-spacing: 0.3px;
}

.arc-log-body {
    flex: 1;
    padding: 14px 16px;
    overflow: hidden;
    font-family: var(--arc-mono);
    font-size: 0.72rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.85);
}

.arc-log-line {
    display: flex;
    align-items: baseline;
    gap: 10px;
    opacity: 0;
    transform: translateY(6px);
    animation: arcLogLine 0.4s ease both;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.arc-log-line:nth-child(1) { animation-delay: 0.1s; }
.arc-log-line:nth-child(2) { animation-delay: 0.4s; }
.arc-log-line:nth-child(3) { animation-delay: 0.7s; }
.arc-log-line:nth-child(4) { animation-delay: 1.0s; }
.arc-log-line:nth-child(5) { animation-delay: 1.3s; }
.arc-log-line:nth-child(6) { animation-delay: 1.6s; }
.arc-log-line:nth-child(7) { animation-delay: 1.9s; }

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

.arc-log-time {
    color: rgba(255,255,255,0.4);
    flex-shrink: 0;
}

.arc-log-tag {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: 700;
    flex-shrink: 0;
    min-width: 44px;
    text-align: center;
}

.arc-tag-info { background: rgba(79,123,247,0.2);  color: #93c5fd; }
.arc-tag-dbg  { background: rgba(148,163,184,0.2); color: #cbd5e1; }
.arc-tag-warn { background: rgba(245,158,11,0.2);  color: #fcd34d; }
.arc-tag-ok   { background: rgba(16,185,129,0.2);  color: #6ee7b7; }

.arc-log-svc {
    color: var(--arc-aws-orange);
    font-weight: 600;
    flex-shrink: 0;
    min-width: 30px;
}

.arc-log-msg {
    color: rgba(255,255,255,0.78);
    overflow: hidden;
    text-overflow: ellipsis;
}

.arc-log-cursor {
    animation: none;
    opacity: 1;
    transform: none;
}

.arc-log-blink {
    color: var(--arc-aws-orange);
    font-weight: 700;
    animation: arcLogBlink 1s steps(2) infinite;
}

@keyframes arcLogBlink {
    50% { opacity: 0; }
}

/* ----- Vector frame ----- */
.arc-frame-vector {
    background:
        radial-gradient(circle at 50% 40%, rgba(6,182,212,0.08), transparent 60%),
        linear-gradient(135deg, #f0fdfa, #ecfeff);
    padding: 20px;
}

.arc-vector-scene {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
}

.arc-vs-query,
.arc-vs-result {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.85);
    border: 1px solid rgba(6,182,212,0.2);
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-text-medium);
    backdrop-filter: blur(6px);
    box-shadow: 0 6px 14px rgba(6,182,212,0.08);
    max-width: 90%;
}

.arc-vs-query i { color: #8b5cf6; font-size: 0.9rem; }
.arc-vs-result i { color: #06b6d4; font-size: 0.9rem; }

.arc-vs-query {
    animation: arcVsFadeIn 0.6s 0.1s ease both;
}
.arc-vs-result {
    animation: arcVsFadeIn 0.6s 2s ease both;
}

@keyframes arcVsFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.arc-vs-svg {
    flex: 1;
    width: 100%;
    height: auto;
}

.arc-vs-d {
    fill: rgba(6,182,212,0.55);
    animation: arcVsDot 3s ease-in-out infinite;
}

.arc-vs-d-hit {
    fill: var(--arc-aws-orange);
    animation: arcVsHit 3s ease-in-out infinite;
}

@keyframes arcVsDot {
    0%, 100% { r: 2.4; opacity: 0.5; }
    50%      { r: 3.6; opacity: 1;   }
}

@keyframes arcVsHit {
    0%, 100% { r: 3.6; opacity: 0.8; filter: drop-shadow(0 0 2px var(--arc-aws-orange)); }
    50%      { r: 5.2; opacity: 1;   filter: drop-shadow(0 0 6px var(--arc-aws-orange)); }
}

.arc-vs-ray {
    stroke: var(--arc-aws-orange);
    stroke-width: 1.5;
    stroke-dasharray: 4 4;
    opacity: 0;
    animation: arcVsRay 3s ease-in-out infinite;
}

.arc-vs-ray:nth-child(1) { animation-delay: 0.6s; }
.arc-vs-ray:nth-child(2) { animation-delay: 1.0s; }
.arc-vs-ray:nth-child(3) { animation-delay: 1.4s; }

@keyframes arcVsRay {
    0%, 100% { opacity: 0; stroke-dashoffset: 0; }
    30%, 70% { opacity: 0.85; }
    100%     { stroke-dashoffset: -24; }
}

.arc-vs-core {
    fill: #06b6d4;
    filter: drop-shadow(0 0 8px rgba(6,182,212,0.7));
    animation: arcVsCore 3s ease-in-out infinite;
}

@keyframes arcVsCore {
    0%, 100% { r: 9; }
    50%      { r: 12; }
}

/* ----- Security stack frame ----- */
.arc-frame-security {
    background:
        radial-gradient(circle at 60% 20%, rgba(239,68,68,0.05), transparent 60%),
        linear-gradient(135deg, #fefce8, #fef3c7);
    padding: 24px;
}

.arc-sec-stack {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.arc-sec-layer {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 12px;
    background: rgba(255,255,255,0.95);
    border: 1px solid color-mix(in srgb, var(--sl-c) 20%, transparent);
    box-shadow: 0 6px 14px color-mix(in srgb, var(--sl-c) 10%, transparent);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    position: relative;
}

.arc-sec-layer:hover {
    transform: translateX(4px);
    box-shadow: 0 10px 22px color-mix(in srgb, var(--sl-c) 18%, transparent);
}

.arc-sec-layer > i {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--sl-c) 12%, transparent);
    color: var(--sl-c);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.arc-sec-layer > div {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.arc-sec-layer strong {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--color-text-dark);
    font-weight: 700;
}

.arc-sec-layer span {
    font-size: 0.78rem;
    color: var(--color-text-light);
}

.arc-sec-badge {
    font-family: var(--arc-mono);
    font-size: 0.65rem !important;
    font-weight: 600;
    color: var(--sl-c) !important;
    padding: 3px 8px;
    border: 1px solid color-mix(in srgb, var(--sl-c) 30%, transparent);
    border-radius: 100px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* =================================================================
   REQUEST LIFECYCLE
   ================================================================= */
.arc-lifecycle-section {
    overflow: visible;
}

.arc-lifecycle {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 6px;
    flex-wrap: wrap;
}

.arc-lc-step {
    flex: 1;
    min-width: 140px;
    max-width: 180px;
    padding: 28px 18px 20px;
    border-radius: var(--radius-lg);
    background: var(--arc-panel);
    border: 1px solid var(--color-border-light);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.45s ease,
        border-color 0.3s ease;
}

/* Top accent line — match .arc-pcard::before (Infrastructure Pillars) */
.arc-lc-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--lc-accent), transparent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.45s ease;
}

/* Soft corner glow on hover — match .arc-pcard::after */
.arc-lc-step::after {
    content: '';
    position: absolute;
    bottom: -60%;
    right: -30%;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        color-mix(in srgb, var(--lc-accent) 18%, transparent),
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.arc-lc-step:hover {
    transform: translateY(-8px);
    border-color: color-mix(in srgb, var(--lc-accent) 30%, transparent);
    box-shadow: 0 24px 50px rgba(10, 22, 40, 0.08);
}

.arc-lc-step:hover::before { transform: scaleX(1); }
.arc-lc-step:hover::after { opacity: 1; }

.arc-lc-num {
    position: relative;
    z-index: 1;
    font-family: var(--arc-mono);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--lc-accent);
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.arc-lc-icon {
    position: relative;
    z-index: 1;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    margin: 0 auto 14px;
    background: color-mix(in srgb, var(--lc-accent) 10%, transparent);
    color: var(--lc-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: transform 0.35s ease;
}

.arc-lc-step:hover .arc-lc-icon { transform: scale(1.12); }

.arc-lc-step h4 {
    position: relative;
    z-index: 1;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 6px;
}

.arc-lc-step p {
    position: relative;
    z-index: 1;
    font-size: 0.78rem;
    color: var(--color-text-light);
    line-height: 1.55;
}

.arc-lc-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    flex-shrink: 0;
    padding: 0 4px;
    animation: arcLcArrow 2s ease-in-out infinite;
}

@keyframes arcLcArrow {
    0%, 100% { transform: translateX(0);   opacity: 0.4; }
    50%      { transform: translateX(3px); opacity: 1;   }
}

/* =================================================================
   METRICS GRID
   ================================================================= */
.arc-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.arc-metric {
    padding: 24px 22px;
    background: var(--arc-panel);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-light);
    text-align: left;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    position: relative;
    overflow: hidden;
}

.arc-metric::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -30%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--m-c) 15%, transparent), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.arc-metric:hover::before { opacity: 1; }

.arc-metric:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(10,22,40,0.06);
}

.arc-metric-ico {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--m-c) 12%, transparent);
    color: var(--m-c);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

.arc-metric-value {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text-dark);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    margin-bottom: 4px;
    position: relative;
    z-index: 1;
}

.arc-metric-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-text-medium);
    position: relative;
    z-index: 1;
}

.arc-metric-sub {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    margin-top: 4px;
    position: relative;
    z-index: 1;
}

/* =================================================================
   CTA CARD ACCENT
   ================================================================= */
.arc-cta-card {
    position: relative;
    overflow: hidden;
}

.arc-cta-glow {
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 153, 0, 0.25), transparent 70%);
    left: -120px;
    bottom: -260px;
    pointer-events: none;
    animation: arcCtaGlow 8s ease-in-out infinite;
}

@keyframes arcCtaGlow {
    0%, 100% { transform: translate(0, 0); }
    50%      { transform: translate(40px, -30px); }
}

/* =================================================================
   RESPONSIVE
   ================================================================= */
@media (max-width: 1100px) {
    .arc-pillars-grid { grid-template-columns: repeat(2, 1fr); }
    .arc-metrics-grid { grid-template-columns: repeat(3, 1fr); }
    .arc-layer { grid-template-columns: 180px 1fr; gap: 18px; padding: 20px 20px 20px 50px; }
    .arc-orbit   { --orbit-r: 130px; }
    .arc-orbit-2 { --orbit-r: 180px; }
}

@media (max-width: 900px) {
    .arc-hero-visual-frame { max-width: 440px; margin: 0 auto; }
    .arc-orbit   { --orbit-r: 120px; }
    .arc-orbit-2 { --orbit-r: 170px; }
    .arc-orbit   .arc-node { width: 62px; height: 62px; }
    .arc-orbit-2 .arc-node { width: 66px; height: 66px; }

    .arc-layer { grid-template-columns: 1fr; gap: 16px; padding: 20px 20px 20px 60px; }
    .arc-layer-nodes { padding-bottom: 6px; }
    .arc-layer-data .arc-layer-nodes { display: flex; }
    .arc-data-node { min-width: 96px; }
}

@media (max-width: 768px) {
    .arc-hero { padding: calc(var(--navbar-h) + var(--section-py)) 0 var(--section-py); }

    .arc-pillars-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }

    .arc-metrics-grid { grid-template-columns: repeat(2, 1fr); }

    .arc-stack {
        --arc-timeline-gutter: 24px;
        padding: 24px 14px 24px var(--arc-timeline-gutter);
    }
    .arc-layer { padding: 16px 16px 16px 46px; }

    .arc-lifecycle { gap: 12px; }
    .arc-lc-arrow { display: none; }
    .arc-lc-step { max-width: none; min-width: calc(50% - 6px); }

    .arc-hero-visual-frame { max-width: 360px; }
    .arc-orbit   { --orbit-r: 100px; }
    .arc-orbit-2 { --orbit-r: 140px; }
    .arc-orbit   .arc-node { width: 54px; height: 54px; font-size: 0.62rem; }
    .arc-orbit-2 .arc-node { width: 58px; height: 58px; font-size: 0.62rem; }
    .arc-core-center { width: 80px; height: 80px; font-size: 1.8rem; }

    .arc-hero-statusbar { font-size: 0.65rem; padding: 6px 12px; }
    .arc-hero-statusbar .arc-status-region { display: none; }
}

@media (max-width: 560px) {
    .arc-metrics-grid { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; }
    .arc-lc-step { min-width: 100%; max-width: 100%; }
    .arc-hero-chips { gap: 6px; }
    .arc-chip { font-size: 0.72rem; padding: 5px 10px; }
}

@media (prefers-reduced-motion: reduce) {
    .arc-core-ring,
    .arc-orbit,
    .arc-orbit-2,
    .arc-node,
    .arc-p,
    .arc-ms-bar,
    .arc-mg-ring,
    .arc-mg-pin::after,
    .arc-me-wave,
    .arc-mv-dot,
    .arc-mc-cube,
    .arc-sh-ring,
    .arc-db-sync::before,
    .arc-db-sync::after,
    .arc-ws-dot,
    .arc-region-path,
    .arc-region-packet,
    .arc-rp-pulse,
    .arc-hop-line span,
    .arc-mini-logs::before,
    .arc-mini-logs::after,
    .arc-cta-glow,
    .arc-vs-d,
    .arc-vs-d-hit,
    .arc-vs-ray,
    .arc-vs-core,
    .arc-lc-arrow,
    .arc-status-live::before,
    .arc-log-blink,
    .arc-core-center {
        animation: none !important;
    }

    .arc-stack-packet {
        animation: none !important;
        top: var(--arc-packet-y1);
    }
}

/* =================================================================
   INFRASTRUCTURE BENEFITS GALLERY
   (Image-based showcase: High Availability · Data Security ·
    Elastic Scalability · Enterprise Reliability)
   ================================================================= */
.arc-benefits-section {
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
}

.arc-benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    max-width: 1100px;
    margin: 0 auto;
}

.arc-img-card {
    border-radius: var(--radius-lg, 16px);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.45s ease;
    box-shadow: 0 8px 26px rgba(15, 30, 60, 0.08);
}

.arc-img-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 50px rgba(15, 30, 60, 0.16);
}

.arc-img-card-inner {
    position: relative;
    aspect-ratio: 3 / 4.2;
    overflow: hidden;
    border-radius: var(--radius-lg, 16px);
}

.arc-img-card-inner img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                filter 0.6s ease;
    z-index: 0;
}

.arc-img-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to top,
        rgba(10, 22, 40, 0.78) 0%,
        rgba(10, 22, 40, 0.30) 42%,
        transparent 65%
    );
    transition: background 0.5s ease;
}

.arc-img-title {
    position: absolute;
    bottom: 22px;
    left: 22px;
    right: 22px;
    z-index: 4;
    font-family: var(--font-heading, 'Space Grotesk', sans-serif);
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    letter-spacing: 0.2px;
    transition: bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.arc-img-hover-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    padding: 0 22px 22px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s ease 0.05s,
                transform 0.4s ease 0.05s;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.arc-img-hover-content p {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.65;
}

.arc-img-expand {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #ffd166;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.arc-img-expand i {
    font-size: 0.65rem;
    transition: transform 0.3s ease;
}

.arc-img-card-inner:hover img {
    transform: scale(1.06) translateY(-4%);
    filter: brightness(0.6) blur(2px);
}

.arc-img-card-inner:hover .arc-img-overlay {
    background: linear-gradient(
        to top,
        rgba(10, 22, 40, 0.96) 0%,
        rgba(15, 30, 60, 0.88) 45%,
        rgba(20, 40, 75, 0.72) 75%,
        rgba(25, 50, 95, 0.45) 100%
    );
}

.arc-img-card-inner:hover .arc-img-title {
    bottom: calc(100% - 60px);
}

.arc-img-card-inner:hover .arc-img-hover-content {
    opacity: 1;
    transform: translateY(0);
}

.arc-img-card-inner:hover .arc-img-expand i {
    transform: translateX(4px);
}

/* Accent border that appears on hover, in keeping with arc theme */
.arc-img-card-inner::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid transparent;
    background: linear-gradient(135deg,
        rgba(99, 155, 241, 0.0),
        rgba(255, 153, 0, 0.0)) border-box;
    pointer-events: none;
    transition: border-color 0.4s ease;
    z-index: 5;
}

.arc-img-card-inner:hover::after {
    border-color: rgba(99, 155, 241, 0.45);
    box-shadow: inset 0 0 0 1px rgba(255, 153, 0, 0.15);
}

/* Responsive */
@media (max-width: 1024px) {
    .arc-benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 700px;
    }
}

@media (max-width: 560px) {
    .arc-benefits-grid {
        grid-template-columns: 1fr;
        max-width: 360px;
        gap: 18px;
    }

    .arc-img-card-inner {
        aspect-ratio: 4 / 3.4;
    }

    .arc-img-card-inner:hover .arc-img-title {
        bottom: calc(100% - 56px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .arc-img-card,
    .arc-img-card-inner img,
    .arc-img-overlay,
    .arc-img-title,
    .arc-img-hover-content,
    .arc-img-expand i {
        transition: none !important;
    }
}
