/* ===== Immersive Cyber HUD Mainframe Theme ===== */
:root {
    --bg-body: hsl(220, 20%, 95%);
    --bg-card: hsl(0, 0%, 100%);
    --bg-card-alt: hsla(0, 0%, 100%, 0.85);
    --border-color: hsl(220, 12%, 88%);
    --text-primary: hsl(222, 47%, 12%);
    --text-secondary: hsl(215, 18%, 38%);
    --text-dim: hsl(215, 14%, 60%);
    --accent-primary: hsl(226, 64%, 56%);
    --accent-secondary: hsl(258, 62%, 57%);
    --accent-cyan: hsl(188, 72%, 40%);
    --accent-pink: hsl(330, 68%, 56%);
    --accent-green: hsl(152, 62%, 40%);
    --gradient-primary: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    --gradient-hero: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 50%, var(--accent-pink) 100%);
    --gradient-cta: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    --shadow-sm: 0 4px 20px hsla(220, 30%, 20%, 0.02), 0 1px 3px hsla(220, 30%, 20%, 0.01);
    --shadow-md: 0 8px 30px hsla(220, 30%, 20%, 0.04), 0 2px 8px hsla(220, 30%, 20%, 0.02);
    --shadow-lg: 0 16px 48px hsla(220, 30%, 20%, 0.07), 0 4px 12px hsla(220, 30%, 20%, 0.03);
    --shadow-cta: 0 8px 24px hsla(226, 64%, 56%, 0.2);
    --radius: 12px;
    --radius-md: 10px;
    --radius-sm: 8px;
    --radius-pill: 50px;
    --glow-color: hsla(226, 64%, 56%, 0.05);
    --bg-grid: rgba(99, 102, 241, 0.02);
    --neon-shadow: 0 0 15px rgba(99, 102, 241, 0.15);
}

[data-theme="dark"] {
    --bg-body: #020205;
    --bg-card: #080914;
    --bg-card-alt: rgba(8, 9, 20, 0.85);
    --border-color: rgba(0, 240, 255, 0.12);
    --text-primary: #f0f3fa;
    --text-secondary: #a2add0;
    --text-dim: #6c789a;
    --accent-primary: #00f0ff;
    --accent-secondary: #7000ff;
    --accent-cyan: #00f0ff;
    --accent-pink: #ff007f;
    --accent-green: #00ff66;
    --gradient-primary: linear-gradient(135deg, #7000ff, #00f0ff);
    --gradient-hero: linear-gradient(135deg, #00f0ff 0%, #7000ff 50%, #ff007f 100%);
    --gradient-cta: linear-gradient(135deg, #7000ff, #ff007f);
    --shadow-sm: 0 0 10px rgba(0, 240, 255, 0.04);
    --shadow-md: 0 0 20px rgba(0, 240, 255, 0.07);
    --shadow-lg: 0 0 35px rgba(0, 240, 255, 0.12);
    --shadow-cta: 0 8px 24px rgba(255, 0, 127, 0.35);
    --glow-color: rgba(0, 240, 255, 0.05);
    --bg-grid: rgba(0, 240, 255, 0.022);
    --neon-shadow: 0 0 20px rgba(0, 240, 255, 0.25);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--bg-body);
    background-image: 
        linear-gradient(var(--bg-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px);
    background-size: 32px 32px;
    background-position: center top;
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== 主题切换按钮 ===== */
.theme-toggle {
    position: fixed;
    top: 16px;
    right: 20px;
    z-index: 1000;
    background: var(--bg-card);
    border: 1.5px solid var(--border-color);
    color: var(--text-dim);
    width: 38px; height: 38px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}
.theme-toggle:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: rotate(15deg);
}

/* ===== Widescreen HUD Container ===== */
.home-container {
    max-width: 1360px;
    width: 100%;
    margin: 0 auto;
    padding: 16px 24px 48px;
    position: relative;
    z-index: 1;
}

/* ===== Top Status Bar ===== */
.hud-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-dim);
    letter-spacing: 1.5px;
    border-bottom: 1.5px solid var(--border-color);
    background: var(--bg-card-alt);
    backdrop-filter: blur(10px);
    margin-bottom: 24px;
    font-family: "SF Mono", "JetBrains Mono", Consolas, monospace;
}
[data-theme="dark"] .hud-status-bar {
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%);
    border: 1px dashed rgba(0, 240, 255, 0.2);
    background: rgba(8, 9, 20, 0.8);
}
.status-left {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-primary);
}
.status-center {
    display: flex;
    align-items: center;
    gap: 6px;
    animation: flash-text 4s infinite alternate;
}
@keyframes flash-text {
    0%, 90% { opacity: 1; }
    95% { opacity: 0.4; }
    100% { opacity: 1; }
}
.status-right {
    color: var(--accent-pink);
}

