/* ─── Hero ─── */
.d6-hero {
    background: linear-gradient(160deg, #06080d 0%, #0a0e1a 30%, #0d1225 60%, #080b14 100%);
}

/* Scanlines */
.d6-scanlines {
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(6, 182, 212, 0.015) 2px, rgba(6, 182, 212, 0.015) 4px);
    pointer-events: none;
}

/* Grid overlay */
.d6-grid-overlay {
    background-image:
        linear-gradient(rgba(6, 182, 212, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 182, 212, 0.08) 1px, transparent 1px);
    background-size: 60px 60px;
}

.d6-neon-line {
    background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.5) 20%, rgba(6, 214, 160, 0.6) 50%, rgba(6, 182, 212, 0.5) 80%, transparent);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.3), 0 0 60px rgba(6, 182, 212, 0.1);
}

/* ─── Glitch Text ─── */
.d6-glitch-text {
    position: relative;
    display: inline-block;
}
.d6-glitch-text::before,
.d6-glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    opacity: 0;
}
.d6-glitch-text:hover::before {
    animation: d6-glitch-1 0.3s cubic-bezier(.25,.46,.45,.94) 1;
    color: #00b4d8;
    opacity: 0.8;
}
.d6-glitch-text:hover::after {
    animation: d6-glitch-2 0.3s cubic-bezier(.25,.46,.45,.94) 1;
    color: #e040fb;
    opacity: 0.8;
}
@keyframes d6-glitch-1 {
    0% { clip-path: inset(20% 0 60% 0); transform: translate(-3px, 0); opacity: 0.8; }
    20% { clip-path: inset(50% 0 20% 0); transform: translate(3px, 0); }
    40% { clip-path: inset(10% 0 70% 0); transform: translate(-2px, 0); }
    60% { clip-path: inset(60% 0 10% 0); transform: translate(2px, 0); }
    80% { clip-path: inset(30% 0 40% 0); transform: translate(-1px, 0); }
    100% { clip-path: inset(0); transform: translate(0); opacity: 0; }
}
@keyframes d6-glitch-2 {
    0% { clip-path: inset(60% 0 10% 0); transform: translate(3px, 0); opacity: 0.8; }
    20% { clip-path: inset(20% 0 60% 0); transform: translate(-3px, 0); }
    40% { clip-path: inset(70% 0 5% 0); transform: translate(2px, 0); }
    60% { clip-path: inset(5% 0 75% 0); transform: translate(-2px, 0); }
    80% { clip-path: inset(45% 0 30% 0); transform: translate(1px, 0); }
    100% { clip-path: inset(0); transform: translate(0); opacity: 0; }
}

/* ─── Neon text glow ─── */
.d6-neon-text {
    color: #06d6a0;
    text-shadow: 0 0 10px rgba(6, 214, 160, 0.5), 0 0 40px rgba(6, 214, 160, 0.2), 0 0 80px rgba(6, 214, 160, 0.1);
}

/* ─── Typewriter ─── */
.d6-typewriter {
    border-right: 2px solid rgba(6, 182, 212, 0.7);
    animation: d6-blink 0.8s step-end infinite;
}
@keyframes d6-blink {
    50% { border-color: transparent; }
}