/* ===== Dashboard Mainframe Layout ===== */
.dashboard-mainframe {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 28px;
    margin-bottom: 36px;
    align-items: stretch;
}

.mainframe-left {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mainframe-right {
    display: flex;
    flex-direction: column;
}

/* ===== Hero Section ===== */
.hero {
    text-align: left;
    padding: 36px 0 24px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-glow {
    position: absolute;
    top: -20px;
    left: -40px;
    width: 450px;
    height: 300px;
    background: radial-gradient(ellipse, var(--glow-color) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8em;
    font-weight: 700;
    padding: 6px 16px;
    margin-bottom: 18px;
    background: var(--bg-card);
    color: var(--accent-primary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    letter-spacing: 0.05em;
    font-family: "SF Mono", "JetBrains Mono", Consolas, monospace;
}
[data-theme="dark"] .hero-badge {
    clip-path: polygon(0 6px, 6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%);
    background: rgba(8, 9, 20, 0.9);
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-green);
    animation: pulse-dot 2.5s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 4px var(--accent-green); }
    50% { opacity: 0.5; transform: scale(0.85); box-shadow: none; }
}

.hero-title {
    font-size: 3em;
    font-weight: 800;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    letter-spacing: -0.03em;
    line-height: 1.1;
    white-space: nowrap;
}

.hero-subtitle {
    font-size: 1.5em;
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-weight: 600;
    letter-spacing: 1px;
}

.hero-desc {
    font-size: 0.96em;
    color: var(--text-dim);
    max-width: 580px;
    margin-bottom: 28px;
    line-height: 1.75;
    text-align: left;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 34px;
    background: var(--gradient-cta);
    color: #ffffff;
    font-size: 1em;
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-decoration: none;
    box-shadow: var(--shadow-cta);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    font-family: "SF Mono", "JetBrains Mono", Consolas, monospace;
    letter-spacing: 1.5px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}
[data-theme="dark"] .hero-cta {
    clip-path: polygon(0 10px, 10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
    border-radius: 0;
}
.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(255, 0, 127, 0.45);
}
.hero-cta:active {
    transform: translateY(0);
}
.hero-cta .icon-svg {
    transition: transform 0.2s;
}
.hero-cta:hover .icon-svg {
    transform: translateX(4px);
}

/* ===== Cyber Notched Cards ===== */
.card-hud {
    position: relative;
    border: 1.5px solid var(--border-color);
    background: var(--bg-card);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(16px);
}
[data-theme="dark"] .card-hud {
    clip-path: polygon(0 14px, 14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
    background: rgba(8, 9, 20, 0.75);
}

/* Corner markers [+][+][+][+] */
.card-hud::before {
    content: '[+]';
    position: absolute;
    top: 6px;
    right: 8px;
    font-size: 8px;
    font-family: monospace;
    color: var(--accent-primary);
    opacity: 0.65;
    z-index: 10;
}

/* ===== Left Log Scroller Terminal ===== */
.sys-terminal-panel {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.terminal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: "SF Mono", "JetBrains Mono", Consolas, monospace;
    font-size: 10px;
    color: var(--text-dim);
    letter-spacing: 1px;
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--border-color);
    margin-bottom: 12px;
}
.terminal-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    display: inline-block;
    border-radius: 50%;
    box-shadow: 0 0 6px var(--accent-primary);
}
.terminal-title {
    margin-left: 8px;
    flex-grow: 1;
}
.terminal-code {
    font-weight: 700;
    color: var(--accent-cyan);
}
.terminal-body {
    font-family: "SF Mono", "JetBrains Mono", Consolas, monospace;
    font-size: 11px;
    line-height: 1.9;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0,0,0,0.05);
    padding: 12px;
    height: 140px;
    overflow-y: hidden;
    position: relative;
    border-radius: 4px;
}
[data-theme="dark"] .terminal-body {
    background: rgba(2, 2, 5, 0.7);
    border: 1.5px solid rgba(0, 240, 255, 0.08);
}
.log-line {
    white-space: pre-wrap;
    opacity: 0.85;
}
.log-line.cyan { color: var(--accent-cyan); }
.log-line.pink { color: var(--accent-pink); }
.log-line.green { color: var(--accent-green); }

/* ===== Right AI Sandbox Panel ===== */
.sandbox-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.sandbox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 14px;
    margin-bottom: 16px;
}
.sandbox-title {
    font-family: "SF Mono", "JetBrains Mono", Consolas, monospace;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 1px;
}
.sandbox-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: "SF Mono", "JetBrains Mono", Consolas, monospace;
    font-size: 10px;
    font-weight: 700;
}
.pulse-dot-cyan {
    width: 6px;
    height: 6px;
    background: var(--accent-cyan);
    border-radius: 50%;
    animation: pulse-cyan 1.8s infinite;
}
@keyframes pulse-cyan {
    0% { transform: scale(0.9); opacity: 1; box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.7); }
    70% { transform: scale(1.1); opacity: 0.6; box-shadow: 0 0 0 8px rgba(0, 240, 255, 0); }
    100% { transform: scale(0.9); opacity: 1; box-shadow: 0 0 0 0 rgba(0, 240, 255, 0); }
}
.pulse-dot-pink {
    width: 6px;
    height: 6px;
    background: var(--accent-pink);
    border-radius: 50%;
    animation: pulse-pink 1s infinite;
}
@keyframes pulse-pink {
    0% { transform: scale(0.9); opacity: 1; box-shadow: 0 0 0 0 rgba(255, 0, 127, 0.7); }
    70% { transform: scale(1.1); opacity: 0.6; box-shadow: 0 0 0 8px rgba(255, 0, 127, 0); }
    100% { transform: scale(0.9); opacity: 1; box-shadow: 0 0 0 0 rgba(255, 0, 127, 0); }
}
.sandbox-status-text {
    color: var(--accent-cyan);
}
.sandbox-status-text.running {
    color: var(--accent-pink);
}

.sandbox-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 16px;
}