/* ─── Badge shimmer ─── */
.d6-glitch-badge {
    position: relative;
    overflow: hidden;
}
.d6-glitch-badge::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(6, 182, 212, 0.1) 50%, transparent 60%);
    transform: translateX(-100%);
    animation: d6-badge-sweep 5s ease-in-out infinite;
}
@keyframes d6-badge-sweep {
    0%, 70% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ─── HUD Stat Cards ─── */
.d6-stat-card {
    flex: 1;
    min-width: 100px;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(6, 182, 212, 0.04);
    border: 1px solid rgba(6, 182, 212, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.d6-stat-card:hover {
    border-color: rgba(6, 182, 212, 0.25);
    background: rgba(6, 182, 212, 0.08);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.08);
}
.d6-stat-value {
    font-family: 'Inter', monospace;
    font-size: 1.5rem;
    font-weight: 900;
    color: white;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}
.d6-stat-label {
    font-size: 0.65rem;
    font-family: monospace;
    color: rgba(6, 182, 212, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 2px;
}
.d6-stat-bar {
    height: 2px;
    background: rgba(255,255,255,0.05);
    border-radius: 999px;
    margin-top: 8px;
    overflow: hidden;
}
.d6-stat-bar-fill {
    height: 100%;
    width: var(--fill);
    border-radius: 999px;
    background: linear-gradient(90deg, #06d6a0, #00b4d8);
    animation: d6-bar-fill 1.5s ease-out forwards;
    transform-origin: left;
}
@keyframes d6-bar-fill {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

/* ─── CTA Buttons ─── */
.d6-cta-primary {
    position: relative;
    isolation: isolate;
    background: linear-gradient(135deg, #06d6a0, #00b4d8);
    color: #06080d;
    font-weight: 800;
    box-shadow: 0 0 20px rgba(6, 214, 160, 0.3), 0 4px 20px rgba(6, 214, 160, 0.15);
    overflow: hidden;
}
.d6-cta-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(135deg, #00b4d8, #06d6a0);
    opacity: 0;
    transition: opacity 0.3s;
}
.d6-cta-primary:hover::before { opacity: 1; }
.d6-cta-primary:hover {
    box-shadow: 0 0 30px rgba(6, 214, 160, 0.5), 0 4px 30px rgba(6, 214, 160, 0.25);
}
.d6-cta-primary > * { position: relative; z-index: 1; }
.d6-cta-primary--large { font-size: 1rem; }

.d6-cta-secondary {
    background: transparent;
    color: #06d6a0;
    border: 2px solid rgba(6, 214, 160, 0.3);
    font-weight: 800;
    position: relative;
    isolation: isolate;
    overflow: hidden;
}
.d6-cta-secondary::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(6, 214, 160, 0.08);
    opacity: 0;
    transition: opacity 0.3s;
}
.d6-cta-secondary:hover::before { opacity: 1; }
.d6-cta-secondary:hover {
    border-color: rgba(6, 214, 160, 0.5);
    box-shadow: 0 0 20px rgba(6, 214, 160, 0.15);
}
.d6-cta-secondary > * { position: relative; z-index: 1; }

/* ─── Terminal ─── */
.d6-terminal {
    background: rgba(8, 12, 24, 0.9);
    border: 1px solid rgba(6, 182, 212, 0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    z-index: 2;
}
.d6-terminal-header {
    background: rgba(6, 182, 212, 0.03);
}
.d6-terminal-glow {
    background: radial-gradient(ellipse at center, rgba(6, 182, 212, 0.08) 0%, transparent 70%);
    filter: blur(30px);
    z-index: 1;
}

.d6-feed-row {
    border-bottom: 1px solid rgba(6, 182, 212, 0.06);
    cursor: pointer;
}
.d6-feed-row:hover {
    background: rgba(6, 182, 212, 0.06);
}
@keyframes d6-fresh-pulse {
    0% { background-color: rgba(6, 182, 212, 0.15); box-shadow: inset 0 0 30px rgba(6, 182, 212, 0.1); }
    100% { background-color: transparent; box-shadow: none; }
}
.d6-feed-fresh {
    animation: d6-fresh-pulse 2.5s ease-out forwards;
}
.d6-feed-category {
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* ─── Marquee ─── */
.d6-marquee-section {
    background: var(--d6-bg-deep);
    border-top: 1px solid rgba(6, 182, 212, 0.08);
    border-bottom: 1px solid rgba(6, 182, 212, 0.08);
}
.d6-marquee-mask {
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.d6-marquee-l { animation: d6-scroll-l 50s linear infinite; }
.d6-marquee-r { animation: d6-scroll-r 55s linear infinite; }
@keyframes d6-scroll-l { to { transform: translateX(-50%); } }
@keyframes d6-scroll-r { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* ─── Holographic Cards ─── */
.d6-holo-card {
    position: relative;
    background: var(--d6-bg-card);
    border: 1px solid rgba(6, 182, 212, 0.08);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.d6-holo-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(from var(--d6-angle, 0deg), transparent, rgba(6, 214, 160, 0.3), transparent, rgba(0, 180, 216, 0.3), transparent);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    opacity: 0;
    transition: opacity 0.4s;
    animation: d6-rotate-border 4s linear infinite;
}
.d6-holo-card:hover::before { opacity: 1; }
.d6-holo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 40px rgba(6, 182, 212, 0.1), 0 20px 40px rgba(0, 0, 0, 0.3);
}
@property --d6-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}
@keyframes d6-rotate-border {
    to { --d6-angle: 360deg; }
}

.d6-holo-card--accent {
    background: linear-gradient(135deg, rgba(6, 214, 160, 0.05), rgba(8, 12, 24, 0.9));
}

.d6-counter-glow {
    color: #06d6a0;
    text-shadow: 0 0 15px rgba(6, 214, 160, 0.3);
}

.d6-shimmer-bar {
    background-size: 200% 100%;
    animation: d6-shimmer 2s ease-in-out infinite;
}
@keyframes d6-shimmer {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 100% 0%; }
}

/* ─── Feature Cards ─── */
.d6-feature-card {
    background: var(--d6-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.d6-feature-card:hover {
    border-color: rgba(6, 182, 212, 0.15);
    background: rgba(6, 182, 212, 0.04);
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.05);
}

.d6-icon-box {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(6, 214, 160, 0.1));
    border: 1px solid rgba(6, 182, 212, 0.15);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.08);
}
.d6-icon-box--warm {
    background: linear-gradient(135deg, rgba(255, 214, 10, 0.12), rgba(255, 155, 10, 0.08));
    border-color: rgba(255, 214, 10, 0.15);
    box-shadow: 0 0 20px rgba(255, 214, 10, 0.08);
}

/* ─── Circuit Section ─── */
.d6-circuit-section {
    background: linear-gradient(170deg, #06080d 0%, #0a0e1a 50%, #06080d 100%);
}
.d6-circuit-bg {
    background-image:
        radial-gradient(circle at 20% 50%, rgba(6, 182, 212, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(6, 214, 160, 0.05) 0%, transparent 50%);
}
.d6-circuit-path {
    stroke-dasharray: 6 10;
    animation: d6-dash-flow 1.5s linear infinite;
}
@keyframes d6-dash-flow { to { stroke-dashoffset: -32; } }

/* ─── Step Cards ─── */
.d6-step-card {
    position: relative;
    padding: 2rem;
    border-radius: 1.25rem;
    background: rgba(12, 17, 28, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.04);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.d6-step-card:hover {
    border-color: rgba(6, 182, 212, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(6, 182, 212, 0.05);
}
.d6-step-icon {
    transition: all 0.3s;
}
.d6-step-icon--cyan {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(6, 182, 212, 0.05));
    border: 1px solid rgba(6, 182, 212, 0.2);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.1);
}
.d6-step-icon--violet {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(139, 92, 246, 0.05));
    border: 1px solid rgba(139, 92, 246, 0.2);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.1);
}
.d6-step-icon--emerald {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
    border: 1px solid rgba(16, 185, 129, 0.2);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.1);
}

/* ─── 3D Tilt Cards ─── */
.d6-tilt-card {
    background: var(--d6-bg-card);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    transform-style: preserve-3d;
    perspective: 800px;
}
.d6-tilt-card:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 40px rgba(6, 182, 212, 0.08);
}
.d6-tilt-card-border {
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: border-color 0.3s;
}
.d6-tilt-card:hover .d6-tilt-card-border {
    border-color: rgba(6, 182, 212, 0.2);
}
.d6-tilt-card-glow {
    background: radial-gradient(circle 250px at var(--mx, 50%) var(--my, 50%), rgba(6, 182, 212, 0.12), transparent 60%);
}

@keyframes d6-icon-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}
.d6-icon-float {
    animation: d6-icon-bob 3s ease-in-out infinite;
}

/* ─── CTA Banner ─── */
.d6-cta-banner {
    background: linear-gradient(160deg, #06080d 0%, #0a1628 40%, #0d1f30 60%, #06080d 100%);
}

/* ─── Reveal animation ─── */
.reveal-d6 {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-d6.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Section dark (global dark page) ─── */
.d6-section-dark { background: transparent; }

/* Force dark page background */
#d6-hero ~ * { background-color: var(--d6-bg-deep, #06080d); }

/* ═══════════════════════════════════════════════════════════════