/* Hologram Visual Area */
.holographic-display {
    position: relative;
    height: 180px;
    border: 1px solid var(--border-color);
    background: rgba(0,0,0,0.03);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
[data-theme="dark"] .holographic-display {
    background: rgba(2, 2, 5, 0.6);
    border: 1px dashed rgba(0, 240, 255, 0.12);
}
.glow-underlay {
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}
.hologram-svg {
    width: 140px;
    height: 140px;
    z-index: 2;
}
/* Hologram Core Rotations */
.holo-outer {
    transform-origin: center;
    animation: holo-spin-clockwise 15s linear infinite;
}
.holo-mid {
    transform-origin: center;
    animation: holo-spin-counter 10s linear infinite;
}
.holo-inner {
    transform-origin: center;
    animation: holo-spin-clockwise 6s linear infinite;
}
@keyframes holo-spin-clockwise {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes holo-spin-counter {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

.voice-wave-container {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 20px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 5;
}
.wave-bar {
    width: 2px;
    height: 2px;
    background: var(--accent-cyan);
    border-radius: 1px;
}
.voice-wave-container.active {
    opacity: 1;
}
.voice-wave-container.active .wave-bar {
    animation: soundWave 0.8s ease-in-out infinite alternate;
}
.voice-wave-container.active .wave-bar:nth-child(2) { animation-delay: 0.1s; animation-duration: 0.5s; }
.voice-wave-container.active .wave-bar:nth-child(3) { animation-delay: 0.2s; animation-duration: 0.7s; }
.voice-wave-container.active .wave-bar:nth-child(4) { animation-delay: 0.15s; animation-duration: 0.6s; }
.voice-wave-container.active .wave-bar:nth-child(5) { animation-delay: 0.3s; animation-duration: 0.9s; }
.voice-wave-container.active .wave-bar:nth-child(6) { animation-delay: 0.25s; animation-duration: 0.55s; }
.voice-wave-container.active .wave-bar:nth-child(7) { animation-delay: 0.05s; animation-duration: 0.8s; }
.voice-wave-container.active .wave-bar:nth-child(8) { animation-delay: 0.12s; animation-duration: 0.65s; }
.voice-wave-container.active .wave-bar:nth-child(9) { animation-delay: 0.22s; animation-duration: 0.75s; }
.voice-wave-container.active .wave-bar:nth-child(10) { animation-delay: 0.35s; animation-duration: 0.45s; }

@keyframes soundWave {
    0% { height: 2px; background: var(--accent-cyan); }
    100% { height: 18px; background: var(--accent-pink); }
}

.hologram-telemetry {
    position: absolute;
    top: 10px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
    font-family: "SF Mono", "JetBrains Mono", Consolas, monospace;
    font-size: 8px;
    font-weight: 700;
    color: var(--text-dim);
}
.tel-item {
    background: rgba(0,0,0,0.05);
    padding: 2px 6px;
    border-radius: 2px;
}
[data-theme="dark"] .tel-item {
    background: rgba(2, 2, 5, 0.8);
    border: 1px solid rgba(0,240,255,0.06);
}

/* Sandbox Step Cards */
.sandbox-steps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.sandbox-step-card {
    display: flex;
    gap: 12px;
    padding: 12px;
    border: 1.5px solid var(--border-color);
    background: var(--bg-card);
    transition: all 0.25s;
    cursor: pointer;
    position: relative;
}
[data-theme="dark"] .sandbox-step-card {
    clip-path: polygon(0 8px, 8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
    background: rgba(8, 9, 20, 0.8);
}
.sandbox-step-card.active {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.15);
}
.sandbox-step-card.active[data-step="2"] {
    border-color: var(--accent-secondary);
}
.sandbox-step-card.active[data-step="3"] {
    border-color: var(--accent-pink);
}
.sandbox-step-card.active[data-step="4"] {
    border-color: var(--accent-green);
}
.step-num {
    font-family: "SF Mono", "JetBrains Mono", Consolas, monospace;
    font-size: 16px;
    font-weight: 800;
    color: var(--text-dim);
    line-height: 1;
}
.sandbox-step-card.active .step-num {
    color: var(--accent-cyan);
}
.sandbox-step-card.active[data-step="3"] .step-num {
    color: var(--accent-pink);
}
.step-details {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 3px;
}
.step-label {
    font-family: "SF Mono", "JetBrains Mono", Consolas, monospace;
    font-size: 8px;
    font-weight: 700;
    color: var(--text-dim);
    letter-spacing: 0.5px;
}
.step-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-primary);
}
.step-progress-bar {
    width: 100%;
    height: 2px;
    background: var(--border-color);
    border-radius: 1px;
    overflow: hidden;
    margin: 4px 0 2px;
}
.bar-fill {
    height: 100%;
    width: 0%;
    background: var(--accent-cyan);
    transition: width 0.3s ease;
}
.sandbox-step-card.active[data-step="2"] .bar-fill { background: var(--accent-secondary); }
.sandbox-step-card.active[data-step="3"] .bar-fill { background: var(--accent-pink); }
.sandbox-step-card.active[data-step="4"] .bar-fill { background: var(--accent-green); }
.step-status-val {
    font-family: "SF Mono", "JetBrains Mono", Consolas, monospace;
    font-size: 8px;
    font-weight: 700;
    color: var(--text-dim);
}
.step-status-val.text-neon-cyan { color: var(--accent-cyan); }
.step-status-val.text-neon-pink { color: var(--accent-pink); }
.step-status-val.text-neon-green { color: var(--accent-green); }

/* Sandbox Run Simulation Button */
.sandbox-run-btn {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1.5px solid var(--border-color);
    color: var(--text-primary);
    font-family: "SF Mono", "JetBrains Mono", Consolas, monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
}
[data-theme="dark"] .sandbox-run-btn {
    clip-path: polygon(0 6px, 6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%);
}
.sandbox-run-btn:hover {
    border-color: var(--accent-pink);
    color: var(--accent-pink);
    box-shadow: 0 0 12px rgba(255, 0, 127, 0.2);
}
.sandbox-run-btn:active {
    transform: scale(0.98);
}

/* ===== Spotlight Interactive Cards ===== */
.spotlight-card {
    overflow: hidden;
}
/* Mouse hover glow mask overlay in JS */
.spotlight-card::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
    z-index: 1;
    background: radial-gradient(
        80px circle at var(--mouse-x, 0px) var(--mouse-y, 0px),
        rgba(0, 240, 255, 0.14),
        transparent 80%
    );
}
[data-theme="dark"] .spotlight-card:hover::after {
    opacity: 1;
}

/* ===== Features 4-Column HUD Grid ===== */
.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.feature-item {
    text-align: left;
    padding: 24px 20px 20px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
}
[data-theme="dark"] .feature-item {
    clip-path: polygon(0 12px, 12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
    border: 1.5px solid rgba(0, 240, 255, 0.12);
    background: rgba(8, 9, 20, 0.75);
}
.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-cyan);
}
[data-theme="dark"] .feature-item:hover {
    border-color: #00f0ff;
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.2);
}

/* Corner plus overlay on features */
.feature-item::before {
    content: '[+]';
    position: absolute;
    top: 6px;
    right: 8px;
    font-size: 8px;
    font-family: monospace;
    color: var(--accent-cyan);
    opacity: 0.6;
}

.feature-header-hud {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-family: "SF Mono", "JetBrains Mono", Consolas, monospace;
    font-size: 9px;
    font-weight: 700;
    color: var(--text-dim);
}
.hud-module-tag {
    color: var(--text-dim);
    letter-spacing: 0.5px;
}
.feature-item:hover .hud-module-tag {
    color: var(--accent-cyan);
}
.hud-status-dot-active {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent-green);
    box-shadow: 0 0 4px var(--accent-green);
}

.feature-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: #ffffff;
    transition: transform 0.25s;
}
.feature-item:hover .feature-icon-wrap {
    transform: scale(1.08);
}
.feature-icon-wrap .icon-svg {
    color: #ffffff;
}

.gradient-blue { background: linear-gradient(135deg, #4f46e5, #6366f1); }
.gradient-purple { background: linear-gradient(135deg, #7c3aed, #8b5cf6); }
.gradient-pink { background: linear-gradient(135deg, #db2777, #ec4899); }
.gradient-cyan { background: linear-gradient(135deg, #0891b2, #06b6d4); }
[data-theme="dark"] .gradient-blue { background: linear-gradient(135deg, #7000ff, #00f0ff); }
[data-theme="dark"] .gradient-purple { background: linear-gradient(135deg, #7000ff, #ff007f); }
[data-theme="dark"] .gradient-pink { background: linear-gradient(135deg, #ff007f, #00f0ff); }
[data-theme="dark"] .gradient-cyan { background: linear-gradient(135deg, #00f0ff, #7000ff); }

.feature-item h4 {
    font-size: 0.95em;
    margin-bottom: 6px;
    font-weight: 700;
    color: var(--text-primary);
}
.feature-item p {
    font-size: 0.82em;
    color: var(--text-dim);
    line-height: 1.7;
    margin-bottom: 12px;
}

/* Feature mini compiler terminal details */
.hud-term-output {
    font-family: "SF Mono", "JetBrains Mono", Consolas, monospace;
    font-size: 9px;
    color: var(--text-dim);
    line-height: 1.6;
    background: rgba(0,0,0,0.03);
    padding: 6px 10px;
    border-radius: 4px;
    border-left: 2px solid var(--accent-cyan);
    text-align: left;
}
[data-theme="dark"] .hud-term-output {
    background: rgba(2, 2, 5, 0.8);
    border-left: 2px solid var(--accent-cyan);
    border-top: 1px solid rgba(0,240,255,0.04);
}
.feature-item:hover .hud-term-output {
    color: var(--text-primary);
    border-left-color: var(--accent-pink);
}

/* Feature laser scan line */
.feature-item-laser {
    position: absolute;
    top: -10%; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
    pointer-events: none;
    z-index: 10;
    opacity: 0;
}
[data-theme="dark"] .feature-item-laser {
    background: linear-gradient(90deg, transparent, #00f0ff, transparent);
}

/* ===== Workflow Panel ===== */
.workflow {
    background: var(--bg-card);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px 20px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-sm);
    text-align: left;
}
[data-theme="dark"] .workflow {
    clip-path: polygon(0 14px, 14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
    background: rgba(8, 9, 20, 0.75);
}
.workflow::before {
    content: '[+]';
    position: absolute;
    top: 6px;
    right: 8px;
    font-size: 8px;
    font-family: monospace;
    color: var(--accent-secondary);
    opacity: 0.6;
}

.section-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-family: "SF Mono", "JetBrains Mono", Consolas, monospace;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.workflow-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
}

.wf-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px 8px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    min-width: 80px;
    cursor: default;
    position: relative;
    z-index: 2;
}
.wf-step:hover {
    background: var(--glow-color);
}

.wf-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glow-color);
    color: var(--accent-primary);
    transition: all 0.25s;
}
.wf-step:hover .wf-icon {
    background: var(--gradient-primary);
    color: #ffffff;
}
.wf-step:hover .wf-icon .icon-svg {
    color: #ffffff;
}

.wf-step span {
    font-size: 10px;
    color: var(--text-secondary);
    font-weight: 700;
    font-family: "SF Mono", "JetBrains Mono", Consolas, monospace;
}
.wf-step-code {
    font-size: 8px !important;
    color: var(--text-dim) !important;
    font-weight: 500;
}
.wf-step:hover .wf-step-code {
    color: var(--accent-cyan) !important;
}

.wf-connector {
    display: flex;
    align-items: center;
    flex-grow: 1;
    padding: 0 4px;
    position: relative;
    z-index: 1;
}
.connector-line {
    width: 100%;
    height: 1.5px;
    background: var(--border-color);
    position: relative;
}
.connector-line::after {
    content: '';
    position: absolute;
    right: -2px;
    top: -3.5px;
    width: 0;
    height: 0;
    border-left: 5px solid var(--border-color);
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
}
[data-theme="dark"] .connector-line {
    background: rgba(112, 0, 255, 0.2) !important;
    box-shadow: 0 0 6px rgba(112, 0, 255, 0.4);
    overflow: hidden;
}
[data-theme="dark"] .connector-line::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, #00f0ff, transparent);
    animation: flowPulse 2s linear infinite;
}
@keyframes flowPulse {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* ===== Footer ===== */
.home-footer {
    text-align: center;
    color: var(--text-dim);
    font-size: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    font-family: "SF Mono", "JetBrains Mono", Consolas, monospace;
    letter-spacing: 1px;
}
.home-footer a.footer-link {
    color: var(--accent-cyan);
    text-decoration: none;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    transition: opacity 0.2s;
}
.home-footer a.footer-link:hover {
    opacity: 0.85;
    text-decoration: underline;
}
.home-footer p + p {
    margin-top: 6px;
}

/* ===== Glitch & Signal Overrides ===== */
[data-theme="dark"] .glitch-text {
    position: relative;
    animation: glitchEffect 6s infinite alternate;
}
@keyframes glitchEffect {
    0%, 93%, 95%, 97%, 100% {
        text-shadow: none;
        transform: scale(1);
    }
    94% {
        text-shadow: 2px -1.5px 0 #00f0ff, -2px 1.5px 0 #ff007f;
        transform: scale(1.005);
    }
    96% {
        text-shadow: -2px -2px 0 #00f0ff, 2px 2.2px 0 #ff007f;
        transform: scale(0.995);
    }
    98% {
        text-shadow: 1px 2px 0 #00f0ff, -1px -2px 0 #ff007f;
    }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    .badge-dot, .pulse-dot-cyan, .pulse-dot-pink { animation: none; }
    .holo-outer, .holo-mid, .holo-inner { animation: none; }
    .voice-wave-container.active .wave-bar { animation: none; height: 5px; }
    .connector-line::before { animation: none !important; left: 0; }
    .glitch-text { animation: none !important; text-shadow: none !important; }
    .feature-item, .hero-cta, .wf-step, .theme-toggle, .sandbox-step-card, .sandbox-run-btn {
        transition: none;
    }
    .hero-cta:hover .icon-svg { transform: none; }
}

/* ===== Widescreen & Tablet Responsive ===== */
@media (max-width: 1100px) {
    .dashboard-mainframe {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .hero-title { font-size: 2.8em; }
    .features {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .home-container { padding: 12px 16px 36px; }
    .hud-status-bar { display: none; }
    .hero { padding: 24px 0 16px; }
    .hero-title { font-size: 2.2em; }
    .hero-subtitle { font-size: 1.2em; }
    .hero-desc { font-size: 0.9em; margin-bottom: 20px; }
    .sys-terminal-panel { display: none; } /* Hide diagnostics console on smaller viewports */
    .features { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .workflow-steps { flex-wrap: wrap; gap: 8px; justify-content: center; }
    .wf-connector { display: none; }
    .wf-step { min-width: 72px; padding: 8px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.35em; }
    .features { grid-template-columns: 1fr; gap: 12px; }
    .feature-item { padding: 18px 14px 16px; }
    .sandbox-steps-grid { grid-template-columns: 1fr; }
    .holographic-display { height: 140px; }
    .hologram-svg { width: 100px; height: 100px; }
    .workflow { padding: 16px 12px; }
}

@media (max-width: 380px) {
    .hero-title { font-size: 1.25em; }
}
